35 #include <boost/core/ignore_unused.hpp>
45 RegisterCreatorFunction(
"WallViscous",
46 WallViscousBC::create,
47 "No-slip (viscous) wall boundary condition.");
50 RegisterCreatorFunction(
"WallAdiabatic",
51 WallViscousBC::create,
52 "Adiabatic wall boundary condition.");
60 :
CFSBndCond(pSession, pFields, pTraceNormals, pSpaceDim, bcRegion, cnt)
72 boost::ignore_unused(time);
75 int nVariables = physarray.size();
85 for (i = 0; i < nVariables; ++i)
90 m_fields[i]->EvaluateBoundaryConditions(time, varName);
104 int e, id1, id2, nBCEdgePts, eMax;
108 for (e = 0; e < eMax; ++e)
111 GetExp(e)->GetTotPoints();
119 Vmath::Zero(nBCEdgePts, &Fwd[nVariables-1][id2], 1);
129 for (i = 0; i < nVariables; ++i)
134 &Fwd[i][id2], 1, &Fwd[i][id2], 1);
139 for (i = 0; i < nVariables; ++i)
143 UpdatePhys())[id1], 1);
Encapsulates the user-defined boundary conditions for compressible flow solver.
NekDouble m_diffusionAveWeight
Weight for average calculation of diffusion term.
LibUtilities::SessionReaderSharedPtr m_session
Session reader.
int m_spacedim
Space dimension.
int m_bcRegion
Id of the boundary region.
Array< OneD, MultiRegions::ExpListSharedPtr > m_fields
Array of fields.
Array< OneD, Array< OneD, NekDouble > > m_bndPhys
virtual void v_Apply(Array< OneD, Array< OneD, NekDouble > > &Fwd, Array< OneD, Array< OneD, NekDouble > > &physarray, const NekDouble &time)
std::shared_ptr< SessionReader > SessionReaderSharedPtr
The above copyright notice and this permission notice shall be included.
CFSBndCondFactory & GetCFSBndCondFactory()
Declaration of the boundary condition factory singleton.
void Neg(int n, T *x, const int incx)
Negate x = -x.
void Vadd(int n, const T *x, const int incx, const T *y, const int incy, T *z, const int incz)
Add vector z = x+y.
void Zero(int n, T *x, const int incx)
Zero vector.
void Vcopy(int n, const T *x, const int incx, T *y, const int incy)