https://mooseframework.inl.gov
Loading...
Searching...
No Matches
SubdomainExtraElementIDGenerator.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
15{
16public:
19
20 virtual std::unique_ptr<MeshBase> generate() override;
21
22protected:
24 std::unique_ptr<MeshBase> & _input;
26 const std::vector<SubdomainName> & _subdomain_names;
28 const std::vector<std::string> & _id_names;
30 const std::vector<std::vector<dof_id_type>> & _ids;
32 const std::vector<dof_id_type> * const _defaults;
33};
const InputParameters & parameters() const
virtual std::unique_ptr< MeshBase > generate() override
const std::vector< dof_id_type > *const _defaults
The default IDs from input, if any.
const std::vector< SubdomainName > & _subdomain_names
subdomains that are to be assigned with element IDs
const std::vector< std::vector< dof_id_type > > & _ids
The IDs from input.
std::unique_ptr< MeshBase > & _input
input mesh for adding element IDs
const std::vector< std::string > & _id_names
The names for each ID from input.