13 : m_StructuredComm(solver->m_StructuredComm),
14 m_nCells(solver->m_nCells),
15 m_nPoints(solver->m_nPoints),
16 m_cells(solver->m_cells),
20 m_solverId(solver->m_solverId),
21 m_noGhostLayers(solver->m_noGhostLayers),
22 m_physicalBCMap(solver->m_windowInfo->physicalBCMap),
23 m_auxDataMap(solver->m_windowInfo->physicalAuxDataMap),
24 m_globalStructuredBndryMaps(solver->m_windowInfo->globalStructuredBndryCndMaps),
25 m_noSpongeDomainInfos(solver->m_noSpongeDomainInfos),
26 m_spongeBcWindowInfo(solver->m_spongeBcWindowInfo),
27 m_spongeLayerType(solver->m_spongeLayerType),
28 m_spongeLayerThickness(solver->m_spongeLayerThickness),
29 m_sigmaSponge(solver->m_sigmaSponge),
30 m_betaSponge(solver->m_betaSponge),
31 m_targetDensityFactor(solver->m_targetDensityFactor),
32 m_noCells(grid->m_noCells),
33 m_sutherlandPlusOne(solver->m_sutherlandPlusOne),
34 m_sutherlandConstant(solver->m_sutherlandConstant) {
49 for(
MInt bcId = 0; bcId < m_noBndryCndIds; bcId++) {
50 (this->*bndryCndHandler[bcId])(bcId);
67 m_noBndryCndIds = m_physicalBCMap.size();
69 bndryCndHandler =
nullptr;
70 bndryCndHandler =
new BndryCndHandler[m_physicalBCMap.size()];
71 initBndryCndHandler =
new BndryCndHandler[m_physicalBCMap.size()];
74 mAlloc(m_channelSurfaceIndexMap, std::max((
MInt)m_physicalBCMap.size(), 1),
"m_channelSurfaceIndexMap", -1, AT_);
76 mAlloc(m_plenumSurfaceIndexMap, std::max((
MInt)m_physicalBCMap.size(), 1),
"m_plenumSurfaceIndexMap", -1, AT_);
77 MInt counter = 0, counterPlenum = 0;
79 for(
MUint bcId = 0; bcId < m_physicalBCMap.size(); bcId++) {
80 switch(m_physicalBCMap[bcId]->BC) {
90 if(m_solver->m_movingGrid) {
102 if(m_solver->m_movingGrid) {
193 m_plenumSurfaceIndexMap[bcId] = counterPlenum;
221 m_channelSurfaceIndexMap[bcId] = counter;
226 if(m_solver->m_rans) {
236 if(m_solver->m_rans) {
246 m_solver->m_bc2600 =
true;
249 m_solver->m_bc2600 =
true;
253 m_solver->m_bc2601 =
true;
256 m_solver->m_bc2601 =
true;
323 cout <<
"boundary condtition is missing" << m_physicalBCMap[bcId]->BC << endl;
324 mTerm(1, AT_,
"Boundary Condition is not implemented");
334 for(
MInt bcId = 0; bcId < m_noBndryCndIds; bcId++) {
335 (this->*initBndryCndHandler[bcId])(bcId);
341 delete[] bndryCndHandler;
342 delete[] initBndryCndHandler;
void mAlloc(T *&a, const MLong N, const MString &objectName, MString function)
allocates memory for one-dimensional array 'a' of size N
Base class of the structured solver.
Base class of the structured boundary conditions.
virtual void bc2601(MInt)
virtual void initBc2004(MInt)
virtual void initBc2888(MInt)
virtual void bc2501(MInt)
virtual void bc3000(MInt)
virtual void initBc2999(MInt)
virtual void initBc2002(MInt)
virtual void initBc3000(MInt)
virtual void bc3001(MInt)
virtual void initBc3001(MInt)
virtual void bc2600(MInt)
virtual void bc2222(MInt)
virtual void bc2020(MInt)
virtual void initBc2099(MInt)
virtual void initBc2700(MInt)
virtual void bc2900(MInt)
virtual void bc2014(MInt)
virtual void initBc2600(MInt)
virtual void initBc2402(MInt)
virtual void initBc2012(MInt)
virtual void bc2402(MInt)
virtual void initBc2097(MInt)
virtual void bc2511(MInt)
virtual void initBc2501(MInt)
virtual void bc1003(MInt)
virtual void bc2007(MInt)
virtual void initBc2199(MInt)
MFloat m_channelSurfaceIn
virtual void bc1007(MInt)
virtual void initBc2510(MInt)
virtual void bc2005(MInt)
virtual void initBc2014(MInt)
virtual void initBc9999(MInt)
MFloat m_channelSurfaceOut
virtual void initBc2601(MInt)
virtual void initBc2900(MInt)
StructuredGrid< nDim > * m_grid
virtual void bc2700(MInt)
virtual void bc2199(MInt)
virtual void initBc2730(MInt)
virtual void initBc2003(MInt)
virtual void initBc2007(MInt)
virtual void initBc2005(MInt)
virtual void bc2006(MInt)
virtual void initBc2001(MInt)
virtual void bc2003(MInt)
virtual void bc2001(MInt)
virtual void bc1001(MInt)
virtual void bc2004(MInt)
virtual void bc2097(MInt)
virtual void initBc2500(MInt)
virtual void initBc1001(MInt)
virtual void bc2730(MInt)
virtual void bc2888(MInt)
virtual void initBc1000(MInt)
virtual void bc6000(MInt)
virtual void initBc2009(MInt)
virtual void bc2013(MInt)
virtual void bc1004(MInt)
virtual void initBc1006(MInt)
virtual void initBc1007(MInt)
virtual void initBc2020(MInt)
virtual void bc2500(MInt)
virtual void bc2999(MInt)
virtual void initBc2222(MInt)
virtual void initBc1004(MInt)
StructuredBndryCnd(FvStructuredSolver< nDim > *solver, StructuredGrid< nDim > *grid)
virtual void initBc0(MInt)
virtual void bc2510(MInt)
virtual void bc2012(MInt)
void applyNonReflectingBC()
virtual void initBc1003(MInt)
virtual ~StructuredBndryCnd()
virtual void bc1006(MInt)
virtual void initBc2221(MInt)
virtual void initBc7909(MInt)
virtual void initBc2021(MInt)
void applyDirichletNeumannBC()
virtual void bc2099(MInt)
virtual void initBc6000(MInt)
virtual void bc1000(MInt)
virtual void initBc2006(MInt)
virtual void bc2221(MInt)
virtual void bc7909(MInt)
virtual void bc2009(MInt)
virtual void bc2002(MInt)
virtual void bc2021(MInt)
virtual void initBc2013(MInt)
virtual void bc9999(MInt)
FvStructuredSolver< nDim > * m_solver
virtual void correctBndryCndIndices()
void mTerm(const MInt errorCode, const MString &location, const MString &message)