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.
|
A pythonic wrapper to KratosMultiphysics.Parameters. More...
Public Member Functions | |
def | __init__ (self, params="{}") |
def | __getitem__ (self, key) |
def | __setitem__ (self, key, value) |
def | __iter__ (self) |
Return an iterator over keys or indices. More... | |
def | __len__ (self) |
def | __str__ (self) |
def | __getattr__ (self, name) |
Expose methods defined in KratosMultiphysics.Parameters. More... | |
def | Get (self) |
def | SetDefault (self, key, value=KratosMultiphysics.Parameters()) |
A pythonic wrapper to KratosMultiphysics.Parameters.
The idea is to reduce boilerplate and improve call-site readability by making Parameters more pythonic without breaking existing code.
def core.utils.ParametersWrapper.__init__ | ( | self, | |
params = "{}" |
|||
) |
def core.utils.ParametersWrapper.__getattr__ | ( | self, | |
name | |||
) |
Expose methods defined in KratosMultiphysics.Parameters.
def core.utils.ParametersWrapper.__getitem__ | ( | self, | |
key | |||
) |
def core.utils.ParametersWrapper.__iter__ | ( | self | ) |
Return an iterator over keys or indices.
This iterates over keys or indices, depending on if the Parameters instance is an array.
def core.utils.ParametersWrapper.__len__ | ( | self | ) |
def core.utils.ParametersWrapper.__setitem__ | ( | self, | |
key, | |||
value | |||
) |
def core.utils.ParametersWrapper.__str__ | ( | self | ) |
def core.utils.ParametersWrapper.Get | ( | self | ) |
def core.utils.ParametersWrapper.SetDefault | ( | self, | |
key, | |||
value = KratosMultiphysics.Parameters() |
|||
) |