www.mooseframework.org
ParsedSubdomainMeshModifier.h
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
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 // MOOSE includes
13 #include "MeshModifier.h"
14 #include "FunctionParserUtils.h"
15 
16 // Forward declerations
18 
19 template <>
21 
26 {
27 public:
33 
34  virtual void modify() override;
35 
36 private:
38  const std::string _function;
39 
42 
44  const std::vector<SubdomainID> _excluded_ids;
45 
48 };
49 
const SubdomainID _block_id
Block ID to assign to the region.
virtual void modify() override
Pure virtual modify function MUST be overridden by children classes.
MeshModifiers are objects that can modify or add to an existing mesh.
Definition: MeshModifier.h:25
ADFunctionPtr _func_F
function parser object describing the combinatorial geometry
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
std::shared_ptr< ADFunction > ADFunctionPtr
Shorthand for an smart pointer to an autodiff function parser object.
const InputParameters & parameters() const
Get the parameters of the object.
Definition: MooseObject.h:65
subdomain_id_type SubdomainID
const std::vector< SubdomainID > _excluded_ids
A list of excluded subdomain ids that will not be changed even if they are in the combinatorial geome...
InputParameters validParams< ParsedSubdomainMeshModifier >()
MeshModifier for defining a Subdomain inside or outside of combinatorial geometry.
ParsedSubdomainMeshModifier(const InputParameters &parameters)
Class constructor.
const std::string _function
function expression