18 "Upwind interpolation for advected quantities using the face mass flux sign.");
36 const Real neighbor_weight = mass_flux < 0.0;
37 result.
weights_matrix = std::make_pair(1.0 - neighbor_weight, neighbor_weight);
49 return mass_flux < 0.0 ? neighbor_value : elem_value;
AdvectedSystemContribution advectedInterpolate(const FaceInfo &face, Real, Real, const VectorValue< Real > *, const VectorValue< Real > *, Real mass_flux) const override
Compute the matrix weights for the advected face value.
Registered base class for linear FV interpolation objects.
std::pair< Real, Real > weights_matrix
FVAdvectedUpwind(const InputParameters ¶ms)
This data structure is used to store geometric and variable related metadata about each cell face in ...
Upwind interpolation for advected quantities based on the sign of the face mass flux.
Real advectedInterpolateValue(const FaceInfo &face, Real elem_value, Real neighbor_value, const VectorValue< Real > *, const VectorValue< Real > *, Real mass_flux) const override
Compute the advected face value.
static InputParameters validParams()
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
Matrix/RHS contribution for an advected face interpolation.
registerMooseObject("MooseApp", FVAdvectedUpwind)
static InputParameters validParams()