File size: 2,638 Bytes
5154c4e
3de3b50
5154c4e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
{
  "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"
}