https://mooseframework.inl.gov
CartesianIDPatternedMeshGenerator.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 "PatternedMeshGenerator.h"
14 #include "libmesh/replicated_mesh.h"
15 
20 {
21 public:
23 
25 
26  std::unique_ptr<MeshBase> generate() override;
27 
28 protected:
30  const std::string _element_id_name;
34  const bool _use_exclude_id;
36  std::vector<bool> _exclude_ids;
38  std::vector<std::vector<dof_id_type>> _id_pattern;
39 };
std::vector< bool > _exclude_ids
flag to indicate if exclude_id is used for each input
AssignType
Enum item for reporting id assign types.
Generates patterned Cartesian meshes with a reporting ID.
CartesianIDPatternedMeshGenerator(const InputParameters &parameters)
std::unique_ptr< MeshBase > generate() override
const bool _use_exclude_id
flag to indicate if exclude_id is defined
const ReportingIDGeneratorUtils::AssignType _assign_type
integer ID assignment type
const InputParameters & parameters() const
std::vector< std::vector< dof_id_type > > _id_pattern
hold integer ID for each input pattern cell
const std::string _element_id_name
name of integer ID.