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 "BoundaryFluxGasMixGhostWall.h" 11 : #include "THMIndicesGasMix.h" 12 : 13 : registerMooseObject("ThermalHydraulicsApp", BoundaryFluxGasMixGhostWall); 14 : 15 : InputParameters 16 82 : BoundaryFluxGasMixGhostWall::validParams() 17 : { 18 82 : InputParameters params = BoundaryFluxGasMixGhostBase::validParams(); 19 : 20 82 : params.addClassDescription("Wall boundary flux for FlowModelGasMix."); 21 : 22 82 : return params; 23 0 : } 24 : 25 44 : BoundaryFluxGasMixGhostWall::BoundaryFluxGasMixGhostWall(const InputParameters & parameters) 26 44 : : BoundaryFluxGasMixGhostBase(parameters) 27 : { 28 44 : } 29 : 30 : std::vector<ADReal> 31 460 : BoundaryFluxGasMixGhostWall::getGhostCellSolution(const std::vector<ADReal> & U1) const 32 : { 33 460 : std::vector<ADReal> U_ghost(THMGasMix1D::N_FLUX_INPUTS); 34 460 : U_ghost[THMGasMix1D::XIRHOA] = U1[THMGasMix1D::XIRHOA]; 35 460 : U_ghost[THMGasMix1D::RHOA] = U1[THMGasMix1D::RHOA]; 36 460 : U_ghost[THMGasMix1D::RHOUA] = -U1[THMGasMix1D::RHOUA]; 37 460 : U_ghost[THMGasMix1D::RHOEA] = U1[THMGasMix1D::RHOEA]; 38 460 : U_ghost[THMGasMix1D::AREA] = U1[THMGasMix1D::AREA]; 39 : 40 460 : return U_ghost; 41 : }