Download task/single-software-execution/cli/openfoam/task-19/task-19.json from HongchengGao/EngiWorld-Tasks: direct link, hf CLI and curl.
- Browser
- Download file 3.48 kB
-
https://huggingface.co/datasets/HongchengGao/EngiWorld-Tasks/resolve/main/task/single-software-execution/cli/openfoam/task-19/task-19.json
- Command line
-
hf download hf://datasets/HongchengGao/EngiWorld-Tasks/task/single-software-execution/cli/openfoam/task-19/task-19.json
-
curl -L -o task-19.json https://huggingface.co/datasets/HongchengGao/EngiWorld-Tasks/resolve/main/task/single-software-execution/cli/openfoam/task-19/task-19.json
3.48 kB
| { | |
| "id": "single-software-execution--cli--openfoam--task-19--ubuntu", | |
| "snapshot": "OpenFOAM11", | |
| "instruction": "Copy `/home/user/Desktop/porous_base/` to `/home/user/Desktop/porous/` and solve a fixed packed-bed pressure-drop case with OpenFOAM from the command line. Source the installed OpenFOAM environment before running OpenFOAM commands. On this machine, before running the case, load OpenFOAM with `source /opt/openfoam11/etc/bashrc`; the solver binaries are under `/opt/openfoam11/bin` and its platform bin directory.\n\nBuild a `1 x 0.1 x 0.01 m` rectangular domain with exactly `(100 10 1)` cells, symmetry at the y boundaries and empty front/back faces. Use water with reference density `1000 kg/m^3`, kinematic viscosity `1e-6 m^2/s`, a uniform inlet velocity `(0.1 0 0)` m/s, and zero kinematic pressure at the outlet. Select all 1,000 cells into the cell zone `porosity` using `topoSet`. Apply an isotropic Darcy-Forchheimer model to that entire zone with `d=(1e8 1e8 1e8) 1/m^2`, `f=(1000 1000 1000) 1/m`, and coordinate axes aligned with the global axes. Run `blockMesh`, require a successful `checkMesh`, run `topoSet`, and solve laminar flow for exactly 500 SIMPLE iterations using `porousSimpleFoam`, retaining ASCII iteration-500 `U` and `p`. Save outputs as `/home/user/Desktop/porous/log.blockMesh`, `log.checkMesh`, `log.topoSet`, and `log.porousSimpleFoam`; a failed mesh check is not acceptable. Write final cell centres `C` and save that output as `log.writeCellCentres`. At every distinct cell-centre x-coordinate, average kinematic pressure over the 10 cross-sectional cells. Define `delta_p` in Pa as `1000 * (p_mean at the first x station - p_mean at the last x station)`. Create `/home/user/Desktop/postprocess.py` that reads the final `C` and `p`, writes all 100 axial stations to `/home/user/Desktop/axial_pressure.csv` with columns `x_m,p_kinematic_m2ps2,p_pa`, and writes `/home/user/Desktop/summary.txt` as one line containing `delta_p`. Do not hard-code the result and do not use GUI tools.", | |
| "source": "https://github.com/openfoam/openfoam-dev", | |
| "config": [ | |
| { | |
| "type": "upload_file", | |
| "parameters": { | |
| "files": [ | |
| { | |
| "local_path": "task-19/init_file/porous_base.tar", | |
| "path": "/home/user/Desktop/porous_base.tar" | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "type": "launch", | |
| "parameters": { | |
| "command": "bash -c \"mkdir -p '/home/user/Desktop/' && tar -xf '/home/user/Desktop/porous_base.tar' -C '/home/user/Desktop/' && rm -f '/home/user/Desktop/porous_base.tar'\"", | |
| "shell": true | |
| } | |
| } | |
| ], | |
| "trajectory": "trajectories/", | |
| "related_apps": [ | |
| "openfoam" | |
| ], | |
| "artifact_paths": [ | |
| "/home/user/Desktop/axial_pressure.csv", | |
| "/home/user/Desktop/postprocess.py", | |
| "/home/user/Desktop/summary.txt" | |
| ], | |
| "evaluator": { | |
| "postconfig": [ | |
| { | |
| "type": "upload_file", | |
| "parameters": { | |
| "files": [ | |
| { | |
| "local_path": "task-19/eval.py", | |
| "path": "/home/user/Desktop/eval.py" | |
| } | |
| ] | |
| } | |
| } | |
| ], | |
| "func": "exact_match", | |
| "result": { | |
| "type": "vm_command_line", | |
| "command": "python3 /home/user/Desktop/eval.py", | |
| "shell": "true" | |
| }, | |
| "expected": { | |
| "type": "rule", | |
| "rules": { | |
| "expected": "True\n" | |
| } | |
| } | |
| }, | |
| "proxy": false, | |
| "fixed_ip": false, | |
| "possibility_of_env_change": "low" | |
| } | |