Line data Source code
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 "MooseEnum.h" 14 : 15 : /** 16 : * A class to store mesh information that is globally applicable to a reactor. 17 : */ 18 : class ReactorMeshParams : public MeshGenerator 19 : { 20 : public: 21 : static InputParameters validParams(); 22 : 23 : ReactorMeshParams(const InputParameters & parameters); 24 : 25 : std::unique_ptr<MeshBase> generate() override; 26 : 27 : std::unique_ptr<CSG::CSGBase> generateCSG() override; 28 : 29 543 : void generateData() override{}; 30 : 31 : protected: 32 : /// The number of dimension in the mesh 33 : const MooseEnum _dim; 34 : 35 : /// The geometry type for the reactor 36 : const MooseEnum _geom; 37 : 38 : /// The the flat-to-flat size of assemblies in the reactor. 39 : const Real _assembly_pitch; 40 : 41 : ///The heights of the axial regions. 42 : std::vector<Real> _axial_regions; 43 : 44 : ///The number of mesh divisions in each axial region. 45 : std::vector<unsigned int> _axial_mesh_intervals; 46 : 47 : ///Boundary id assigned to top boundary of extruded mesh. 48 : boundary_id_type _top_boundary; 49 : 50 : ///Boundary id assigned to bottom boundary of extruded mesh. 51 : boundary_id_type _bottom_boundary; 52 : 53 : ///Boundary id assigned to outer radial boundary of core mesh. 54 : boundary_id_type _radial_boundary; 55 : };