Vlasiator ebf0dd394 on dev (v5.4.0 + 1054 commits)
Loading...
Searching...
No Matches
spatial_cell::Population Struct Reference

#include <spatial_cell_cpu.hpp>

Collaboration diagram for spatial_cell::Population:

Public Member Functions

 Population ()
 ~Population ()
 Population (const Population &other)
const Populationoperator= (const Population &other)
void ResizeClear (const uint newSize)
void Scale (creal factor)
void Increment (const Population &other, creal factor)
 Population ()
 ~Population ()
 Population (const Population &other)
const Populationoperator= (const Population &other)
void Upload ()
void ResizeClear (const uint newSize)
void Scale (creal factor)
void Increment (const Population &other, creal factor)

Public Attributes

Real RHO
Real V [3]
Real RHO_R
Real V_R [3]
Real RHO_V
Real V_V [3]
Real P [6]
Real P_R [6]
Real P_V [6]
Real RHOLOSSADJUST = 0.0
Real max_dt [2]
Real velocityBlockMinValue
uint ACCSUBCYCLES
vmesh::LocalID N_blocks
vmesh::VelocityMeshvmesh
vmesh::VelocityBlockContainerblockContainer
std::vector< char > compressed_state_buffer
float mlp_error = {std::numeric_limits<float>::max()}
uint32_t mlp_epochs = {0}
Real intersection_z
Real intersection_z_di
Real intersection_z_dj
Real intersection_z_dk
Real intersection_x
Real intersection_x_di
Real intersection_x_dj
Real intersection_x_dk
Real intersection_y
Real intersection_y_di
Real intersection_y_dj
Real intersection_y_dk
Real subcycleDt
vmesh::LocalID reservation = 0
size_t dev_vmesh = 0
size_t dev_blockContainer = 0

Detailed Description

Wrapper for variables needed for each particle species. Change order if you know what you are doing. All Real fields should be consecutive, as they are communicated as a block.

Definition at line 66 of file spatial_cell_cpu.hpp.

Constructor & Destructor Documentation

◆ Population() [1/4]

spatial_cell::Population::Population ( )
inline

Definition at line 98 of file spatial_cell_cpu.hpp.

Here is the caller graph for this function:

◆ ~Population() [1/2]

spatial_cell::Population::~Population ( )
inline

Definition at line 113 of file spatial_cell_cpu.hpp.

◆ Population() [2/4]

spatial_cell::Population::Population ( const Population & other)
inline

Definition at line 117 of file spatial_cell_cpu.hpp.

Here is the call graph for this function:

◆ Population() [3/4]

spatial_cell::Population::Population ( )
inline

Definition at line 289 of file spatial_cell_gpu.hpp.

Here is the call graph for this function:

◆ ~Population() [2/2]

spatial_cell::Population::~Population ( )
inline

Definition at line 316 of file spatial_cell_gpu.hpp.

◆ Population() [4/4]

spatial_cell::Population::Population ( const Population & other)
inline

Definition at line 326 of file spatial_cell_gpu.hpp.

Here is the call graph for this function:

Member Function Documentation

◆ Increment() [1/2]

void spatial_cell::Population::Increment ( const Population & other,
creal factor )
inline

Definition at line 197 of file spatial_cell_cpu.hpp.

Here is the call graph for this function:

◆ Increment() [2/2]

void spatial_cell::Population::Increment ( const Population & other,
creal factor )
inline

Definition at line 469 of file spatial_cell_gpu.hpp.

Here is the call graph for this function:

◆ operator=() [1/2]

const Population & spatial_cell::Population::operator= ( const Population & other)
inline

Definition at line 142 of file spatial_cell_cpu.hpp.

Here is the call graph for this function:

◆ operator=() [2/2]

const Population & spatial_cell::Population::operator= ( const Population & other)
inline

Definition at line 368 of file spatial_cell_gpu.hpp.

Here is the call graph for this function:

◆ ResizeClear() [1/2]

void spatial_cell::Population::ResizeClear ( const uint newSize)
inline

Definition at line 170 of file spatial_cell_cpu.hpp.

Here is the caller graph for this function:

◆ ResizeClear() [2/2]

void spatial_cell::Population::ResizeClear ( const uint newSize)
inline

Definition at line 419 of file spatial_cell_gpu.hpp.

Here is the call graph for this function:

◆ Scale() [1/2]

void spatial_cell::Population::Scale ( creal factor)
inline

Definition at line 178 of file spatial_cell_cpu.hpp.

◆ Scale() [2/2]

void spatial_cell::Population::Scale ( creal factor)
inline

Definition at line 445 of file spatial_cell_gpu.hpp.

Here is the call graph for this function:

◆ Upload()

void spatial_cell::Population::Upload ( )
inline

Definition at line 412 of file spatial_cell_gpu.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ ACCSUBCYCLES

uint spatial_cell::Population::ACCSUBCYCLES

number of subcyles for each cell

Definition at line 80 of file spatial_cell_cpu.hpp.

◆ blockContainer

vmesh::VelocityBlockContainer * spatial_cell::Population::blockContainer

Velocity block data.

Definition at line 86 of file spatial_cell_cpu.hpp.

◆ compressed_state_buffer

std::vector< char > spatial_cell::Population::compressed_state_buffer

Used by OCTREE and ZFP to store comprresed state representation of the VDF of this sc

Definition at line 87 of file spatial_cell_cpu.hpp.

◆ dev_blockContainer

size_t spatial_cell::Population::dev_blockContainer = 0

Temporary storage of acceleration transform intersections and sybcycling dt.

Definition at line 280 of file spatial_cell_gpu.hpp.

◆ dev_vmesh

size_t spatial_cell::Population::dev_vmesh = 0

Definition at line 279 of file spatial_cell_gpu.hpp.

◆ intersection_x

Real spatial_cell::Population::intersection_x

Definition at line 93 of file spatial_cell_cpu.hpp.

◆ intersection_x_di

Real spatial_cell::Population::intersection_x_di

Definition at line 93 of file spatial_cell_cpu.hpp.

◆ intersection_x_dj

Real spatial_cell::Population::intersection_x_dj

Definition at line 93 of file spatial_cell_cpu.hpp.

◆ intersection_x_dk

Real spatial_cell::Population::intersection_x_dk

Definition at line 93 of file spatial_cell_cpu.hpp.

◆ intersection_y

Real spatial_cell::Population::intersection_y

Definition at line 94 of file spatial_cell_cpu.hpp.

◆ intersection_y_di

Real spatial_cell::Population::intersection_y_di

Definition at line 94 of file spatial_cell_cpu.hpp.

◆ intersection_y_dj

Real spatial_cell::Population::intersection_y_dj

Definition at line 94 of file spatial_cell_cpu.hpp.

◆ intersection_y_dk

Real spatial_cell::Population::intersection_y_dk

Definition at line 94 of file spatial_cell_cpu.hpp.

◆ intersection_z

Real spatial_cell::Population::intersection_z

Definition at line 92 of file spatial_cell_cpu.hpp.

◆ intersection_z_di

Real spatial_cell::Population::intersection_z_di

Definition at line 92 of file spatial_cell_cpu.hpp.

◆ intersection_z_dj

Real spatial_cell::Population::intersection_z_dj

Definition at line 92 of file spatial_cell_cpu.hpp.

◆ intersection_z_dk

Real spatial_cell::Population::intersection_z_dk

Definition at line 92 of file spatial_cell_cpu.hpp.

◆ max_dt

Real spatial_cell::Population::max_dt

Element[0] is max_r_dt, element[1] max_v_dt.

Definition at line 77 of file spatial_cell_cpu.hpp.

◆ mlp_epochs

uint32_t spatial_cell::Population::mlp_epochs = {0}

Store the number of epochs that the MLP was trained for Temporary storage of acceleration transform intersections and sybcycling dt.

Store the number of epochs that the MLP was trained for

Definition at line 89 of file spatial_cell_cpu.hpp.

◆ mlp_error

float spatial_cell::Population::mlp_error = {std::numeric_limits<float>::max()}

Stores the loss function error of the MLP that was used for compression

Definition at line 88 of file spatial_cell_cpu.hpp.

◆ N_blocks

vmesh::LocalID spatial_cell::Population::N_blocks

Number of velocity blocks, used when receiving velocity mesh from remote neighbors using MPI.

Definition at line 81 of file spatial_cell_cpu.hpp.

◆ P

Real spatial_cell::Population::P

Definition at line 73 of file spatial_cell_cpu.hpp.

◆ P_R

Real spatial_cell::Population::P_R

Definition at line 74 of file spatial_cell_cpu.hpp.

◆ P_V

Real spatial_cell::Population::P_V

Definition at line 75 of file spatial_cell_cpu.hpp.

◆ reservation

vmesh::LocalID spatial_cell::Population::reservation = 0

Definition at line 265 of file spatial_cell_gpu.hpp.

◆ RHO

Real spatial_cell::Population::RHO

Definition at line 67 of file spatial_cell_cpu.hpp.

◆ RHO_R

Real spatial_cell::Population::RHO_R

Definition at line 69 of file spatial_cell_cpu.hpp.

◆ RHO_V

Real spatial_cell::Population::RHO_V

Definition at line 71 of file spatial_cell_cpu.hpp.

◆ RHOLOSSADJUST

Real spatial_cell::Population::RHOLOSSADJUST = 0.0

Counter for particle number loss from the destroying blocks in blockadjustment

Definition at line 76 of file spatial_cell_cpu.hpp.

◆ subcycleDt

Real spatial_cell::Population::subcycleDt

Definition at line 95 of file spatial_cell_cpu.hpp.

◆ V

Real spatial_cell::Population::V

Definition at line 68 of file spatial_cell_cpu.hpp.

◆ V_R

Real spatial_cell::Population::V_R

Definition at line 70 of file spatial_cell_cpu.hpp.

◆ V_V

Real spatial_cell::Population::V_V

Definition at line 72 of file spatial_cell_cpu.hpp.

◆ velocityBlockMinValue

Real spatial_cell::Population::velocityBlockMinValue

Definition at line 78 of file spatial_cell_cpu.hpp.

◆ vmesh

vmesh::VelocityMesh * spatial_cell::Population::vmesh

Velocity mesh. Contains all velocity blocks that exist in this spatial cell. Cells are identified by their unique global IDs.

Definition at line 83 of file spatial_cell_cpu.hpp.


The documentation for this struct was generated from the following files: