https://mooseframework.inl.gov
SCMDetailedQuadAssemblyMeshGenerator.h
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 #pragma once
11 
12 #include "MeshGenerator.h"
13 #include "SubChannelEnums.h"
14 
19 {
20 public:
22  virtual std::unique_ptr<MeshBase> generate() override;
23 
24 protected:
26  EChannelType getSubchannelType(unsigned int index) const { return _subch_type[index]; }
27 
29  void generatePin(std::unique_ptr<MeshBase> & mesh_base, const Point & center);
30 
38  std::vector<Real> _z_grid;
40  const Real _pitch;
44  const unsigned int _n_cells;
46  const unsigned int _nx;
48  const unsigned int _ny;
50  unsigned int _n_channels;
56  const Real _side_gap;
58  const unsigned int _num_sectors;
60  const unsigned int _subchannel_block_id;
62  const unsigned int _pin_block_id;
64  std::vector<EChannelType> _subch_type;
66  std::vector<std::vector<Real>> _subchannel_position;
69 
70 public:
72 };
const unsigned int _n_cells
Number of cells in the axial direction.
SCMDetailedQuadAssemblyMeshGenerator(const InputParameters &parameters)
const InputParameters & parameters() const
const Real _unheated_length_entry
unheated length of the fuel Pin at the entry of the assembly
const unsigned int _subchannel_block_id
Subchannel subdomain ID.
const unsigned int _pin_block_id
Pin subdomain ID.
virtual std::unique_ptr< MeshBase > generate() override
std::vector< Real > _z_grid
axial location of nodes
dof_id_type _elem_id
Counter for element numbering.
const Real _pitch
Distance between the neighbor fuel pins, pitch.
std::vector< EChannelType > _subch_type
Subchannel type.
Mesh generator that builds a detailed 3D mesh representing quadrilateral subchannels and pins...
EChannelType
Enum for describing the center, edge and corner subchannels or gap types.
const unsigned int _nx
Number of subchannels in the x direction.
const Real _side_gap
The side gap, not to be confused with the gap between pins, this refers to the gap next to the duct o...
const unsigned int _num_sectors
Number of azimuthal sectors used to discretize each circular pin cross section.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const Real _heated_length
heated length of the fuel Pin
unsigned int _n_channels
Total number of subchannels.
void generatePin(std::unique_ptr< MeshBase > &mesh_base, const Point &center)
Generate one detailed fuel pin volume centered at the supplied point.
EChannelType getSubchannelType(unsigned int index) const
returns the type of the subchannel given the index
const Real _unheated_length_exit
unheated length of the fuel Pin at the exit of the assembly
const unsigned int _ny
Number of subchannels in the y direction.
std::vector< std::vector< Real > > _subchannel_position
x,y coordinates of the subchannel centroids
static const std::string center
Definition: NS.h:29
uint8_t dof_id_type