KratosMultiphysics
KRATOS Multiphysics (Kratos) is a framework for building parallel, multi-disciplinary simulation software, aiming at modularity, extensibility, and high performance. Kratos is written in C++, and counts with an extensive Python interface.
|
The base class for all Controllers in Kratos. More...
#include <controller.h>
Public Member Functions | |
Type Definitions | |
KRATOS_CLASS_POINTER_DEFINITION (Controller) | |
Pointer definition of Controller. More... | |
Life Cycle | |
Controller () noexcept=default | |
Default constructor. More... | |
virtual | ~Controller ()=default |
Destructor. More... | |
Controller (Controller const &rOther)=default | |
Copy constructor. More... | |
Controller (Controller &&rOther) noexcept=default | |
Move constructor. More... | |
Operators | |
Controller & | operator= (Controller const &rOther)=delete |
Assignment operator. More... | |
Operations | |
virtual Controller::Pointer | Create (Model &rModel, Parameters ThisParameters) const =0 |
This method creates an pointer of the controller. More... | |
virtual int | Check () const |
Checks that input conditions are correct. More... | |
virtual bool | Evaluate () const =0 |
Using input data, returns bool. More... | |
virtual void | Update () |
Update the controller parameters. More... | |
virtual Parameters | GetDefaultParameters () const |
This method provides the defaults parameters to avoid conflicts between the different constructors. More... | |
Input and output | |
virtual std::string | Info () const |
Turn back information as a string. More... | |
virtual void | PrintInfo (std::ostream &rOStream) const |
Print information about this object. More... | |
virtual void | PrintData (std::ostream &rOStream) const |
Print object's data. More... | |
The base class for all Controllers in Kratos.
Controller is the base class for all controllers and defines the interface for them. Each class must define their own Evaluate method. Controller parameters must be passed at construction time.
|
defaultnoexcept |
Default constructor.
|
virtualdefault |
Destructor.
|
default |
Copy constructor.
|
defaultnoexcept |
Move constructor.
|
inlinevirtual |
Checks that input conditions are correct.
Reimplemented in Kratos::OutputController.
|
pure virtual |
This method creates an pointer of the controller.
We consider as input, a Model and a set of Parameters for the sake of generality
rModel | The model to be considered |
ThisParameters | The configuration parameters |
Implemented in Kratos::Python::ControllerTrampoline, and Kratos::OutputController.
|
pure virtual |
Using input data, returns bool.
Implemented in Kratos::Python::ControllerTrampoline, and Kratos::OutputController.
|
inlinevirtual |
This method provides the defaults parameters to avoid conflicts between the different constructors.
Reimplemented in Kratos::OutputController.
|
inlinevirtual |
Turn back information as a string.
Reimplemented in Kratos::OutputController.
Kratos::Controller::KRATOS_CLASS_POINTER_DEFINITION | ( | Controller | ) |
Pointer definition of Controller.
|
delete |
Assignment operator.
|
inlinevirtual |
Print object's data.
Reimplemented in Kratos::OutputController.
|
inlinevirtual |
Print information about this object.
Reimplemented in Kratos::OutputController.
|
inlinevirtual |
Update the controller parameters.
Reimplemented in Kratos::OutputController.