LCOV - code coverage report
Current view: top level - src/ics - SCMQuadFlowAreaIC.C (source / functions) Hit Total Coverage
Test: idaholab/moose subchannel: #32971 (54bef8) with base c6cf66 Lines: 9 10 90.0 %
Date: 2026-05-29 20:40:47 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 "SCMQuadFlowAreaIC.h"
      11             : 
      12             : #include "QuadSubChannelMesh.h"
      13             : 
      14             : registerMooseObject("SubChannelApp", SCMQuadFlowAreaIC);
      15             : 
      16             : InputParameters
      17         315 : SCMQuadFlowAreaIC::validParams()
      18             : {
      19         315 :   InputParameters params = QuadSubChannelBaseIC::validParams();
      20         315 :   params.addClassDescription(
      21             :       "Computes subchannel flow area in the square lattice subchannel arrangement");
      22         315 :   return params;
      23           0 : }
      24             : 
      25         164 : SCMQuadFlowAreaIC::SCMQuadFlowAreaIC(const InputParameters & params) : QuadSubChannelBaseIC(params)
      26             : {
      27         164 : }
      28             : 
      29             : Real
      30       50474 : SCMQuadFlowAreaIC::value(const Point & p)
      31             : {
      32       50474 :   auto i = _mesh.getSubchannelIndexFromPoint(p);
      33       50474 :   return _mesh.getSubchannelFlowArea(i, p(2));
      34             : }

Generated by: LCOV version 1.14