LCOV - code coverage report
Current view: top level - src/ics - SCMTriFlowAreaIC.C (source / functions) Hit Total Coverage
Test: idaholab/moose subchannel: #32971 (54bef8) with base c6cf66 Lines: 8 9 88.9 %
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 "SCMTriFlowAreaIC.h"
      11             : #include "TriSubChannelMesh.h"
      12             : 
      13             : registerMooseObject("SubChannelApp", SCMTriFlowAreaIC);
      14             : 
      15             : InputParameters
      16         355 : SCMTriFlowAreaIC::validParams()
      17             : {
      18         355 :   InputParameters params = TriSubChannelBaseIC::validParams();
      19         355 :   params.addClassDescription(
      20             :       "Computes flow area of subchannels in a triangular lattice arrangement");
      21         355 :   return params;
      22           0 : }
      23             : 
      24         190 : SCMTriFlowAreaIC::SCMTriFlowAreaIC(const InputParameters & params) : TriSubChannelBaseIC(params) {}
      25             : 
      26             : Real
      27      467520 : SCMTriFlowAreaIC::value(const Point & p)
      28             : {
      29      467520 :   auto i = _mesh.getSubchannelIndexFromPoint(p);
      30      467520 :   return _mesh.getSubchannelFlowArea(i, p(2));
      31             : }

Generated by: LCOV version 1.14