21 params.
addParam<
Real>(
"scaling_factor", 1,
"To scale the mass flux");
27 if (!dynamic_cast<INSFVPressureVariable *>(&
_var))
29 "The variable argument to WCNSFVMassFluxBC must be of type INSFVPressureVariable");
33 mooseError(
"The inlet area should be provided along with the mass flow rate");
35 mooseError(
"Velocity should be provided if the mass flow rate is not");
const PostprocessorValue *const _velocity_pp
Postprocessor with the inlet velocity.
ADReal computeQpResidual() override
const PostprocessorValue *const _mdot_pp
Postprocessor with the inlet mass flow rate.
const Moose::Functor< ADReal > & _rho
Fluid density functor.
ADRealVectorValue varVelocity(const Moose::StateArg &state) const
returns the velocity vector (vel_x, vel_y, vel_z)
WCNSFVMassFluxBC(const InputParameters ¶ms)
Moose::StateArg determineState() const
static InputParameters validParams()
ADReal inflowMassFlux(const Moose::StateArg &state) const
computes the inflow massflux
Base class for weakly compressible flux boundary conditions.
Moose::FaceArg singleSidedFaceArg(const FaceInfo *fi=nullptr, Moose::FV::LimiterType limiter_type=Moose::FV::LimiterType::CentralDifference, bool correct_skewness=false, const Moose::StateArg *state_limiter=nullptr) const
MooseVariableFV< Real > & _var
DualNumber< Real, DNDerivativeType, true > ADReal
Flux boundary condition for the weakly compressible mass conservation equation.
registerMooseObject("NavierStokesApp", WCNSFVMassFluxBC)
static InputParameters validParams()
const PostprocessorValue *const _area_pp
Postprocessor with the inlet area.
ADRealVectorValue _normal
void paramError(const std::string ¶m, Args... args) const
virtual bool isInflow() const
true if a boundary is an inflow boundary, false if outflow
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const Real _scaling_factor
Scaling factor.
void mooseError(Args &&... args) const