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 2477 : ADBoundaryFlux3EqnGhostWall::validParams() 17 : { 18 2477 : InputParameters params = ADBoundaryFlux3EqnGhostBase::validParams(); 19 : 20 2477 : params.addClassDescription( 21 : "Wall boundary conditions for the 1-D, 1-phase, variable-area Euler equations"); 22 : 23 2477 : return params; 24 0 : } 25 : 26 1362 : ADBoundaryFlux3EqnGhostWall::ADBoundaryFlux3EqnGhostWall(const InputParameters & parameters) 27 1362 : : ADBoundaryFlux3EqnGhostBase(parameters) 28 : { 29 1362 : } 30 : 31 : std::vector<ADReal> 32 17551 : ADBoundaryFlux3EqnGhostWall::getGhostCellSolution(const std::vector<ADReal> & U1) const 33 : { 34 17551 : std::vector<ADReal> U_ghost(THMVACE1D::N_FLUX_INPUTS); 35 17551 : U_ghost[THMVACE1D::RHOA] = U1[THMVACE1D::RHOA]; 36 17551 : U_ghost[THMVACE1D::RHOUA] = -U1[THMVACE1D::RHOUA]; 37 17551 : U_ghost[THMVACE1D::RHOEA] = U1[THMVACE1D::RHOEA]; 38 17551 : U_ghost[THMVACE1D::AREA] = U1[THMVACE1D::AREA]; 39 : 40 17551 : return U_ghost; 41 : }