18 "Upwind interpolation for advected quantities using the face mass flux sign.");
30 const VectorValue<Real> * ,
31 const VectorValue<Real> * ,
36 const Real neighbor_weight = mass_flux < 0.0;
37 result.
weights_matrix = std::make_pair(1.0 - neighbor_weight, neighbor_weight);
45 const VectorValue<Real> * ,
46 const VectorValue<Real> * ,
49 return mass_flux < 0.0 ? neighbor_value : elem_value;
registerMooseObject("MooseApp", FVAdvectedUpwind)
Upwind interpolation for advected quantities based on the sign of the face mass flux.
static InputParameters validParams()
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.
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.
FVAdvectedUpwind(const InputParameters ¶ms)
Registered base class for linear FV interpolation objects.
static InputParameters validParams()
This data structure is used to store geometric and variable related metadata about each cell face in ...
Matrix/RHS contribution for an advected face interpolation.
std::pair< Real, Real > weights_matrix