Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Docs?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/lzwei196-docs-c737a069)
# S6: Initial and Boundary Conditions — Skill Document
## Purpose
Set the initial pressure head field and boundary conditions. The initial condition determines how quickly the simulation reaches physical equilibrium.
## Critical Concept: Pressure Head Semantics
- **Negative pressure** = unsaturated zone (soil suction/tension)
- **Positive pressure** = saturated zone (positive pore water pressure)
- **Zero pressure** = water table surface
- **Units**: meters of water (NOT Pa, NOT kPa) -- see dt_pf_004
## Initialization Methods
| Method | When to Use | Spinup Needed? |
|--------|-------------|----------------|
| Hydrostatic (uniform WTD) | Quick start, no prior information | Yes (10-50 yr) |
| Reinecke WTD | Best for new basins (global data) | Moderate (5-20 yr) |
| MODFLOW steady-state | If MODFLOW run exists | Minimal (1-5 yr) |
| Previous ParFlow restart | Continuing a run | None |
## Box geometry: every cell gets an IC
The s7 run script uses Box geometry, so ParFlow simulates every cell of the rectangle. `generate_initial_conditions.py` gives every cell, inside and outside the basin mask, the same IC rule (outside cells used to get pressure 0 in every layer, which is not a hydrostatic column). With `--method reinecke` a cell with no usable water-table depth stops the tool (it used to fall back to `--wtd` silently). A given `--elevation_npy` that does not exist stops the tool. The water table is placed below the same surface the cells are built from (terrain-following: elevation.npy; flat grid: the grid top).
## Procedure
1. **Choose method** based on available data.
2. **Run** `generate_initial_conditions.py`.
3. **Verify** saturation_fraction: 0.3-0.7 is typical for most basins.
4. **Check** no extreme values (pressure < -200m or > +100m).
## Boundary Conditions
| Face | Default | When to Change |
|------|---------|----------------|
| Bottom | No-flow (impermeable bedrock) | Rarely -- default is usually correct |
| Sides | No-flow | Through-flow basins need constant head or flux |
| Top | OverlandFlow | Always -- this is where precip and ET interact |
## Spinup Strategy
ParFlow needs spinup to equilibrate the water table to the climate and topography.
- **Recommended**: 10-100 years of recycled forcing (repeat one year's forcing).
- **Shortcut**: Use MODFLOW steady-state water table as initial condition.
- **Sign of equilibrium**: Inter-annual water balance residual < 1% of precipitation.