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 PhysicalGeometry & | getPhysicalGeometry (void) const |
| Access to physical geometry. More... | |
| const Tessellation & | getTessellation (void) const |
| Returns the tessellation. More... | |
| Tessellation & | getTessellation (void) |
| Returns the tessellation. More... | |
| const Tessellation & | GetProcTessellation (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 EquationOfState & | getEos (void) const |
| Access to the equation of state. More... | |
| const OuterBoundary & | getOuterBoundary (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 CacheData & | getCacheData (void) const |
| Returns reference to the cached data. More... | |
| TracerStickerNames const & | GetTracerStickerNames (void) const |
| Returns the TracerStickerNames. More... | |
Newtonian hydrodynamic simulation.
Definition at line 43 of file hdsim2d.hpp.
| 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.
| tess | Voronoi tessellation method |
| proc_update | Scheme for updating the locations of the processes |
| obc | Outer boundary conditions |
| pg | Physical geometry |
| init_cond | Initial conditions |
| eos | Equation of state |
| pointmotion | Motion of the mesh generating points |
| evc | Edge velocity calculator |
| external_force | External force |
| tsf | Time step function |
| fc | Flux calculator |
| eu | Extensive updater |
| cu | Cell updater |
| tracer_sticker_names | The names of the tracers and stickers |
| relativistic | If the run is relativistic or not |
| proctess | Tessellation of the processes |
| proc_update | Scheme for updating the position of the processes |
Definition at line 97 of file hdsim2d.cpp.

| void hdsim::changePhysicalGeometry | ( | const PhysicalGeometry * | pg | ) |
Change the physical geometry.
| pg | New physical geometry |
| const vector< ComputationalCell > & hdsim::getAllCells | ( | void | ) | const |
Returns a list of all computational cells.
Definition at line 739 of file hdsim2d.cpp.

| vector< ComputationalCell > & hdsim::getAllCells | ( | void | ) |
Access method to manually change data.
Definition at line 744 of file hdsim2d.cpp.
| const vector< Extensive > & hdsim::getAllExtensives | ( | void | ) | const |
Returns a list of extensive variables.
Definition at line 797 of file hdsim2d.cpp.

| vector< Extensive > & hdsim::getAllExtensives | ( | void | ) |
Returns a list of extensive variables.
Definition at line 802 of file hdsim2d.cpp.
| const CacheData & hdsim::getCacheData | ( | void | ) | const |
Returns reference to the cached data.
Definition at line 813 of file hdsim2d.cpp.

| double hdsim::getCellVolume | ( | size_t | index | ) | const |
Returns the volume of a certain cell.
| index | Cell index |
Definition at line 807 of file hdsim2d.cpp.

| int hdsim::getCycle | ( | void | ) | const |
Returns the number cycles.
Definition at line 734 of file hdsim2d.cpp.

| const EquationOfState & hdsim::getEos | ( | void | ) | const |
Access to the equation of state.
Definition at line 787 of file hdsim2d.cpp.

| const OuterBoundary & hdsim::getOuterBoundary | ( | void | ) | const |
Access to the geometric outer boundary.
Definition at line 792 of file hdsim2d.cpp.

| const PhysicalGeometry & hdsim::getPhysicalGeometry | ( | void | ) | const |
Access to physical geometry.
Definition at line 712 of file hdsim2d.cpp.

| const Tessellation & hdsim::GetProcTessellation | ( | void | ) | const |
Returns the processor tessellation.
Definition at line 819 of file hdsim2d.cpp.

| const Tessellation & hdsim::getTessellation | ( | void | ) | const |
Returns the tessellation.
Definition at line 722 of file hdsim2d.cpp.

| Tessellation & hdsim::getTessellation | ( | void | ) |
| double hdsim::getTime | ( | void | ) | const |
Returns the time.
Definition at line 729 of file hdsim2d.cpp.

| TracerStickerNames const & hdsim::GetTracerStickerNames | ( | void | ) | const |
Returns the TracerStickerNames.
Definition at line 172 of file hdsim2d.cpp.

| void hdsim::load | ( | const ResetDump & | checkpoint | ) |
Loads reset data into simulation.
| checkpoint | Reset dump |
| void hdsim::makeCheckpoint | ( | ResetDump & | checkpoint | ) | const |
Dumps simulation data.
| checkpoint | Reset dump where data is to be written |
| void hdsim::setCycle | ( | int | cycle | ) |
| void hdsim::setStartTime | ( | double | t_start | ) |
| void hdsim::setTimeStepFunction | ( | TimeStepFunction & | tsf | ) |
Change the time step function.
| tsf | New time step function |
1.8.13