https://mooseframework.inl.gov
CNSFVHLLCBCBase.C
Go to the documentation of this file.
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 "CNSFVHLLCBCBase.h"
11 #include "CNSFVHLLC.h"
12 #include "NS.h"
14 
17 {
19  params.addRequiredParam<UserObjectName>(NS::fluid, "Fluid properties userobject");
20  return params;
21 }
22 
24  : FVFluxBC(parameters),
25  _fluid(UserObjectInterface::getUserObject<SinglePhaseFluidProperties>(NS::fluid)),
26  _specific_internal_energy_elem(getADMaterialProperty<Real>(NS::specific_internal_energy)),
27  _vel_elem(getADMaterialProperty<RealVectorValue>(NS::velocity)),
28  _speed_elem(getADMaterialProperty<Real>(NS::speed)),
29  _rho_elem(getADMaterialProperty<Real>(NS::density)),
30  _pressure_elem(getADMaterialProperty<Real>(NS::pressure)),
31  _rho_et_elem(getADMaterialProperty<Real>(NS::total_energy_density)),
32  _ht_elem(getADMaterialProperty<Real>(NS::specific_total_enthalpy))
33 {
34 }
35 
38 {
39  return {_fluid,
40  _rho_elem[_qp],
42  _vel_elem[_qp],
46 }
static const std::string total_energy_density
Definition: NS.h:65
HLLCData hllcData() const
static const std::string speed
Definition: NS.h:143
static InputParameters validParams()
static const std::string density
Definition: NS.h:33
static const std::string fluid
Definition: NS.h:87
static const std::string specific_internal_energy
Definition: NS.h:62
const ADMaterialProperty< RealVectorValue > & _vel_elem
void addRequiredParam(const std::string &name, const std::string &doc_string)
const ADMaterialProperty< Real > & _rho_elem
const unsigned int _qp
static InputParameters validParams()
Common class for single phase fluid properties.
CNSFVHLLCBCBase(const InputParameters &parameters)
const ADMaterialProperty< Real > & _specific_internal_energy_elem
material properties on the elem side of the boundary
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
static const std::string specific_total_enthalpy
Definition: NS.h:69
static const std::string pressure
Definition: NS.h:56
static const std::string velocity
Definition: NS.h:45
Helper structure for holding data necessary for computing HLLC fluxes.
Definition: CNSFVHLLCBase.h:25
ADReal _specific_internal_energy_boundary
ADRealVectorValue _vel_boundary
const SinglePhaseFluidProperties & _fluid
fluid properties