35#include <boost/core/ignore_unused.hpp>
47 "Adiabatic rotational wall boundary condition.");
54 const int pSpaceDim,
const int bcRegion,
const int cnt)
55 :
CFSBndCond(pSession, pFields, pTraceNormals, pGridVelocity, pSpaceDim,
64 for (
int e = 0; e < eMax; ++e)
77 for (
int j = 0; j < nBCEdgePts; ++j)
89 boost::ignore_unused(time);
90 int nVariables = physarray.size();
101 int e, id1, id2, nBCEdgePts, eMax;
105 for (e = 0; e < eMax; ++e)
120 Vmath::Zero(nBCEdgePts, &Fwd[nVariables - 1][id2], 1);
132 for (
int j = 0; j < nBCEdgePts; ++j)
136 Fwd[i + 1][id2 + j] =
143 for (i = 0; i < nVariables; ++i)
148 ->UpdatePhys())[id1],
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_gridVelocityTrace
Grid Velocity.
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.
void v_Apply(Array< OneD, Array< OneD, NekDouble > > &Fwd, Array< OneD, Array< OneD, NekDouble > > &physarray, const NekDouble &time) override
static CFSBndCondSharedPtr create(const LibUtilities::SessionReaderSharedPtr &pSession, const Array< OneD, MultiRegions::ExpListSharedPtr > &pFields, const Array< OneD, Array< OneD, NekDouble > > &pTraceNormals, const Array< OneD, Array< OneD, NekDouble > > &pGridVelocity, const int pSpaceDim, const int bcRegion, const int cnt)
Creates an instance of this class.
static std::string classNameRotational
Name of the class.
WallRotationalBC(const LibUtilities::SessionReaderSharedPtr &pSession, const Array< OneD, MultiRegions::ExpListSharedPtr > &pFields, const Array< OneD, Array< OneD, NekDouble > > &pTraceNormals, const Array< OneD, Array< OneD, NekDouble > > &pGridVelocity, const int pSpaceDim, const int bcRegion, const int cnt)
std::shared_ptr< SessionReader > SessionReaderSharedPtr
CFSBndCondFactory & GetCFSBndCondFactory()
Declaration of the boundary condition factory singleton.
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)