35 #ifndef NEKTAR_SOLVERS_VELOCITYCORRECTIONSCHEME_H 36 #define NEKTAR_SOLVERS_VELOCITYCORRECTIONSCHEME_H 203 return false || m_flowrate > 0.0;
212 const std::string &instr)
233 typedef std::shared_ptr<VelocityCorrectionScheme>
239 #endif //VELOCITY_CORRECTION_SCHEME_H void SetupFlowrate(NekDouble aii_dt)
Set up the Stokes solution used to impose constant flowrate through a boundary.
NekDouble MeasureFlowrate(const Array< OneD, Array< OneD, NekDouble > > &inarray)
Measure the volumetric flow rate through the volumetric flow rate reference surface.
virtual Array< OneD, bool > v_GetSystemSingularChecks()
virtual void v_DoInitialise(void)
Sets up initial conditions.
virtual ~VelocityCorrectionScheme()
std::shared_ptr< MeshGraph > MeshGraphSharedPtr
Array< OneD, Array< OneD, NekDouble > > m_flowrateStokes
Stokes solution used to impose flowrate.
void EvaluateAdvection_SetPressureBCs(const Array< OneD, const Array< OneD, NekDouble > > &inarray, Array< OneD, Array< OneD, NekDouble > > &outarray, const NekDouble time)
void SolveUnsteadyStokesSystem(const Array< OneD, const Array< OneD, NekDouble > > &inarray, Array< OneD, Array< OneD, NekDouble > > &outarray, const NekDouble time, const NekDouble a_iixDt)
std::shared_ptr< ExpList > ExpListSharedPtr
Shared pointer to an ExpList object.
void SolvePressure(const Array< OneD, NekDouble > &Forcing)
NekDouble m_flowrate
Desired volumetric flowrate.
std::vector< std::pair< std::string, std::string > > SummaryList
virtual void v_GenerateSummary(SolverUtils::SummaryList &s)
Print a summary of time stepping parameters.
bool m_useHomo1DSpecVanVisc
bool to identify if spectral vanishing viscosity is active.
NekDouble m_sVVDiffCoeff
Diffusion coefficient of SVV modes.
bool m_IsSVVPowerKernel
Identifier for Power Kernel otherwise DG kernel.
VelocityCorrectionScheme(const LibUtilities::SessionReaderSharedPtr &pSession, const SpatialDomains::MeshGraphSharedPtr &pGraph)
Constructor.
virtual std::string v_GetSubSteppingExtrapolateStr(const std::string &instr)
virtual std::string v_GetExtrapolateStr(void)
static SolverUtils::EquationSystemSharedPtr create(const LibUtilities::SessionReaderSharedPtr &pSession, const SpatialDomains::MeshGraphSharedPtr &pGraph)
Creates an instance of this class.
std::map< ConstFactorType, NekDouble > ConstFactorMap
static std::string className
Name of class.
virtual bool v_RequireFwdTrans()
virtual int v_GetForceDimension()
void SolveViscous(const Array< OneD, const Array< OneD, NekDouble > > &Forcing, Array< OneD, Array< OneD, NekDouble > > &outarray, const NekDouble aii_Dt)
void SetUpViscousForcing(const Array< OneD, const Array< OneD, NekDouble > > &inarray, Array< OneD, Array< OneD, NekDouble > > &Forcing, const NekDouble aii_Dt)
NekDouble m_sVVCutoffRatioHomo1D
MultiRegions::ExpListSharedPtr m_flowrateBnd
Flowrate reference surface.
NekDouble m_flowrateAiidt
Value of aii_dt used to compute Stokes flowrate solution.
std::ofstream m_flowrateStream
Output stream to record flowrate.
NekDouble m_flowrateArea
Area of the boundary through which we are measuring the flowrate.
std::map< StdRegions::VarCoeffType, Array< OneD, NekDouble > > VarCoeffMap
virtual void v_SetUpViscousForcing(const Array< OneD, const Array< OneD, NekDouble > > &inarray, Array< OneD, Array< OneD, NekDouble > > &Forcing, const NekDouble aii_Dt)
void SetUpPressureForcing(const Array< OneD, const Array< OneD, NekDouble > > &fields, Array< OneD, Array< OneD, NekDouble > > &Forcing, const NekDouble aii_Dt)
static std::shared_ptr< DataType > AllocateSharedPtr(const Args &...args)
Allocate a shared pointer from the memory pool.
virtual void v_TransCoeffToPhys(void)
Virtual function for transformation to physical space.
std::shared_ptr< VelocityCorrectionScheme > VelocityCorrectionSchemeSharedPtr
virtual void v_SolvePressure(const Array< OneD, NekDouble > &Forcing)
Array< OneD, NekDouble > m_svvVarDiffCoeff
Array of coefficient if power kernel is used in SVV.
virtual bool v_PostIntegrate(int step)
Array< OneD, Array< OneD, NekDouble > > m_F
void SVVVarDiffCoeff(const NekDouble velmag, Array< OneD, NekDouble > &diffcoeff, const Array< OneD, Array< OneD, NekDouble > > &vel=NullNekDoubleArrayofArray)
virtual void v_SolveViscous(const Array< OneD, const Array< OneD, NekDouble > > &Forcing, Array< OneD, Array< OneD, NekDouble > > &outarray, const NekDouble aii_Dt)
NekDouble m_sVVCutoffRatio
cutt off ratio from which to start decayhing modes
void SetUpExtrapolation(void)
bool m_useSpecVanVisc
bool to identify if spectral vanishing viscosity is active.
Array< OneD, NekDouble > m_diffCoeff
Diffusion coefficients (will be kinvis for velocities)
int m_flowrateSteps
Interval at which to record flowrate data.
NekDouble m_sVVDiffCoeffHomo1D
Diffusion coefficient of SVV modes in homogeneous 1D Direction.
virtual void v_TransPhysToCoeff(void)
Virtual function for transformation to coefficient space.
This class is the base class for Navier Stokes problems.
NekDouble m_alpha
Current flowrate correction.
virtual void v_InitObject()
Init object for UnsteadySystem class.
static Array< OneD, Array< OneD, NekDouble > > NullNekDoubleArrayofArray
NekDouble m_greenFlux
Flux of the Stokes function solution.
Defines a forcing term to be explicitly applied.
virtual void v_SetUpPressureForcing(const Array< OneD, const Array< OneD, NekDouble > > &fields, Array< OneD, Array< OneD, NekDouble > > &Forcing, const NekDouble aii_Dt)
void AppendSVVFactors(StdRegions::ConstFactorMap &factors, MultiRegions::VarFactorsMap &varFactorsMap)
int m_flowrateBndID
Boundary ID of the flowrate reference surface.
virtual void v_EvaluateAdvection_SetPressureBCs(const Array< OneD, const Array< OneD, NekDouble > > &inarray, Array< OneD, Array< OneD, NekDouble > > &outarray, const NekDouble time)
std::shared_ptr< SessionReader > SessionReaderSharedPtr
int m_planeID
Plane ID for cases with homogeneous expansion.
std::shared_ptr< EquationSystem > EquationSystemSharedPtr
A shared pointer to an EquationSystem object.
std::map< StdRegions::ConstFactorType, Array< OneD, NekDouble > > VarFactorsMap
StdRegions::VarCoeffMap m_varCoeffLap
Variable Coefficient map for the Laplacian which can be activated as part of SVV or otherwise...