WARPXM v1.10.0
Loading...
Searching...
No Matches
geometry::phase_space_element Namespace Reference

Classes

class  PhaseSpace34Duoprism
 Child PhaseSpaceElement class for 2D2V PhaseSpace34Duoprism. More...
 
class  PhaseSpaceCube
 Child PhaseSpaceElement class for 1D2V PhaseSpaceCube. More...
 
class  PhaseSpaceElement
 Base class used for generating phase space element information for kinetic phase space calculations. More...
 
class  PhaseSpaceFace
 PhaseSpaceFace Class used by PhaseSpaceElements. More...
 
class  PhaseSpaceSquare
 Child PhaseSpaceElement class for 1D1V PhaseSpaceSquare. More...
 

Functions

int getLocalPhaseSpaceNodeIndex (const int l, const int N, const int m, const int i, const int j, const int k)
 This gives you the phase space element local node index given:
 

Function Documentation

◆ getLocalPhaseSpaceNodeIndex()

int geometry::phase_space_element::getLocalPhaseSpaceNodeIndex ( const int  l,
const int  N,
const int  m,
const int  i,
const int  j,
const int  k 
)

This gives you the phase space element local node index given:

Parameters
l= physical space element local node index
N= number of nodes in physical space element
m= order of the line basis constructing the dimensions of velocity space (number of nodes in the line)
i= vx local node index of velocity space element
j= vy local node index of velocity space element
k= vz local node index of velocity space element

The formula is (figured out by Danny): l + N * (i + m * (j + m * k)); or distributed m * m * N * k + m * N * j + N * i + l

Returns
this formula