LCOV - code coverage report
Current view: top level - src/userobjects - BoundaryFluxGasMixGhostWall.C (source / functions) Hit Total Coverage
Test: idaholab/moose thermal_hydraulics: #32971 (54bef8) with base c6cf66 Lines: 15 17 88.2 %
Date: 2026-05-29 20:41:18 Functions: 3 3 100.0 %
Legend: Lines: hit not hit

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

Generated by: LCOV version 1.14