ogstools.ogs6py.parameters module#
- class ogstools.ogs6py.parameters.Parameters[source]#
Bases:
BuildTreeClass for managing the parameters section of the project file.
- add_parameter(**kwargs)[source]#
Adds a parameter.
- Return type:
Parameters#
- namestr
Name of the parameter.
- typestr
Type of the parameter, one of Constant, CurveScaled, Function, Group, MeshElement, MeshNode, RandomFieldMeshElement, Raster, or TimeDependentHeterogeneousParameter.
- valuefloat or str
Value for a constant parameter.
- valuesfloat or str
Values for a constant parameter.
- expressionstr or list[str]
Expression describing a function (valid for function parameter).
- curvestr
Name of the curve (used in CurveScaled parameter).
- parameterstr
Used in CurveScaled parameter; name of the parameter scaled by the curve.
- meshstr
Used in MeshElement or MeshNode parameter; specification of the mesh the parameter is defined on.
- field_namestr
Used in MeshElement or MeshNode parameter; reference to the PropertyVector / DataArray given in the mesh.
- timelist[float]
Used in TimeDependentHeterogeneousParameter.
- parameter_namelist[str]
Used in CurveScaled to specify the parameter that shall be scaled.
- use_local_coordinate_systembool or str
can be added to any parameter type
Raises#
- KeyError
If ‘name’ or ‘type’ is not provided.
- KeyError
If the parameter type is not supported.
- use_local_coordinate_system(parameter)[source]#
Add the local coordinate system element.
- Return type:
- set_constant_parameter(name, **kwargs)[source]#
Set a constant parameter.
- Keyword Arguments:
value: str
values: list[str]
- set_mesh_parameter(name, type, field_name, mesh=None)[source]#
Set a mesh-based parameter (MeshElement or MeshNode).
- set_time_dependent_heterogeneous_parameter(name, time, parameter_name)[source]#
Set a time-dependent heterogeneous parameter.