https://mooseframework.inl.gov
include
meshgenerators
UniqueExtraIDMeshGenerator.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
"
16
class
UniqueExtraIDMeshGenerator
:
public
MeshGenerator
17
{
18
public
:
19
static
InputParameters
validParams
();
20
UniqueExtraIDMeshGenerator
(
const
InputParameters
&
parameters
);
21
22
virtual
std::unique_ptr<MeshBase>
generate
()
override
;
23
24
protected
:
26
std::unique_ptr<MeshBase> &
_input
;
28
const
std::vector<ExtraElementIDName>
_extra_ids
;
30
const
bool
_use_new_id_rule
;
32
const
bool
_has_restriction
;
33
};
UniqueExtraIDMeshGenerator::_extra_ids
const std::vector< ExtraElementIDName > _extra_ids
existing extra ID names to be used for adding a new extra ID
Definition:
UniqueExtraIDMeshGenerator.h:28
UniqueExtraIDMeshGenerator::_input
std::unique_ptr< MeshBase > & _input
input mesh for adding element IDs
Definition:
UniqueExtraIDMeshGenerator.h:26
InputParameters
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
Definition:
InputParameters.h:66
UniqueExtraIDMeshGenerator::validParams
static InputParameters validParams()
Definition:
UniqueExtraIDMeshGenerator.C:17
UniqueExtraIDMeshGenerator::generate
virtual std::unique_ptr< MeshBase > generate() override
Generate / modify the mesh.
Definition:
UniqueExtraIDMeshGenerator.C:52
UniqueExtraIDMeshGenerator::UniqueExtraIDMeshGenerator
UniqueExtraIDMeshGenerator(const InputParameters ¶meters)
Definition:
UniqueExtraIDMeshGenerator.C:38
UniqueExtraIDMeshGenerator::_use_new_id_rule
const bool _use_new_id_rule
lag to indicate if new_id_rule is defined
Definition:
UniqueExtraIDMeshGenerator.h:30
UniqueExtraIDMeshGenerator::_has_restriction
const bool _has_restriction
Whether or not we add the new extra ID for elements in certain subdomains.
Definition:
UniqueExtraIDMeshGenerator.h:32
MooseBaseParameterInterface::parameters
const InputParameters & parameters() const
Get the parameters of the object.
Definition:
MooseBaseParameterInterface.h:62
MeshGenerator
MeshGenerators are objects that can modify or add to an existing mesh.
Definition:
MeshGenerator.h:32
MeshGenerator.h
UniqueExtraIDMeshGenerator
Add a new extra ID by finding unique combinations of existing extra ID values.
Definition:
UniqueExtraIDMeshGenerator.h:16
Generated on Thu Jul 17 2025 01:32:07 for https://mooseframework.inl.gov by
1.8.14