Skip to content
Draft
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
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ __pycache__
toolchain/mfc/_version.py

.DS_Store

!examples/**/IC/*.dat
/tests/*/**
!/tests/*/golden.txt
!/tests/*/golden-metadata.txt
Expand Down Expand Up @@ -92,4 +92,4 @@ benchmarks/*.png
*.avi

**isolation_rules/
**.supercode/
**.supercode/
4 changes: 2 additions & 2 deletions docs/documentation/case.md
Original file line number Diff line number Diff line change
Expand Up @@ -251,8 +251,8 @@ The code provides three pre-built patches for dimensional extrusion of initial c
- `case(270)`: Extrude 1D data to 2D domain
- `case(370)`: Extrude 2D data to 3D domain

Setup: Only requires specifying `init_dir` and filename pattern via `zeros_default`. Grid dimensions are automatically detected from the data files.
Implementation: All variables and file handling are managed in `src/pre_process/include/ExtrusionHardcodedIC.fpp` with no manual grid configuration needed.
Setup: Only requires specifying `files_dir` and filename pattern via `file_extension`. The files are located, for example, at `examples/2D_case/IC`, and their format is `prim.XX.YY.files_extension.dat`.
Implementation: All variables and file handling are managed in the `case.py` file of the simulation.
Usage: Ideal for initializing simulations from lower-dimensional solutions, enabling users to add perturbations or modifications to the base extruded fields for flow instability studies.

#### Parameter Descriptions
Expand Down
1,200 changes: 1,200 additions & 0 deletions examples/1D_flamelet/IC/prim.1.00.000000.dat

Large diffs are not rendered by default.

1,200 changes: 1,200 additions & 0 deletions examples/1D_flamelet/IC/prim.10.00.000000.dat

Large diffs are not rendered by default.

1,200 changes: 1,200 additions & 0 deletions examples/1D_flamelet/IC/prim.11.00.000000.dat

Large diffs are not rendered by default.

1,200 changes: 1,200 additions & 0 deletions examples/1D_flamelet/IC/prim.12.00.000000.dat

Large diffs are not rendered by default.

1,200 changes: 1,200 additions & 0 deletions examples/1D_flamelet/IC/prim.13.00.000000.dat

Large diffs are not rendered by default.

1,025 changes: 1,025 additions & 0 deletions examples/1D_flamelet/IC/prim.14.00.000000.dat

Large diffs are not rendered by default.

1,200 changes: 1,200 additions & 0 deletions examples/1D_flamelet/IC/prim.2.00.000000.dat

Large diffs are not rendered by default.

1,200 changes: 1,200 additions & 0 deletions examples/1D_flamelet/IC/prim.3.00.000000.dat

Large diffs are not rendered by default.

1,200 changes: 1,200 additions & 0 deletions examples/1D_flamelet/IC/prim.4.00.000000.dat

Large diffs are not rendered by default.

1,200 changes: 1,200 additions & 0 deletions examples/1D_flamelet/IC/prim.5.00.000000.dat

Large diffs are not rendered by default.

1,200 changes: 1,200 additions & 0 deletions examples/1D_flamelet/IC/prim.6.00.000000.dat

Large diffs are not rendered by default.

1,200 changes: 1,200 additions & 0 deletions examples/1D_flamelet/IC/prim.7.00.000000.dat

Large diffs are not rendered by default.

1,200 changes: 1,200 additions & 0 deletions examples/1D_flamelet/IC/prim.8.00.000000.dat

Large diffs are not rendered by default.

1,200 changes: 1,200 additions & 0 deletions examples/1D_flamelet/IC/prim.9.00.000000.dat

Large diffs are not rendered by default.

72 changes: 72 additions & 0 deletions examples/1D_flamelet/case.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
#!/usr/bin/env python3
import json
import argparse
import math
import os
import cantera as ct

current_dir = os.path.dirname(os.path.abspath(__file__))
ctfile = "sandiego.yaml"
sol_L = ct.Solution(ctfile)
sol_L.TPX = 300, 8000, "O2:2,N2:2,H2O:5"
L = 0.016
Nx = 1199
dx = L / Nx
dt = 1e-8
Tend = 0.60e-3
NT = int(Tend / dt)
SAVE_COUNT = 1000
NS = 1000
case = {
"run_time_info": "T",
"x_domain%beg": -L / 2,
"x_domain%end": +L / 2,
"m": Nx,
"n": 0,
"p": 0,
"dt": float(dt),
"t_step_start": 0,
"t_step_stop": NT,
"t_step_save": NS,
"t_step_print": 100,
"parallel_io": "F",
"model_eqns": 2,
"num_fluids": 1,
"num_patches": 1,
"mpp_lim": "F",
"mixture_err": "F",
"time_stepper": 3,
"weno_order": 5,
"weno_eps": 1e-16,
"weno_avg": "F",
"mapped_weno": "T",
"mp_weno": "T",
"riemann_solver": 2,
"wave_speeds": 2,
"avg_state": 1,
"bc_x%beg": -8,
"bc_x%end": -8,
"viscous": "F",
"files_dir": os.path.join(current_dir, "IC"),
"file_extension": "000000",
"chemistry": "T",
"chem_params%diffusion": "T",
"chem_params%reactions": "T",
"chem_params%transport_model": 2,
"format": 1,
"precision": 2,
"prim_vars_wrt": "T",
"patch_icpp(1)%geometry": 1,
"patch_icpp(1)%hcid": 170,
"patch_icpp(1)%x_centroid": 0,
"patch_icpp(1)%length_x": L,
"patch_icpp(1)%vel(1)": "0",
"patch_icpp(1)%pres": 1.01325e5,
"patch_icpp(1)%alpha(1)": 1,
"patch_icpp(1)%alpha_rho(1)": "1",
"fluid_pp(1)%gamma": 1.0e00 / (1.5e00 - 1.0e00),
"fluid_pp(1)%pi_inf": 0,
"cantera_file": ctfile,
}
if __name__ == "__main__":
print(json.dumps(case))
Loading
Loading