Line data Source code
1 : //* This file is part of the MOOSE framework 2 : //* https://mooseframework.inl.gov 3 : //* 4 : //* All rights reserved, see COPYRIGHT for full restrictions 5 : //* https://github.com/idaholab/moose/blob/master/COPYRIGHT 6 : //* 7 : //* Licensed under LGPL 2.1, please see LICENSE for details 8 : //* https://www.gnu.org/licenses/lgpl-2.1.html 9 : 10 : #pragma once 11 : 12 : // MOOSE includes 13 : #include "AuxKernel.h" 14 : 15 : // Forward Declarations 16 : class SinglePhaseFluidProperties; 17 : 18 : /** 19 : * Auxiliary kernel for computing the Mach number assuming an ideal gas. 20 : */ 21 : class NSMachAux : public AuxKernel 22 : { 23 : public: 24 : static InputParameters validParams(); 25 : 26 : NSMachAux(const InputParameters & parameters); 27 : 28 180 : virtual ~NSMachAux() {} 29 : 30 : protected: 31 : virtual Real computeValue(); 32 : 33 : /// Whether to use material properties instead of coupled variables to compute the Mach number 34 : const bool _use_mat_props; 35 : 36 : const VariableValue * const _u_vel; 37 : const VariableValue * const _v_vel; 38 : const VariableValue * const _w_vel; 39 : const VariableValue * const _specific_volume; 40 : const VariableValue * const _specific_internal_energy; 41 : 42 : /// speed 43 : const ADMaterialProperty<Real> * const _mat_speed; 44 : 45 : /// pressure 46 : const ADMaterialProperty<Real> * const _mat_pressure; 47 : 48 : /// fluid temperature 49 : const ADMaterialProperty<Real> * const _mat_T_fluid; 50 : 51 : // Fluid properties 52 : const SinglePhaseFluidProperties & _fp; 53 : };