https://mooseframework.inl.gov
SCMQuadWettedPerimIC.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 "SCMQuadWettedPerimIC.h"
11 #include "QuadSubChannelMesh.h"
12 
14 registerMooseObjectRenamed("SubChannelApp",
15  QuadWettedPerimIC,
16  "06/30/2025 24:00",
18 
21 {
23  params.addClassDescription(
24  "Computes wetted perimeter of subchannels in a square lattice arrangement");
25  return params;
26 }
27 
29  : QuadSubChannelBaseIC(params)
30 {
31 }
32 
33 Real
35 {
36  auto pitch = _mesh.getPitch();
37  auto pin_diameter = _mesh.getPinDiameter();
38  auto gap = _mesh.getGap();
39  auto rod_circumference = M_PI * pin_diameter;
41  auto subch_type = _mesh.getSubchannelType(i);
42 
43  if (subch_type == EChannelType::CORNER)
44  return 0.25 * rod_circumference + pitch + 2 * gap;
45  else if (subch_type == EChannelType::EDGE)
46  return 0.5 * rod_circumference + pitch;
47  else
48  return rod_circumference;
49 }
virtual const Real & getPinDiameter() const
Return Pin diameter.
static InputParameters validParams()
An abstract class for ICs for quadrilateral subchannels.
const QuadSubChannelMesh & _mesh
const Real & getGap() const
Returns the gap, not to be confused with the gap between pins, this refers to the gap next to the duc...
static InputParameters validParams()
registerMooseObjectRenamed("SubChannelApp", QuadWettedPerimIC, "06/30/2025 24:00", SCMQuadWettedPerimIC)
unsigned int getSubchannelIndexFromPoint(const Point &p) const override
Return a subchannel index for a given physical point p
static const std::string pitch
Real value(const Point &p) override
SCMQuadWettedPerimIC(const InputParameters &params)
Sets the wetted perimeter of the quadrilateral subchannel.
virtual const Real & getPitch() const override
Return the pitch between 2 subchannels.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
void addClassDescription(const std::string &doc_string)
registerMooseObject("SubChannelApp", SCMQuadWettedPerimIC)
virtual EChannelType getSubchannelType(unsigned int index) const override
Return the type of the subchannel for given subchannel index.