static_env_soil
StaticEnvSoil
StaticEnvSoil()
Bases: StaticEnv[CableSoil, CircuitInSoilFromCableInputSchema, CircuitInSoilFromCableConstructionalInputSchema, CircuitInSoilFromCableIdInputSchema, CircuitInSoilFromCableSpecsInputSchema]
Class that builds a static environment for circuits in soil.
Source code in cable_thermal_model/environment/static_env_soil.py
40 41 42 43 | |
add_measurement_point
add_measurement_point(x: float, y: float, ndigits: int = 3) -> MeasurementPointKey
Add a measurement point to the environment.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
x
|
float
|
x-coordinate of the measurement point. |
required |
y
|
float
|
y-coordinate of the measurement point. |
required |
ndigits
|
int
|
Number of decimal places to round the coordinates for key generation. |
3
|
Returns:
| Name | Type | Description |
|---|---|---|
MeasurementPointKey |
MeasurementPointKey
|
The identifier of the added measurement point. |
Source code in cable_thermal_model/environment/static_env_soil.py
86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 | |