/
ParsedSubdomainMeshGenerator.h
48 lines (36 loc) · 1.36 KB
/
ParsedSubdomainMeshGenerator.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
//* This file is part of the MOOSE framework
//* https://www.mooseframework.org
//*
//* All rights reserved, see COPYRIGHT for full restrictions
//* https://github.com/idaholab/moose/blob/master/COPYRIGHT
//*
//* Licensed under LGPL 2.1, please see LICENSE for details
//* https://www.gnu.org/licenses/lgpl-2.1.html
#ifndef PARSEDSUBDOMAINMESHGENERATOR_H
#define PARSEDSUBDOMAINMESHGENERATOR_H
#include "MeshGenerator.h"
#include "FunctionParserUtils.h"
// Forward declarations
class ParsedSubdomainMeshGenerator;
template <>
InputParameters validParams<ParsedSubdomainMeshGenerator>();
/**
* MeshGenerator for defining a Subdomain inside or outside of combinatorial geometry
*/
class ParsedSubdomainMeshGenerator : public MeshGenerator, public FunctionParserUtils
{
public:
ParsedSubdomainMeshGenerator(const InputParameters & parameters);
std::unique_ptr<MeshBase> generate() override;
protected:
std::unique_ptr<MeshBase> & _input;
/// function expression
const std::string _function;
/// Block ID to assign to the region
const subdomain_id_type _block_id;
/// A list of excluded subdomain ids that will not be changed even if they are in the combinatorial geometry
const std::vector<subdomain_id_type> _excluded_ids;
/// function parser object describing the combinatorial geometry
ADFunctionPtr _func_F;
};
#endif // PARSEDSUBDOMAINMESHGENERATOR_H