22 params.
addRequiredParam<UserObjectName>(
"numerical_flux",
"Name of numerical flux user object");
30 _A1(adCoupledValue(
"A_linear")),
31 _A2(adCoupledNeighborValue(
"A_linear")),
32 _rhoA1(getADMaterialProperty<Real>(
"rhoA")),
33 _rhouA1(getADMaterialProperty<Real>(
"rhouA")),
34 _rhoEA1(getADMaterialProperty<Real>(
"rhoEA")),
35 _rhoA2(getNeighborADMaterialProperty<Real>(
"rhoA")),
36 _rhouA2(getNeighborADMaterialProperty<Real>(
"rhouA")),
37 _rhoEA2(getNeighborADMaterialProperty<Real>(
"rhoEA")),
58 const unsigned int _qp = 0;
65 const std::vector<ADReal> & flux_elem_ad =
67 const std::vector<ADReal> & flux_neig_ad =
71 std::vector<Real> flux(flux_elem_ad.size());
72 for (
const auto i : index_range(flux))
const std::vector< double > y
registerMooseObject("ThermalHydraulicsApp", NumericalFlux3EqnInternalValues)
Base class for computing numerical fluxes for FlowModelSinglePhase.
const unsigned int & _current_side
const Elem *const & _current_elem
const MooseArray< Point > & _q_point
static InputParameters validParams()
virtual const std::vector< ADReal > & getFlux(const unsigned int iside, const dof_id_type ielem, bool res_side_is_left, const std::vector< ADReal > &UL_1d, const std::vector< ADReal > &UR_1d, Real nLR_dot_d) const
Gets the 1D flux vector for an element/side combination.
Computes internal fluxes for FlowChannel1Phase.
const ADMaterialProperty< Real > & _rhoEA2
Reconstructed rho*E*A values in neighbor element.
virtual void initialize() override
const ADVariableValue & _A2
Area in neighbor element.
const ADMaterialProperty< Real > & _rhouA2
Reconstructed rho*u*A values in neighbor element.
virtual void threadJoin(const UserObject &y) override
const ADNumericalFlux3EqnBase & _numerical_flux
Numerical flux user object.
const ADMaterialProperty< Real > & _rhoA2
Reconstructed rho*A values in neighbor element.
static InputParameters validParams()
virtual void finalize() override
const ADVariableValue & _A1
Area in current element.
const ADMaterialProperty< Real > & _rhoEA1
Reconstructed rho*E*A values in current element.
NumericalFlux3EqnInternalValues(const InputParameters ¶meters)
const ADMaterialProperty< Real > & _rhoA1
Reconstructed rho*A values in current element.
const ADMaterialProperty< Real > & _rhouA1
Reconstructed rho*u*A values in current element.
virtual void execute() override
virtual void addSample(const Point &p, const Real &id, const std::vector< Real > &values)
void setupVariables(const std::vector< std::string > &variable_names)
virtual void initialize()
virtual void threadJoin(const SamplerBase &y)
static InputParameters validParams()
static const unsigned int N_FLUX_OUTPUTS
Number of numerical flux function outputs for 1D.