36#ifndef NEKTAR_SOLVERS_INCNAVIERSTOKES_H
37#define NEKTAR_SOLVERS_INCNAVIERSTOKES_H
46#include <boost/numeric/ublas/matrix.hpp>
47#include <boost/numeric/ublas/vector.hpp>
52namespace bnu = boost::numeric::ublas;
87 "UnsteadyLinearisedNS",
88 "UnsteadyNavierStokes",
187 const bnu::matrix<NekDouble> &vProjMat)
override;
189 bnu::matrix<NekDouble> &vProjMat)
override;
271 void SetUpWomersley(
const int fldid,
const int bndid, std::string womstr);
288 ASSERTL0(
false,
"This method is not defined in this class");
293 ASSERTL0(
false,
"This method is not defined in this class");
299 const NekDouble SpeedSoundFactor)
override;
#define ASSERTL0(condition, msg)
This class is the base class for Navier Stokes problems.
std::ofstream m_mdlFile
modal energy file
Array< OneD, Array< OneD, int > > m_fieldsBCToTraceID
Mapping from BCs to Elmt Edge IDs.
Array< OneD, NekDouble > m_pivotPoint
Array< OneD, NekDouble > v_GetMaxStdVelocity(const NekDouble SpeedSoundFactor) override
std::map< int, std::map< int, WomersleyParamsSharedPtr > > m_womersleyParams
Womersley parameters if required.
bool v_HasConstantDensity() override
void v_SetAeroForce(Array< OneD, NekDouble > forces) override
virtual int v_GetForceDimension()=0
void SetWomersleyBoundary(const int fldid, const int bndid)
Set Womersley Profile if specified.
void v_GetMovingFrameVelocities(Array< OneD, NekDouble > &vFrameVels) override
~IncNavierStokes() override
void v_GetAeroForce(Array< OneD, NekDouble > forces) override
void v_TransPhysToCoeff(void) override
Virtual function for transformation to coefficient space.
void SetZeroNormalVelocity()
Set Normal Velocity Component to Zero.
void WriteModalEnergy(void)
void v_GetMovingFrameDisp(Array< OneD, NekDouble > &vFrameDisp) override
MultiRegions::ExpListSharedPtr v_GetPressure() override
Array< OneD, NekDouble > m_aeroForces
void SetBoundaryConditions(NekDouble time)
time dependent boundary conditions updating
MultiRegions::ExpListSharedPtr m_pressure
Pointer to field holding pressure field.
void SetMRFDomainVelBCs(const NekDouble &time)
NekDouble m_kinvis
Kinematic viscosity.
bool m_SmoothAdvection
bool to identify if advection term smoothing is requested
void v_GetDensity(const Array< OneD, const Array< OneD, NekDouble > > &physfield, Array< OneD, NekDouble > &density) override
void SetRadiationBoundaryForcing(int fieldid)
Set Radiation forcing term.
Array< OneD, Array< OneD, NekDouble > > m_fieldsRadiationFactor
RHS Factor for Radiation Condition.
bool DefinedForcing(const std::string &sForce)
void SetMRFWallBCs(const NekDouble &time)
void v_SetMovingFrameVelocities(const Array< OneD, NekDouble > &vFrameVels) override
bool v_PreIntegrate(int step) override
void SetUpWomersley(const int fldid, const int bndid, std::string womstr)
Set Up Womersley details.
void v_InitObject(bool DeclareField=true) override
Initialisation object for EquationSystem.
ExtrapolateSharedPtr m_extrapolation
Array< OneD, int > m_velocity
int which identifies which components of m_fields contains the velocity (u,v,w);
static std::string eqTypeLookupIds[]
void v_GetMovingFrameProjectionMat(bnu::matrix< NekDouble > &vProjMat) override
void v_TransCoeffToPhys(void) override
Virtual function for transformation to physical space.
Array< OneD, Array< OneD, int > > m_fieldsBCToElmtID
Mapping from BCs to Elmt IDs.
int m_energysteps
dump energy to file at steps time
void v_GetVelocity(const Array< OneD, const Array< OneD, NekDouble > > &physfield, Array< OneD, Array< OneD, NekDouble > > &velocity) override
EquationType m_equationType
equation type;
EquationType GetEquationType(void)
void v_SetMovingFrameProjectionMat(const bnu::matrix< NekDouble > &vProjMat) override
int GetNConvectiveFields(void)
int m_intSteps
Number of time integration steps AND Order of extrapolation for pressure boundary conditions.
int m_nConvectiveFields
Number of fields to be convected;.
void AddForcing(const SolverUtils::ForcingSharedPtr &pForce)
std::vector< SolverUtils::ForcingSharedPtr > m_forcing
Forcing terms.
void v_SetMovingFrameDisp(const Array< OneD, NekDouble > &vFrameDisp) override
void EvaluateAdvectionTerms(const Array< OneD, const Array< OneD, NekDouble > > &inarray, Array< OneD, Array< OneD, NekDouble > > &outarray, const NekDouble time)
void SetMovingReferenceFrameBCs(const NekDouble &time)
Set the moving reference frame boundary conditions.
IncNavierStokes(const LibUtilities::SessionReaderSharedPtr &pSession, const SpatialDomains::MeshGraphSharedPtr &pGraph)
Constructor.
A base class for PDEs which include an advection component.
std::shared_ptr< SessionReader > SessionReaderSharedPtr
std::shared_ptr< ExpList > ExpListSharedPtr
Shared pointer to an ExpList object.
SOLVER_UTILS_EXPORT typedef std::shared_ptr< Forcing > ForcingSharedPtr
A shared pointer to an EquationSystem object.
std::shared_ptr< MeshGraph > MeshGraphSharedPtr
const std::string kAdvectionFormStr[]
std::complex< double > NekComplexDouble
@ eVelocityCorrectionScheme
std::shared_ptr< Extrapolate > ExtrapolateSharedPtr
std::shared_ptr< IncNavierStokes > IncNavierStokesSharedPtr
std::shared_ptr< WomersleyParams > WomersleyParamsSharedPtr
const std::string kEquationTypeStr[]
Array< OneD, NekDouble > m_axisnormal
std::vector< NekComplexDouble > m_wom_vel
Array< OneD, Array< OneD, NekDouble > > m_poiseuille
Array< OneD, NekDouble > m_axispoint
virtual ~WomersleyParams()
Array< OneD, Array< OneD, Array< OneD, NekComplexDouble > > > m_zvel