Vlasiator ebf0dd394 on dev (v5.4.0 + 1054 commits)
Loading...
Searching...
No Matches
arch_moments.cpp File Reference
#include <phiprof.hpp>
#include "arch_moments.h"
#include "vlasovmover.h"
#include "../object_wrapper.h"
#include "../fieldsolver/fs_common.h"
Include dependency graph for arch_moments.cpp:

Go to the source code of this file.

Functions

void calculateCellMoments (spatial_cell::SpatialCell *cell, const bool &computeSecond, const bool &computePopulationMomentsOnly, const bool &doNotSkip)
void calculateMoments_R (dccrg::Dccrg< SpatialCell, dccrg::Cartesian_Geometry > &mpiGrid, const std::vector< CellID > &cells, const bool &computeSecond, const bool initialCompute)
void calculateMoments_V (dccrg::Dccrg< SpatialCell, dccrg::Cartesian_Geometry > &mpiGrid, const std::vector< CellID > &cells, const bool &computeSecond, const bool initialCompute)

Function Documentation

◆ calculateCellMoments()

void calculateCellMoments ( spatial_cell::SpatialCell * cell,
const bool & computeSecond,
const bool & computePopulationMomentsOnly,
const bool & doNotSkip )

Calculate zeroth, first, and (possibly) second bulk velocity moments for the given spatial cell. The calculated moments include contributions from all existing particle populations.

Parameters
cellSpatial cell.
computeSecondIf true, second velocity moments are calculated.
doNotSkipIf false, DO_NOT_COMPUTE cells are skipped.

Definition at line 41 of file arch_moments.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ calculateMoments_R()

void calculateMoments_R ( dccrg::Dccrg< SpatialCell, dccrg::Cartesian_Geometry > & mpiGrid,
const std::vector< CellID > & cells,
const bool & computeSecond,
const bool initialCompute )

Calculate zeroth, first, and (possibly) second bulk velocity moments for the given spatial cell. The calculated moments include contributions from all existing particle populations. The calculated moments are stored to SpatialCell::parameters in _R variables.

Parameters
mpiGridParallel grid library.
cellsVector containing the spatial cells to be calculated.
computeSecondIf true, second velocity moments are calculated.
initialComputeIf true, force re-calculation of outflow L1 sysboundary cell moments. (otherwise skipped as their VDF contents are not kept up to date)

Definition at line 178 of file arch_moments.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ calculateMoments_V()

void calculateMoments_V ( dccrg::Dccrg< SpatialCell, dccrg::Cartesian_Geometry > & mpiGrid,
const std::vector< CellID > & cells,
const bool & computeSecond,
const bool initialCompute )

Calculate zeroth, first, and (possibly) second bulk velocity moments for the given spatial cell. Additionally, for each species, calculate the maximum spatial time step so that CFL(spatial)=1. The calculated moments include contributions from all existing particle populations. The calculated moments are stored to SpatialCell::parameters in _V variables.

Parameters
mpiGridParallel grid library.
cellsVector containing the spatial cells to be calculated.
computeSecondIf true, second velocity moments are calculated.
initialComputeIf true, force re-calculation of outflow L1 sysboundary cell moments. (otherwise skipped as their VDF contents are not kept up to date)

Definition at line 342 of file arch_moments.cpp.

Here is the call graph for this function:
Here is the caller graph for this function: