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 "ADNumericalFlux3EqnBase.h" 13 : #include "SinglePhaseFluidProperties.h" 14 : 15 : /** 16 : * Computes internal side flux for the 1-D, 1-phase, variable-area Euler equations using 17 : * a centered average of the left and right side fluxes 18 : */ 19 : class ADNumericalFlux3EqnCentered : public ADNumericalFlux3EqnBase 20 : { 21 : public: 22 : ADNumericalFlux3EqnCentered(const InputParameters & parameters); 23 : 24 : virtual void calcFlux(const std::vector<ADReal> & U1, 25 : const std::vector<ADReal> & U2, 26 : const RealVectorValue & nLR, 27 : const RealVectorValue & t1, 28 : const RealVectorValue & t2, 29 : std::vector<ADReal> & FL, 30 : std::vector<ADReal> & FR) const override; 31 : 32 1 : virtual unsigned int getNumberOfRegions() const override { return 1; } 33 : 34 : protected: 35 : std::vector<ADReal> computeFlux(const std::vector<ADReal> & U, 36 : const RealVectorValue & n, 37 : const RealVectorValue & t1, 38 : const RealVectorValue & t2) const; 39 : 40 : /// fluid properties user object 41 : const SinglePhaseFluidProperties & _fp; 42 : 43 : public: 44 : static InputParameters validParams(); 45 : };