MAIA bb96820c
Multiphysics at AIA
|
#include <dgcartesianboundarycondition.h>
Public Types | |
using | SysEqn = SysEqn_ |
using | SolverType = DgCartesianSolver< nDim, SysEqn > |
using | ElementCollector = maia::dg::collector::ElementCollector< nDim, SysEqn > |
using | HElementCollector = maia::dg::collector::HElementCollector< nDim, SysEqn > |
using | SurfaceCollector = maia::dg::collector::SurfaceCollector< nDim, SysEqn > |
Public Member Functions | |
virtual | ~DgBoundaryCondition () |
Destructor must be virtual. More... | |
void | init (const MInt begin_, const MInt end_) |
Init method to initialize boundary condition for range of surfaces. More... | |
virtual void | apply (const MFloat time)=0 |
Apply method to apply boundary condition. More... | |
virtual MString | name () const =0 |
Returns name of boundary condition. More... | |
DgBoundaryCondition (SolverType &solver_, MInt bcId) | |
Constructor saves arguments to member variables. More... | |
MInt | id () const |
Return boundary condition if of this boundary condition. More... | |
MInt | begin () const |
Return index of first surface. More... | |
MInt | end () const |
Return index of one-past-last surface. More... | |
MInt | count () const |
Return number of boundary surfaces. More... | |
virtual MInt | noRestartVars () const |
virtual MInt | getLocalNoNodes () const |
Return local number of nodes. More... | |
virtual MString | restartVarName (const MInt NotUsed(id)) const |
Return name of restart variable. More... | |
virtual void | setRestartVariable (const MInt NotUsed(id), const MFloat *const NotUsed(data)) |
Copy restart variable data from pointer to boundary condition class. More... | |
virtual void | getRestartVariable (const MInt NotUsed(id), MFloat *const NotUsed(data)) const |
Copy restart variable data from boundary condition class to pointer. More... | |
virtual MInt | noBcElements () const |
virtual MBool | hasBcElement (const MInt NotUsed(elementId)) const |
virtual MInt | noCellDataDlb () const |
virtual MInt | cellDataTypeDlb (const MInt NotUsed(dataId)) const |
virtual MInt | cellDataSizeDlb (const MInt NotUsed(dataId), const MInt NotUsed(cellId)) const |
virtual void | getCellDataDlb (const MInt NotUsed(dataId), MFloat *const NotUsed(data)) const |
virtual void | getCellDataDlb (const MInt NotUsed(dataId), MInt *const NotUsed(data)) const |
virtual void | setCellDataDlb (const MInt NotUsed(dataId), const MFloat *const NotUsed(data)) |
virtual void | setCellDataDlb (const MInt NotUsed(dataId), const MInt *const NotUsed(data)) |
Protected Member Functions | |
SolverType & | solver () |
Return reference to solver. More... | |
SysEqn & | sysEqn () |
Return reference to SysEqn object. More... | |
MFloat * | flux (const MInt i) |
Return pointer to surface flux. More... | |
ElementCollector & | elements () |
Return reference to elements. More... | |
MInt | getElementByCellId (const MInt cellId) const |
Return element id corresponding to given cell id. More... | |
HElementCollector & | helements () |
Return reference to h-elements. More... | |
SurfaceCollector & | surfaces () |
Return reference to surfaces. More... | |
MBool | isMpiSurface (const MInt id_) const |
Return true if surface is a MPI surface. More... | |
MBool | needHElementForCell (const MInt cellId) |
Return if h-element is needed for given cell. More... | |
MInt | getHElementId (const MInt elementId) |
Return h-element id for an element. More... | |
const DgInterpolation & | interpolation (const MInt polyDeg, const MInt noNodes1D) const |
Return interpolation. More... | |
MInt | integrationMethod () const |
Return integration method. More... | |
MInt | timeIntegrationScheme () const |
Return time integration scheme. More... | |
MInt | maxPolyDeg () const |
Return maximum polynomial degree. More... | |
MInt | maxNoNodes1D () const |
Return maximum number of nodes. More... | |
MFloat | dt () const |
Return current time step size. More... | |
MBool | isRestart () const |
Return if a restart is performed. More... | |
void | subTimeStepRk (const MFloat dt_, const MInt stage, const MInt totalSize, const MFloat *const rhs, MFloat *const variables, MFloat *const timeIntStorage) |
Access to time integration method. More... | |
template<class F > | |
void | calcVolumeIntegral (const MInt noElements, ElementCollector &elem, F &fluxFct) |
void | resetBuffer (const MInt totalSize, MFloat *const buffer) |
void | applyJacobian (const MInt noElements, ElementCollector &elem) |
template<class F > | |
void | calcSourceTerms (const MFloat t, const MInt noElements, ElementCollector &elem, F &sourceFct) |
void | calcSurfaceIntegral (const MInt begin_, const MInt end_, ElementCollector &elem, SurfaceCollector &surf, HElementCollector &helem, const MInt noHElements) |
template<class F > | |
void | calcRegularSurfaceFlux (const MInt begin_, const MInt end_, SurfaceCollector &surf, F &riemannFct) |
Private Member Functions | |
virtual void | init () |
Private Attributes | |
SolverType & | m_solver |
Store a reference to the solver. More... | |
const MInt | m_bcId |
The boundary condition id of this boundary condition. More... | |
MInt | m_begin |
Id of first surface of this boundary condition. More... | |
MInt | m_end |
Id of one-past-last surface of this boundary condition. More... | |
Definition at line 21 of file dgcartesianboundarycondition.h.
using DgBoundaryCondition< nDim, SysEqn_ >::ElementCollector = maia::dg::collector::ElementCollector<nDim, SysEqn> |
Definition at line 26 of file dgcartesianboundarycondition.h.
using DgBoundaryCondition< nDim, SysEqn_ >::HElementCollector = maia::dg::collector::HElementCollector<nDim, SysEqn> |
Definition at line 27 of file dgcartesianboundarycondition.h.
using DgBoundaryCondition< nDim, SysEqn_ >::SolverType = DgCartesianSolver<nDim, SysEqn> |
Definition at line 25 of file dgcartesianboundarycondition.h.
using DgBoundaryCondition< nDim, SysEqn_ >::SurfaceCollector = maia::dg::collector::SurfaceCollector<nDim, SysEqn> |
Definition at line 28 of file dgcartesianboundarycondition.h.
using DgBoundaryCondition< nDim, SysEqn_ >::SysEqn = SysEqn_ |
Definition at line 24 of file dgcartesianboundarycondition.h.
|
inlinevirtual |
Definition at line 33 of file dgcartesianboundarycondition.h.
|
inline |
Definition at line 49 of file dgcartesianboundarycondition.h.
|
pure virtual |
|
inlineprotected |
Definition at line 174 of file dgcartesianboundarycondition.h.
|
inline |
Definition at line 55 of file dgcartesianboundarycondition.h.
|
inlineprotected |
Definition at line 187 of file dgcartesianboundarycondition.h.
|
inlineprotected |
Definition at line 177 of file dgcartesianboundarycondition.h.
|
inlineprotected |
Definition at line 181 of file dgcartesianboundarycondition.h.
|
inlineprotected |
Definition at line 168 of file dgcartesianboundarycondition.h.
|
inlinevirtual |
Definition at line 90 of file dgcartesianboundarycondition.h.
|
inlinevirtual |
Reimplemented in DgBcAcousticPerturbRBC< nDim >.
Definition at line 89 of file dgcartesianboundarycondition.h.
|
inline |
Definition at line 61 of file dgcartesianboundarycondition.h.
|
inlineprotected |
Definition at line 154 of file dgcartesianboundarycondition.h.
|
inlineprotected |
Definition at line 116 of file dgcartesianboundarycondition.h.
|
inline |
Definition at line 58 of file dgcartesianboundarycondition.h.
|
inlineprotected |
Definition at line 113 of file dgcartesianboundarycondition.h.
|
inlinevirtual |
Definition at line 91 of file dgcartesianboundarycondition.h.
|
inlinevirtual |
Definition at line 94 of file dgcartesianboundarycondition.h.
|
inlineprotected |
Definition at line 119 of file dgcartesianboundarycondition.h.
|
inlineprotected |
Definition at line 134 of file dgcartesianboundarycondition.h.
|
inlinevirtual |
Reimplemented in DgBcAcousticPerturbRBC< nDim >.
Definition at line 69 of file dgcartesianboundarycondition.h.
|
inlinevirtual |
Definition at line 80 of file dgcartesianboundarycondition.h.
|
inlinevirtual |
Definition at line 85 of file dgcartesianboundarycondition.h.
|
inlineprotected |
Definition at line 122 of file dgcartesianboundarycondition.h.
|
inline |
Definition at line 52 of file dgcartesianboundarycondition.h.
|
inlineprivatevirtual |
Init method that may be implemented by the derived classes. This is called by the init(MInt, MInt) method after the begin/end indices are saved and accessible by begin()/end(). If a derived class does not need to initialize anything, it just does not provide an implementation.
Reimplemented in DgBcAcousticPerturbRBC< nDim >, and DgBcAcousticPerturbStraightDuctExit< nDim, SysEqn >.
Definition at line 197 of file dgcartesianboundarycondition.h.
|
inline |
Definition at line 36 of file dgcartesianboundarycondition.h.
|
inlineprotected |
Definition at line 142 of file dgcartesianboundarycondition.h.
|
inlineprotected |
Definition at line 137 of file dgcartesianboundarycondition.h.
|
inlineprotected |
Definition at line 128 of file dgcartesianboundarycondition.h.
|
inlineprotected |
Definition at line 157 of file dgcartesianboundarycondition.h.
|
inlineprotected |
Definition at line 151 of file dgcartesianboundarycondition.h.
|
inlineprotected |
Definition at line 148 of file dgcartesianboundarycondition.h.
|
pure virtual |
|
inlineprotected |
Definition at line 131 of file dgcartesianboundarycondition.h.
|
inlinevirtual |
Reimplemented in DgBcAcousticPerturbRBC< nDim >.
Definition at line 84 of file dgcartesianboundarycondition.h.
|
inlinevirtual |
Reimplemented in DgBcAcousticPerturbRBC< nDim >.
Definition at line 88 of file dgcartesianboundarycondition.h.
|
inlinevirtual |
Return number of restart variables that need to be stored/loaded. If a derived class does not need additional restart variables, it may omit an implementation.
Reimplemented in DgBcAcousticPerturbRBC< nDim >.
Definition at line 66 of file dgcartesianboundarycondition.h.
|
inlineprotected |
Definition at line 172 of file dgcartesianboundarycondition.h.
|
inlinevirtual |
Definition at line 72 of file dgcartesianboundarycondition.h.
|
inlinevirtual |
Definition at line 97 of file dgcartesianboundarycondition.h.
|
inlinevirtual |
Definition at line 100 of file dgcartesianboundarycondition.h.
|
inlinevirtual |
Definition at line 75 of file dgcartesianboundarycondition.h.
|
inlineprotected |
Definition at line 107 of file dgcartesianboundarycondition.h.
|
inlineprotected |
Definition at line 160 of file dgcartesianboundarycondition.h.
|
inlineprotected |
Definition at line 125 of file dgcartesianboundarycondition.h.
|
inlineprotected |
Definition at line 110 of file dgcartesianboundarycondition.h.
|
inlineprotected |
Definition at line 145 of file dgcartesianboundarycondition.h.
|
private |
Definition at line 204 of file dgcartesianboundarycondition.h.
|
private |
Definition at line 207 of file dgcartesianboundarycondition.h.
|
private |
Definition at line 210 of file dgcartesianboundarycondition.h.
|
private |
Definition at line 201 of file dgcartesianboundarycondition.h.