https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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{
20public:
22 virtual std::unique_ptr<MeshBase> generate() override;
23
24protected:
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
34 const Real _heated_length;
38 std::vector<Real> _z_grid;
40 const Real _pitch;
42 const Real _pin_diameter;
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;
68 dof_id_type _elem_id;
69
70public:
72};
EChannelType
Enum for describing the center, edge and corner subchannels or gap types.
const InputParameters & parameters() const
Mesh generator that builds a detailed 3D mesh representing quadrilateral subchannels and pins.
std::vector< std::vector< Real > > _subchannel_position
x,y coordinates of the subchannel centroids
const Real _unheated_length_entry
unheated length of the fuel Pin at the entry of the assembly
const Real _heated_length
heated length of the fuel Pin
const unsigned int _nx
Number of subchannels in the x direction.
const Real _pitch
Distance between the neighbor fuel pins, pitch.
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...
unsigned int _n_channels
Total number of subchannels.
virtual std::unique_ptr< MeshBase > generate() override
EChannelType getSubchannelType(unsigned int index) const
returns the type of the subchannel given the index
const unsigned int _num_sectors
Number of azimuthal sectors used to discretize each circular pin cross section.
const unsigned int _ny
Number of subchannels in the y direction.
void generatePin(std::unique_ptr< MeshBase > &mesh_base, const Point &center)
Generate one detailed fuel pin volume centered at the supplied point.
std::vector< Real > _z_grid
axial location of nodes
const unsigned int _n_cells
Number of cells in the axial direction.
dof_id_type _elem_id
Counter for element numbering.
const unsigned int _subchannel_block_id
Subchannel subdomain ID.
std::vector< EChannelType > _subch_type
Subchannel type.
const Real _unheated_length_exit
unheated length of the fuel Pin at the exit of the assembly