https://mooseframework.inl.gov
Loading...
Searching...
No Matches
SCMQuadVisualizationAssemblyMeshGenerator.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
20{
21public:
23 virtual std::unique_ptr<MeshBase> generate() override;
24
25protected:
27 EChannelType getSubchannelType(unsigned int index) const { return _subch_type[index]; }
28
30 void generatePin(std::unique_ptr<MeshBase> & mesh_base, const Point & center);
31
35 const Real _heated_length;
39 std::vector<Real> _z_grid;
41 const Real _pitch;
43 const Real _pin_diameter;
45 const unsigned int _n_cells;
47 const unsigned int _nx;
49 const unsigned int _ny;
51 unsigned int _n_channels;
57 const Real _side_gap;
59 const unsigned int _num_sectors;
61 const unsigned int _subchannel_block_id;
63 const unsigned int _pin_block_id;
65 std::vector<EChannelType> _subch_type;
67 std::vector<std::vector<Real>> _subchannel_position;
69 dof_id_type _elem_id;
70
71public:
73};
EChannelType
Enum for describing the center, edge and corner subchannels or gap types.
const InputParameters & parameters() const
Mesh generator that builds a 3D visualization mesh representing quadrilateral subchannels and pins.
std::vector< std::vector< Real > > _subchannel_position
x,y coordinates of the subchannel centroids
const unsigned int _ny
Number of subchannels in the y direction.
const Real _unheated_length_exit
unheated length of the fuel Pin at the exit of the assembly
const Real _pitch
Distance between the neighbor fuel pins, pitch.
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 Real _unheated_length_entry
unheated length of the fuel Pin at the entry of the assembly
EChannelType getSubchannelType(unsigned int index) const
returns the type of the subchannel given the index
const unsigned int _n_cells
Number of cells in the axial direction.
const unsigned int _num_sectors
Number of azimuthal sectors used to discretize each circular pin cross section.
void generatePin(std::unique_ptr< MeshBase > &mesh_base, const Point &center)
Generate one detailed fuel pin volume centered at the supplied point.
const unsigned int _subchannel_block_id
Subchannel subdomain ID.
virtual std::unique_ptr< MeshBase > generate() override