#include <verificationLarmor.h>
|
| | verificationLarmor () |
| virtual | ~verificationLarmor () |
| virtual bool | initialize (void) override |
| virtual void | getParameters (void) override |
| virtual void | setProjectBField (fsgrids::perbspan perb, fsgrids::bgbspan bgb, fsgrids::technicalspan technical, FieldSolverGrid &fsgrid) override |
| | Project () |
| virtual | ~Project () |
| virtual Real | getCorrectNumberDensity (spatial_cell::SpatialCell *cell, const uint popID) const |
| virtual void | hook (cuint &stage, const dccrg::Dccrg< spatial_cell::SpatialCell, dccrg::Cartesian_Geometry > &mpiGrid, fsgrids::perbspan perb, fsgrids::technicalspan technical, FieldSolverGrid &fsgrid) const |
| bool | initialized () |
| virtual void | setupBeforeSetCell (const std::vector< CellID > &cells) |
| void | setCell (spatial_cell::SpatialCell *cell) |
| | Set the perturbed fields and distribution of a cell according to the default simulation settings. This is used for the NOT_SYSBOUNDARY cells and some other system boundary conditions (e.g. Outflow).
|
| virtual bool | canRefine (spatial_cell::SpatialCell *cell) const |
| virtual bool | shouldRefineCell (dccrg::Dccrg< spatial_cell::SpatialCell, dccrg::Cartesian_Geometry > &mpiGrid, CellID id, Real r_max2) const |
| virtual bool | shouldUnrefineCell (dccrg::Dccrg< spatial_cell::SpatialCell, dccrg::Cartesian_Geometry > &mpiGrid, CellID id, Real r_max2) const |
| virtual bool | refineSpatialCells (dccrg::Dccrg< spatial_cell::SpatialCell, dccrg::Cartesian_Geometry > &mpiGrid) const |
| virtual uint64_t | adaptRefinement (dccrg::Dccrg< spatial_cell::SpatialCell, dccrg::Cartesian_Geometry > &mpiGrid) const |
| | Adapts refinement by one level according to the project. Returns true if any cells were refined, false if not.
|
| virtual bool | forceRefinement (dccrg::Dccrg< spatial_cell::SpatialCell, dccrg::Cartesian_Geometry > &mpiGrid, int n) const |
| | Refine/unrefine spatial cells one level to the static criteria in the config.
|
| virtual bool | filterRefined (dccrg::Dccrg< spatial_cell::SpatialCell, dccrg::Cartesian_Geometry > &mpiGrid) const |
| | Boxcar filters spatial cells that were recently refined.
|
Definition at line 32 of file verificationLarmor.h.
◆ verificationLarmor()
| projects::verificationLarmor::verificationLarmor |
( |
| ) |
|
◆ ~verificationLarmor()
| projects::verificationLarmor::~verificationLarmor |
( |
| ) |
|
|
virtual |
◆ addParameters()
| void projects::verificationLarmor::addParameters |
( |
void | | ) |
|
|
static |
◆ calcCellParameters()
Calculate potentially needed parameters for the given spatial cell at the given time.
Currently this function is only called during initialization.
The following array indices contain the coordinates of the "lower left corner" of the cell: CellParams::XCRD, CellParams::YCRD, and CellParams::ZCRD. The cell size is given in the following array indices: CellParams::DX, CellParams::DY, and CellParams::DZ.
- Parameters
-
| cell | Pointer to the spatial cell to be handled. |
| t | The current value of time. This is passed as a convenience. If you need more detailed information of the state of the simulation, you can read it from Parameters. |
Print a warning message to stderr and abort, one should not use the base class functions.
Reimplemented from projects::Project.
Definition at line 148 of file verificationLarmor.cpp.
◆ fillPhaseSpace()
Calculates the distribution function contents for the spatial cell and population in question NOTE: This function is called inside parallel region so it must be declared as const. This function will contain a loop over nRequested velocity blocks, with the block GlobalIDs provided in the GIDlist buffer, storing phase-space densities in the bufferData buffer.
- Parameters
-
- Returns
- The total stored number density of the cell for this population The physical unit of this quantity is 1/m^3.
Implements projects::Project.
Definition at line 78 of file verificationLarmor.cpp.
◆ getParameters()
| void projects::verificationLarmor::getParameters |
( |
void | | ) |
|
|
overridevirtual |
◆ initialize()
| bool projects::verificationLarmor::initialize |
( |
void | | ) |
|
|
overridevirtual |
Initialize project. Can be used, e.g., to read in parameters from the input file.
Initialize the Project. Velocity mesh and particle population parameters are read from the configuration file, and corresponding internal variables are created here. NOTE: Each project must call this function!
- Returns
- If true, particle species and velocity meshes were created successfully.
Reimplemented from projects::Project.
Definition at line 42 of file verificationLarmor.cpp.
◆ setProjectBField()
Set the background and perturbed magnetic fields for this project.
- Parameters
-
| perBGrid | Grid on which values of the perturbed field can be set if needed. |
| BgBGrid | Grid on which values for the background field can be set if needed, e.g. using the background field functions. |
| technical | Technical fsgrid, available if some of its data is necessary. |
- See also
- setBackgroundField, setBackgroundFieldToZero
Print a warning message to stderr and abort, one should not use the base class functions.
Reimplemented from projects::Project.
Definition at line 150 of file verificationLarmor.cpp.
◆ BX0
| Real projects::verificationLarmor::BX0 |
|
protected |
◆ BY0
| Real projects::verificationLarmor::BY0 |
|
protected |
◆ BZ0
| Real projects::verificationLarmor::BZ0 |
|
protected |
◆ DENSITY
| Real projects::verificationLarmor::DENSITY |
|
protected |
◆ VX0
| Real projects::verificationLarmor::VX0 |
|
protected |
◆ VY0
| Real projects::verificationLarmor::VY0 |
|
protected |
◆ VZ0
| Real projects::verificationLarmor::VZ0 |
|
protected |
◆ X0
| Real projects::verificationLarmor::X0 |
|
protected |
◆ Y0
| Real projects::verificationLarmor::Y0 |
|
protected |
◆ Z0
| Real projects::verificationLarmor::Z0 |
|
protected |
The documentation for this class was generated from the following files: