HongchengGao's picture
Align task taxonomy and IDs with the updated paper; main evaluation 306
3de3b50 verified
Raw History Blame Contribute Delete
2.44 kB
{
"id": "single-software-execution--cli--fenics--task-08--ubuntu",
"snapshot": "FEniCS",
"instruction": "The starting input is a legacy FEniCS/DOLFIN Stokes-flow template `/home/user/Desktop/stokes_base.py` for a 2D pipe. Run with the legacy `dolfin` API used by the template (for example, FEniCS/DOLFIN 2019.1.0), not DOLFINx. At the start of the task, run legacy FEniCS with `/home/user/miniconda3/bin/conda run --no-capture-output --prefix /home/user/miniconda3/envs/fenics-legacy python` when working on `stokes_base.py`.\n\nComplete the following: 1. Modify and generate `/home/user/Desktop/stokes.py`: - Use `MixedElement([VectorElement(\"P\", mesh.ufl_cell(), 2), FiniteElement(\"P\", mesh.ufl_cell(), 1)])` - Inlet velocity: `u = (4*0.3*x[1]*(0.41-x[1])/(0.41**2), 0)` - No-slip on walls and the natural do-nothing (zero-traction) condition at the outlet, which fixes the outlet pressure reference for this fully developed profile - Viscosity `nu=0.001` - Solve 2. Extract and save to `/home/user/Desktop/summary.txt`: - Outlet (`x=2.2`) boundary-average pressure - Global maximum velocity magnitude Format: `outlet_pressure, max_velocity`",
"source": "https://olddocs.fenicsproject.org/dolfin/2019.1.0/python/",
"config": [
{
"type": "upload_file",
"parameters": {
"files": [
{
"local_path": "task-08/init_file/stokes_base.py",
"path": "/home/user/Desktop/stokes_base.py"
}
]
}
}
],
"trajectory": "trajectories/",
"related_apps": [
"fenics"
],
"artifact_paths": [
"/home/user/Desktop/stokes.py",
"/home/user/Desktop/summary.txt"
],
"evaluator": {
"postconfig": [
{
"type": "upload_file",
"parameters": {
"files": [
{
"local_path": "task-08/eval.py",
"path": "/home/user/Desktop/eval.py"
}
]
}
}
],
"func": "exact_match",
"result": {
"type": "vm_command_line",
"command": "/home/user/miniconda3/bin/conda run --no-capture-output --prefix /home/user/miniconda3/envs/fenics-legacy /home/user/miniconda3/envs/fenics-legacy/bin/python /home/user/Desktop/eval.py",
"shell": "true"
},
"expected": {
"type": "rule",
"rules": {
"expected": "True\n"
}
}
},
"proxy": false,
"fixed_ip": false,
"possibility_of_env_change": "low"
}