www.mooseframework.org
SetupMeshAction.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 #include "MooseObjectAction.h"
13 
14 class MooseMesh;
15 
17 {
18 public:
20 
21  SetupMeshAction(const InputParameters & params);
22 
23  virtual void act() override;
24 
25 private:
26  void setupMesh(MooseMesh * mesh);
27 
32  std::string modifyParamsForUseSplit(InputParameters & moose_object_params) const;
33 
35  const bool _use_split;
37  const std::string _split_file;
38 };
const std::string _split_file
The split mesh file (if any); comes from either Mesh/split_file or –split-file.
virtual void act() override
Method to add objects to the simulation or perform other setup tasks.
static InputParameters validParams()
MeshBase & mesh
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
MooseMesh wraps a libMesh::Mesh object and enhances its capabilities by caching additional data and s...
Definition: MooseMesh.h:88
std::string modifyParamsForUseSplit(InputParameters &moose_object_params) const
Modifies the MooseObject's parameters to build the right type of Mesh when using splits.
SetupMeshAction(const InputParameters &params)
void setupMesh(MooseMesh *mesh)
const bool _use_split
Whether or not to use a split mesh; comes from either Mesh/use_split or –use-split.