35 #include <boost/core/ignore_unused.hpp> 45 RegisterCreatorFunction(
"Symmetry",
47 "Symmetry boundary condition.");
55 :
CFSBndCond(pSession, pFields, pTraceNormals, pSpaceDim, bcRegion, cnt)
64 boost::ignore_unused(time);
67 int nVariables = physarray.num_elements();
74 int e, id1, id2, nBCEdgePts, eMax;
78 for (e = 0; e < eMax; ++e)
81 GetExp(e)->GetTotPoints();
100 Vmath::Smul(nBCEdgePts, -2.0, &tmp[0], 1, &tmp[0], 1);
113 for (i = 0; i < nVariables; ++i)
117 UpdatePhys())[id1], 1);
int m_spacedim
Space dimension.
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
Array< OneD, MultiRegions::ExpListSharedPtr > m_fields
Array of fields.
CFSBndCondFactory & GetCFSBndCondFactory()
Declaration of the boundary condition factory singleton.
void Smul(int n, const T alpha, const T *x, const int incx, T *y, const int incy)
Scalar multiply y = alpha*y.
virtual void v_Apply(Array< OneD, Array< OneD, NekDouble > > &Fwd, Array< OneD, Array< OneD, NekDouble > > &physarray, const NekDouble &time)
Encapsulates the user-defined boundary conditions for compressible flow solver.
void Vcopy(int n, const T *x, const int incx, T *y, const int incy)
Array< OneD, Array< OneD, NekDouble > > m_traceNormals
Trace normals.
std::shared_ptr< SessionReader > SessionReaderSharedPtr
int m_bcRegion
Id of the boundary region.