HongchengGao's picture
Align task taxonomy and IDs with the updated paper; main evaluation 306
3de3b50 verified
Raw History Blame Contribute Delete
3.76 kB
{
"id": "single-software-execution--cli--openfoam--task-20--ubuntu",
"snapshot": "OpenFOAM11",
"instruction": "With OpenFOAM from the command line, copy `/home/user/Desktop/dynamic_base/` to `/home/user/Desktop/dynamic/` and solve the fixed moving-cylinder case. Source the installed OpenFOAM environment before running OpenFOAM commands. Before starting the work, 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\nKeep the template's body-fitted 20-block, 1,800-cell mesh around the circular cylinder of radius 1 m and span 2 m, with nominal outer limits `x=-5..5 m` and `y=-1.5..2.5 m`. Use inlet velocity `(0.5 0 0)` m/s, zero-gauge-pressure outlet, slip upper/lower boundaries, density `1 kg/m^3`, kinematic viscosity `0.01 m^2/s` (`Re_D=100`), and laminar flow. Use `topoSet` with a cylinder of radius 1.41 m about the z axis to create the near-body cell zone `movingZone`. Configure the OpenFOAM 11 `motionSolver` mesh mover with the `solidBody` solver on that zone. The cylinder and near-body mesh oscillate rotationally about `(0 0 0)` with amplitude `(0 0 5)` degrees and angular frequency `2*pi rad/s` (1 Hz). Run `blockMesh`, require successful initial `checkMesh`, run `topoSet`, then run `pimpleFoam` with `deltaT=0.001 s` through the exact final time `t=2 s`, writing fields every 0.25 s. Require a successful final `checkMesh -latestTime`. Save logs as `/home/user/Desktop/dynamic/log.blockMesh`, `log.checkMesh`, `log.topoSet`, `log.pimpleFoam`, and `log.checkMeshFinal`; failed mesh checks are not acceptable. Add an online `forces` function object on `cylinder` with `rhoInf=1` and `CofR=(0 0 0)`. This case has no porosity model, so OpenFOAM 11 writes pressure and viscous force vectors only. Define `final_fx` as the sum of the pressure and viscous x-force components in the last `forces.dat` row at exactly `t=2 s`. Create `/home/user/Desktop/postprocess.py` that writes the complete force history to `/home/user/Desktop/force_history.csv` with columns `time_s,pressure_fx_n,viscous_fx_n,total_fx_n` and writes `/home/user/Desktop/summary.txt` as one line containing `final_fx`. 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-20/init_file/dynamic_base.tar",
"path": "/home/user/Desktop/dynamic_base.tar"
}
]
}
},
{
"type": "launch",
"parameters": {
"command": "bash -c \"mkdir -p '/home/user/Desktop/' && tar -xf '/home/user/Desktop/dynamic_base.tar' -C '/home/user/Desktop/' && rm -f '/home/user/Desktop/dynamic_base.tar'\"",
"shell": true
}
}
],
"trajectory": "trajectories/",
"related_apps": [
"openfoam"
],
"artifact_paths": [
"/home/user/Desktop/force_history.csv",
"/home/user/Desktop/forces.dat",
"/home/user/Desktop/postprocess.py",
"/home/user/Desktop/summary.txt"
],
"evaluator": {
"postconfig": [
{
"type": "upload_file",
"parameters": {
"files": [
{
"local_path": "task-20/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"
}