https://mooseframework.inl.gov
SCMTriInterWrapperMeshGenerator.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 
23  std::unique_ptr<MeshBase> generate() override;
24 
25 protected:
33  const Real & _kij;
35  std::vector<Real> _z_grid;
37  std::vector<std::vector<Real>> _k_grid;
41  const unsigned int _n_cells;
43  const unsigned int _n_rings;
45  unsigned int _n_channels;
52  const bool _tight_side_bypass;
53 
55  std::vector<std::vector<Node *>> _nodes;
57  std::vector<std::pair<unsigned int, unsigned int>> _gap_to_chan_map;
59  std::vector<std::pair<unsigned int, unsigned int>> _gap_to_pin_map;
61  std::vector<std::vector<unsigned int>> _chan_to_gap_map;
66  std::vector<std::vector<Real>> _sign_id_crossflow_map;
68  std::vector<Real> _gij_map;
70  std::vector<std::vector<Real>> _subchannel_position;
72  std::vector<Point> _pin_position;
74  std::vector<std::vector<Real>> _pins_in_rings;
76  std::vector<std::vector<unsigned int>> _chan_to_pin_map;
78  unsigned int _n_assemblies;
80  unsigned int _n_gaps;
82  std::vector<EChannelType> _subch_type;
84  std::vector<EChannelType> _gap_type;
86  std::vector<std::pair<unsigned int, unsigned int>> _gap_pairs_sf;
88  std::vector<std::pair<unsigned int, unsigned int>> _chan_pairs_sf;
89 
90 public:
92 };
Mesh class for triangular, edge and corner subchannels for hexagonal lattice fuel assemblies...
std::vector< std::pair< unsigned int, unsigned int > > _chan_pairs_sf
sweeping flow model channel pairs to specify directional edge flow
unsigned int _n_assemblies
number of assemblies
const Real & _kij
Lateral form loss coefficient.
const Real _flat_to_flat
the distance between flat surfaces of the duct facing each other
const Real _unheated_length_exit
unheated length of the fuel Pin at the exit of the assembly
std::vector< std::pair< unsigned int, unsigned int > > _gap_to_chan_map
stores the channel pairs for each gap
std::vector< Real > _z_grid
axial location of nodes
std::vector< std::vector< Node * > > _nodes
nodes
const Real _assembly_pitch
Distance between the neighbor fuel pins, assembly_pitch.
std::vector< std::pair< unsigned int, unsigned int > > _gap_pairs_sf
sweeping flow model gap pairs per channel to specify directional edge flow
std::vector< std::vector< Real > > _pins_in_rings
fuel pins that are belonging to each ring
const unsigned int _n_rings
number of rings of fuel pins
std::vector< std::pair< unsigned int, unsigned int > > _gap_to_pin_map
stores the fuel pin pairs for each gap each gap
unsigned int _n_channels
number of subchannels
SCMTriInterWrapperMeshGenerator(const InputParameters &parameters)
const Real _duct_to_pin_gap
the gap thickness between the duct and peripheral fuel pins
const Real _unheated_length_entry
unheated length of the fuel Pin at the entry of the assembly
std::vector< std::vector< Real > > _sign_id_crossflow_map
Defines the global cross-flow direction -1 or 1 for each interstice and for all gaps that are belongi...
const unsigned int _n_cells
number of axial cells
const bool _tight_side_bypass
whether the side bypass shape follows the hexagonal shape of the assemblies TODO: add a picture in th...
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
std::vector< Point > _pin_position
x,y coordinates of the fuel pins
std::vector< std::vector< unsigned int > > _chan_to_gap_map
stores the gaps that forms each interstice
std::unique_ptr< MeshBase > generate() override
const InputParameters & parameters() const
std::vector< std::vector< Real > > _subchannel_position
x,y coordinates of the interstices
std::vector< std::vector< Real > > _k_grid
axial form loss coefficient per computational cell
std::vector< EChannelType > _subch_type
interstice type
std::vector< EChannelType > _gap_type
gap type
std::vector< std::vector< unsigned int > > _chan_to_pin_map
stores the fuel pins belonging to each interstice
const Real _heated_length
heated length of the fuel Pin