https://mooseframework.inl.gov
QuadInterWrapperWettedPerimIC.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 
11 #include "QuadInterWrapperMesh.h"
12 #include "QuadSubChannelBaseIC.h"
13 
15 
18 {
20  params.addClassDescription("Computes wetted perimeter of inter-wrapper cells in the square "
21  "lattice subchannel arrangement");
22  return params;
23 }
24 
26  : QuadInterWrapperBaseIC(params)
27 {
28 }
29 
30 Real
32 {
33  auto side_x = _mesh.getSideX();
34  auto side_y = _mesh.getSideY();
35  auto square_perimeter = 2.0 * side_x + 2.0 * side_y;
37  auto subch_type = _mesh.getSubchannelType(i);
38 
39  if (subch_type == EChannelType::CORNER)
40  // Need to consider specific side - will add later
41  return 0.25 * square_perimeter;
42  else if (subch_type == EChannelType::EDGE)
43  // Need to consider specific side - will add later
44  return 0.75 * square_perimeter;
45  else
46  return square_perimeter;
47 }
QuadInterWrapperWettedPerimIC(const InputParameters &params)
virtual const Real & getSideX() const
Return side lengths of the assembly.
Real value(const Point &p) override
virtual EChannelType getSubchannelType(unsigned int index) const override
Return the type of the inter-wrapper for given inter-wrapper index.
Sets the wetted perimeter of the quadrilater inter-wrapper flow channel.
virtual const Real & getSideY() const
static InputParameters validParams()
unsigned int getSubchannelIndexFromPoint(const Point &p) const override
Return a inter-wrapper index for a given physical point p
const QuadInterWrapperMesh & _mesh
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
void addClassDescription(const std::string &doc_string)
registerMooseObject("SubChannelApp", QuadInterWrapperWettedPerimIC)
An abstract class for ICs for quadrilateral subchannels.