HongchengGao's picture
Align task taxonomy and IDs with the updated paper; main evaluation 306
3de3b50 verified
Raw History Blame Contribute Delete
2.39 kB
{
"id": "single-software-execution--cli--fenics--task-07--ubuntu",
"snapshot": "FEniCS",
"instruction": "Begin with a legacy FEniCS/DOLFIN transient heat-conduction template `/home/user/Desktop/transient_heat_base.py`. Run with the legacy `dolfin` API used by the template (for example, FEniCS/DOLFIN 2019.1.0), not DOLFINx. For this workflow, run legacy FEniCS with `/home/user/miniconda3/bin/conda run --no-capture-output --prefix /home/user/miniconda3/envs/fenics-legacy python` when working on `transient_heat_base.py`.\n\nComplete the following: 1. Modify and generate `/home/user/Desktop/transient.py`: - Complete the backward-Euler variational form - Implement `for n in range(100)` with `dt=0.1 s`, using the template's `alpha=50 mm^2/s`, initial temperature 20°C, left surface temperature 100°C, and natural insulated conditions on the other boundaries - Update each step with `u_n.assign(u)` - At `t=10 s`, extract the left-surface temperature and the temperature at `(5 mm, 25 mm)` 2. Run and save to `/home/user/Desktop/summary.txt`: Format: `surface_temp, temp_at_5mm`",
"source": "https://olddocs.fenicsproject.org/dolfin/2019.1.0/python/",
"config": [
{
"type": "upload_file",
"parameters": {
"files": [
{
"local_path": "task-07/init_file/transient_heat_base.py",
"path": "/home/user/Desktop/transient_heat_base.py"
}
]
}
}
],
"trajectory": "trajectories/",
"related_apps": [
"fenics"
],
"artifact_paths": [
"/home/user/Desktop/summary.txt",
"/home/user/Desktop/transient.py"
],
"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": "/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"
}