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 : #include "NumericalFluxGasMixBase.h" 13 : #include "NaNInterface.h" 14 : 15 : class VaporMixtureFluidProperties; 16 : 17 : /** 18 : * Computes the numerical flux for FlowModelGasMix using 19 : * the HLLC approximate Riemann solver. 20 : */ 21 : class NumericalFluxGasMixHLLC : public NumericalFluxGasMixBase, public NaNInterface 22 : { 23 : public: 24 : static InputParameters validParams(); 25 : 26 : NumericalFluxGasMixHLLC(const InputParameters & parameters); 27 : 28 : virtual void calcFlux(const std::vector<ADReal> & UL, 29 : const std::vector<ADReal> & UR, 30 : const RealVectorValue & nLR, 31 : const RealVectorValue & t1, 32 : const RealVectorValue & t2, 33 : std::vector<ADReal> & FL, 34 : std::vector<ADReal> & FR) const override; 35 : 36 1 : virtual unsigned int getNumberOfRegions() const override { return 4; } 37 : 38 : protected: 39 : /** 40 : * Computes the flow area that is used in the numerical flux 41 : */ 42 : virtual ADReal computeFlowArea(const std::vector<ADReal> & UL, 43 : const std::vector<ADReal> & UR) const; 44 : 45 : /// fluid properties user object 46 : const VaporMixtureFluidProperties & _fp; 47 : };