https://mooseframework.inl.gov
Loading...
Searching...
No Matches
BoundaryFluxGasMixBC.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
11#include "THMNames.h"
12#include "THMIndicesGasMix.h"
13
15
18{
20
22 "Boundary conditions for a FlowChannelGasMix using a boundary flux object.");
23
24 params.addRequiredCoupledVar("xirhoA", "Conserved variable: x*rho*A");
25
26 return params;
27}
28
30 : BoundaryFlux1PhaseBaseBC(parameters),
31 _xirhoA(getADMaterialProperty<Real>(THM::XIRHOA)),
32 _xirhoA_var(coupled("xirhoA"))
33{
34}
35
36std::vector<ADReal>
48
49std::map<unsigned int, unsigned int>
51{
52 std::map<unsigned int, unsigned int> jmap;
53 jmap.insert(std::pair<unsigned int, unsigned int>(_xirhoA_var, THMGasMix1D::SPECIES));
54 jmap.insert(std::pair<unsigned int, unsigned int>(_rhoA_var, THMGasMix1D::MASS));
55 jmap.insert(std::pair<unsigned int, unsigned int>(_rhouA_var, THMGasMix1D::MOMENTUM));
56 jmap.insert(std::pair<unsigned int, unsigned int>(_rhoEA_var, THMGasMix1D::ENERGY));
57
58 return jmap;
59}
registerMooseObject("ThermalHydraulicsApp", BoundaryFluxGasMixBC)
Boundary conditions base class for the 1-phase, variable-area Euler equations using a boundary flux u...
const ADVariableValue & _A_linear
Cross-sectional area, linear.
static InputParameters validParams()
const ADMaterialProperty< Real > & _rhouA
const ADMaterialProperty< Real > & _rhoA
const ADMaterialProperty< Real > & _rhoEA
Boundary conditions for a FlowChannelGasMix using a boundary flux object.
BoundaryFluxGasMixBC(const InputParameters &parameters)
virtual std::vector< ADReal > fluxInputVector() const override
Returns the flux input vector.
const unsigned int _xirhoA_var
Coupled variable index for x*rho*A.
const ADMaterialProperty< Real > & _xirhoA
x*rho*A
static InputParameters validParams()
virtual std::map< unsigned int, unsigned int > getIndexMapping() const override
Creates the mapping of coupled variable index to index in Euler system.
void addRequiredCoupledVar(const std::string &name, const std::string &doc_string)
void addClassDescription(const std::string &doc_string)
unsigned int _qp
static const unsigned int N_FLUX_INPUTS
Number of numerical flux function inputs.