Download task/single-software-execution/cli/fenics/task-13/task-13.json from HongchengGao/EngiWorld-Tasks: direct link, hf CLI and curl.
- Browser
- Download file 2.64 kB
-
https://huggingface.co/datasets/HongchengGao/EngiWorld-Tasks/resolve/main/task/single-software-execution/cli/fenics/task-13/task-13.json
- Command line
-
hf download hf://datasets/HongchengGao/EngiWorld-Tasks/task/single-software-execution/cli/fenics/task-13/task-13.json
-
curl -L -o task-13.json https://huggingface.co/datasets/HongchengGao/EngiWorld-Tasks/resolve/main/task/single-software-execution/cli/fenics/task-13/task-13.json
2.64 kB
| { | |
| "id": "single-software-execution--cli--fenics--task-13--ubuntu", | |
| "snapshot": "FEniCS", | |
| "instruction": "Treat a placeholder-containing template `/home/user/Desktop/re_scan_base.py` as the starting point. Run your scripts with Python in a legacy FEniCS/DOLFIN environment (e.g. `from dolfin import *`). For the steps below, run legacy FEniCS with `/home/user/miniconda3/bin/conda run --no-capture-output --prefix /home/user/miniconda3/envs/fenics-legacy python` when working on `re_scan_base.py`.\n\nComplete parameterized batch scanning: 1. Use Python or shell script to generate 3 files from the template: - `/home/user/Desktop/re_100.py` (`Re=100`) - `/home/user/Desktop/re_400.py` (`Re=400`) - `/home/user/Desktop/re_1000.py` (`Re=1000`) 2. Run all 3 independent solves. 3. In each script, extract X-direction velocity at geometric center `(0.5, 0.5)` and write `Re, center_ux` to its corresponding result file: `/home/user/Desktop/re_100.result`, `/home/user/Desktop/re_400.result`, or `/home/user/Desktop/re_1000.result`. 4. Write summary script `/home/user/Desktop/summarize.py` to read all 3 result files: - Output `/home/user/Desktop/summary.txt` in this format: `Re, center_ux`", | |
| "source": "https://fenicsproject.org/olddocs/dolfin/2019.1.0/python/demos/navier-stokes/demo_navier-stokes.py.html", | |
| "config": [ | |
| { | |
| "type": "upload_file", | |
| "parameters": { | |
| "files": [ | |
| { | |
| "local_path": "task-13/init_file/re_scan_base.py", | |
| "path": "/home/user/Desktop/re_scan_base.py" | |
| } | |
| ] | |
| } | |
| } | |
| ], | |
| "trajectory": "trajectories/", | |
| "related_apps": [ | |
| "fenics" | |
| ], | |
| "artifact_paths": [ | |
| "/home/user/Desktop/re_100.py", | |
| "/home/user/Desktop/re_1000.py", | |
| "/home/user/Desktop/re_400.py", | |
| "/home/user/Desktop/summarize.py", | |
| "/home/user/Desktop/summary.txt" | |
| ], | |
| "evaluator": { | |
| "postconfig": [ | |
| { | |
| "type": "upload_file", | |
| "parameters": { | |
| "files": [ | |
| { | |
| "local_path": "task-13/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" | |
| } | |