LCOV - code coverage report
Current view: top level - src/ics - SCMQuadWettedPerimIC.C (source / functions) Hit Total Coverage
Test: idaholab/moose subchannel: #33187 (5aa0b2) with base d7c4bd Lines: 10 11 90.9 %
Date: 2026-06-30 12:24:57 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 "SCMQuadWettedPerimIC.h"
      11             : #include "QuadSubChannelMesh.h"
      12             : 
      13             : registerMooseObject("SubChannelApp", SCMQuadWettedPerimIC);
      14             : 
      15             : InputParameters
      16         277 : SCMQuadWettedPerimIC::validParams()
      17             : {
      18         277 :   InputParameters params = QuadSubChannelBaseIC::validParams();
      19         277 :   params.addClassDescription(
      20             :       "Computes wetted perimeter of subchannels in a square lattice arrangement");
      21         277 :   return params;
      22           0 : }
      23             : 
      24         143 : SCMQuadWettedPerimIC::SCMQuadWettedPerimIC(const InputParameters & params)
      25         143 :   : QuadSubChannelBaseIC(params)
      26             : {
      27         143 : }
      28             : 
      29             : Real
      30       47914 : SCMQuadWettedPerimIC::value(const Point & p)
      31             : {
      32       47914 :   auto i = _mesh.getSubchannelIndexFromPoint(p);
      33       47914 :   return _mesh.getSubchannelWettedPerimeter(i);
      34             : }

Generated by: LCOV version 1.14