https://mooseframework.inl.gov
ADBoundaryFlux3EqnGhostWall.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 "THMIndicesVACE.h"
12 
13 registerMooseObject("ThermalHydraulicsApp", ADBoundaryFlux3EqnGhostWall);
14 
17 {
19 
20  params.addClassDescription(
21  "Wall boundary conditions for the 1-D, 1-phase, variable-area Euler equations");
22 
23  return params;
24 }
25 
27  : ADBoundaryFlux3EqnGhostBase(parameters)
28 {
29 }
30 
31 std::vector<ADReal>
32 ADBoundaryFlux3EqnGhostWall::getGhostCellSolution(const std::vector<ADReal> & U1) const
33 {
34  std::vector<ADReal> U_ghost(THMVACE1D::N_FLUX_INPUTS);
35  U_ghost[THMVACE1D::RHOA] = U1[THMVACE1D::RHOA];
36  U_ghost[THMVACE1D::RHOUA] = -U1[THMVACE1D::RHOUA];
37  U_ghost[THMVACE1D::RHOEA] = U1[THMVACE1D::RHOEA];
38  U_ghost[THMVACE1D::AREA] = U1[THMVACE1D::AREA];
39 
40  return U_ghost;
41 }
static InputParameters validParams()
registerMooseObject("ThermalHydraulicsApp", ADBoundaryFlux3EqnGhostWall)
Computes flux for wall boundary conditions for the 1-D, 1-phase, variable-area Euler equations...
Computes boundary fluxes for the 1-D, variable-area Euler equations using a numerical flux user objec...
static InputParameters validParams()
static const unsigned int N_FLUX_INPUTS
Number of numerical flux function inputs for 1D.
void addClassDescription(const std::string &doc_string)
virtual std::vector< ADReal > getGhostCellSolution(const std::vector< ADReal > &U1) const override
Gets the solution vector in the ghost cell.
ADBoundaryFlux3EqnGhostWall(const InputParameters &parameters)