21 params.
addParam<Real>(
"scaling_factor", 1,
"To scale the mass flux");
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");
DualNumber< Real, DNDerivativeType, true > ADReal
registerMooseObject("NavierStokesApp", WCNSFVMassFluxBC)
MooseVariableFV< Real > & _var
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
ADRealVectorValue _normal
void paramError(const std::string ¶m, Args... args) const
void mooseError(Args &&... args) const
Moose::StateArg determineState() const
Base class for weakly compressible flux boundary conditions.
const Moose::Functor< ADReal > & _rho
Fluid density functor.
ADReal inflowMassFlux(const Moose::StateArg &state) const
computes the inflow massflux
static InputParameters validParams()
const PostprocessorValue *const _mdot_pp
Postprocessor with the inlet mass flow rate.
const Real _scaling_factor
Scaling factor.
const PostprocessorValue *const _velocity_pp
Postprocessor with the inlet velocity.
virtual bool isInflow() const
true if a boundary is an inflow boundary, false if outflow
const PostprocessorValue *const _area_pp
Postprocessor with the inlet area.
ADRealVectorValue varVelocity(const Moose::StateArg &state) const
returns the velocity vector (vel_x, vel_y, vel_z)
Flux boundary condition for the weakly compressible mass conservation equation.
WCNSFVMassFluxBC(const InputParameters ¶ms)
static InputParameters validParams()
ADReal computeQpResidual() override