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 : #include "CNSFVHLLCMassStagnationInletBC.h" 11 : 12 : // Full specialization of the validParams function for this object 13 : registerADMooseObject("NavierStokesApp", CNSFVHLLCMassStagnationInletBC); 14 : 15 : InputParameters 16 41 : CNSFVHLLCMassStagnationInletBC::validParams() 17 : { 18 41 : InputParameters params = CNSFVHLLCStagnationInletBC::validParams(); 19 41 : params.addClassDescription( 20 : "Adds the boundary mass flux for HLLC when provided stagnation temperature and pressure"); 21 41 : return params; 22 0 : } 23 : 24 22 : CNSFVHLLCMassStagnationInletBC::CNSFVHLLCMassStagnationInletBC(const InputParameters & parameters) 25 22 : : CNSFVHLLCStagnationInletBC(parameters) 26 : { 27 22 : } 28 : 29 : ADReal 30 0 : CNSFVHLLCMassStagnationInletBC::fluxElem() 31 : { 32 0 : return _normal_speed_elem * _rho_elem[_qp]; 33 : } 34 : 35 : ADReal 36 708 : CNSFVHLLCMassStagnationInletBC::fluxBoundary() 37 : { 38 708 : return _normal_speed_boundary * _rho_boundary; 39 : } 40 : 41 : ADReal 42 0 : CNSFVHLLCMassStagnationInletBC::hllcElem() 43 : { 44 0 : return 1; 45 : } 46 : 47 : ADReal 48 708 : CNSFVHLLCMassStagnationInletBC::hllcBoundary() 49 : { 50 708 : return 1; 51 : } 52 : 53 : ADReal 54 0 : CNSFVHLLCMassStagnationInletBC::conservedVariableElem() 55 : { 56 0 : return _rho_elem[_qp]; 57 : } 58 : 59 : ADReal 60 708 : CNSFVHLLCMassStagnationInletBC::conservedVariableBoundary() 61 : { 62 708 : return _rho_boundary; 63 : }