22 params.
addClassDescription(
"Computes a Green-Gauss velocity gradient using one-sided face states "
23 "on pressure baffles.");
36 mooseError(
"Already linked to PorousRhieChowMassFlux '",
38 "'. Use a separate gradient method for each flow system.");
48 const Real elem_value,
49 const Real neighbor_value)
const
53 fi, elem_info, neighbor_info, variable, elem_value, neighbor_value);
58 if (velocity.number() != variable.
number() ||
68 mooseError(
"Can only compute gradients of the velocity variables of PorousRhieChowMassFlux '",
70 "', but it was used for variable '",
registerMooseObject("NavierStokesApp", FVVelocityJumpGreenGaussGradient)
static InputParameters validParams()
virtual InternalFaceValues internalFaceValues(const FaceInfo &fi, const ElemInfo &elem_info, const ElemInfo &neighbor_info, const MooseLinearVariableFV< Real > &variable, Real elem_value, Real neighbor_value) const
std::pair< Real, Real > InternalFaceValues
Green-Gauss velocity gradient that uses the one-sided baffle face states of a porous Rhie-Chow object...
const PorousRhieChowMassFlux * _rhie_chow
Porous Rhie-Chow object supplying baffle locations and face states after linkage.
FVVelocityJumpGreenGaussGradient(const InputParameters ¶ms)
void linkFlowSystem(const PorousRhieChowMassFlux &rc)
Link this method to the porous Rhie-Chow object that supplies the baffle face states.
InternalFaceValues internalFaceValues(const FaceInfo &fi, const ElemInfo &elem_info, const ElemInfo &neighbor_info, const MooseLinearVariableFV< Real > &variable, Real elem_value, Real neighbor_value) const override
static InputParameters validParams()
const std::string & name() const
void mooseError(Args &&... args) const
unsigned int number() const
Computes Rhie-Chow face mass fluxes for porous flow with optional internal pressure jumps.
bool faceIsBaffle(const FaceInfo &fi) const
Whether a face is governed by a pressure-jump model.
RealVectorValue baffleFaceVelocity(const FaceInfo &fi, bool elem_side) const
Return the superficial velocity at a baffle face as seen from one side.
MooseLinearVariableFVReal & velocityVariable(unsigned int component)
Velocity variable for one spatial component.
LinearSystem & momentumSystem(unsigned int component)
Momentum linear system for one spatial component.
unsigned int dimension() const
Number of spatial dimensions of the coupled momentum/pressure systems.
unsigned int number() const