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>
33  const Point & /*point*/) const
34 {
35  std::vector<ADReal> U_ghost = U1;
36  U_ghost[THMVACE1D::RHOUA] = -U1[THMVACE1D::RHOUA];
37 
38  return U_ghost;
39 }
static InputParameters validParams()
registerMooseObject("ThermalHydraulicsApp", ADBoundaryFlux3EqnGhostWall)
virtual std::vector< ADReal > getGhostCellSolution(const std::vector< ADReal > &U1, const Point &point) const override
Gets the solution vector in the ghost cell.
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()
void addClassDescription(const std::string &doc_string)
ADBoundaryFlux3EqnGhostWall(const InputParameters &parameters)