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 : }