Skip to content
Back to skills

Docs

ASecurity

Set the initial pressure head field and boundary conditions. The initial condition determines how quickly the simulation reaches physical equilibrium.

  • 231 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 11, 2026
tools

Works with

  • cli

Security analysis

A100/100

Pro scans all 14 files and shows the line behind each finding

Scanned November 9, 2026

npx -y skills add lzwei196/KISS---Knowledge-Infrastructure-for-Scientific-Simulation --skill docs --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Docs?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Docs
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/lzwei196-docs-c737a069/badge)](https://www.skillsdirectory.com/skills/lzwei196-docs-c737a069)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
# 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.

Files in this skill

  • REFERENCES.md1.7 KB
  • format_spec.yaml39.8 KB
  • papers.json5.4 KB
  • s1_domain_skill.md3 KB
  • s2_subsurface_skill.md2.6 KB
  • s3_topography_skill.md1.1 KB
  • s4_clm_skill.md1 KB
  • s5_forcing_skill.md1.3 KB
  • s6_ic_bc_skill.md1.8 KB
  • s7_solver_skill.md1.7 KB
  • s8_execution_skill.md1.5 KB
  • s9_output_skill.md1.8 KB
  • validation_convention.yaml20.2 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in tools →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.