Download task/single-software-execution/cli/openfoam/task-05/task-05.json from HongchengGao/EngiWorld-Tasks: direct link, hf CLI and curl.
- Browser
- Download file 4.28 kB
-
https://huggingface.co/datasets/HongchengGao/EngiWorld-Tasks/resolve/main/task/single-software-execution/cli/openfoam/task-05/task-05.json
- Command line
-
hf download hf://datasets/HongchengGao/EngiWorld-Tasks/task/single-software-execution/cli/openfoam/task-05/task-05.json
-
curl -L -o task-05.json https://huggingface.co/datasets/HongchengGao/EngiWorld-Tasks/resolve/main/task/single-software-execution/cli/openfoam/task-05/task-05.json
4.28 kB
| { | |
| "id": "single-software-execution--cli--openfoam--task-05--ubuntu", | |
| "snapshot": "OpenFOAM11", | |
| "instruction": "The incomplete OpenFOAM template `/home/user/Desktop/pipe_base/` is provided. The uploaded template is an editable input only; no result or answer artifacts are preloaded. Source `/opt/openfoam11/etc/bashrc` before running OpenFOAM commands.\n\nFrom the command line, build and solve a deterministic turbulent pipe case. 1. Write `/home/user/Desktop/build_case.py` and create `/home/user/Desktop/pipe_turb/`. Model a 5-degree axisymmetric wedge of a circular pipe aligned with x, with radius `R=0.05 m`, diameter `D=0.10 m`, and length `L=3.0 m` (30D). Use one conformal `300 x 20 x 1` block (6,000 cells), one cell through the wedge, an empty collapsed axis, two wedge patches, and a no-slip outer wall. The radial spacing is uniform; the acceptance target for the resulting whole-wall average is `20<=avg_yplus<=100`. 2. Set a uniform inlet `U=(15 0 0) m/s`, outlet kinematic pressure `p=0`, constant kinematic viscosity `nu=1.5e-5 m^2/s`, and reporting density `rho=1.225 kg/m^3`, so `Re_D=100000`. Use RAS `kOmegaSST`, inlet `k=0.84375 m^2/s^2`, inlet `omega=250 1/s`, and standard `kqRWallFunction`, `omegaWallFunction`, and `nutkWallFunction` wall conditions. 3. Configure `simpleFoam` for exactly 2000 SIMPLE iterations, ASCII output only at iteration 2000, bounded linear-upwind velocity convection, and upwind `k`/`omega`. Source `/opt/openfoam11/etc/bashrc`, run `blockMesh -case /home/user/Desktop/pipe_turb` and retain `pipe_turb/log.blockMesh`, then run `simpleFoam -case /home/user/Desktop/pipe_turb` and retain `pipe_turb/log.simpleFoam`; both must finish with `End`, and iteration 2000 must exist. Run `postProcess -case /home/user/Desktop/pipe_turb -latestTime -func writeCellCentres` and retain `pipe_turb/log.cellCentres`. Run `postProcess -case /home/user/Desktop/pipe_turb -solver incompressibleFluid -latestTime -func yPlus` and retain `pipe_turb/log.yPlus` and `pipe_turb/2000/yPlus`. 4. Write `/home/user/Desktop/postprocess.py`. Treat the 20 outlet-adjacent cell centers at `x>2.99 m` as annular samples sorted by radius. Integrate the full-circle outlet mass flow as `rho*sum(Ux_i*pi*(r_outer_i^2-r_inner_i^2))`, using the 20 uniform radial annuli, and save `/home/user/Desktop/outlet_profile.csv` with `radius_m,ux_mps,annulus_area_m2,mass_flow_kgps`. Read all 300 outer-wall values from the OpenFOAM-generated `2000/yPlus`, calculate their arithmetic mean, and save `/home/user/Desktop/wall_yplus.csv` with `wall_face_index,yplus`. 5. Save `/home/user/Desktop/summary.txt` as exactly `mass_flow, avg_yplus` in `kg/s` and dimensionless units. Do not use ParaView or other GUI tools.", | |
| "source": "https://github.com/openfoam/openfoam-dev", | |
| "config": [ | |
| { | |
| "type": "upload_file", | |
| "parameters": { | |
| "files": [ | |
| { | |
| "local_path": "task-05/init_file/pipe_base.tar", | |
| "path": "/home/user/Desktop/pipe_base.tar" | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "type": "launch", | |
| "parameters": { | |
| "command": "bash -c \"mkdir -p '/home/user/Desktop/' && tar -xf '/home/user/Desktop/pipe_base.tar' -C '/home/user/Desktop/' && rm -f '/home/user/Desktop/pipe_base.tar'\"", | |
| "shell": true | |
| } | |
| } | |
| ], | |
| "trajectory": "trajectories/", | |
| "related_apps": [ | |
| "openfoam" | |
| ], | |
| "artifact_paths": [ | |
| "/home/user/Desktop/build_case.py", | |
| "/home/user/Desktop/outlet_profile.csv", | |
| "/home/user/Desktop/pipe_turb", | |
| "/home/user/Desktop/postprocess.py", | |
| "/home/user/Desktop/summary.txt", | |
| "/home/user/Desktop/wall_yplus.csv" | |
| ], | |
| "evaluator": { | |
| "postconfig": [ | |
| { | |
| "type": "upload_file", | |
| "parameters": { | |
| "files": [ | |
| { | |
| "local_path": "task-05/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" | |
| } | |