MaMiCo 1.2
Loading...
Searching...
No Matches
coupling::configurations::MomentumInsertionConfiguration< dim > Class Template Reference

momentum insertion configuration. friend class: NieTest More...

#include <MomentumInsertionConfiguration.h>

Inheritance diagram for coupling::configurations::MomentumInsertionConfiguration< dim >:
Collaboration diagram for coupling::configurations::MomentumInsertionConfiguration< dim >:

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 MomentumInsertionTypegetMomentumInsertionType () const
 
unsigned int getInnerOverlap () const
 
template<class LinkedCell>
coupling::MomentumInsertion< LinkedCell, dim > * interpreteConfiguration (coupling::interface::MDSolverInterface< LinkedCell, dim > *const mdSolverInterface, const coupling::datastructures::CouplingCellWithLinkedCells< LinkedCell, dim > *const couplingCells, unsigned int numberMDTimestepsPerCouplingCycle) const
 
- Public Member Functions inherited from tarch::configuration::Configuration
virtual ~Configuration ()
 

Protected Member Functions

 MomentumInsertionConfiguration (MomentumInsertionType insertionType)
 

Private Attributes

MomentumInsertionType _insertionType
 
double _velocityRelaxationFactor
 
unsigned int _innerOverlap
 
unsigned int _outerOverlap
 
tarch::la::Vector< 2 *dim, bool > _impositionEnabled
 
bool _isValid
 

Friends

class ::NieTest
 

Detailed Description

template<unsigned int dim>
class coupling::configurations::MomentumInsertionConfiguration< dim >

momentum insertion configuration. friend class: NieTest

momentum insertion configuration. friend class: NieTest

Author
Philipp Neumann

Member Enumeration Documentation

◆ MomentumInsertionType

momentum insertion types that are implemented.

Enumerator
ADDITIVE_MOMENTUM_INSERTION 

ADDITIVE_MOMENTUM_INSERTION

DIRECT_VELOCITY_INSERTION 

DIRECT_VELOCITY_INSERTION

VELOCITY_GRADIENT_RELAXATION 

VELOCITY_GRADIENT_RELAXATION

NO_INSERTION 

NO_INSERTION

VELOCITY_GRADIENT_RELAXATION_TOPONLY 

VELOCITY_GRADIENT_RELAXATION_TOPONLY

NIE_VELOCITY_IMPOSITION 

NIE_VELOCITY_IMPOSITION

Constructor & Destructor Documentation

◆ MomentumInsertionConfiguration()

template<unsigned int dim>
coupling::configurations::MomentumInsertionConfiguration< dim >::MomentumInsertionConfiguration ( )
inline

Constructor, initializes the class

◆ ~MomentumInsertionConfiguration()

template<unsigned int dim>
virtual coupling::configurations::MomentumInsertionConfiguration< dim >::~MomentumInsertionConfiguration ( )
inlinevirtual

Destructor

Member Function Documentation

◆ getInnerOverlap()

template<unsigned int dim>
unsigned int coupling::configurations::MomentumInsertionConfiguration< dim >::getInnerOverlap ( ) const
inline
Returns
_innerOverlap

◆ getMomentumInsertionType()

template<unsigned int dim>
const MomentumInsertionType & coupling::configurations::MomentumInsertionConfiguration< dim >::getMomentumInsertionType ( ) const
inline

Returns momentum insertion type.

Returns
_insertionType

◆ getTag()

template<unsigned int dim>
std::string coupling::configurations::MomentumInsertionConfiguration< dim >::getTag ( ) const
inlinevirtual

Returns name of xml tag that is associated to the configuration.

Returns
name of xml tag that is associated to the configuration

Implements tarch::configuration::Configuration.

◆ interpreteConfiguration()

template<unsigned int dim>
template<class LinkedCell>
coupling::MomentumInsertion< LinkedCell, dim > * coupling::configurations::MomentumInsertionConfiguration< dim >::interpreteConfiguration ( coupling::interface::MDSolverInterface< LinkedCell, dim > *const mdSolverInterface,
const coupling::datastructures::CouplingCellWithLinkedCells< LinkedCell, dim > *const couplingCells,
unsigned int numberMDTimestepsPerCouplingCycle ) const
inline

Returns momentum insertion configuration.

Template Parameters
LinkedCelltype of the cell
dimNumber of dimensions; it can be 1, 2 or 3
Parameters
mdSolverInterface
couplingCells
numberMDTimestepsPerCouplingCycle
Returns
momentum insertion config

◆ isValid()

template<unsigned int dim>
bool coupling::configurations::MomentumInsertionConfiguration< dim >::isValid ( ) const
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)

Returns
_isValid

Implements tarch::configuration::Configuration.

◆ parseSubtag()

template<unsigned int dim>
void coupling::configurations::MomentumInsertionConfiguration< dim >::parseSubtag ( tinyxml2::XMLElement * node)
inlinevirtual

parseSubtag

Parameters
node

Implements tarch::configuration::Configuration.


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