MaMiCo 1.2
|
momentum insertion configuration. friend class: NieTest More...
#include <MomentumInsertionConfiguration.h>
Public Types | |
enum | MomentumInsertionType { ADDITIVE_MOMENTUM_INSERTION = 0 , DIRECT_VELOCITY_INSERTION = 1 , VELOCITY_GRADIENT_RELAXATION = 2 , NO_INSERTION = 3 , VELOCITY_GRADIENT_RELAXATION_TOPONLY = 4 , NIE_VELOCITY_IMPOSITION = 5 } |
Public Member Functions | |
MomentumInsertionConfiguration () | |
virtual | ~MomentumInsertionConfiguration () |
void | parseSubtag (tinyxml2::XMLElement *node) |
std::string | getTag () const |
bool | isValid () const |
const MomentumInsertionType & | getMomentumInsertionType () const |
unsigned int | getInnerOverlap () const |
template<class LinkedCell, unsigned int dim> | |
MomentumInsertion< LinkedCell, dim > * | interpreteConfiguration (coupling::interface::MDSolverInterface< LinkedCell, dim > *const mdSolverInterface, const coupling::datastructures::CouplingCellWithLinkedCells< LinkedCell, dim > *const couplingCells, unsigned int numberMDTimestepsPerCouplingCycle) const |
![]() | |
virtual | ~Configuration () |
Protected Member Functions | |
MomentumInsertionConfiguration (MomentumInsertionType insertionType) | |
Private Attributes | |
MomentumInsertionType | _insertionType |
double | _velocityRelaxationFactor |
unsigned int | _innerOverlap |
unsigned int | _outerOverlap |
bool | _isValid |
Friends | |
class | ::NieTest |
momentum insertion configuration. friend class: NieTest
momentum insertion configuration. friend class: NieTest
momentum insertion types that are implemented.
|
inline |
Constructor, initializes the class
|
inlinevirtual |
Destructor
|
inline |
|
inline |
Returns momentum insertion type.
|
inlinevirtual |
Returns name of xml tag that is associated to the configuration.
Implements tarch::configuration::Configuration.
|
inline |
Returns momentum insertion configuration.
LinkedCell | type of the cell |
dim | Number of dimensions; it can be 1, 2 or 3 |
mdSolverInterface | |
couplingCells | |
numberMDTimestepsPerCouplingCycle |
|
inlinevirtual |
checks if the configuration is valid. This operation usually fails, if e.g. 1. parseSubtag() hasn't been called, i.e. configuration has not been used, or 2. parseSubtag() failed due to a wrong file. 3. If a tag ain't optional and parseSubtag() was not called (first case)
Implements tarch::configuration::Configuration.
|
inlinevirtual |