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.
|
This is a experimental process factory utility. More...
#include <process_factory_utility.h>
Public Member Functions | |
Life Cycle | |
ProcessFactoryUtility ()=default | |
Default constructors. More... | |
ProcessFactoryUtility (ListType &ProcessesList) | |
Constructor using a list of processes. More... | |
ProcessFactoryUtility (ObjectType &rProcess) | |
Constructor using just one process. More... | |
virtual | ~ProcessFactoryUtility ()=default |
Destructor. More... | |
Operators | |
ProcessFactoryUtility & | operator= (ProcessFactoryUtility const &rOther)=default |
Assignment operator. More... | |
Operations | |
void | AddProcess (ObjectType &rProcess) |
It add new process to the existing process list. More... | |
void | AddProcesses (ListType &ProcessesList) |
It add new processes to the existing process list. More... | |
void | ExecuteMethod (const std::string &rNameMethod) |
It executes the method considered in the input. More... | |
void | ExecuteInitialize () |
It executes the ExecuteInitialize() from the list of processes. More... | |
void | ExecuteBeforeSolutionLoop () |
It executes the ExecuteBeforeSolutionLoop() from the list of processes. More... | |
void | ExecuteInitializeSolutionStep () |
It executes the ExecuteInitializeSolutionStep() from the list of processes. More... | |
void | ExecuteFinalizeSolutionStep () |
It executes the ExecuteFinalizeSolutionStep() from the list of processes. More... | |
void | ExecuteBeforeOutputStep () |
It executes the ExecuteBeforeOutputStep() from the list of processes. More... | |
void | ExecuteAfterOutputStep () |
It executes the ExecuteAfterOutputStep() from the list of processes. More... | |
void | ExecuteFinalize () |
It executes the ExecuteFinalize() from the list of processes. More... | |
void | IsOutputStep () |
It executes the IsOutputStep() from the list of processes. More... | |
void | PrintOutput () |
It executes the PrintOutput() from the list of processes. More... | |
void | Clear () |
It executes the Clear() from the list of processes. 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... | |
Type Definitions | |
using | ObjectType = pybind11::object |
The object type in python. More... | |
using | ListType = pybind11::list |
The list [] of python. More... | |
KRATOS_CLASS_POINTER_DEFINITION (ProcessFactoryUtility) | |
Counted pointer of ProcessFactoryUtility. More... | |
Serialization | |
class | Serializer |
This is a experimental process factory utility.
This class is used in order to interoperate between c++ and python
using Kratos::ProcessFactoryUtility::ListType = pybind11::list |
The list [] of python.
using Kratos::ProcessFactoryUtility::ObjectType = pybind11::object |
The object type in python.
|
default |
Default constructors.
Kratos::ProcessFactoryUtility::ProcessFactoryUtility | ( | ListType & | ProcessesList | ) |
Constructor using a list of processes.
ProcessesList | List of processes that will be used to build the vector of processes |
Kratos::ProcessFactoryUtility::ProcessFactoryUtility | ( | ObjectType & | rProcess | ) |
Constructor using just one process.
rProcess | The process that will be added at the begining of the vector of processes |
|
virtualdefault |
Destructor.
void Kratos::ProcessFactoryUtility::AddProcess | ( | ObjectType & | rProcess | ) |
It add new process to the existing process list.
rProcess | The process that will be appended at the vector of processes |
void Kratos::ProcessFactoryUtility::AddProcesses | ( | ListType & | ProcessesList | ) |
It add new processes to the existing process list.
ProcessesList | List of processes that will be appended the vector of processes |
void Kratos::ProcessFactoryUtility::Clear | ( | ) |
It executes the Clear() from the list of processes.
void Kratos::ProcessFactoryUtility::ExecuteAfterOutputStep | ( | ) |
It executes the ExecuteAfterOutputStep() from the list of processes.
void Kratos::ProcessFactoryUtility::ExecuteBeforeOutputStep | ( | ) |
It executes the ExecuteBeforeOutputStep() from the list of processes.
void Kratos::ProcessFactoryUtility::ExecuteBeforeSolutionLoop | ( | ) |
It executes the ExecuteBeforeSolutionLoop() from the list of processes.
void Kratos::ProcessFactoryUtility::ExecuteFinalize | ( | ) |
It executes the ExecuteFinalize() from the list of processes.
void Kratos::ProcessFactoryUtility::ExecuteFinalizeSolutionStep | ( | ) |
It executes the ExecuteFinalizeSolutionStep() from the list of processes.
void Kratos::ProcessFactoryUtility::ExecuteInitialize | ( | ) |
It executes the ExecuteInitialize() from the list of processes.
void Kratos::ProcessFactoryUtility::ExecuteInitializeSolutionStep | ( | ) |
It executes the ExecuteInitializeSolutionStep() from the list of processes.
void Kratos::ProcessFactoryUtility::ExecuteMethod | ( | const std::string & | rNameMethod | ) |
It executes the method considered in the input.
rNameMethod | The method to be executed |
|
inlinevirtual |
Turn back information as a string.
void Kratos::ProcessFactoryUtility::IsOutputStep | ( | ) |
It executes the IsOutputStep() from the list of processes.
Kratos::ProcessFactoryUtility::KRATOS_CLASS_POINTER_DEFINITION | ( | ProcessFactoryUtility | ) |
Counted pointer of ProcessFactoryUtility.
|
default |
Assignment operator.
|
inlinevirtual |
Print object's data.
|
inlinevirtual |
Print information about this object.
void Kratos::ProcessFactoryUtility::PrintOutput | ( | ) |
It executes the PrintOutput() from the list of processes.
|
friend |