MAIA bb96820c
Multiphysics at AIA
Loading...
Searching...
No Matches
CouplingLS< nDim > Class Template Reference

#include <coupling.h>

Inheritance diagram for CouplingLS< nDim >:
[legend]
Collaboration diagram for CouplingLS< nDim >:
[legend]

Public Types

using solverType = LsCartesianSolver< nDim >
 

Public Member Functions

 CouplingLS (const MInt couplingId, solverType *b)
 
solverTypelsSolver () const
 
MInt a_noLsCells () const
 
MFloat a_outsideGValue () const
 
MInt a_noG0Cells (MInt set) const
 
MInt a_noBandCells (MInt set) const
 
MInt a_maxGCellLevel (const MInt setId) const
 
MFloata_levelSetFunctionG (const MInt cellId, const MInt setId)
 
MInt a_bodyIdG (const MInt cellId, const MInt set) const
 
MInta_bodyIdG (const MInt cellId, const MInt set)
 
MFloat a_coordinateG (const MInt gCellId, const MInt dim) const
 
MInt a_G0CellId (const MInt id, const MInt set) const
 
MFloat a_normalVectorG (const MInt gCellId, const MInt dim, const MInt set) const
 
MFloat a_curvatureG (const MInt gCellId, const MInt set) const
 
MBool a_inBandG (MInt gcellId, MInt set) const
 
MInt a_potentialGapCellClose (MInt gcellId) const
 
MBool a_nearGapG (const MInt gcellId) const
 
MInt a_bodyToSet (const MInt bodyId) const
 
MInt a_noEmbeddedBodies () const
 
MInt a_noSets () const
 
MInt a_maxnoSets () const
 
MInt a_startSet () const
 
MFloata_extensionVelocityG (const MInt cellId, const MInt dim, const MInt setId)
 
- Public Member Functions inherited from Coupling
 Coupling (const MInt couplingId)
 
virtual ~Coupling ()=default
 
 Coupling (const Coupling &)=delete
 
Couplingoperator= (const Coupling &)=delete
 
MInt couplerId () const
 
virtual void init ()=0
 
virtual void finalizeSubCoupleInit (MInt solverId)=0
 
virtual void finalizeCouplerInit ()=0
 
virtual void preCouple (MInt recipeStep)=0
 
virtual void subCouple (MInt recipeStep, MInt solverId, std::vector< MBool > &solverCompleted)=0
 
virtual void postCouple (MInt recipeStep)=0
 
virtual void cleanUp ()=0
 
virtual void balancePre ()
 Load balancing. More...
 
virtual void balancePost ()
 
virtual void reinitAfterBalance ()
 
virtual void prepareAdaptation ()
 
virtual void postAdaptation ()
 
virtual void finalizeAdaptation (const MInt)
 
virtual void writeRestartFile (const MInt)
 
virtual MInt noCellDataDlb () const
 Methods to inquire coupler data during balancing. More...
 
virtual MInt cellDataTypeDlb (const MInt NotUsed(dataId)) const
 
virtual MInt cellDataSizeDlb (const MInt NotUsed(dataId), const MInt NotUsed(cellId))
 
virtual void getCellDataDlb (const MInt NotUsed(dataId), const MInt NotUsed(oldNoCells), const MInt *const NotUsed(bufferIdToCellId), MInt *const NotUsed(data))
 
virtual void getCellDataDlb (const MInt NotUsed(dataId), const MInt NotUsed(oldNoCells), const MInt *const NotUsed(bufferIdToCellId), MLong *const NotUsed(data))
 
virtual void getCellDataDlb (const MInt NotUsed(dataId), const MInt NotUsed(oldNoCells), const MInt *const NotUsed(bufferIdToCellId), MFloat *const NotUsed(data))
 
virtual void setCellDataDlb (const MInt NotUsed(dataId), const MInt *const NotUsed(data))
 
virtual void setCellDataDlb (const MInt NotUsed(dataId), const MLong *const NotUsed(data))
 
virtual void setCellDataDlb (const MInt NotUsed(dataId), const MFloat *const NotUsed(data))
 
virtual void finalizeBalance (const MInt)
 
virtual MInt noCouplingTimers (const MBool NotUsed(allTimings)) const
 Number of coupling timers. More...
 
virtual void getCouplingTimings (std::vector< std::pair< MString, MFloat > > &NotUsed(timings), const MBool NotUsed(allTimings))
 Return coupling timings. More...
 
virtual void getDomainDecompositionInformation (std::vector< std::pair< MString, MInt > > &NotUsed(domainInfo))
 Return information on current domain decomposition (e.g. number of coupled cells/elements/...) More...
 
void setDlbTimer (const MInt timerId)
 
void startLoadTimer (const MString &name) const
 Start the load timer of the coupler. More...
 
void stopLoadTimer (const MString &name) const
 Stop the load timer of the coupler. More...
 

Private Attributes

solverTypem_solver
 

Additional Inherited Members

- Protected Member Functions inherited from Coupling
MFloat returnLoadRecord () const
 
MFloat returnIdleRecord () const
 

Detailed Description

template<MInt nDim>
class CouplingLS< nDim >

Definition at line 184 of file coupling.h.

Member Typedef Documentation

◆ solverType

template<MInt nDim>
using CouplingLS< nDim >::solverType = LsCartesianSolver<nDim>

Definition at line 186 of file coupling.h.

Constructor & Destructor Documentation

◆ CouplingLS()

template<MInt nDim>
CouplingLS< nDim >::CouplingLS ( const MInt  couplingId,
solverType b 
)
inline

Definition at line 187 of file coupling.h.

187: Coupling(couplingId) { m_solver = b; }
solverType * m_solver
Definition: coupling.h:231

Member Function Documentation

◆ a_bodyIdG() [1/2]

template<MInt nDim>
MInt & CouplingLS< nDim >::a_bodyIdG ( const MInt  cellId,
const MInt  set 
)
inline

Definition at line 205 of file coupling.h.

205{ return lsSolver().a_bodyIdG(cellId, set); }
solverType & lsSolver() const
Definition: coupling.h:188
MInt & a_bodyIdG(const MInt cellId, const MInt set)
Returns bodyId of the cell cellId for set set.

◆ a_bodyIdG() [2/2]

template<MInt nDim>
MInt CouplingLS< nDim >::a_bodyIdG ( const MInt  cellId,
const MInt  set 
) const
inline

Definition at line 203 of file coupling.h.

203{ return lsSolver().a_bodyIdG(cellId, set); }

◆ a_bodyToSet()

template<MInt nDim>
MInt CouplingLS< nDim >::a_bodyToSet ( const MInt  bodyId) const
inline

Definition at line 220 of file coupling.h.

220{ return lsSolver().m_bodyToSetTable[bodyId]; }

◆ a_coordinateG()

template<MInt nDim>
MFloat CouplingLS< nDim >::a_coordinateG ( const MInt  gCellId,
const MInt  dim 
) const
inline

Definition at line 207 of file coupling.h.

207{ return lsSolver().c_coordinate(gCellId, dim); }
MFloat c_coordinate(const MInt gCellId, const MInt dim) const
Returns the coordinate of the cell cellId for direction dim.

◆ a_curvatureG()

template<MInt nDim>
MFloat CouplingLS< nDim >::a_curvatureG ( const MInt  gCellId,
const MInt  set 
) const
inline

Definition at line 215 of file coupling.h.

215{ return lsSolver().a_curvatureG(gCellId, set); }
MFloat & a_curvatureG(const MInt cellId, const MInt set)
Returns curvature of the cell cellId for set set.

◆ a_extensionVelocityG()

template<MInt nDim>
MFloat & CouplingLS< nDim >::a_extensionVelocityG ( const MInt  cellId,
const MInt  dim,
const MInt  setId 
)
inline

Definition at line 226 of file coupling.h.

226 {
227 return lsSolver().a_extensionVelocityG(cellId, dim, setId);
228 }
MFloat & a_extensionVelocityG(const MInt cellId, const MInt dim, const MInt set)
Returns fExt of the cell cellId for index n.

◆ a_G0CellId()

template<MInt nDim>
MInt CouplingLS< nDim >::a_G0CellId ( const MInt  id,
const MInt  set 
) const
inline

Definition at line 209 of file coupling.h.

209{ return lsSolver().a_G0CellId(id, set); }
constexpr MInt a_G0CellId(MInt id, MInt set) const

◆ a_inBandG()

template<MInt nDim>
MBool CouplingLS< nDim >::a_inBandG ( MInt  gcellId,
MInt  set 
) const
inline

Definition at line 217 of file coupling.h.

217{ return lsSolver().a_inBandG(gcellId, set); }
maia::ls::cell::BitsetTypeSet::reference a_inBandG(const MInt cellId, const MInt set)

◆ a_levelSetFunctionG()

template<MInt nDim>
MFloat & CouplingLS< nDim >::a_levelSetFunctionG ( const MInt  cellId,
const MInt  setId 
)
inline

Definition at line 199 of file coupling.h.

199 {
200 return lsSolver().a_levelSetFunctionG(cellId, setId);
201 }
MFloat & a_levelSetFunctionG(const MInt cellId, const MInt set)
Returns levelSetFunction of the cell cellId.

◆ a_maxGCellLevel()

template<MInt nDim>
MInt CouplingLS< nDim >::a_maxGCellLevel ( const MInt  setId) const
inline

Definition at line 197 of file coupling.h.

197{ return lsSolver().a_maxGCellLevel(setId); }
MInt a_maxGCellLevel(const MInt set=-1) const

◆ a_maxnoSets()

template<MInt nDim>
MInt CouplingLS< nDim >::a_maxnoSets ( ) const
inline

Definition at line 223 of file coupling.h.

◆ a_nearGapG()

template<MInt nDim>
MBool CouplingLS< nDim >::a_nearGapG ( const MInt  gcellId) const
inline

Definition at line 219 of file coupling.h.

219{ return lsSolver().a_nearGapG(gcellId); }
maia::ls::cell::BitsetType::reference a_nearGapG(const MInt cellId)

◆ a_noBandCells()

template<MInt nDim>
MInt CouplingLS< nDim >::a_noBandCells ( MInt  set) const
inline

Definition at line 195 of file coupling.h.

195{ return lsSolver().m_bandCells[set].size(); }
std::vector< MInt > * m_bandCells

◆ a_noEmbeddedBodies()

template<MInt nDim>
MInt CouplingLS< nDim >::a_noEmbeddedBodies ( ) const
inline

Definition at line 221 of file coupling.h.

◆ a_noG0Cells()

template<MInt nDim>
MInt CouplingLS< nDim >::a_noG0Cells ( MInt  set) const
inline

Definition at line 194 of file coupling.h.

194{ return lsSolver().m_G0Cells[set].size(); }
std::vector< MInt > * m_G0Cells

◆ a_noLsCells()

template<MInt nDim>
MInt CouplingLS< nDim >::a_noLsCells ( ) const
inline

Definition at line 191 of file coupling.h.

191{ return lsSolver().a_noCells(); }
MInt a_noCells() const

◆ a_normalVectorG()

template<MInt nDim>
MFloat CouplingLS< nDim >::a_normalVectorG ( const MInt  gCellId,
const MInt  dim,
const MInt  set 
) const
inline

Definition at line 211 of file coupling.h.

211 {
212 return lsSolver().a_normalVectorG(gCellId, dim, set);
213 }
MFloat & a_normalVectorG(const MInt cellId, const MInt dim, const MInt set)
Returns normalVector of the cell cellId for index n.

◆ a_noSets()

template<MInt nDim>
MInt CouplingLS< nDim >::a_noSets ( ) const
inline

Definition at line 222 of file coupling.h.

222{ return lsSolver().m_noSets; }

◆ a_outsideGValue()

template<MInt nDim>
MFloat CouplingLS< nDim >::a_outsideGValue ( ) const
inline

Definition at line 192 of file coupling.h.

192{ return lsSolver().m_outsideGValue; }

◆ a_potentialGapCellClose()

template<MInt nDim>
MInt CouplingLS< nDim >::a_potentialGapCellClose ( MInt  gcellId) const
inline

Definition at line 218 of file coupling.h.

218{ return lsSolver().a_potentialGapCellClose(gcellId); }
MInt & a_potentialGapCellClose(const MInt id)
Returns the potential gap cell closecellId.

◆ a_startSet()

template<MInt nDim>
MInt CouplingLS< nDim >::a_startSet ( ) const
inline

Definition at line 224 of file coupling.h.

224{ return lsSolver().m_startSet; }

◆ lsSolver()

template<MInt nDim>
solverType & CouplingLS< nDim >::lsSolver ( ) const
inline

Definition at line 188 of file coupling.h.

188{ return *m_solver; }

Member Data Documentation

◆ m_solver

template<MInt nDim>
solverType* CouplingLS< nDim >::m_solver
private

Definition at line 231 of file coupling.h.


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