PlasCom2  1.0
XPACC Multi-physics simluation application
euler::util Namespace Reference

Functions

int ComputeDVBuffer (const pcpp::IndexIntervalType &regionInterval, const std::vector< size_t > &bufferSizes, const std::vector< double *> &stateBuffers, std::vector< double *> &dvBuffers)
 
int ComputeDVBuffer2 (const int *numDimPtr, const size_t *bufferSize, const size_t *numPointsPtr, const size_t *bufferInterval, const double *rhoBuffer, const double *rhoVBuffer, const double *rhoEBuffer, double *pressureBuffer, double *tempBuffer, double *rhom1Buffer, double *velBuffer)
 
double Pulse (double amp, double width, double centerX, double centerY, double centerZ, double x, double y, double z)
 
double Window (double tWidth, double wWidth, double centerX, double centerY, double centerZ, double x, double y, double z)
 
double Parabola (double amp, double centerX, double centerY, double centerZ, double x, double y, double z)
 
template<typename GridType , typename HaloType >
int CreateSimulationFixtures (GridType &inGrid, HaloType &inHalo, plascom2::operators::sbp::base &inOperator, const std::vector< size_t > &gridSizes, int interiorOrder, pcpp::CommunicatorType &inComm, std::ostream *messageStreamPtr=NULL)
 
template<typename GridType >
int InitializeSimulationFixtures (GridType &inGrid, plascom2::operators::sbp::base &inOperator, int interiorOrder, pcpp::CommunicatorType &inComm, std::ostream *messageStreamPtr=NULL)
 
template<typename GridType , typename StateType >
int SetupEulerState (const GridType &inGrid, StateType &inState, StateType &inParams, int numScalars, bool withFlux=false)
 
template<typename DatasetType >
int ValidateState (const DatasetType &inState, const DatasetType &inParam, std::ostream &outStream)
 
template<typename GridType , typename StateType >
int InitializeQuiescentState (const GridType &inGrid, StateType &inState, StateType &inParam, int threadId, std::ostream *messageStream=NULL)
 
template<typename GridType , typename StateType >
int InitializeShock1D (const GridType &inGrid, StateType &inState, StateType &inParamState, const std::vector< double > &inParams, int threadId, std::ostream *messageStream)
 
template<typename GridType , typename StateType , typename BoundaryType >
int InitializeProtoY4Test1 (const GridType &inGrid, StateType &inState, StateType &inParamState, std::vector< BoundaryType > &inBoundaries, const std::vector< double > &inParams, const std::vector< int > &inFlags, int threadId)
 
template<typename GridType , typename StateType >
int InitializeConvectingVortex (const GridType &inGrid, StateType &inState, StateType &inParam, const std::vector< double > &inParams, const std::vector< int > &inFlags, int threadId)
 
template<typename GridType , typename StateType >
int InitializeAcousticPulse (const GridType &inGrid, StateType &inState, StateType &inParam, const std::vector< double > &inParams, const std::vector< int > &inFlags, int threadId, std::ostream *messageStream)
 
template<typename GridType , typename StateType >
int InitializeDensityPulse (const GridType &inGrid, StateType &inState, StateType &inParamState, const std::vector< double > &inParams, int threadId, std::ostream *messageStream=NULL)
 
template<typename GridType , typename StateType >
int InitializeGaussianScalar (const GridType &inGrid, StateType &inState, StateType &inParamState, const std::vector< double > &inParams, int threadId, std::ostream *messageStream=NULL)
 
template<typename GridType , typename StateType >
int InitializeAdvectionDiffusion (const GridType &inGrid, StateType &inState, StateType &inParamState, const std::vector< double > &inParams, int threadId, std::ostream *messageStream=NULL)
 
template<typename GridType , typename StateType >
int InitializeUniformFlow (const GridType &inGrid, StateType &inState, StateType &inParamState, const std::vector< double > &inParams, int threadId, std::ostream *messageStream=NULL)
 
template<typename DomainType >
int InitializeAdvectionDiffusion (DomainType &inDomain, int iGrid, const std::string &caseName, int threadId, std::ostream *messageStream=NULL)
 
template<typename GridType , typename StateType >
int InitializeDensityPulse (const GridType &inGrid, StateType &inState, StateType &inParam, const std::vector< double > &inParams, const std::vector< int > &inFlags, int threadId, std::ostream *messageStream)
 
template<typename GridType , typename StateType >
int InitializeRiemann1D (const GridType &inGrid, StateType &inState, StateType &paramState, const std::vector< double > &inParams, const std::vector< int > &inFlags, int threadId)
 
template<typename GridType , typename StateType >
int InitializeShocktube (const GridType &inGrid, StateType &inState, StateType &paramState, const std::vector< double > &inParams, const std::vector< int > &inFlags, int threadId)
 
template<typename GridType , typename StateType , typename BoundaryType >
int InitializeHoles (const GridType &inGrid, StateType &inState, StateType &inParam, std::vector< BoundaryType > &inBoundaries)
 

Function Documentation

◆ ComputeDVBuffer()

int ComputeDVBuffer ( const pcpp::IndexIntervalType regionInterval,
const std::vector< size_t > &  bufferSizes,
const std::vector< double *> &  stateBuffers,
std::vector< double *> &  dvBuffers 
)

Definition at line 153 of file EulerUtil.C.

Referenced by rhs< GridT, StateT, OperatorT >::ComputeDV(), TestEOS_ComputeBuffers(), TestEulerKernels(), TestViscidKernels(), and TestViscidKernelsMetrics().

Here is the caller graph for this function:

◆ ComputeDVBuffer2()

int ComputeDVBuffer2 ( const int *  numDimPtr,
const size_t *  bufferSize,
const size_t *  numPointsPtr,
const size_t *  bufferInterval,
const double *  rhoBuffer,
const double *  rhoVBuffer,
const double *  rhoEBuffer,
double *  pressureBuffer,
double *  tempBuffer,
double *  rhom1Buffer,
double *  velBuffer 
)

Definition at line 285 of file EulerUtil.C.

References numPoints.

◆ CreateSimulationFixtures()

int euler::util::CreateSimulationFixtures ( GridType &  inGrid,
HaloType &  inHalo,
plascom2::operators::sbp::base inOperator,
const std::vector< size_t > &  gridSizes,
int  interiorOrder,
pcpp::CommunicatorType inComm,
std::ostream *  messageStreamPtr = NULL 
)

◆ InitializeAcousticPulse()

int euler::util::InitializeAcousticPulse ( const GridType &  inGrid,
StateType &  inState,
StateType &  inParam,
const std::vector< double > &  inParams,
const std::vector< int > &  inFlags,
int  threadId,
std::ostream *  messageStream 
)
Todo:
update to use proper nonDimensionalization

Definition at line 1635 of file EulerUtil.H.

References bufferSizes, databuffer::Data(), apptools::DumpContents(), gridSizes, sizeextent::InitSimple(), numPointsBuffer, Pulse(), velocity, x, and y.

Referenced by InitializeSolution().

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

◆ InitializeAdvectionDiffusion() [1/2]

int euler::util::InitializeAdvectionDiffusion ( const GridType &  inGrid,
StateType &  inState,
StateType &  inParamState,
const std::vector< double > &  inParams,
int  threadId,
std::ostream *  messageStream = NULL 
)

Definition at line 2431 of file EulerUtil.H.

References bufferSizes, databuffer::Data(), gridSizes, sizeextent::InitSimple(), numPointsBuffer, numScalars, velocity, x, and y.

Referenced by InitializeSolution().

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

◆ InitializeAdvectionDiffusion() [2/2]

int euler::util::InitializeAdvectionDiffusion ( DomainType &  inDomain,
int  iGrid,
const std::string &  caseName,
int  threadId,
std::ostream *  messageStream = NULL 
)

Definition at line 2838 of file EulerUtil.H.

References bufferSizes, pcpp::util::ConfigKey(), databuffer::Data(), gridSizes, sizeextent::InitSimple(), numPointsBuffer, numScalars, velocity, x, and y.

Here is the call graph for this function:

◆ InitializeConvectingVortex()

int euler::util::InitializeConvectingVortex ( const GridType &  inGrid,
StateType &  inState,
StateType &  inParam,
const std::vector< double > &  inParams,
const std::vector< int > &  inFlags,
int  threadId 
)
Todo:
update to use proper nonDimensionalization

Definition at line 1507 of file EulerUtil.H.

References databuffer::Data(), gridSizes, numPointsBuffer, x, and y.

Referenced by InitializeSolution().

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

◆ InitializeDensityPulse() [1/2]

int euler::util::InitializeDensityPulse ( const GridType &  inGrid,
StateType &  inState,
StateType &  inParamState,
const std::vector< double > &  inParams,
int  threadId,
std::ostream *  messageStream = NULL 
)

Definition at line 1870 of file EulerUtil.H.

References bufferSizes, databuffer::Data(), gridSizes, sizeextent::InitSimple(), numPointsBuffer, Pulse(), velocity, x, and y.

Referenced by InitializeSolution().

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

◆ InitializeDensityPulse() [2/2]

int euler::util::InitializeDensityPulse ( const GridType &  inGrid,
StateType &  inState,
StateType &  inParam,
const std::vector< double > &  inParams,
const std::vector< int > &  inFlags,
int  threadId,
std::ostream *  messageStream 
)
Todo:
update to use proper nonDimensionalization

Definition at line 3084 of file EulerUtil.H.

References bufferSizes, databuffer::Data(), apptools::DumpContents(), gridSizes, sizeextent::InitSimple(), numPointsBuffer, Pulse(), velocity, x, and y.

Here is the call graph for this function:

◆ InitializeGaussianScalar()

int euler::util::InitializeGaussianScalar ( const GridType &  inGrid,
StateType &  inState,
StateType &  inParamState,
const std::vector< double > &  inParams,
int  threadId,
std::ostream *  messageStream = NULL 
)

Definition at line 2110 of file EulerUtil.H.

References bufferSizes, databuffer::Data(), gridSizes, sizeextent::InitSimple(), numPointsBuffer, numScalars, Pulse(), velocity, x, and y.

Referenced by InitializeSolution().

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

◆ InitializeHoles()

int euler::util::InitializeHoles ( const GridType &  inGrid,
StateType &  inState,
StateType &  inParam,
std::vector< BoundaryType > &  inBoundaries 
)
Todo:
update to use proper nonDimensionalization
Todo:
solution initialization in holes

Definition at line 3600 of file EulerUtil.H.

References bufferSizes, databuffer::Data(), gridSizes, and numPointsBuffer.

Here is the call graph for this function:

◆ InitializeProtoY4Test1()

int euler::util::InitializeProtoY4Test1 ( const GridType &  inGrid,
StateType &  inState,
StateType &  inParamState,
std::vector< BoundaryType > &  inBoundaries,
const std::vector< double > &  inParams,
const std::vector< int > &  inFlags,
int  threadId 
)
Todo:
update to use proper nonDimensionalization
Todo:
utilities for interval manips and handling - e.g. global region collision

Definition at line 1122 of file EulerUtil.H.

References bufferInterval, bufferSizes, databuffer::Data(), apptools::DumpContents(), pcpp::io::Everyone(), gridSizes, sizeextent::InitSimple(), sizeextent::NNodes(), numPointsBuffer, sizeextent::Overlap(), sizeextent::PrettyPrint(), Pulse(), subregion::regionInterval, sizeextent::RelativeTranslation(), ix::util::RenewStream(), Window(), x, and y.

Referenced by InitializeSolution().

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

◆ InitializeQuiescentState()

int euler::util::InitializeQuiescentState ( const GridType &  inGrid,
StateType &  inState,
StateType &  inParam,
int  threadId,
std::ostream *  messageStream = NULL 
)

Definition at line 563 of file EulerUtil.H.

References bufferSizes, databuffer::Data(), gridSizes, numPointsBuffer, and ValidateState().

Referenced by application::RunPlasCom2().

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

◆ InitializeRiemann1D()

int euler::util::InitializeRiemann1D ( const GridType &  inGrid,
StateType &  inState,
StateType &  paramState,
const std::vector< double > &  inParams,
const std::vector< int > &  inFlags,
int  threadId 
)

Definition at line 3300 of file EulerUtil.H.

References bufferSizes, databuffer::Data(), gridSizes, sizeextent::InitSimple(), and numPointsBuffer.

Referenced by InitializeSolution().

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

◆ InitializeShock1D()

int euler::util::InitializeShock1D ( const GridType &  inGrid,
StateType &  inState,
StateType &  inParamState,
const std::vector< double > &  inParams,
int  threadId,
std::ostream *  messageStream 
)

Definition at line 842 of file EulerUtil.H.

References bufferSizes, databuffer::Data(), gridSizes, numPointsBuffer, x, and y.

Referenced by InitializeSolution().

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

◆ InitializeShocktube()

int euler::util::InitializeShocktube ( const GridType &  inGrid,
StateType &  inState,
StateType &  paramState,
const std::vector< double > &  inParams,
const std::vector< int > &  inFlags,
int  threadId 
)

Definition at line 3457 of file EulerUtil.H.

References bufferSizes, databuffer::Data(), gridSizes, sizeextent::InitSimple(), numPointsBuffer, and x.

Referenced by InitializeSolution().

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

◆ InitializeSimulationFixtures()

int euler::util::InitializeSimulationFixtures ( GridType &  inGrid,
plascom2::operators::sbp::base inOperator,
int  interiorOrder,
pcpp::CommunicatorType inComm,
std::ostream *  messageStreamPtr = NULL 
)

◆ InitializeUniformFlow()

int euler::util::InitializeUniformFlow ( const GridType &  inGrid,
StateType &  inState,
StateType &  inParamState,
const std::vector< double > &  inParams,
int  threadId,
std::ostream *  messageStream = NULL 
)

Definition at line 2666 of file EulerUtil.H.

References bufferSizes, databuffer::Data(), gridSizes, sizeextent::InitSimple(), numPointsBuffer, and velocity.

Referenced by InitializeSolution().

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

◆ Parabola()

double euler::util::Parabola ( double  amp,
double  centerX,
double  centerY,
double  centerZ,
double  x,
double  y,
double  z 
)
inline

Definition at line 80 of file EulerUtil.H.

◆ Pulse()

double euler::util::Pulse ( double  amp,
double  width,
double  centerX,
double  centerY,
double  centerZ,
double  x,
double  y,
double  z 
)
inline

◆ SetupEulerState()

int euler::util::SetupEulerState ( const GridType &  inGrid,
StateType &  inState,
StateType &  inParams,
int  numScalars,
bool  withFlux = false 
)
Todo:
update to use proper nonDimensionalization

Definition at line 374 of file EulerUtil.H.

References bufferSizes, gridSizes, and numPointsBuffer.

◆ ValidateState()

int euler::util::ValidateState ( const DatasetType &  inState,
const DatasetType &  inParam,
std::ostream &  outStream 
)

Definition at line 442 of file EulerUtil.H.

Referenced by InitializeQuiescentState(), and plascom2::util::PC2Compare().

Here is the caller graph for this function:

◆ Window()

double euler::util::Window ( double  tWidth,
double  wWidth,
double  centerX,
double  centerY,
double  centerZ,
double  x,
double  y,
double  z 
)
inline

Definition at line 66 of file EulerUtil.H.

Referenced by InitializeProtoY4Test1().

Here is the caller graph for this function: