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 the main data holder for optimization problems. More...
Public Member Functions | |
None | __init__ (self, int echo_level=0) |
Creates an instance of Optimization info. More... | |
Any | GetComponentType (self, Union[ExecutionPolicy, ResponseFunction, Control] component) |
str | GetComponentName (self, Union[ExecutionPolicy, ResponseFunction, Control] component) |
None | AddComponent (self, Union[ExecutionPolicy, ResponseFunction, Control] component) |
ResponseFunction | GetResponse (self, str name) |
'list[ResponseFunction]' | GetListOfResponses (self) |
None | RemoveResponse (self, str name) |
ExecutionPolicy | GetExecutionPolicy (self, str name) |
'list[ExecutionPolicy]' | GetListOfExecutionPolicies (self) |
None | RemoveExecutionPolicy (self, str name) |
Control | GetControl (self, str name) |
'list[Control]' | GetListOfControls (self) |
None | RemoveControl (self, str name) |
None | AddProcessType (self, str process_type) |
None | AddProcess (self, str process_type, Kratos.Process process) |
'list[str]' | GetAvailableProcessTypes (self) |
'list[Kratos.Process]' | GetListOfProcesses (self, str process_type) |
int | GetStep (self) |
Gets the current step of the optimization info. More... | |
None | AdvanceStep (self) |
Advances the problem data by one step. More... | |
BufferedDict | GetProblemDataContainer (self) |
Gets the global problem data container. More... | |
'dict[Any, dict[str, Any]]' | GetComponentContainer (self) |
Any | GetComponent (self, str name, Any component_type) |
None | RemoveComponent (self, str name, Any component_type) |
This is the main data holder for optimization problems.
This class holds one private @ref BufferedDict container which is used to hold components of the optimization problem being solved, and the problem data generated while solving the optimization problem.
None optimization_problem.OptimizationProblem.__init__ | ( | self, | |
int | echo_level = 0 |
||
) |
Creates an instance of Optimization info.
Creates an instance of optimization info with most basic structure for the BufferedDict container and components container.
None optimization_problem.OptimizationProblem.AddComponent | ( | self, | |
Union[ExecutionPolicy, ResponseFunction, Control] | component | ||
) |
None optimization_problem.OptimizationProblem.AddProcess | ( | self, | |
str | process_type, | ||
Kratos.Process | process | ||
) |
None optimization_problem.OptimizationProblem.AddProcessType | ( | self, | |
str | process_type | ||
) |
None optimization_problem.OptimizationProblem.AdvanceStep | ( | self | ) |
Advances the problem data by one step.
This method advances problem data by one step and clears all the data in the advanced step.
'list[str]' optimization_problem.OptimizationProblem.GetAvailableProcessTypes | ( | self | ) |
Any optimization_problem.OptimizationProblem.GetComponent | ( | self, | |
str | name, | ||
Any | component_type | ||
) |
'dict[Any, dict[str, Any]]' optimization_problem.OptimizationProblem.GetComponentContainer | ( | self | ) |
str optimization_problem.OptimizationProblem.GetComponentName | ( | self, | |
Union[ExecutionPolicy, ResponseFunction, Control] | component | ||
) |
Any optimization_problem.OptimizationProblem.GetComponentType | ( | self, | |
Union[ExecutionPolicy, ResponseFunction, Control] | component | ||
) |
Control optimization_problem.OptimizationProblem.GetControl | ( | self, | |
str | name | ||
) |
ExecutionPolicy optimization_problem.OptimizationProblem.GetExecutionPolicy | ( | self, | |
str | name | ||
) |
'list[Control]' optimization_problem.OptimizationProblem.GetListOfControls | ( | self | ) |
'list[ExecutionPolicy]' optimization_problem.OptimizationProblem.GetListOfExecutionPolicies | ( | self | ) |
'list[Kratos.Process]' optimization_problem.OptimizationProblem.GetListOfProcesses | ( | self, | |
str | process_type | ||
) |
'list[ResponseFunction]' optimization_problem.OptimizationProblem.GetListOfResponses | ( | self | ) |
BufferedDict optimization_problem.OptimizationProblem.GetProblemDataContainer | ( | self | ) |
Gets the global problem data container.
Returns: BufferedDict: Global problem data container.
ResponseFunction optimization_problem.OptimizationProblem.GetResponse | ( | self, | |
str | name | ||
) |
int optimization_problem.OptimizationProblem.GetStep | ( | self | ) |
Gets the current step of the optimization info.
Returns: int: Current step of the optimization info.
None optimization_problem.OptimizationProblem.RemoveComponent | ( | self, | |
str | name, | ||
Any | component_type | ||
) |
None optimization_problem.OptimizationProblem.RemoveControl | ( | self, | |
str | name | ||
) |
None optimization_problem.OptimizationProblem.RemoveExecutionPolicy | ( | self, | |
str | name | ||
) |
None optimization_problem.OptimizationProblem.RemoveResponse | ( | self, | |
str | name | ||
) |