Public Member Functions | List of all members
ConservativeAMR Class Reference

Conservative amr. More...

#include <amr.hpp>

Inheritance diagram for ConservativeAMR:
Inheritance graph
[legend]
Collaboration diagram for ConservativeAMR:
Collaboration graph
[legend]

Public Member Functions

void operator() (hdsim &sim)
 Runs the AMR. More...
 
 ConservativeAMR (CellsToRefine const &refine, CellsToRemove const &remove, bool periodic=false, LinearGaussImproved *slopes=0, AMRCellUpdater *cu=0, AMRExtensiveUpdater *eu=0)
 Class constructor. More...
 
void UpdateCellsRefine (Tessellation &tess, OuterBoundary const &obc, vector< ComputationalCell > &cells, EquationOfState const &eos, vector< Extensive > &extensives, double time, Tessellation const &proctess, TracerStickerNames const &tracerstickernames, CacheData const &cd, PhysicalGeometry const &pg) const
 Runs the refine. More...
 
void UpdateCellsRemove (Tessellation &tess, OuterBoundary const &obc, vector< ComputationalCell > &cells, vector< Extensive > &extensives, EquationOfState const &eos, double time, Tessellation const &proctess, TracerStickerNames const &tracerstickernames, CacheData const &cd, PhysicalGeometry const &pg) const
 Runs the removal. More...
 
- Public Member Functions inherited from AMR
virtual ~AMR (void)
 Virtual destructor.
 

Additional Inherited Members

- Protected Member Functions inherited from AMR
void GetNewPoints (vector< size_t > const &ToRefine, Tessellation const &tess, vector< std::pair< size_t, Vector2D > > &NewPoints, vector< Vector2D > &Moved, OuterBoundary const &obc, vector< Vector2D > const &proc_chull) const
 Calculates the positions of the new points. More...
 
vector< size_t > RemoveNearBoundaryPoints (vector< size_t > const &ToRemove, Tessellation const &tess, vector< double > &merits) const
 Removes points because they are near the edge of a cpu domain. More...
 
void GetNewPoints2 (vector< size_t > const &ToRefine, Tessellation const &tess, vector< std::pair< size_t, Vector2D > > &NewPoints, vector< Vector2D > &Moved, OuterBoundary const &obc) const
 Calculates the positions of the new points like AREPO. More...
 

Detailed Description

Conservative amr.

Todo:
Make sure AMR works with all physical geometries

Definition at line 260 of file amr.hpp.

Constructor & Destructor Documentation

◆ ConservativeAMR()

ConservativeAMR::ConservativeAMR ( CellsToRefine const &  refine,
CellsToRemove const &  remove,
bool  periodic = false,
LinearGaussImproved slopes = 0,
AMRCellUpdater cu = 0,
AMRExtensiveUpdater eu = 0 
)

Class constructor.

Parameters
refineRefinement scheme
removeRemoval scheme
cuCell updater
euExtensive updater
slopesSlopes
periodicFlag whether the boundary is periodic or not

Definition at line 780 of file amr.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ operator()()

void ConservativeAMR::operator() ( hdsim sim)
virtual

Runs the AMR.

Parameters
simThe sim object

Implements AMR.

Definition at line 1005 of file amr.cpp.

Here is the call graph for this function:

◆ UpdateCellsRefine()

void ConservativeAMR::UpdateCellsRefine ( Tessellation tess,
OuterBoundary const &  obc,
vector< ComputationalCell > &  cells,
EquationOfState const &  eos,
vector< Extensive > &  extensives,
double  time,
Tessellation const &  proctess,
TracerStickerNames const &  tracerstickernames,
CacheData const &  cd,
PhysicalGeometry const &  pg 
) const
virtual

Runs the refine.

Parameters
tessThe tessellation
cellsThe computational cells
eosThe equation of state
extensivesThe extensive variables
timeThe sim time
obcOuter boundary conditions
tracerstickernamesThe names of the tracers and stickers
cdThe cache data of the tessellation
pgThe physical geometry
proctessTessellation of the processes (for parallel runs)

Implements AMR.

Definition at line 802 of file amr.cpp.

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

◆ UpdateCellsRemove()

void ConservativeAMR::UpdateCellsRemove ( Tessellation tess,
OuterBoundary const &  obc,
vector< ComputationalCell > &  cells,
vector< Extensive > &  extensives,
EquationOfState const &  eos,
double  time,
Tessellation const &  proctess,
TracerStickerNames const &  tracerstickernames,
CacheData const &  cd,
PhysicalGeometry const &  pg 
) const
virtual

Runs the removal.

Parameters
tessThe tessellation
cellsThe computational cells
eosThe equation of state
extensivesThe extensive variables
timeThe sim time
obcThe outer boundary conditions
tracerstickernamesThe names of the tracers and stickers
cdThe cache data of the tessellation
pgThe physical geometry
proctessTessellation of the processes (for parallel runs)

Implements AMR.

Definition at line 876 of file amr.cpp.

Here is the call graph for this function:

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