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);
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);
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!");
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)));
RealVectorValue computeCellToFaceVector() const
Computes the vector connecting the cell and boundary face centers.
static InputParameters validParams()
virtual Real getGamma(Moose::FaceArg face, Moose::StateArg state) const =0
virtual Real computeBoundaryValueMatrixContribution() const override
Computes the boundary value's contribution to the linear system matrix.
virtual Real computeBoundaryNormalGradient() const override
Computes the normal gradient (often used in diffusion terms) on the boundary.
Moose::StateArg determineState() const
Create a functor state argument that corresponds to the implicit state of this object.
const ElemInfo * neighborInfo() const
const ElemInfo * elemInfo() const
virtual Real getBeta(Moose::FaceArg face, Moose::StateArg state) const =0
Base class for boundary conditions that are valid for advection diffusion problems.
virtual Real computeBoundaryValue() const override
Computes the boundary value of this object.
virtual Real computeBoundaryGradientRHSContribution() const override
Computes the boundary gradient's contribution to the linear system right hand side.
virtual Real computeBoundaryValueRHSContribution() const override
Computes the boundary value's contribution to the linear system right hand side.
FaceInfo::VarFaceNeighbors _current_face_type
Face ownership information for the current face.
const Point & normal() const
Returns the unit normal vector for the face oriented outward from the face's elem element...
virtual Real getAlpha(Moose::FaceArg face, Moose::StateArg state) const =0
Getter functions (consistent entry point for all derived classes)
MooseLinearVariableFV< Real > & _var
Reference to the linear finite volume variable object.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const FaceInfo * _current_face_info
Pointer to the face info we are operating on right now.
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...
const VectorValue< Real > gradSln(const ElemInfo &elem_info) const
Get the variable gradient at a cell center.
LinearFVAdvectionDiffusionFunctorRobinBCBase(const InputParameters ¶meters)
Class constructor.
virtual Real computeBoundaryGradientMatrixContribution() const override
Computes the boundary gradient's contribution to the linear system matrix.
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.
static InputParameters validParams()