23 params.addRequiredParam<UserObjectName>(
NS::fluid,
"fluid userobject");
24 params.addClassDescription(
"Computes the speed of sound");
30 _sound_speed(declareADProperty<Real>(
NS::sound_speed)),
31 _pressure(getADMaterialProperty<Real>(
NS::pressure)),
32 _temperature(getADMaterialProperty<Real>(
NS::T_fluid)),
registerMooseObject("NavierStokesApp", SoundspeedMat)
static InputParameters validParams()
Common class for single phase fluid properties.
Computes the speed of sound from other Navier-Stokes material properties.
const ADMaterialProperty< Real > & _temperature
temperature
static InputParameters validParams()
const SinglePhaseFluidProperties & _fluid
fluid properties user object
const ADMaterialProperty< Real > & _pressure
pressure
SoundspeedMat(const InputParameters ¶meters)
ADMaterialProperty< Real > & _sound_speed
The speed of sound.
virtual void computeQpProperties() override
static const std::string fluid