35 #include <boost/core/ignore_unused.hpp>
45 RegisterCreatorFunction(
"Wall",
47 "Slip wall boundary condition.");
55 :
CFSBndCond(pSession, pFields, pTraceNormals, pSpaceDim, bcRegion, cnt)
65 boost::ignore_unused(time);
68 int nVariables = physarray.size();
75 int e, id1, id2, nBCEdgePts, eMax;
79 for (e = 0; e < eMax; ++e)
82 GetExp(e)->GetTotPoints();
90 Vmath::Zero(nBCEdgePts, &Fwd[nVariables-1][id2], 1);
107 Vmath::Smul(nBCEdgePts, -2.0, &tmp[0], 1, &tmp[0], 1);
120 for (i = 0; i < nVariables; ++i)
124 UpdatePhys())[id1], 1);
Encapsulates the user-defined boundary conditions for compressible flow solver.
NekDouble m_diffusionAveWeight
Weight for average calculation of diffusion term.
int m_spacedim
Space dimension.
Array< OneD, Array< OneD, NekDouble > > m_traceNormals
Trace normals.
int m_bcRegion
Id of the boundary region.
Array< OneD, MultiRegions::ExpListSharedPtr > m_fields
Array of fields.
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 Vvtvp(int n, const T *w, const int incw, const T *x, const int incx, const T *y, const int incy, T *z, const int incz)
vvtvp (vector times vector plus vector): z = w*x + y
void Smul(int n, const T alpha, const T *x, const int incx, T *y, const int incy)
Scalar multiply y = alpha*x.
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)