Parfis
v0.0.7
|
Simulation data. More...
#include <datastruct.h>
Public Member Functions | |
int | setPySimData () |
Sets the PySimData pointers to coresponding references from SimData. More... | |
int | calculateColProb (const CfgData *pCfgData) |
Calculates collision probability from the cx. More... | |
Public Attributes | |
std::vector< Cell > | cellVec |
Vector of cells. | |
std::vector< nodeFlag_t > | nodeFlagVec |
Vector of pointers to the cellVec. More... | |
std::vector< cellId_t > | cellIdVec |
std::vector< cellId_t > | cellIdAVec |
Vector of pointer to cells of group A. More... | |
std::vector< cellId_t > | cellIdBVec |
Vector of pointer to cells of group B. | |
std::vector< State > | stateVec |
Vector of states. | |
std::vector< stateFlag_t > | stateFlagVec |
Vector of state flags - corresponds to stateVec. | |
std::vector< stateId_t > | headIdVec |
Vector of pointers to head states. More... | |
std::vector< Specie > | specieVec |
Vector of species. | |
std::vector< Gas > | gasVec |
Vector of gases. | |
std::vector< randEngine_t > | randomEngineVec |
Engines used to generate random numbers. | |
std::vector< GasCollision > | gasCollisionVec |
Vector of gas collision data. | |
std::vector< PyGasCollision > | pyGasCollisionVec |
Vector for the ctypes wrapper. | |
std::vector< FuncTable > | gasCollisionProbVec |
Vector of total gas collision probability data. | |
std::vector< PyFuncTable > | pyGasCollisionProbVec |
Vector for the ctypes wrapper. | |
Field | field |
Field data. | |
PySimData | pySimData |
PySimData points to data of this object. | |
uint64_t | evolveCnt |
Evolution counter. | |
Simulation data.
int parfis::SimData::calculateColProb | ( | const CfgData * | pCfgData | ) |
Calculates collision probability from the cx.
int parfis::SimData::setPySimData | ( | ) |
Sets the PySimData pointers to coresponding references from SimData.
PySimData is used to wrap the data structure in order to be usable by python through ctypes. The need for this structure is mainly because in ctypes there isn't a built-in representation of the std::vector structure.
std::vector<cellId_t> parfis::SimData::cellIdAVec |
Vector of pointer to cells of group A.
Groups are used to classify cells, for examples cells that lie fully inside the geometry (group A) and those that don't (group B). In different cases the classification can have different meanings.
std::vector<stateId_t> parfis::SimData::headIdVec |
Vector of pointers to head states.
Head state is the first state in the doubly linked list of states that belong to a certain cell. For every cell there are as many heads as there are species in the simulation. This structure is a matrix written in one dimension since the number of elements is cellVec.size()*specieVec.size()
std::vector<nodeFlag_t> parfis::SimData::nodeFlagVec |
Vector of pointers to the cellVec.
Maping of absolute cell id (calculated) to real cell id which is the position in the cellVec vector Vector of nodeFlags for each cell in the geometry - corresponds to cellVec