20 "use_two_term_expansion",
22 "If an approximate linear expansion should be used to compute the face value.");
29 _two_term_expansion(getParam<bool>(
"use_two_term_expansion"))
50 const auto cell_gradient =
_var.
gradSln(*elem_info);
54 const auto correction_vector = (d_cf - (d_cf * normal) * normal);
55 boundary_value += cell_gradient * correction_vector;
58 return boundary_value;
90 const auto correction_vector = (d_cf - (d_cf * normal) * normal);
91 const auto & cell_gradient =
_var.
gradSln(*elem_info);
93 return cell_gradient * correction_vector;
RealVectorValue computeCellToFaceVector() const
Computes the vector connecting the cell and boundary face centers.
const bool _two_term_expansion
Switch for enabling linear extrapolation for the boundary face value.
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
LinearFVAdvectionDiffusionScalarSymmetryBC(const InputParameters ¶meters)
Class constructor.
virtual Real computeBoundaryValueMatrixContribution() const override
Computes the boundary value's contribution to the linear system matrix.
Base class for boundary conditions that are valid for advection diffusion problems.
virtual Real computeBoundaryValue() const override
Computes the boundary value of this object.
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...
MooseLinearVariableFV< Real > & _var
Reference to the linear finite volume variable object.
static InputParameters validParams()
virtual Real computeBoundaryValueRHSContribution() const override
Computes the boundary value's contribution to the linear system right hand side.
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.
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.
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.
virtual Real computeBoundaryGradientMatrixContribution() const override
Computes the boundary gradient's contribution to the linear system matrix.
void computeCellGradients()
Switch to request cell gradient computations.
registerMooseObject("MooseApp", LinearFVAdvectionDiffusionScalarSymmetryBC)
static InputParameters validParams()
Class implementing a symmetry boundary condition for scalar quantities.