https://mooseframework.inl.gov
BoundaryFluxGasMixGhostWall.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 "THMIndicesGasMix.h"
12 
13 registerMooseObject("ThermalHydraulicsApp", BoundaryFluxGasMixGhostWall);
14 
17 {
19 
20  params.addClassDescription("Wall boundary flux for FlowModelGasMix.");
21 
22  return params;
23 }
24 
26  : BoundaryFluxGasMixGhostBase(parameters)
27 {
28 }
29 
30 std::vector<ADReal>
31 BoundaryFluxGasMixGhostWall::getGhostCellSolution(const std::vector<ADReal> & U1) const
32 {
33  std::vector<ADReal> U_ghost(THMGasMix1D::N_FLUX_INPUTS);
35  U_ghost[THMGasMix1D::RHOA] = U1[THMGasMix1D::RHOA];
36  U_ghost[THMGasMix1D::RHOUA] = -U1[THMGasMix1D::RHOUA];
38  U_ghost[THMGasMix1D::AREA] = U1[THMGasMix1D::AREA];
39 
40  return U_ghost;
41 }
static InputParameters validParams()
virtual std::vector< ADReal > getGhostCellSolution(const std::vector< ADReal > &U1) const override
Gets the solution vector in the ghost cell.
static InputParameters validParams()
Base class for boundary fluxes for FlowModelGasMix using ghost cells.
BoundaryFluxGasMixGhostWall(const InputParameters &parameters)
void addClassDescription(const std::string &doc_string)
static const unsigned int N_FLUX_INPUTS
Number of numerical flux function inputs.
registerMooseObject("ThermalHydraulicsApp", BoundaryFluxGasMixGhostWall)
Wall boundary flux for FlowModelGasMix.