https://mooseframework.inl.gov
Loading...
Searching...
No Matches
THMSetupMeshAction.C
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#include "THMSetupMeshAction.h"
11#include "THMProblem.h"
12
13registerMooseAction("ThermalHydraulicsApp", THMSetupMeshAction, "THM:setup_mesh");
14registerMooseAction("ThermalHydraulicsApp", THMSetupMeshAction, "init_mesh");
15
18{
20 return params;
21}
22
24
25void
27{
28 if (_current_task == "THM:setup_mesh")
29 {
30 THMProblem * thm_problem = dynamic_cast<THMProblem *>(_problem.get());
31 if (thm_problem)
32 thm_problem->setupMesh();
33 }
34 else if (_current_task == "init_mesh")
35 {
36 // Do not do anything; it is necessary to register an action to 'init_mesh'
37 // to bypass CreateMeshSetupActionsForComponents; see the return condition
38 // in its act() method.
39 }
40}
registerMooseAction("ThermalHydraulicsApp", THMSetupMeshAction, "THM:setup_mesh")
static InputParameters validParams()
std::shared_ptr< FEProblemBase > & _problem
const std::string & _current_task
virtual void setupMesh()
Perform mesh setup actions such as setting up the coordinate system(s) and creating ghosted elements.
Definition Simulation.C:798
Specialization of FEProblem to run with component subsystem.
Definition THMProblem.h:19
THMSetupMeshAction(const InputParameters &params)
static InputParameters validParams()