pyHMT2D / rules
Cursor rule132 starsChanged 8 months agoMITView on GitHub
This rule covers the calibration and parametric study capabilities of pyHMT2D. Location: pyHMT2D/Calibration/ Location: pyHMT2D/Parametric_Study/ Common analysis tools for both calibration and parametric studies:
In this repository23 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .cursor/rules/cli-usage.mdcCursor rule
- .cursor/rules/hydraulic-models.mdcCursor rule
- .cursor/rules/project-overview.mdcCursor rule
- hmt-calibrateSkill
- hmt-convertSkill
- hmt-exportSkill
- hmt-modifySkill
- hmt-monte-carloSkill
- hmt-openSkill
- hmt-resultsSkill
- hmt-runSkill
- hmt-statusSkill
- hmt-calibrateSkill
- hmt-convertSkill
- hmt-exportSkill
- hmt-modifySkill
- hmt-monte-carloSkill
- hmt-openSkill
- hmt-resultsSkill
- hmt-runSkill
- hmt-statusSkill
The file
Files
---
description:
globs:
alwaysApply: false
---
# Calibration and Parametric Study
This rule covers the calibration and parametric study capabilities of pyHMT2D.
## Model Calibration
Location: [pyHMT2D/Calibration/](mdc:pyHMT2D/Calibration)
### Features
- Automatic calibration using scipy's optimize module
- Support for both local and global optimization methods
- Configurable through JSON configuration files
- Support for multiple calibration parameters
- Objective function customization
### Usage Example
```python
import pyHMT2D
# Create calibrator instance
my_calibrator = pyHMT2D.Calibration.Calibrator("calibration.json")
# Run calibration
my_calibrator.calibrate()
```
### Configuration File Format
```json
{
"model_type": "SRH-2D",
"parameters": {
"manning_n": {
"initial": 0.03,
"min": 0.01,
"max": 0.1
}
},
"objective_function": {
"type": "rmse",
"observed_data": "path/to/observed.csv"
}
}
```
## Parametric Study
Location: [pyHMT2D/Parametric_Study/](mdc:pyHMT2D/Parametric_Study)
### Features
- Systematic parameter variation
- Batch simulation management
- Result collection and analysis
- Support for multiple parameters
- Parallel execution support
### Usage Example
```python
import pyHMT2D
# Create parametric study instance
my_study = pyHMT2D.Parametric_Study.ParametricStudy("study_config.json")
# Run study
my_study.run()
```
### Study Types
1. Single Parameter Studies
- Vary one parameter while keeping others constant
- Useful for sensitivity analysis
2. Multi-Parameter Studies
- Full factorial designs
- Latin Hypercube sampling
- Custom parameter combinations
3. Monte Carlo Studies
- Random parameter sampling
- Statistical analysis of results
- Uncertainty quantification
## Result Analysis
Common analysis tools for both calibration and parametric studies:
1. Statistical Analysis
- Mean, standard deviation
- Confidence intervals
- Sensitivity indices
2. Visualization
- Parameter-response plots
- Contour plots
- Time series analysis
3. Export Options
- CSV/Excel export
- VTK visualization
- Custom report generation
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

