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 "CNSFVMassHLLC.h" 11 : 12 : // Full specialization of the validParams function for this object 13 : registerADMooseObject("NavierStokesApp", CNSFVMassHLLC); 14 : 15 : InputParameters 16 456 : CNSFVMassHLLC::validParams() 17 : { 18 456 : InputParameters params = CNSFVHLLC::validParams(); 19 456 : params.addClassDescription( 20 : "Implements the mass flux portion of the free-flow HLLC discretization."); 21 456 : return params; 22 0 : } 23 : 24 243 : CNSFVMassHLLC::CNSFVMassHLLC(const InputParameters & params) : CNSFVHLLC(params) {} 25 : 26 : ADReal 27 530471 : CNSFVMassHLLC::fluxElem() 28 : { 29 530471 : return _normal_speed_elem * _rho_elem[_qp]; 30 : } 31 : 32 : ADReal 33 100702 : CNSFVMassHLLC::fluxNeighbor() 34 : { 35 100702 : return _normal_speed_neighbor * _rho_neighbor[_qp]; 36 : } 37 : 38 : ADReal 39 530471 : CNSFVMassHLLC::hllcElem() 40 : { 41 530471 : return 1; 42 : } 43 : 44 : ADReal 45 100702 : CNSFVMassHLLC::hllcNeighbor() 46 : { 47 100702 : return 1; 48 : } 49 : 50 : ADReal 51 530471 : CNSFVMassHLLC::conservedVariableElem() 52 : { 53 530471 : return _rho_elem[_qp]; 54 : } 55 : 56 : ADReal 57 100702 : CNSFVMassHLLC::conservedVariableNeighbor() 58 : { 59 100702 : return _rho_neighbor[_qp]; 60 : }