Vlasiator ebf0dd394 on dev (v5.4.0 + 1054 commits)
Loading...
Searching...
No Matches
derivatives.hpp File Reference
#include <array>
#include "../definitions.h"
#include "../sysboundary/sysboundary.h"
#include "fs_limiters.h"
Include dependency graph for derivatives.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void calculateDerivativesSimple (fsgrids::perbspan perb, fsgrids::momentsspan moments, fsgrids::dperbspan dperb, fsgrids::dmomentsspan dmoments, fsgrids::technicalspan technical, FieldSolverGrid &fsgrid, const bool doMoments)
 High-level derivative calculation wrapper function.
void calculateBVOLDerivativesSimple (fsgrids::volspan vol, fsgrids::technicalspan technical, FieldSolverGrid &fsgrid)
 High-level derivative calculation wrapper function.
void calculateCurvatureSimple (fsgrids::volspan vol, fsgrids::constbgbspan bgb, fsgrids::technicalspan technical, FieldSolverGrid &fsgrid)
 High-level curvature calculation wrapper function.
void calculateScaledDeltasSimple (dccrg::Dccrg< SpatialCell, dccrg::Cartesian_Geometry > &mpiGrid)
 High-level scaled gradient calculation wrapper function.

Function Documentation

◆ calculateBVOLDerivativesSimple()

void calculateBVOLDerivativesSimple ( fsgrids::volspan vol,
fsgrids::technicalspan technical,
FieldSolverGrid & fsgrid )

High-level derivative calculation wrapper function.

BVOL has been calculated locally by calculateVolumeAveragedFields but not communicated. For the acceleration step one needs the cross-derivatives of BVOL

Parameters
volfsGrid holding the volume averaged fields
technicalfsGrid holding technical information (such as boundary types)
fsgridfsgrid container
See also
calculateDerivatives calculateBVOLDerivatives calculateDerivativesSimple

Definition at line 361 of file derivatives.cpp.

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

◆ calculateCurvatureSimple()

void calculateCurvatureSimple ( fsgrids::volspan vol,
fsgrids::constbgbspan bgb,
fsgrids::technicalspan technical,
FieldSolverGrid & fsgrid )

High-level curvature calculation wrapper function.

Parameters
volfsGrid holding the volume averaged fields
bgbfsGrid holding the background fields
technicalfsGrid holding technical information (such as boundary types)
fsgridfsgrid container
See also
calculateDerivatives calculateBVOLDerivatives calculateDerivativesSimple

Definition at line 440 of file derivatives.cpp.

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

◆ calculateDerivativesSimple()

void calculateDerivativesSimple ( fsgrids::perbspan perb,
fsgrids::momentsspan moments,
fsgrids::dperbspan dperb,
fsgrids::dmomentsspan dmoments,
fsgrids::technicalspan technical,
FieldSolverGrid & fsgrid,
const bool doMoments )

High-level derivative calculation wrapper function.

B has to be updated because after the system boundary update in propagateMagneticFieldSimple there is no consistent state of B yet everywhere.

Then the derivatives are calculated.

Parameters
perbfsGrid holding the perturbed B quantities
momentsfsGrid holding the moment quantities
dperbfsGrid holding the derivatives of perturbed B
dmomentsfsGrid holding the derviatives of moments
technicalfsGrid holding technical information (such as boundary types)
fsgridfsgrid container
doMomentsIf true, the derivatives of moments (rho, V, P) are communicated to neighbours and their derivatives updated.
See also
calculateDerivatives calculateBVOLDerivativesSimple calculateBVOLDerivatives

Definition at line 254 of file derivatives.cpp.

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

◆ calculateScaledDeltasSimple()

void calculateScaledDeltasSimple ( dccrg::Dccrg< SpatialCell, dccrg::Cartesian_Geometry > & mpiGrid)

High-level scaled gradient calculation wrapper function.

Calculates gradients needed for alpha everywhere in the grid

Definition at line 664 of file derivatives.cpp.

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