66template <
typename TData>
70 static std::shared_ptr<HOutflowBndCondOp<TData>>
Create(
72 const std::vector<std::string> &pressureComponents,
73 const std::string &execStr =
"")
80 static inline const std::string
name =
"HOutflowBndCond";
92 const std::vector<std::string> &velocityComponents)
181 "SetVelocityContext must be called before requesting the "
182 "HOutflow velocity adapter.");
202 const std::vector<std::string> &pressureComponents)
203 : MultiRegions::
Operator<TData>(pressureExpansionList,
212 const std::vector<std::string> &velocityComponents) = 0;
#define ASSERTL1(condition, msg)
Assert Level 1 – Debugging which is used whether in FULLDEBUG or DEBUG compilation mode....
Whole-field operator base class and factory machinery shared by every operator family in the MultiReg...
Dong's high-order outflow boundary condition, a pressure Dirichlet condition coupled with a velocity ...
void SetPressure(LibUtilities::Field< TData, FieldState::Phys > &pressure)
Set the solved pressure, in physical space, from which the velocity Neumann condition computes the ve...
std::shared_ptr< MultiRegions::NeuBndCondOp< TData > > m_velocityAdapter
std::shared_ptr< MultiRegions::DirBndCondOp< TData > > m_pressureAdapter
LibUtilities::Field< TData, FieldState::Phys > * m_pressure
Solved pressure, set by SetPressure(); not owned.
void UpdatePressure(LibUtilities::Field< TData, FieldState::Phys > &velocity)
Set the pressure boundary values from the extrapolated velocity.
static std::shared_ptr< HOutflowBndCondOp< TData > > Create(const MultiRegions::ExpListSharedPtr &pressureExpansionList, const std::vector< std::string > &pressureComponents, const std::string &execStr="")
static const std::string name
virtual void v_UpdatePressure(LibUtilities::Field< TData, FieldState::Phys > &velocity)=0
TData m_kinvis
Kinematic viscosity, set by SetKinvis().
void SetKinvis(const TData &kinvis)
Set the kinematic viscosity UpdatePressure() and the velocity Neumann condition use.
TData m_scale
Scale of the velocity passed to UpdatePressure(), set by SetScale().
virtual void v_SetVelocityContext(const MultiRegions::ExpListSharedPtr &velocityExpansionList, const std::vector< std::string > &velocityComponents)=0
void SetTime(const TData &time)
Set the time at which UpdatePressure() evaluates the Neumann value f_b of the velocity conditions (de...
~HOutflowBndCondOp() override=default
std::shared_ptr< MultiRegions::NeuBndCondOp< TData > > GetVelocityNeumannOp()
The Neumann condition of the velocity system, whose Apply() is ApplyVelocity(), available once SetVel...
std::shared_ptr< MultiRegions::DirBndCondOp< TData > > GetPressureDirichletOp()
The Dirichlet condition of the pressure system, whose Apply() is ApplyPressure().
static const std::string userDefinedType
USERDEFINEDTYPE of the pressure Dirichlet and velocity Neumann conditions the operator applies.
TData m_time
Time of the Neumann value f_b, set by SetTime().
HOutflowBndCondOp(const MultiRegions::ExpListSharedPtr &pressureExpansionList, const std::vector< std::string > &pressureComponents)
void SetVelocityContext(const MultiRegions::ExpListSharedPtr &velocityExpansionList, const std::vector< std::string > &velocityComponents)
Set the velocity expansion list and the names of the velocity components, and build the velocity boun...
void SetScale(const TData &scale)
Set the scale by which UpdatePressure() multiplies the velocity it is passed, and its gradient,...
A Field represents expansion data to be operated on.
Common base class of the operator family interfaces: holds the expansion list, component names and da...
std::shared_ptr< ExpList > ExpListSharedPtr
Shared pointer to an ExpList object.