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 "CNSFVHLLCMassImplicitBC.h" 11 : 12 : // Full specialization of the validParams function for this object 13 : registerADMooseObject("NavierStokesApp", CNSFVHLLCMassImplicitBC); 14 : 15 : InputParameters 16 150 : CNSFVHLLCMassImplicitBC::validParams() 17 : { 18 150 : InputParameters params = CNSFVHLLCImplicitBC::validParams(); 19 150 : params.addClassDescription("Implements an implicit advective boundary flux for the mass " 20 : "equation for an HLLC discretization"); 21 150 : return params; 22 0 : } 23 : 24 81 : CNSFVHLLCMassImplicitBC::CNSFVHLLCMassImplicitBC(const InputParameters & parameters) 25 81 : : CNSFVHLLCImplicitBC(parameters) 26 : { 27 81 : } 28 : 29 : ADReal 30 7428 : CNSFVHLLCMassImplicitBC::fluxElem() 31 : { 32 7428 : return _normal_speed_elem * _rho_elem[_qp]; 33 : } 34 : 35 : ADReal 36 7428 : CNSFVHLLCMassImplicitBC::hllcElem() 37 : { 38 7428 : return 1; 39 : } 40 : 41 : ADReal 42 7428 : CNSFVHLLCMassImplicitBC::conservedVariableElem() 43 : { 44 7428 : return _rho_elem[_qp]; 45 : }