https://mooseframework.inl.gov
SCMTriFlowAreaIC.C
Go to the documentation of this file.
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 
17 {
19  params.addClassDescription(
20  "Computes flow area of subchannels in a triangular lattice arrangement");
21  return params;
22 }
23 
25 
26 Real
27 SCMTriFlowAreaIC::value(const Point & p)
28 {
30  return _mesh.getSubchannelFlowArea(i, p(2));
31 }
Real value(const Point &p) override
unsigned int getSubchannelIndexFromPoint(const Point &p) const override
Return a subchannel index for a given physical point p
This class calculates the area of the triangular, edge, and corner subchannels for hexagonal fuel ass...
SCMTriFlowAreaIC(const InputParameters &params)
static InputParameters validParams()
An abstract class for ICs for hexagonal fuel assemblies.
registerMooseObject("SubChannelApp", SCMTriFlowAreaIC)
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const Real p
const TriSubChannelMesh & _mesh
static InputParameters validParams()
void addClassDescription(const std::string &doc_string)
Real getSubchannelFlowArea(unsigned int i_chan, Real z) const override
Return undeformed flow area for a subchannel at an axial location, including any blockage reduction...