Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions utilities/initialize_rcr_boundary_conditions/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# Update: Taeouk Kim 2026.08.11
# RCR Initial Pressure Utility

This utility calculates a phase-aware initial capacitor pressure for RCR boundary conditions and updates the `Initial_pressure` values of all RCR outlets in an svMultiPhysics `solver.xml` file.

## Requirements

- Python 3
- NumPy
- One svMultiPhysics `solver.xml` file
- One inflow waveform file with the `.flow` extension

## Usage

Place `solver.xml` and one `.flow` file in the simulation directory, then run:

```bash
python /path/to/calculate_rcr_initial_pressure.py
```

The `.flow` file is detected automatically when exactly one is present. A specific file can also be selected:

```bash
python /path/to/calculate_rcr_initial_pressure.py --flow inflow.flow
```

To calculate the pressure without modifying `solver.xml`, use:

```bash
python /path/to/calculate_rcr_initial_pressure.py --dry-run
```

## Output

By default, the utility:

- creates `solver.xml.before_rcr_pc_update.bak`;
- updates `solver.xml` in place; and
- writes `rcr_initial_pressure_summary.csv`.

Run the following command for all available options:

```bash
python /path/to/calculate_rcr_initial_pressure.py --help
```
Loading
Loading