|
METHOD
|
#include <simData.h>
Public Member Functions | |
| int | id (int var, int i, int j, int k) |
| double | sigmaFunc (double *cons, double *prims, double *aux, int i=-1, int j=-1, int k=-1) |
| void | initData (PlatformEnv *env, int nOptionalSimArgs=0, std::vector< double > optionalSimArgs=std::vector< double >(), std::vector< std::string > optionalSimArgNames=std::vector< std::string >()) |
| Data (int nx, int ny, int nz, double xmin, double xmax, double ymin, double ymax, double zmin, double zmax, double endTime, PlatformEnv *env, double cfl=0.5, int Ng=4, double gamma=5.0/3.0, double sigma=1e3, double cp=0.1, double mu1=-1.0e4, double mu2=1.0e4, int frameskip=10, int reportItersPeriod=1, bool funtionalSigma=false, double gam=12) | |
| Data (DataArgsBase args, PlatformEnv *env) | |
| ~Data () | |
Public Attributes | |
| double | endTime |
| double | cfl |
| int | Ng |
| double | gamma |
| double | sigma |
| int | memSet |
| int | bcsSet |
| double | cp |
| int | frameSkip |
| int | reportItersPeriod |
| bool | functionalSigma |
| double | gam |
| double | t =-1 |
| double | dt |
| int | iters |
| int | dims |
| std::vector< double > | optionalSimArgs |
| std::vector< std::string > | optionalSimArgNames |
| int | nOptionalSimArgs =0 |
| int | nx |
| int | ny |
| int | nz |
| double | xmin |
| double | xmax |
| double | ymin |
| double | ymax |
| double | zmin |
| double | zmax |
| int | Ncons |
| int | Nprims |
| int | Naux |
| double | mu1 |
| double | mu2 |
| double * | cons |
| double * | prims |
| double * | aux |
| double * | f |
| double * | fnet |
| double * | source |
| double * | sourceExtension |
| double * | x |
| double * | y |
| double * | z |
| double | alphaX |
| double | alphaY |
| double | alphaZ |
| double | dx |
| double | dy |
| double | dz |
| int | Nx |
| int | Ny |
| int | Nz |
| int | Ntot |
| std::vector< std::string > | consLabels |
| std::vector< std::string > | primsLabels |
| std::vector< std::string > | auxLabels |
| int | is |
| int | js |
| int | ks |
| int | ie |
| int | je |
| int | ke |
Data object
| Data::Data | ( | int | nx, |
| int | ny, | ||
| int | nz, | ||
| double | xmin, | ||
| double | xmax, | ||
| double | ymin, | ||
| double | ymax, | ||
| double | zmin, | ||
| double | zmax, | ||
| double | endTime, | ||
| PlatformEnv * | env, | ||
| double | cfl = 0.5, |
||
| int | Ng = 4, |
||
| double | gamma = 5.0/3.0, |
||
| double | sigma = 1e3, |
||
| double | cp = 0.1, |
||
| double | mu1 = -1.0e4, |
||
| double | mu2 = 1.0e4, |
||
| int | frameskip = 10, |
||
| int | reportItersPeriod = 1, |
||
| bool | funtionalSigma = false, |
||
| double | gam = 12 |
||
| ) |
Constructor – all vars specified by comma separated list.
| nx | number of physical cells in x-direction |
| ny | number of physical cells in y-direction |
| nz | number of physical cells in z-direction |
| xmin | minimum value of x domain |
| xmax | maximum value of x domain |
| ymin | minimum value of y domain |
| ymax | maximum value of y domain |
| zmin | minimum value of z domain |
| zmax | maximum value of z domain |
| env | environment object containing platform details eg MPI ranks |
| endTime | desired end time of the simulation |
| cfl | courant factor |
| Ng | number of ghost cells in each direction |
| gamma | adiabatic index |
| sigma | value of conductivity |
| cp | time scale for divergence cleaning. cp = 1 / kappa |
| mu1 | charge mass ratio of species 1 |
| mu2 | charge mass ratio of species 2 |
| frameskip | number of timesteps per file output |
| reportItersPeriod | period with which time step data is reported to screen during program execution |
| Data::Data | ( | DataArgsBase | args, |
| PlatformEnv * | env | ||
| ) |
Constructor.
| args | simulation arguments such as cfl, sigma etc, as read from checkpoint restart file |
| env | environment object containing platform details eg MPI ranks |
|
inline |
Element ID function.
| var | the variable number, eg cons[0] is energy, cons[1] is x-momentum etc. |
| i | cell number in the x-direction |
| j | cell number in the y-direction |
| k | cell number in the z-direction |
| void Data::initData | ( | PlatformEnv * | env, |
| int | nOptionalSimArgs = 0, |
||
| std::vector< double > | optionalSimArgs = std::vector< double >(), |
||
| std::vector< std::string > | optionalSimArgNames = std::vector< std::string >() |
||
| ) |
Initialiser.
| double Data::sigmaFunc | ( | double * | cons, |
| double * | prims, | ||
| double * | aux, | ||
| int | i = -1, |
||
| int | j = -1, |
||
| int | k = -1 |
||
| ) |
General form of conductivity.
| [in] | *cons | pointer to conserved vector work array. Size is \(N_{cons} \times N_x \times N_y \times N_z\) or \(N_{cons}\) if any \(i, j, k < 0\) |
| [in] | *prims | pointer to primitive vector work array. Size is \(N_{prims} \times N_x \times N_y \times N_z\) or \(N_{cons}\) if any \(i, j, k < 0\) |
| [in] | *aux | pointer to auxilliary vector work array. Size is \(N_{aux} \times N_x \times N_y \times N_z\) or \(N_{cons}\) if any \(i, j, k < 0\) |
| i | cell number in the x-direction, default is -1. If \(i < 0\), cons, prims, and are for a single cell. | |
| j | cell number in the y-direction, default is -1. If \(j < 0\), cons, prims, and are for a single cell. | |
| k | cell number in the z-direction, default is -1. If \(k < 0\), cons, prims, and are for a single cell. |
| double Data::alphaX |
| double Data::alphaY |
| double Data::alphaZ |
| std::vector<std::string> Data::auxLabels |
| int Data::bcsSet |
| std::vector<std::string> Data::consLabels |
| bool Data::functionalSigma |
| int Data::iters |
| int Data::memSet |
| double Data::mu1 |
| double Data::mu2 |
| int Data::nOptionalSimArgs =0 |
| int Data::Ntot |
| int Data::nx |
| int Data::Nx |
| int Data::ny |
| int Data::Ny |
| int Data::nz |
| int Data::Nz |
| std::vector<std::string> Data::optionalSimArgNames |
| std::vector<double> Data::optionalSimArgs |
| std::vector<std::string> Data::primsLabels |
| int Data::reportItersPeriod |
| double * Data::sourceExtension |
| double * Data::x |
| double Data::xmax |
| double Data::xmin |
| double * Data::y |
| double Data::ymax |
| double Data::ymin |
| double * Data::z |
| double Data::zmax |
| double Data::zmin |