https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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
CNSFVHLLCBCBase(const InputParameters &parameters)
ADReal _specific_internal_energy_boundary
const SinglePhaseFluidProperties & _fluid
fluid properties
const ADMaterialProperty< Real > & _specific_internal_energy_elem
material properties on the elem side of the boundary
HLLCData hllcData() const
const ADMaterialProperty< RealVectorValue > & _vel_elem
static InputParameters validParams()
ADRealVectorValue _vel_boundary
const ADMaterialProperty< Real > & _rho_elem
const unsigned int _qp
static InputParameters validParams()
void addRequiredParam(const std::string &name, const std::string &doc_string)
Common class for single phase fluid properties.
static const std::string fluid
Definition NS.h:88
Helper structure for holding data necessary for computing HLLC fluxes.