Public Member Functions | List of all members
NonConservativeAMR Class Reference

Non conservative amr. More...

#include <amr.hpp>

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

Public Member Functions

void operator() (hdsim &sim)
 Runs the AMR. More...
 
 NonConservativeAMR (CellsToRefine const &refine, CellsToRemove const &remove, LinearGaussImproved *slopes=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

Non conservative amr.

Definition at line 317 of file amr.hpp.

Constructor & Destructor Documentation

◆ NonConservativeAMR()

NonConservativeAMR::NonConservativeAMR ( CellsToRefine const &  refine,
CellsToRemove const &  remove,
LinearGaussImproved slopes = 0,
AMRExtensiveUpdater eu = 0 
)

Class constructor.

Parameters
refineRefinement scheme
removeRemoval scheme
euExtensive updater
slopesSlopes

Definition at line 1026 of file amr.cpp.

Member Function Documentation

◆ operator()()

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

Runs the AMR.

Parameters
simThe sim object

Implements AMR.

Definition at line 1135 of file amr.cpp.

Here is the call graph for this function:

◆ UpdateCellsRefine()

void NonConservativeAMR::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 1038 of file amr.cpp.

Here is the call graph for this function:

◆ UpdateCellsRemove()

void NonConservativeAMR::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 1095 of file amr.cpp.

Here is the call graph for this function:

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