{ "id": "single-software-execution--cli--openfoam--task-07--ubuntu", "snapshot": "OpenFOAM11", "instruction": "Treat the incomplete OpenFOAM template `/home/user/Desktop/cylinder_base/` as the starting point. 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 transient cylinder-wake case. 1. Write `/home/user/Desktop/build_case.py` and create `/home/user/Desktop/cylinder/`. Model a two-dimensional annulus centered at the origin with cylinder radius `0.05 m` (`D=0.10 m`), circular far boundary radius `1.0 m` (10D), and one `0.01 m` spanwise cell with `frontAndBack` empty. Build eight conformal 45-degree O-grid blocks, each `40 x 12 x 1` with radial simple grading 10 away from the cylinder, giving 3,840 cells and 96 cylinder faces. Use the four left outer sectors as the inlet, four right outer sectors as the outlet, and the inner circle as a no-slip cylinder. 2. Set inlet `U=(1 0 0) m/s`, outlet kinematic pressure `p=0`, constant kinematic viscosity `nu=1e-3 m^2/s`, and laminar momentum transport, so `Re_D=100`. Initialize the internal velocity as `(1 0.01 0) m/s` only to break exact wake symmetry. 3. Configure `pimpleFoam` with `deltaT=0.0025 s`, `endTime=20 s`, ASCII output at 20 s, bounded linear-upwind velocity convection, one outer PIMPLE corrector, and two pressure correctors. Add an OpenFOAM `forceCoeffs` function object for the cylinder with `rhoInf=1`, `magUInf=1 m/s`, `lRef=0.1 m`, `Aref=D*span=0.001 m^2`, drag direction x, and lift direction y; write every time step. Source `/opt/openfoam11/etc/bashrc`, run `blockMesh -case /home/user/Desktop/cylinder` and retain `cylinder/log.blockMesh`, then run `pimpleFoam -case /home/user/Desktop/cylinder` and retain `cylinder/log.pimpleFoam`; both must finish with `End`, and time 20 must exist. 4. Write `/home/user/Desktop/postprocess.py`. Read `cylinder/postProcessing/forces/0/forceCoeffs.dat`, whose leading columns are `Time,Cm,Cd,Cl`, save the complete history as `/home/user/Desktop/lift_history.csv` with `time_s,cd,cl`, and use only `t>=10 s` for statistics. Verify periodic shedding by requiring at least five zero crossings of demeaned `Cl` and `Cl_rms>0.05` in that window. 5. Save `/home/user/Desktop/summary.txt` as one finite scalar `cl_max=max(abs(Cl))` over `t>=10 s`. Do not use ParaView or other GUI tools.", "source": "https://github.com/openfoam/openfoam-dev", "config": [ { "type": "upload_file", "parameters": { "files": [ { "local_path": "task-07/init_file/cylinder_base.tar", "path": "/home/user/Desktop/cylinder_base.tar" } ] } }, { "type": "launch", "parameters": { "command": "bash -c \"mkdir -p '/home/user/Desktop/' && tar -xf '/home/user/Desktop/cylinder_base.tar' -C '/home/user/Desktop/' && rm -f '/home/user/Desktop/cylinder_base.tar'\"", "shell": true } } ], "trajectory": "trajectories/", "related_apps": [ "openfoam" ], "artifact_paths": [ "/home/user/Desktop/build_case.py", "/home/user/Desktop/cylinder", "/home/user/Desktop/forceCoeffs.dat", "/home/user/Desktop/lift_history.csv", "/home/user/Desktop/postprocess.py", "/home/user/Desktop/summary.txt" ], "evaluator": { "postconfig": [ { "type": "upload_file", "parameters": { "files": [ { "local_path": "task-07/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" }