27 std::unique_ptr<MeshBase>
generate()
override;
40 virtual bool overlap(
unsigned int input_a,
unsigned int input_b,
const Point & offset)
const = 0;
45 const std::vector<std::unique_ptr<MeshBase> *>
_meshes;
47 const std::vector<std::vector<int>> &
_pattern;
const InputParameters & parameters() const
Base class for mesh generators that place SCM assembly meshes on a core lattice and merge them into o...
const Real _assembly_pitch
Center-to-center distance between neighboring assembly positions [m].
virtual bool overlap(unsigned int input_a, unsigned int input_b, const Point &offset) const =0
Whether the ducts of two inputs overlap when their centers are offset apart.
static InputParameters validParams()
const std::vector< std::vector< int > > & _pattern
Core pattern of indices into the inputs; -1 marks an empty position.
virtual void readAssemblySizes()=0
Read the duct size metadata of every input.
std::vector< std::pair< unsigned int, Point > > _assemblies
Placed assemblies in pattern order: (index into the inputs, x-y center of the assembly)
std::unique_ptr< MeshBase > generate() override
void addAssembly(int entry, const Point ¢er)
Check that a pattern entry is -1 or a valid input index and, if it is an index, place that input at c...
const std::vector< MeshGeneratorName > & _input_names
Names of the input SCM 1D assembly, duct, or 3D visualization assembly mesh generators.
const std::vector< std::unique_ptr< MeshBase > * > _meshes
Input meshes.