Public Member Functions | List of all members
hdsim Class Reference

Newtonian hydrodynamic simulation. More...

#include <hdsim2d.hpp>

Public Member Functions

const vector< ComputationalCell > & getAllCells (void) const
 Returns a list of all computational cells. More...
 
vector< ComputationalCell > & getAllCells (void)
 Access method to manually change data. More...
 
void recalculatePrimitives (void)
 Recalculates the primitives from the extensive variables.
 
void recalculateExtensives (void)
 Recalculates extensives (in case computational cells were changed manually)
 
const PhysicalGeometrygetPhysicalGeometry (void) const
 Access to physical geometry. More...
 
const TessellationgetTessellation (void) const
 Returns the tessellation. More...
 
TessellationgetTessellation (void)
 Returns the tessellation. More...
 
const TessellationGetProcTessellation (void) const
 Returns the processor tessellation. More...
 
 hdsim (Tessellation &proctess, Tessellation &tess, const OuterBoundary &obc, const PhysicalGeometry &pg, const vector< ComputationalCell > &init_cond, const EquationOfState &eos, const PointMotion &pointmotion, const EdgeVelocityCalculator &evc, const SourceTerm &external_force, const TimeStepFunction &tsf, const FluxCalculator &fc, const ExtensiveUpdater &eu, const CellUpdater &cu, TracerStickerNames tracer_sticker_names=TracerStickerNames(), bool relativistic=false, const ProcessorUpdate *proc_update=0)
 Class constructor. More...
 
void load (const ResetDump &checkpoint)
 Loads reset data into simulation. More...
 
void makeCheckpoint (ResetDump &checkpoint) const
 Dumps simulation data. More...
 
 ~hdsim (void)
 Class destructor.
 
void TimeAdvance (void)
 Advances the simulation in time.
 
void TimeAdvanceClip (void)
 Advances the simulation in time with area fix.
 
void TimeAdvance2Heun (void)
 Second order time advance.
 
void TimeAdvance2MidPointClip (void)
 Second order time advance, mid point method with area fix.
 
void TimeAdvance2MidPoint (void)
 Second order time advance, mid point method.
 
void changePhysicalGeometry (const PhysicalGeometry *pg)
 Change the physical geometry. More...
 
void setStartTime (double t_start)
 Sets the start time. More...
 
void setCycle (int cycle)
 Sets the cycle. More...
 
double getTime (void) const
 Returns the time. More...
 
double getCellVolume (size_t index) const
 Returns the volume of a certain cell. More...
 
int getCycle (void) const
 Returns the number cycles. More...
 
void setTimeStepFunction (TimeStepFunction &tsf)
 Change the time step function. More...
 
const EquationOfStategetEos (void) const
 Access to the equation of state. More...
 
const OuterBoundarygetOuterBoundary (void) const
 Access to the geometric outer boundary. More...
 
const vector< Extensive > & getAllExtensives (void) const
 Returns a list of extensive variables. More...
 
vector< Extensive > & getAllExtensives (void)
 Returns a list of extensive variables. More...
 
const CacheDatagetCacheData (void) const
 Returns reference to the cached data. More...
 
TracerStickerNames const & GetTracerStickerNames (void) const
 Returns the TracerStickerNames. More...
 

Detailed Description

Newtonian hydrodynamic simulation.

Definition at line 43 of file hdsim2d.hpp.

Constructor & Destructor Documentation

◆ hdsim()

hdsim::hdsim ( Tessellation proctess,
Tessellation tess,
const OuterBoundary obc,
const PhysicalGeometry pg,
const vector< ComputationalCell > &  init_cond,
const EquationOfState eos,
const PointMotion pointmotion,
const EdgeVelocityCalculator evc,
const SourceTerm external_force,
const TimeStepFunction tsf,
const FluxCalculator fc,
const ExtensiveUpdater eu,
const CellUpdater cu,
TracerStickerNames  tracer_sticker_names = TracerStickerNames(),
bool  relativistic = false,
const ProcessorUpdate proc_update = 0 
)

Class constructor.

Parameters
tessVoronoi tessellation method
proc_updateScheme for updating the locations of the processes
obcOuter boundary conditions
pgPhysical geometry
init_condInitial conditions
eosEquation of state
pointmotionMotion of the mesh generating points
evcEdge velocity calculator
external_forceExternal force
tsfTime step function
fcFlux calculator
euExtensive updater
cuCell updater
tracer_sticker_namesThe names of the tracers and stickers
relativisticIf the run is relativistic or not
proctessTessellation of the processes
proc_updateScheme for updating the position of the processes

Definition at line 97 of file hdsim2d.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ changePhysicalGeometry()

void hdsim::changePhysicalGeometry ( const PhysicalGeometry pg)

Change the physical geometry.

Parameters
pgNew physical geometry

◆ getAllCells() [1/2]

const vector< ComputationalCell > & hdsim::getAllCells ( void  ) const

Returns a list of all computational cells.

Returns
List of all computational cells

Definition at line 739 of file hdsim2d.cpp.

Here is the caller graph for this function:

◆ getAllCells() [2/2]

vector< ComputationalCell > & hdsim::getAllCells ( void  )

Access method to manually change data.

Returns
Reference to computational cells

Definition at line 744 of file hdsim2d.cpp.

◆ getAllExtensives() [1/2]

const vector< Extensive > & hdsim::getAllExtensives ( void  ) const

Returns a list of extensive variables.

Returns
List of extensive variables

Definition at line 797 of file hdsim2d.cpp.

Here is the caller graph for this function:

◆ getAllExtensives() [2/2]

vector< Extensive > & hdsim::getAllExtensives ( void  )

Returns a list of extensive variables.

Returns
List of extensive variables

Definition at line 802 of file hdsim2d.cpp.

◆ getCacheData()

const CacheData & hdsim::getCacheData ( void  ) const

Returns reference to the cached data.

Returns
Cached data

Definition at line 813 of file hdsim2d.cpp.

Here is the caller graph for this function:

◆ getCellVolume()

double hdsim::getCellVolume ( size_t  index) const

Returns the volume of a certain cell.

Parameters
indexCell index
Returns
Cell volume

Definition at line 807 of file hdsim2d.cpp.

Here is the call graph for this function:

◆ getCycle()

int hdsim::getCycle ( void  ) const

Returns the number cycles.

Returns
Number of times TimeAdvance was called

Definition at line 734 of file hdsim2d.cpp.

Here is the caller graph for this function:

◆ getEos()

const EquationOfState & hdsim::getEos ( void  ) const

Access to the equation of state.

Returns
Equation of state

Definition at line 787 of file hdsim2d.cpp.

Here is the caller graph for this function:

◆ getOuterBoundary()

const OuterBoundary & hdsim::getOuterBoundary ( void  ) const

Access to the geometric outer boundary.

Returns
Geometry outer boundary

Definition at line 792 of file hdsim2d.cpp.

Here is the caller graph for this function:

◆ getPhysicalGeometry()

const PhysicalGeometry & hdsim::getPhysicalGeometry ( void  ) const

Access to physical geometry.

Returns
Physical geometry

Definition at line 712 of file hdsim2d.cpp.

Here is the caller graph for this function:

◆ GetProcTessellation()

const Tessellation & hdsim::GetProcTessellation ( void  ) const

Returns the processor tessellation.

Returns
The tessellation

Definition at line 819 of file hdsim2d.cpp.

Here is the caller graph for this function:

◆ getTessellation() [1/2]

const Tessellation & hdsim::getTessellation ( void  ) const

Returns the tessellation.

Returns
The tessellation

Definition at line 722 of file hdsim2d.cpp.

Here is the caller graph for this function:

◆ getTessellation() [2/2]

Tessellation & hdsim::getTessellation ( void  )

Returns the tessellation.

Returns
The tessellation

Definition at line 717 of file hdsim2d.cpp.

◆ getTime()

double hdsim::getTime ( void  ) const

Returns the time.

Returns
Time

Definition at line 729 of file hdsim2d.cpp.

Here is the caller graph for this function:

◆ GetTracerStickerNames()

TracerStickerNames const & hdsim::GetTracerStickerNames ( void  ) const

Returns the TracerStickerNames.

Returns
The TracerStickerNames of the simulation

Definition at line 172 of file hdsim2d.cpp.

Here is the caller graph for this function:

◆ load()

void hdsim::load ( const ResetDump checkpoint)

Loads reset data into simulation.

Parameters
checkpointReset dump

◆ makeCheckpoint()

void hdsim::makeCheckpoint ( ResetDump checkpoint) const

Dumps simulation data.

Parameters
checkpointReset dump where data is to be written

◆ setCycle()

void hdsim::setCycle ( int  cycle)

Sets the cycle.

Parameters
cycleThe cycle number

Definition at line 777 of file hdsim2d.cpp.

◆ setStartTime()

void hdsim::setStartTime ( double  t_start)

Sets the start time.

Parameters
t_startStart time

Definition at line 782 of file hdsim2d.cpp.

◆ setTimeStepFunction()

void hdsim::setTimeStepFunction ( TimeStepFunction tsf)

Change the time step function.

Parameters
tsfNew time step function

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