|
Vlasiator ebf0dd394 on dev (v5.4.0 + 1054 commits)
|
#include <Shocktest.h>


Public Types | |
| enum | { LEFT , RIGHT } |
Public Member Functions | |
| Shocktest () | |
| virtual | ~Shocktest () |
| virtual bool | initialize (void) override |
| virtual void | getParameters (void) override |
| virtual Realf | fillPhaseSpace (spatial_cell::SpatialCell *cell, const uint popID, const uint nRequested) const override |
| virtual Realf | probePhaseSpace (spatial_cell::SpatialCell *cell, const uint popID, Real vx_in, Real vy_in, Real vz_in) const override |
| virtual void | setProjectBField (fsgrids::perbspan perb, fsgrids::bgbspan bgb, fsgrids::technicalspan technical, FieldSolverGrid &fsgrid) override |
| virtual void | calcCellParameters (spatial_cell::SpatialCell *cell, creal &t) override |
| virtual std::vector< std::array< Real, 3 > > | getV0 (creal x, creal y, creal z, const uint popID) const override |
| Public Member Functions inherited from projects::Project | |
| 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. | |
Static Public Member Functions | |
| static void | addParameters (void) |
| Static Public Member Functions inherited from projects::Project | |
| static void | addParameters () |
Public Attributes | |
| Real | rho [2] |
| Real | T [2] |
| Real | Vx [2] |
| Real | Vy [2] |
| Real | Vz [2] |
| Real | Bx [2] |
| Real | By [2] |
| Real | Bz [2] |
Additional Inherited Members | |
| Protected Member Functions inherited from projects::TriAxisSearch | |
| virtual uint | findBlocksToInitialize (spatial_cell::SpatialCell *cell, const uint popID) const |
| Find blocks above the threshold centred isotropically around a bulk velocity. | |
| Protected Member Functions inherited from projects::Project | |
| void | setVelocitySpace (const uint popID, spatial_cell::SpatialCell *cell) const |
| Sets the distribution function in a cell. | |
| void | printPopulations () |
| virtual bool | rescalesDensity (const uint popID) const |
| void | rescaleDensity (spatial_cell::SpatialCell *cell, const uint popID) const |
| Real | getRandomNumber (std::default_random_engine &randGen) const |
| void | setRandomSeed (uint64_t seedModifier, std::default_random_engine &randGen) const |
| void | setRandomCellSeed (spatial_cell::SpatialCell *cell, std::default_random_engine &randGen) const |
Definition at line 34 of file Shocktest.h.
| anonymous enum |
| Enumerator | |
|---|---|
| LEFT | |
| RIGHT | |
Definition at line 43 of file Shocktest.h.
| projects::Shocktest::Shocktest | ( | ) |
Definition at line 42 of file Shocktest.cpp.
|
virtual |
Definition at line 43 of file Shocktest.cpp.
|
static |
|
overridevirtual |
Calculate parameters for the given spatial cell at the given time.
| cellParams | Array containing cell parameters. |
| 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. |
Reimplemented from projects::Project.
Definition at line 217 of file Shocktest.cpp.
|
overridevirtual |
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.
| popID | Particle species ID. |
Implements projects::Project.
Definition at line 111 of file Shocktest.cpp.

|
overridevirtual |
Get the value that was read in.
Reimplemented from projects::Project.
Definition at line 68 of file Shocktest.cpp.

|
overridevirtual |
Returns the center coordinates of the maxwellian distribution @ param x The x coordinate of the given spatial cell @ param y The x coordinate of the given spatial cell @ param z The x coordinate of the given spatial cell
Implements projects::TriAxisSearch.
Definition at line 199 of file Shocktest.cpp.
|
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!
Reimplemented from projects::Project.
Definition at line 46 of file Shocktest.cpp.

|
overridevirtual |
Implements projects::TriAxisSearch.
Definition at line 169 of file Shocktest.cpp.

|
overridevirtual |
Set the background and perturbed magnetic fields for this project.
| 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. |
Print a warning message to stderr and abort, one should not use the base class functions.
Reimplemented from projects::Project.
Definition at line 219 of file Shocktest.cpp.

| Real projects::Shocktest::Bx[2] |
Definition at line 52 of file Shocktest.h.
| Real projects::Shocktest::By[2] |
Definition at line 53 of file Shocktest.h.
| Real projects::Shocktest::Bz[2] |
Definition at line 54 of file Shocktest.h.
| Real projects::Shocktest::rho[2] |
Definition at line 47 of file Shocktest.h.
| Real projects::Shocktest::T[2] |
Definition at line 48 of file Shocktest.h.
| Real projects::Shocktest::Vx[2] |
Definition at line 49 of file Shocktest.h.
| Real projects::Shocktest::Vy[2] |
Definition at line 50 of file Shocktest.h.
| Real projects::Shocktest::Vz[2] |
Definition at line 51 of file Shocktest.h.