30 "This should not be assigned on an internal face!");
36 const auto alpha =
getAlpha(face, state);
37 const auto beta =
getBeta(face, state);
38 const auto gamma =
getGamma(face, state);
41 const auto grad_phi =
_var.
gradSln(*elem_info, state);
46 const auto projection = d_cf * nhat;
47 const auto vc = d_cf - (projection * nhat);
48 return ((alpha * phi) + (alpha * grad_phi * vc) + (gamma * projection)) /
49 (alpha + (beta * projection));
57 const auto alpha =
getAlpha(face, state);
58 mooseAssert(!MooseUtils::isZero(alpha),
"Alpha should not be 0!");
59 const auto beta =
getBeta(face, state);
60 const auto gamma =
getGamma(face, state);
70 const auto alpha =
getAlpha(face, state);
71 const auto beta =
getBeta(face, state);
84 "This should not be assigned on an internal face!");
89 const auto alpha =
getAlpha(face, state);
90 const auto beta =
getBeta(face, state);
91 const auto gamma =
getGamma(face, state);
93 const auto & grad_phi =
_var.
gradSln(*elem_info, state);
98 const auto projection = d_cf * nhat;
99 const auto vc = d_cf - (projection * nhat);
101 return (gamma * projection / (alpha + (beta * projection))) +
102 (alpha * grad_phi * vc / (alpha + (beta * projection)));
112 const auto alpha =
getAlpha(face, state);
113 const auto beta =
getBeta(face, state);
125 "This should not be assigned on an internal face!");
131 const auto & grad_phi =
_var.
gradSln(*elem_info, state);
133 const auto alpha =
getAlpha(face, state);
134 const auto beta =
getBeta(face, state);
135 const auto gamma =
getGamma(face, state);
140 const auto projection = d_cf * nhat;
141 const auto vc = d_cf - (projection * nhat);
143 return (gamma / alpha) + (-beta * gamma * projection / alpha / (alpha + (beta * projection))) +
144 (-beta * grad_phi * vc / (alpha + (beta * projection)));
const Point & normal() const
Returns the unit normal vector for the face oriented outward from the face's elem element.
const ElemInfo * elemInfo() const
const ElemInfo * neighborInfo() const
Base class for boundary conditions that are valid for advection diffusion problems.
static InputParameters validParams()
virtual Real getGamma(Moose::FaceArg face, Moose::StateArg state) const =0
static InputParameters validParams()
virtual Real computeBoundaryGradientRHSContribution() const override
Computes the boundary gradient's contribution to the linear system right hand side.
virtual Real computeBoundaryNormalGradient() const override
Computes the normal gradient (often used in diffusion terms) on the boundary.
virtual Real getAlpha(Moose::FaceArg face, Moose::StateArg state) const =0
Getter functions (consistent entry point for all derived classes)
LinearFVAdvectionDiffusionFunctorRobinBCBase(const InputParameters ¶meters)
Class constructor.
virtual Real getBeta(Moose::FaceArg face, Moose::StateArg state) const =0
virtual Real computeBoundaryValueRHSContribution() const override
Computes the boundary value's contribution to the linear system right hand side.
virtual Real computeBoundaryValue() const override
Computes the boundary value of this object.
virtual Real computeBoundaryGradientMatrixContribution() const override
Computes the boundary gradient's contribution to the linear system matrix.
virtual Real computeBoundaryValueMatrixContribution() const override
Computes the boundary value's contribution to the linear system matrix.
const FaceInfo * _current_face_info
Pointer to the face info we are operating on right now.
Moose::FaceArg singleSidedFaceArg(const FaceInfo *fi, Moose::FV::LimiterType limiter_type=Moose::FV::LimiterType::CentralDifference, bool correct_skewness=false) const
Determine the single sided face argument when evaluating a functor on a face.
FaceInfo::VarFaceNeighbors _current_face_type
Face ownership information for the current face.
RealVectorValue computeCellToFaceVector() const
Computes the vector connecting the cell and boundary face centers.
MooseLinearVariableFV< Real > & _var
Reference to the linear finite volume variable object.
Real getElemValue(const ElemInfo &elem_info, const StateArg &state) const
Get the solution value for the provided element and seed the derivative for the corresponding dof ind...
VectorValue< Real > gradSln(const ElemInfo &elem_info, const StateArg &state) const
Get the variable gradient at a cell center.
Moose::StateArg determineState() const
Create a functor state argument that corresponds to the implicit state of this object.