Tips and Best Practices¶
Always call
system_update()after modifying parameters and before accessing results.Check input ranges: Some parameters have physical limits (e.g., temperatures must be positive, flow rates must be positive).
Unit consistency: Be aware of input units (typically °C for temperatures, L/min for flow rates) and output units (typically K for temperatures, W for power).
Iterative models: Ground-source heat pump models use iterative solvers. If convergence issues occur, check input parameters.
Balance verification: Energy balances should satisfy conservation (in ≈ out), while entropy and exergy balances include generation/consumption terms.
Performance: For parameter studies, consider caching results or using vectorized operations where possible.
Visualization: Use
dartwork-mplfor publication-quality plots as shown in the examples.