|
| | BaseParticleContainer (amrex::AmrCore *amr_core) |
| |
| virtual | ~BaseParticleContainer ()=default |
| |
| template<typename Function > |
| void | initialize (Function initializer_function, const CCTK_REAL *real_params, const CCTK_INT *int_params) |
| | Initialize the particles given a custom initialization function. More...
|
| |
| template<typename Function > |
| void | initialize (Function initializer_function, const amrex::MultiFab &metric, const int &level, const CCTK_REAL *real_params, const CCTK_INT *int_params) |
| | Initialize the particles given a custom initialization function. More...
|
| |
| virtual void | evolve (const amrex::MultiFab &lapse, const amrex::MultiFab &shift, const amrex::MultiFab &metric, const amrex::MultiFab &curv, const CCTK_REAL &dt, const int &lev)=0 |
| |
| void | check_banned_zones (const int &level, const CCTK_INT4 &zones, const CCTK_REAL(&x)[10], const CCTK_REAL(&y)[10], const CCTK_REAL(&z)[10], const CCTK_REAL(&radius)[10]) |
| |
| void | outputParticlesAscii (const int &it, const int &plot_every, const std::string &out_dir) |
| |
| void | outputParticlesPlot (const int &it, const int &plot_every, const std::string &out_dir) |
| |
template<typename OtherContainer, typename StructType>
class GInX::BaseParticleContainer< OtherContainer, StructType >
BaseParticleContainer abstract class definition.
The BaseParticleContainer abstract class defines the methods that must be defined for the other <Particle>Containers derived classes. This is templated on the new Container and the struct that defines the parameters of the particles.
It inherits from the AMRex AmrParticleContainer class, using a number of real attributes defined inside the particle struct.
template<typename OtherContainer , typename StructType >
template<typename Function >
| void GInX::BaseParticleContainer< OtherContainer, StructType >::initialize |
( |
Function |
initializer_function, |
|
|
const amrex::MultiFab & |
metric, |
|
|
const int & |
level, |
|
|
const CCTK_REAL * |
real_params, |
|
|
const CCTK_INT * |
int_params |
|
) |
| |
|
inline |
Initialize the particles given a custom initialization function.
The initialize method receives a function and use it to assign the initial conditions over the particles. This function can be implemented by other users or use the ones defined in the file Initializers.hxx.
- Parameters
-
| initializer_function | Function that receives a BaseParticleContainer instance, one array full of doubles and another full of integers as parameters, how to use this parameters have to be defined inside of the custom function. |
| metric | 3D ADM Metric. |
| level | Current refinement level. |
| real_params | Double type array that contains the real parameters needed to initialize the particles. |
| int_params | Integer type array that contains the integer parameters needed to initialize the particles. |
template<typename OtherContainer , typename StructType >
template<typename Function >
| void GInX::BaseParticleContainer< OtherContainer, StructType >::initialize |
( |
Function |
initializer_function, |
|
|
const CCTK_REAL * |
real_params, |
|
|
const CCTK_INT * |
int_params |
|
) |
| |
|
inline |
Initialize the particles given a custom initialization function.
The initialize method receives a function and use it to assign the initial conditions over the particles. This function can be implemented by other users or use the ones defined in the file Initializers.hxx.
- Parameters
-
| initializer_function | Function that receives a BaseParticleContainer instance, one array full of doubles and another full of integers as parameters, how to use this parameters have to be defined inside of the custom function. |
| real_params | Double type array that contains the real parameters needed to initialize the particles. |
| int_params | Integer type array that contains the integer parameters needed to initialize the particles. |