https://mooseframework.inl.gov
Loading...
Searching...
No Matches
THMActionComponent.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 "ActionComponent.h"
13#include "THMProblem.h"
14
15#define registerTHMActionComponentTasks(app_name, derived_name) \
16 registerMooseAction(app_name, derived_name, "THM:add_component"); \
17 registerMooseAction(app_name, derived_name, "THM:add_closures"); \
18 registerMooseAction(app_name, derived_name, "THM:add_control_logic")
19
24{
25public:
27 THMActionComponent(const InputParameters & params);
28
29protected:
30 virtual void actOnAdditionalTasks() override;
31 virtual void addTHMComponents() {}
32 virtual void addClosures() {}
33 virtual void addControlLogic() {}
34
36 void addTHMComponent(const std::string & class_name,
37 const std::string & obj_name,
38 InputParameters & params);
40 void addClosuresObject(const std::string & class_name,
41 const std::string & obj_name,
42 InputParameters & params);
44 void addControlLogicObject(const std::string & class_name,
45 const std::string & obj_name,
46 InputParameters & params);
47
50};
Base class for ActionComponents that build THM components.
virtual void addControlLogic()
static InputParameters validParams()
void addClosuresObject(const std::string &class_name, const std::string &obj_name, InputParameters &params)
Adds a Closures object.
void addControlLogicObject(const std::string &class_name, const std::string &obj_name, InputParameters &params)
Adds a ControlLogic object.
void addTHMComponent(const std::string &class_name, const std::string &obj_name, InputParameters &params)
Adds a THM component.
virtual void actOnAdditionalTasks() override
virtual void addTHMComponents()
virtual void addClosures()
THMProblem & getTHMProblem()
Gets the THM problem.
Specialization of FEProblem to run with component subsystem.
Definition THMProblem.h:19