Line data Source code
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 "ADBoundaryFlux3EqnGhostWall.h" 11 : #include "THMIndicesVACE.h" 12 : 13 : registerMooseObject("ThermalHydraulicsApp", ADBoundaryFlux3EqnGhostWall); 14 : 15 : InputParameters 16 1423 : ADBoundaryFlux3EqnGhostWall::validParams() 17 : { 18 1423 : InputParameters params = ADBoundaryFlux3EqnGhostBase::validParams(); 19 : 20 1423 : params.addClassDescription( 21 : "Wall boundary conditions for the 1-D, 1-phase, variable-area Euler equations"); 22 : 23 1423 : return params; 24 0 : } 25 : 26 758 : ADBoundaryFlux3EqnGhostWall::ADBoundaryFlux3EqnGhostWall(const InputParameters & parameters) 27 758 : : ADBoundaryFlux3EqnGhostBase(parameters) 28 : { 29 758 : } 30 : 31 : std::vector<ADReal> 32 12282 : ADBoundaryFlux3EqnGhostWall::getGhostCellSolution(const std::vector<ADReal> & U1, 33 : const Point & /*point*/) const 34 : { 35 12282 : std::vector<ADReal> U_ghost = U1; 36 12282 : U_ghost[THMVACE1D::RHOUA] = -U1[THMVACE1D::RHOUA]; 37 : 38 12282 : return U_ghost; 39 0 : }