API Reference¶
aquimodpy.Model
¶
Model
¶
Manages simulation configuration, components, and execution.
Attributes:
| Name | Type | Description |
|---|---|---|
model_name |
str
|
Name of the simulation. |
executable_path |
str
|
Absolute path to the AquiMod 2 binary. |
working_directory |
str
|
Absolute path to the simulation working directory. |
exec_prefix |
List[str]
|
Command prefix for running the binary. |
soil_zone |
SoilZone
|
Soil zone component instance. |
unsat_zone |
UnsatZone
|
Unsaturated zone component instance. |
sat_zone |
SatZone
|
Saturated zone component instance. |
observations |
Observations
|
Observations component instance. |
runner |
Runner
|
Runner instance (e.g., CalibrationRunner, EvaluationRunner). |
simulation_mode |
str
|
'e' (evaluation), 'm' (Monte Carlo), or 's' (SCE-UA). |
spinup_time |
int
|
Number of days for simulation spin-up. |
obj_func |
List[Any]
|
Objective function ID and parameters. |
output_switches |
List[bool]
|
Which component output files to write [soil, unsat, sat]. |
mc_params |
List[Any]
|
Parameters for Monte Carlo simulation. |
sce_params |
List[Any]
|
Parameters for SCE-UA simulation. |
eval_params |
List[Any]
|
Parameters for evaluation simulation. |
Source code in src/aquimodpy/Model.py
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 | |
__init__(model_name, executable_path, working_directory, exec_prefix=None, *, simulation_mode='e', spinup_time=365, obj_func=None, output_switches=None)
¶
Initializes the model.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
model_name
|
str
|
Name of the simulation. |
required |
executable_path
|
str
|
Path to the AquiMod 2 binary. |
required |
working_directory
|
str
|
Path to the working directory. |
required |
exec_prefix
|
List[str]
|
Command prefix for running the binary (e.g., ["wine"]). Defaults to None. |
None
|
simulation_mode
|
str
|
'e' (evaluation), 'm' (Monte Carlo), or 's' (SCE-UA). Defaults to 'e'. |
'e'
|
spinup_time
|
int
|
Number of days for simulation spin-up. Defaults to 365. |
365
|
obj_func
|
List[Any]
|
Objective function ID and parameters. Defaults to [1]. |
None
|
output_switches
|
List[bool]
|
Which component output files to write [soil, unsat, sat]. Defaults to [True, True, True]. |
None
|
Source code in src/aquimodpy/Model.py
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 | |
add_component(component)
¶
Categorizes and stores the component.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
component
|
Component
|
An instance of a model component (SoilZone, UnsatZone, or SatZone). |
required |
Raises:
| Type | Description |
|---|---|
ValueError
|
If the component type is unknown. |
Source code in src/aquimodpy/Model.py
94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 | |
get_results(run_number=1)
¶
Reads output files and returns them as DataFrames.
In evaluation mode ('e'), it reads time series for the specified run_number. In calibration mode ('m' or 's'), it reads the parameter sets and fit metrics.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
run_number
|
int
|
Run number for time series. Defaults to 1. |
1
|
Returns:
| Type | Description |
|---|---|
Dict[str, DataFrame]
|
Dict[str, pd.DataFrame]: Dictionary of DataFrames containing model outputs. |
Source code in src/aquimodpy/Model.py
221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 | |
load_parameters(calibration_results, index=0)
¶
Updates component parameters from calibration results.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
calibration_results
|
Dict[str, DataFrame]
|
Dictionary of DataFrames returned by get_results(). |
required |
index
|
int
|
The row index in the results DataFrames to load. Defaults to 0. |
0
|
Source code in src/aquimodpy/Model.py
182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 | |
run()
¶
Executes the simulation.
Source code in src/aquimodpy/Model.py
215 216 217 218 219 | |
set_objective_function(obj_id, *params)
¶
Sets the objective function ID and parameters.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
obj_id
|
int
|
Objective function ID. |
required |
*params
|
Any
|
Objective function parameters. |
()
|
Source code in src/aquimodpy/Model.py
161 162 163 164 165 166 167 168 | |
set_output_switches(soil=True, unsat=True, sat=True)
¶
Sets which component output files should be written.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
soil
|
bool
|
Write soil output (True/False). |
True
|
unsat
|
bool
|
Write unsaturated output (True/False). |
True
|
sat
|
bool
|
Write saturated output (True/False). |
True
|
Source code in src/aquimodpy/Model.py
170 171 172 173 174 175 176 177 178 179 180 | |
set_runner(runner)
¶
Sets the runner for the model simulation.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
runner
|
Runner
|
A runner instance (e.g., EvaluationRunner, CalibrationRunner). |
required |
Source code in src/aquimodpy/Model.py
86 87 88 89 90 91 92 | |
set_simulation_mode(mode, **kwargs)
¶
Configures simulation mode and its parameters.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
mode
|
str
|
'e' (evaluation), 'm' (Monte Carlo), or 's' (SCE-UA). |
required |
**kwargs
|
Any
|
Parameters for the chosen mode (e.g., n_runs, threshold, variable). |
{}
|
Raises:
| Type | Description |
|---|---|
ValueError
|
If an invalid mode is provided. |
Source code in src/aquimodpy/Model.py
125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 | |
setup()
¶
Prepares simulation files.
Source code in src/aquimodpy/Model.py
209 210 211 212 213 | |
aquimodpy.Components
¶
Component
¶
Base class for all model components.
Attributes:
| Name | Type | Description |
|---|---|---|
model |
Model
|
The Model instance. |
component_id |
int
|
Unique identifier for the component. |
parameters |
Dict[str, Any]
|
Dictionary of component parameters. |
Source code in src/aquimodpy/Components.py
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 | |
__init__(model, component_id, **kwargs)
¶
Initializes a new component and registers it with the model.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
model
|
Model
|
The Model instance. |
required |
component_id
|
int
|
Unique identifier for the component. |
required |
**kwargs
|
Any
|
Component parameters as named arguments. |
{}
|
Source code in src/aquimodpy/Components.py
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 | |
FAO
¶
Bases: SoilZone
Soil FAO component.
Source code in src/aquimodpy/Components.py
59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 | |
__init__(model, theta_fc, theta_wp, Z_r, p, BFI)
¶
Initializes the FAO soil component.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
model
|
Model
|
The Model instance. |
required |
theta_fc
|
float
|
Field capacity moisture content (-). |
required |
theta_wp
|
float
|
Wilting point moisture content (-). |
required |
Z_r
|
float
|
Rooting depth (mm). |
required |
p
|
float
|
Fraction of available soil water (-). |
required |
BFI
|
float
|
Baseflow index (-). |
required |
Source code in src/aquimodpy/Components.py
71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 | |
NSSS
¶
Bases: SoilZone
NSSS soil component.
Source code in src/aquimodpy/Components.py
95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 | |
__init__(model, theta_fc, theta_wp, Z_r, fracstor, p, BFI)
¶
Initializes the NSSS soil component.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
model
|
Model
|
The Model instance. |
required |
theta_fc
|
float
|
Field capacity moisture content (-). |
required |
theta_wp
|
float
|
Wilting point moisture content (-). |
required |
Z_r
|
float
|
Rooting depth (mm). |
required |
fracstor
|
float
|
Fraction of soil moisture that can be stored (-). |
required |
p
|
float
|
Fraction of available soil water (-). |
required |
BFI
|
float
|
Baseflow index (-). |
required |
Source code in src/aquimodpy/Components.py
115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 | |
Observations
¶
Handles model observations and generates the required input file.
Source code in src/aquimodpy/Components.py
595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 | |
__init__(model, obs_df, columns)
¶
Initializes Observations component.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
model
|
Model
|
The Model instance. |
required |
obs_df
|
DataFrame
|
Pandas DataFrame containing observations. |
required |
columns
|
Dict[str, str]
|
Dictionary mapping required model columns to user DataFrame columns. Required keys: DATE, RAIN, PET. Optional keys: SOIL_VWC, GWL, ABS. |
required |
Source code in src/aquimodpy/Components.py
598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 | |
write_obs_file()
¶
Processes observations and writes them to 'Observations.txt' in the working directory.
Source code in src/aquimodpy/Components.py
629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 | |
Q1K1S1
¶
Bases: SatZone
Q1K1S1 saturated zone component.
Source code in src/aquimodpy/Components.py
351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 | |
__init__(model, dx, K1, S, z1, alpha)
¶
Initializes the Q1K1S1 saturated zone component.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
model
|
Model
|
The Model instance. |
required |
dx
|
float
|
Grid spacing (m). |
required |
K1
|
float
|
Hydraulic conductivity of layer 1 (m/day). |
required |
S
|
float
|
Storage coefficient (-). |
required |
z1
|
float
|
Bottom depth of layer 1 (m). |
required |
alpha
|
float
|
Saturated zone parameter (-). |
required |
Source code in src/aquimodpy/Components.py
363 364 365 366 367 368 369 370 371 372 373 374 375 376 | |
Q1T1S1
¶
Bases: SatZone
Q1T1S1 saturated zone component.
Source code in src/aquimodpy/Components.py
379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 | |
__init__(model, dx, T1, S, z1)
¶
Initializes the Q1T1S1 saturated zone component.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
model
|
Model
|
The Model instance. |
required |
dx
|
float
|
Grid spacing (m). |
required |
T1
|
float
|
Transmissivity of layer 1 (m2/day). |
required |
S
|
float
|
Storage coefficient (-). |
required |
z1
|
float
|
Bottom depth of layer 1 (m). |
required |
Source code in src/aquimodpy/Components.py
385 386 387 388 389 390 391 392 393 394 395 396 397 | |
Q2K2S1
¶
Bases: SatZone
Q2K2S1 saturated zone component.
Source code in src/aquimodpy/Components.py
303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 | |
__init__(model, dx, K2, K1, S, z2, z1, alpha)
¶
Initializes the Q2K2S1 saturated zone component.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
model
|
Model
|
The Model instance. |
required |
dx
|
float
|
Grid spacing (m). |
required |
K2
|
float
|
Hydraulic conductivity of layer 2 (m/day). |
required |
K1
|
float
|
Hydraulic conductivity of layer 1 (m/day). |
required |
S
|
float
|
Storage coefficient (-). |
required |
z2
|
float
|
Bottom depth of layer 2 (m). |
required |
z1
|
float
|
Bottom depth of layer 1 (m). |
required |
alpha
|
float
|
Saturated zone parameter (-). |
required |
Source code in src/aquimodpy/Components.py
325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 | |
Q2K2S2
¶
Bases: SatZone
Q2K2S2 saturated zone component.
Source code in src/aquimodpy/Components.py
522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 | |
__init__(model, dx, K2, K1, S2, S1, z2, z1, alpha)
¶
Initializes the Q2K2S2 saturated zone component.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
model
|
Model
|
The Model instance. |
required |
dx
|
float
|
Grid spacing (m). |
required |
K2
|
float
|
Hydraulic conductivity of layer 2 (m/day). |
required |
K1
|
float
|
Hydraulic conductivity of layer 1 (m/day). |
required |
S2
|
float
|
Storage coefficient of layer 2 (-). |
required |
S1
|
float
|
Storage coefficient of layer 1 (-). |
required |
z2
|
float
|
Bottom depth of layer 2 (m). |
required |
z1
|
float
|
Bottom depth of layer 1 (m). |
required |
alpha
|
float
|
Saturated zone parameter (-). |
required |
Source code in src/aquimodpy/Components.py
546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 | |
Q3K3S1
¶
Bases: SatZone
Q3K3S1 saturated zone component.
Source code in src/aquimodpy/Components.py
245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 | |
__init__(model, dx, K3, K2, K1, S, z3, z2, z1, alpha)
¶
Initializes the Q3K3S1 saturated zone component.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
model
|
Model
|
The Model instance. |
required |
dx
|
float
|
Grid spacing (m). |
required |
K3
|
float
|
Hydraulic conductivity of layer 3 (m/day). |
required |
K2
|
float
|
Hydraulic conductivity of layer 2 (m/day). |
required |
K1
|
float
|
Hydraulic conductivity of layer 1 (m/day). |
required |
S
|
float
|
Storage coefficient (-). |
required |
z3
|
float
|
Bottom depth of layer 3 (m). |
required |
z2
|
float
|
Bottom depth of layer 2 (m). |
required |
z1
|
float
|
Bottom depth of layer 1 (m). |
required |
alpha
|
float
|
Saturated zone parameter (-). |
required |
Source code in src/aquimodpy/Components.py
271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 | |
Q3K3S3
¶
Bases: SatZone
Q3K3S3 saturated zone component.
Source code in src/aquimodpy/Components.py
444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 | |
__init__(model, dx, K3, K2, K1, S3, S2, S1, z3, z2, z1, alpha)
¶
Initializes the Q3K3S3 saturated zone component.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
model
|
Model
|
The Model instance. |
required |
dx
|
float
|
Grid spacing (m). |
required |
K3
|
float
|
Hydraulic conductivity of layer 3 (m/day). |
required |
K2
|
float
|
Hydraulic conductivity of layer 2 (m/day). |
required |
K1
|
float
|
Hydraulic conductivity of layer 1 (m/day). |
required |
S3
|
float
|
Storage coefficient of layer 3 (-). |
required |
S2
|
float
|
Storage coefficient of layer 2 (-). |
required |
S1
|
float
|
Storage coefficient of layer 1 (-). |
required |
z3
|
float
|
Bottom depth of layer 3 (m). |
required |
z2
|
float
|
Bottom depth of layer 2 (m). |
required |
z1
|
float
|
Bottom depth of layer 1 (m). |
required |
alpha
|
float
|
Saturated zone parameter (-). |
required |
Source code in src/aquimodpy/Components.py
474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 | |
SA1D
¶
Bases: SatZone
SA1D saturated zone component.
Source code in src/aquimodpy/Components.py
576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 | |
__init__(model, A, k, z1, S)
¶
Initializes the SA1D saturated zone component.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
model
|
Model
|
The Model instance. |
required |
A
|
float
|
Area (m2). |
required |
k
|
float
|
Drainage coefficient (day^-1). |
required |
z1
|
float
|
Bottom depth of layer 1 (m). |
required |
S
|
float
|
Storage coefficient (-). |
required |
Source code in src/aquimodpy/Components.py
582 583 584 585 586 587 588 589 590 591 592 | |
SMAP
¶
Bases: SoilZone
SMAP soil component.
Source code in src/aquimodpy/Components.py
148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 | |
__init__(model, theta_fc, theta_wp, Z_r, q_ic, K_s, eta, gamma, beta, psi_a)
¶
Initializes the SMAP soil component.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
model
|
Model
|
The Model instance. |
required |
theta_fc
|
float
|
Field capacity moisture content (-). |
required |
theta_wp
|
float
|
Wilting point moisture content (-). |
required |
Z_r
|
float
|
Rooting depth (mm). |
required |
q_ic
|
float
|
Constant infiltration rate (mm/day). |
required |
K_s
|
float
|
Saturated hydraulic conductivity (m/day). |
required |
eta
|
float
|
Infiltration parameter (-). |
required |
gamma
|
float
|
Infiltration parameter (-). |
required |
beta
|
float
|
Infiltration parameter (mm^-1). |
required |
psi_a
|
float
|
Air entry suction (mm). |
required |
Source code in src/aquimodpy/Components.py
174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 | |
SatZone
¶
Bases: Component
Base class for saturated zone components.
Source code in src/aquimodpy/Components.py
239 240 241 242 | |
SoilZone
¶
Bases: Component
Base class for soil zone components.
Source code in src/aquimodpy/Components.py
53 54 55 56 | |
UnsatZone
¶
Bases: Component
Base class for unsaturated zone components.
Source code in src/aquimodpy/Components.py
216 217 218 219 | |
VKD
¶
Bases: SatZone
VKD saturated zone component.
Source code in src/aquimodpy/Components.py
400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 | |
__init__(model, dx, K1, m, S, z1, zp)
¶
Initializes the VKD saturated zone component.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
model
|
Model
|
The Model instance. |
required |
dx
|
float
|
Grid spacing (m). |
required |
K1
|
float
|
Hydraulic conductivity (m/day). |
required |
m
|
float
|
Drainage parameter (day^-1). |
required |
S
|
float
|
Storage coefficient (-). |
required |
z1
|
float
|
Bottom depth of layer 1 (m). |
required |
zp
|
float
|
Depth to base (m). |
required |
Source code in src/aquimodpy/Components.py
420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 | |
Weibull
¶
Bases: UnsatZone
Weibull unsaturated zone component.
Source code in src/aquimodpy/Components.py
222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 | |
__init__(model, k, lambda_)
¶
Initializes the Weibull unsaturated zone component.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
model
|
Model
|
The Model instance. |
required |
k
|
float
|
Weibull shape parameter (-). |
required |
lambda_
|
float
|
Weibull scale parameter (-). |
required |
Source code in src/aquimodpy/Components.py
228 229 230 231 232 233 234 235 236 | |
aquimodpy.Runner
¶
Runner
¶
Base class for all simulation runners.
Attributes:
| Name | Type | Description |
|---|---|---|
model |
Model
|
The Model instance. |
Source code in src/aquimodpy/Runner.py
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 | |
__init__(model)
¶
Initializes the runner with a model instance.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
model
|
Model
|
The Model instance. |
required |
Source code in src/aquimodpy/Runner.py
16 17 18 19 20 21 22 | |
prepare()
¶
Prepares the simulation (e.g., generates input files).
Source code in src/aquimodpy/Runner.py
24 25 26 27 28 29 30 31 32 33 34 35 36 37 | |
run()
¶
Executes the simulation.
Source code in src/aquimodpy/Runner.py
81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 | |
write_input_file()
¶
Writes the Input.txt file.
Source code in src/aquimodpy/Runner.py
39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 | |
aquimodpy.CalibrationRunner
¶
CalibrationRunner
¶
Bases: Runner
Runner for Monte Carlo and SCE-UA calibration simulations.
Source code in src/aquimodpy/CalibrationRunner.py
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 | |
prepare()
¶
Prepares calibration simulation.
Source code in src/aquimodpy/CalibrationRunner.py
12 13 14 15 16 | |
write_component_calib_files()
¶
Writes *_calib.txt files in the Calibration directory.
Source code in src/aquimodpy/CalibrationRunner.py
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 | |
aquimodpy.EvaluationRunner
¶
EvaluationRunner
¶
Bases: Runner
Runner for standard evaluation simulations.
Source code in src/aquimodpy/EvaluationRunner.py
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 | |
prepare()
¶
Prepares evaluation simulation.
Source code in src/aquimodpy/EvaluationRunner.py
12 13 14 15 16 | |
write_component_eval_files()
¶
Writes *_eval.txt files in the Evaluation directory.
Source code in src/aquimodpy/EvaluationRunner.py
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 | |