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

Generated by: LCOV version 1.14