HongchengGao's picture
Align task taxonomy and IDs with the updated paper; main evaluation 306
3de3b50 verified
Raw History Blame Contribute Delete
3.52 kB
{
"id": "single-software-execution--cli--openfoam--task-18--ubuntu",
"snapshot": "OpenFOAM11",
"instruction": "Work with OpenFOAM from the command line, then copy `/home/user/Desktop/cavity_base/` to `/home/user/Desktop/cavity_graph/` and solve a fixed two-dimensional lid-driven cavity. Source the installed OpenFOAM environment before running OpenFOAM commands. For this task, 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\nUse a `1 x 1 x 0.01 m` domain with exactly `(64 64 1)` uniform cells, empty front/back faces, no-slip stationary left/right/bottom walls, top-lid velocity `(1 0 0)` m/s, kinematic viscosity `0.01 m^2/s` (`Re=100`), and zero initial velocity. Run laminar `icoFoam` with `deltaT=0.005 s` through `t=30 s`, retain ASCII iteration-30 `U` and `p`, and save successful `blockMesh`, `checkMesh`, and solver outputs as `log.blockMesh`, `log.checkMesh`, and `log.icoFoam`; a failed mesh check is not acceptable. Create `system/sampleDict` using `cellPoint` interpolation and raw output. Sample `U` at exactly 99 uniformly spaced points per line: the vertical line starts at `(0.5,0.01,0.005)` and ends at `(0.5,0.99,0.005)`, while the horizontal line starts at `(0.01,0.5,0.005)` and ends at `(0.99,0.5,0.005)`; both therefore use coordinates 0.01 through 0.99 in increments of 0.01 and include coordinate 0.5. Run the sampling operation and save its output as `log.sample`. Create `/home/user/Desktop/postprocess.py` that parses the raw samples, writes `/home/user/Desktop/vertical_centerline.csv` with columns `y_m,ux_mps,uy_mps`, writes `/home/user/Desktop/horizontal_centerline.csv` with columns `x_m,ux_mps,uy_mps`, defines `ux_center` as vertical-profile `Ux` at `y=0.5`, defines `uy_center` as horizontal-profile `Uy` at `x=0.5`, and writes `/home/user/Desktop/summary.txt` as one CSV line `ux_center, uy_center`. Do not hard-code results and do not use GUI tools.",
"source": "https://github.com/openfoam/openfoam-dev",
"config": [
{
"type": "upload_file",
"parameters": {
"files": [
{
"local_path": "task-18/init_file/cavity_base.tar",
"path": "/home/user/Desktop/cavity_base.tar"
}
]
}
},
{
"type": "launch",
"parameters": {
"command": "bash -c \"mkdir -p '/home/user/Desktop/' && tar -xf '/home/user/Desktop/cavity_base.tar' -C '/home/user/Desktop/' && rm -f '/home/user/Desktop/cavity_base.tar'\"",
"shell": true
}
}
],
"trajectory": "trajectories/",
"related_apps": [
"openfoam"
],
"artifact_paths": [
"/home/user/Desktop/horizontal_centerline.csv",
"/home/user/Desktop/postprocess.py",
"/home/user/Desktop/summary.txt",
"/home/user/Desktop/vertical_centerline.csv"
],
"evaluator": {
"postconfig": [
{
"type": "upload_file",
"parameters": {
"files": [
{
"local_path": "task-18/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"
}