52 const int pSpaceDim,
const int bcRegion,
const int cnt)
53 : m_session(pSession), m_fields(pFields), m_traceNormals(pTraceNormals),
54 m_gridVelocityTrace(pGridVelocity), m_spacedim(pSpaceDim),
55 m_bcRegion(bcRegion), m_offset(cnt)
105 size_t nVariables =
m_fields.size();
106 for (
int i = 0; i < nVariables; ++i)
virtual void v_Apply(Array< OneD, Array< OneD, NekDouble > > &Fwd, Array< OneD, Array< OneD, NekDouble > > &physarray, const NekDouble &time)=0
NekDouble m_diffusionAveWeight
Weight for average calculation of diffusion term.
void Apply(Array< OneD, Array< OneD, NekDouble > > &Fwd, Array< OneD, Array< OneD, NekDouble > > &physarray, const NekDouble &time=0)
Apply the boundary condition.
LibUtilities::SessionReaderSharedPtr m_session
Session reader.
int m_spacedim
Space dimension.
Array< OneD, NekDouble > m_velInf
NekDouble m_gamma
Parameters of the flow.
int m_bcRegion
Id of the boundary region.
VariableConverterSharedPtr m_varConv
Auxiliary object to convert variables.
CFSBndCond(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)
Constructor.
Array< OneD, MultiRegions::ExpListSharedPtr > m_fields
Array of fields.
virtual void v_ApplyBwdWeight()
Provides a generic Factory class.
static std::shared_ptr< DataType > AllocateSharedPtr(const Args &...args)
Allocate a shared pointer from the memory pool.
std::shared_ptr< SessionReader > SessionReaderSharedPtr
CFSBndCondFactory & GetCFSBndCondFactory()
Declaration of the boundary condition factory singleton.