35 #include <boost/core/ignore_unused.hpp>
44 std::string WallViscousBC::classNameViscous =
46 "WallViscous", WallViscousBC::create,
47 "No-slip (viscous) wall boundary condition.");
49 std::string WallViscousBC::classNameAdiabatic =
51 "WallAdiabatic", WallViscousBC::create,
52 "Adiabatic wall boundary condition.");
54 WallViscousBC::WallViscousBC(
58 const int pSpaceDim,
const int bcRegion,
const int cnt)
59 :
CFSBndCond(pSession, pFields, pTraceNormals, pSpaceDim, bcRegion, cnt)
70 boost::ignore_unused(time);
73 int nVariables = physarray.size();
83 for (i = 0; i < nVariables; ++i)
88 m_fields[i]->EvaluateBoundaryConditions(time, varName);
100 int e, id1, id2, nBCEdgePts, eMax;
104 for (e = 0; e < eMax; ++e)
118 Vmath::Zero(nBCEdgePts, &Fwd[nVariables - 1][id2], 1);
128 for (i = 0; i < nVariables; ++i)
138 for (i = 0; i < nVariables; ++i)
143 ->UpdatePhys())[id1],
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.
tKey RegisterCreatorFunction(tKey idKey, CreatorFunction classCreator, std::string pDesc="")
Register a class with the factory.
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) override
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)