hpcflow 0.1.9__py3-none-any.whl → 0.2.0a271__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- hpcflow/__init__.py +2 -11
- hpcflow/__pyinstaller/__init__.py +5 -0
- hpcflow/__pyinstaller/hook-hpcflow.py +40 -0
- hpcflow/_version.py +1 -1
- hpcflow/app.py +43 -0
- hpcflow/cli.py +2 -462
- hpcflow/data/demo_data_manifest/__init__.py +3 -0
- hpcflow/data/demo_data_manifest/demo_data_manifest.json +6 -0
- hpcflow/data/jinja_templates/test/test_template.txt +8 -0
- hpcflow/data/programs/hello_world/README.md +1 -0
- hpcflow/data/programs/hello_world/hello_world.c +87 -0
- hpcflow/data/programs/hello_world/linux/hello_world +0 -0
- hpcflow/data/programs/hello_world/macos/hello_world +0 -0
- hpcflow/data/programs/hello_world/win/hello_world.exe +0 -0
- hpcflow/data/scripts/__init__.py +1 -0
- hpcflow/data/scripts/bad_script.py +2 -0
- hpcflow/data/scripts/demo_task_1_generate_t1_infile_1.py +8 -0
- hpcflow/data/scripts/demo_task_1_generate_t1_infile_2.py +8 -0
- hpcflow/data/scripts/demo_task_1_parse_p3.py +7 -0
- hpcflow/data/scripts/do_nothing.py +2 -0
- hpcflow/data/scripts/env_specifier_test/input_file_generator_pass_env_spec.py +4 -0
- hpcflow/data/scripts/env_specifier_test/main_script_test_pass_env_spec.py +8 -0
- hpcflow/data/scripts/env_specifier_test/output_file_parser_pass_env_spec.py +4 -0
- hpcflow/data/scripts/env_specifier_test/v1/input_file_generator_basic.py +4 -0
- hpcflow/data/scripts/env_specifier_test/v1/main_script_test_direct_in_direct_out.py +7 -0
- hpcflow/data/scripts/env_specifier_test/v1/output_file_parser_basic.py +4 -0
- hpcflow/data/scripts/env_specifier_test/v2/main_script_test_direct_in_direct_out.py +7 -0
- hpcflow/data/scripts/generate_t1_file_01.py +7 -0
- hpcflow/data/scripts/import_future_script.py +7 -0
- hpcflow/data/scripts/input_file_generator_basic.py +3 -0
- hpcflow/data/scripts/input_file_generator_basic_FAIL.py +3 -0
- hpcflow/data/scripts/input_file_generator_test_stdout_stderr.py +8 -0
- hpcflow/data/scripts/main_script_test_direct_in.py +3 -0
- hpcflow/data/scripts/main_script_test_direct_in_direct_out.py +6 -0
- hpcflow/data/scripts/main_script_test_direct_in_direct_out_2.py +6 -0
- hpcflow/data/scripts/main_script_test_direct_in_direct_out_2_fail_allowed.py +6 -0
- hpcflow/data/scripts/main_script_test_direct_in_direct_out_2_fail_allowed_group.py +7 -0
- hpcflow/data/scripts/main_script_test_direct_in_direct_out_3.py +6 -0
- hpcflow/data/scripts/main_script_test_direct_in_direct_out_all_iters_test.py +15 -0
- hpcflow/data/scripts/main_script_test_direct_in_direct_out_env_spec.py +7 -0
- hpcflow/data/scripts/main_script_test_direct_in_direct_out_labels.py +8 -0
- hpcflow/data/scripts/main_script_test_direct_in_group_direct_out_3.py +6 -0
- hpcflow/data/scripts/main_script_test_direct_in_group_one_fail_direct_out_3.py +6 -0
- hpcflow/data/scripts/main_script_test_direct_sub_param_in_direct_out.py +6 -0
- hpcflow/data/scripts/main_script_test_hdf5_in_obj.py +12 -0
- hpcflow/data/scripts/main_script_test_hdf5_in_obj_2.py +12 -0
- hpcflow/data/scripts/main_script_test_hdf5_in_obj_group.py +12 -0
- hpcflow/data/scripts/main_script_test_hdf5_out_obj.py +11 -0
- hpcflow/data/scripts/main_script_test_json_and_direct_in_json_out.py +14 -0
- hpcflow/data/scripts/main_script_test_json_in_json_and_direct_out.py +17 -0
- hpcflow/data/scripts/main_script_test_json_in_json_out.py +14 -0
- hpcflow/data/scripts/main_script_test_json_in_json_out_labels.py +16 -0
- hpcflow/data/scripts/main_script_test_json_in_obj.py +12 -0
- hpcflow/data/scripts/main_script_test_json_out_FAIL.py +3 -0
- hpcflow/data/scripts/main_script_test_json_out_obj.py +10 -0
- hpcflow/data/scripts/main_script_test_json_sub_param_in_json_out_labels.py +16 -0
- hpcflow/data/scripts/main_script_test_shell_env_vars.py +12 -0
- hpcflow/data/scripts/main_script_test_std_out_std_err.py +6 -0
- hpcflow/data/scripts/output_file_parser_basic.py +3 -0
- hpcflow/data/scripts/output_file_parser_basic_FAIL.py +7 -0
- hpcflow/data/scripts/output_file_parser_test_stdout_stderr.py +8 -0
- hpcflow/data/scripts/parse_t1_file_01.py +4 -0
- hpcflow/data/scripts/script_exit_test.py +5 -0
- hpcflow/data/template_components/__init__.py +1 -0
- hpcflow/data/template_components/command_files.yaml +26 -0
- hpcflow/data/template_components/environments.yaml +13 -0
- hpcflow/data/template_components/parameters.yaml +14 -0
- hpcflow/data/template_components/task_schemas.yaml +139 -0
- hpcflow/data/workflows/workflow_1.yaml +5 -0
- hpcflow/examples.ipynb +1037 -0
- hpcflow/sdk/__init__.py +149 -0
- hpcflow/sdk/app.py +4266 -0
- hpcflow/sdk/cli.py +1479 -0
- hpcflow/sdk/cli_common.py +385 -0
- hpcflow/sdk/config/__init__.py +5 -0
- hpcflow/sdk/config/callbacks.py +246 -0
- hpcflow/sdk/config/cli.py +388 -0
- hpcflow/sdk/config/config.py +1410 -0
- hpcflow/sdk/config/config_file.py +501 -0
- hpcflow/sdk/config/errors.py +272 -0
- hpcflow/sdk/config/types.py +150 -0
- hpcflow/sdk/core/__init__.py +38 -0
- hpcflow/sdk/core/actions.py +3857 -0
- hpcflow/sdk/core/app_aware.py +25 -0
- hpcflow/sdk/core/cache.py +224 -0
- hpcflow/sdk/core/command_files.py +814 -0
- hpcflow/sdk/core/commands.py +424 -0
- hpcflow/sdk/core/element.py +2071 -0
- hpcflow/sdk/core/enums.py +221 -0
- hpcflow/sdk/core/environment.py +256 -0
- hpcflow/sdk/core/errors.py +1043 -0
- hpcflow/sdk/core/execute.py +207 -0
- hpcflow/sdk/core/json_like.py +809 -0
- hpcflow/sdk/core/loop.py +1320 -0
- hpcflow/sdk/core/loop_cache.py +282 -0
- hpcflow/sdk/core/object_list.py +933 -0
- hpcflow/sdk/core/parameters.py +3371 -0
- hpcflow/sdk/core/rule.py +196 -0
- hpcflow/sdk/core/run_dir_files.py +57 -0
- hpcflow/sdk/core/skip_reason.py +7 -0
- hpcflow/sdk/core/task.py +3792 -0
- hpcflow/sdk/core/task_schema.py +993 -0
- hpcflow/sdk/core/test_utils.py +538 -0
- hpcflow/sdk/core/types.py +447 -0
- hpcflow/sdk/core/utils.py +1207 -0
- hpcflow/sdk/core/validation.py +87 -0
- hpcflow/sdk/core/values.py +477 -0
- hpcflow/sdk/core/workflow.py +4820 -0
- hpcflow/sdk/core/zarr_io.py +206 -0
- hpcflow/sdk/data/__init__.py +13 -0
- hpcflow/sdk/data/config_file_schema.yaml +34 -0
- hpcflow/sdk/data/config_schema.yaml +260 -0
- hpcflow/sdk/data/environments_spec_schema.yaml +21 -0
- hpcflow/sdk/data/files_spec_schema.yaml +5 -0
- hpcflow/sdk/data/parameters_spec_schema.yaml +7 -0
- hpcflow/sdk/data/task_schema_spec_schema.yaml +3 -0
- hpcflow/sdk/data/workflow_spec_schema.yaml +22 -0
- hpcflow/sdk/demo/__init__.py +3 -0
- hpcflow/sdk/demo/cli.py +242 -0
- hpcflow/sdk/helper/__init__.py +3 -0
- hpcflow/sdk/helper/cli.py +137 -0
- hpcflow/sdk/helper/helper.py +300 -0
- hpcflow/sdk/helper/watcher.py +192 -0
- hpcflow/sdk/log.py +288 -0
- hpcflow/sdk/persistence/__init__.py +18 -0
- hpcflow/sdk/persistence/base.py +2817 -0
- hpcflow/sdk/persistence/defaults.py +6 -0
- hpcflow/sdk/persistence/discovery.py +39 -0
- hpcflow/sdk/persistence/json.py +954 -0
- hpcflow/sdk/persistence/pending.py +948 -0
- hpcflow/sdk/persistence/store_resource.py +203 -0
- hpcflow/sdk/persistence/types.py +309 -0
- hpcflow/sdk/persistence/utils.py +73 -0
- hpcflow/sdk/persistence/zarr.py +2388 -0
- hpcflow/sdk/runtime.py +320 -0
- hpcflow/sdk/submission/__init__.py +3 -0
- hpcflow/sdk/submission/enums.py +70 -0
- hpcflow/sdk/submission/jobscript.py +2379 -0
- hpcflow/sdk/submission/schedulers/__init__.py +281 -0
- hpcflow/sdk/submission/schedulers/direct.py +233 -0
- hpcflow/sdk/submission/schedulers/sge.py +376 -0
- hpcflow/sdk/submission/schedulers/slurm.py +598 -0
- hpcflow/sdk/submission/schedulers/utils.py +25 -0
- hpcflow/sdk/submission/shells/__init__.py +52 -0
- hpcflow/sdk/submission/shells/base.py +229 -0
- hpcflow/sdk/submission/shells/bash.py +504 -0
- hpcflow/sdk/submission/shells/os_version.py +115 -0
- hpcflow/sdk/submission/shells/powershell.py +352 -0
- hpcflow/sdk/submission/submission.py +1402 -0
- hpcflow/sdk/submission/types.py +140 -0
- hpcflow/sdk/typing.py +194 -0
- hpcflow/sdk/utils/arrays.py +69 -0
- hpcflow/sdk/utils/deferred_file.py +55 -0
- hpcflow/sdk/utils/hashing.py +16 -0
- hpcflow/sdk/utils/patches.py +31 -0
- hpcflow/sdk/utils/strings.py +69 -0
- hpcflow/tests/api/test_api.py +32 -0
- hpcflow/tests/conftest.py +123 -0
- hpcflow/tests/data/__init__.py +0 -0
- hpcflow/tests/data/benchmark_N_elements.yaml +6 -0
- hpcflow/tests/data/benchmark_script_runner.yaml +26 -0
- hpcflow/tests/data/multi_path_sequences.yaml +29 -0
- hpcflow/tests/data/workflow_1.json +10 -0
- hpcflow/tests/data/workflow_1.yaml +5 -0
- hpcflow/tests/data/workflow_1_slurm.yaml +8 -0
- hpcflow/tests/data/workflow_1_wsl.yaml +8 -0
- hpcflow/tests/data/workflow_test_run_abort.yaml +42 -0
- hpcflow/tests/jinja_templates/test_jinja_templates.py +161 -0
- hpcflow/tests/programs/test_programs.py +180 -0
- hpcflow/tests/schedulers/direct_linux/test_direct_linux_submission.py +12 -0
- hpcflow/tests/schedulers/sge/test_sge_submission.py +36 -0
- hpcflow/tests/schedulers/slurm/test_slurm_submission.py +14 -0
- hpcflow/tests/scripts/test_input_file_generators.py +282 -0
- hpcflow/tests/scripts/test_main_scripts.py +1361 -0
- hpcflow/tests/scripts/test_non_snippet_script.py +46 -0
- hpcflow/tests/scripts/test_ouput_file_parsers.py +353 -0
- hpcflow/tests/shells/wsl/test_wsl_submission.py +14 -0
- hpcflow/tests/unit/test_action.py +1066 -0
- hpcflow/tests/unit/test_action_rule.py +24 -0
- hpcflow/tests/unit/test_app.py +132 -0
- hpcflow/tests/unit/test_cache.py +46 -0
- hpcflow/tests/unit/test_cli.py +172 -0
- hpcflow/tests/unit/test_command.py +377 -0
- hpcflow/tests/unit/test_config.py +195 -0
- hpcflow/tests/unit/test_config_file.py +162 -0
- hpcflow/tests/unit/test_element.py +666 -0
- hpcflow/tests/unit/test_element_iteration.py +88 -0
- hpcflow/tests/unit/test_element_set.py +158 -0
- hpcflow/tests/unit/test_group.py +115 -0
- hpcflow/tests/unit/test_input_source.py +1479 -0
- hpcflow/tests/unit/test_input_value.py +398 -0
- hpcflow/tests/unit/test_jobscript_unit.py +757 -0
- hpcflow/tests/unit/test_json_like.py +1247 -0
- hpcflow/tests/unit/test_loop.py +2674 -0
- hpcflow/tests/unit/test_meta_task.py +325 -0
- hpcflow/tests/unit/test_multi_path_sequences.py +259 -0
- hpcflow/tests/unit/test_object_list.py +116 -0
- hpcflow/tests/unit/test_parameter.py +243 -0
- hpcflow/tests/unit/test_persistence.py +664 -0
- hpcflow/tests/unit/test_resources.py +243 -0
- hpcflow/tests/unit/test_run.py +286 -0
- hpcflow/tests/unit/test_run_directories.py +29 -0
- hpcflow/tests/unit/test_runtime.py +9 -0
- hpcflow/tests/unit/test_schema_input.py +372 -0
- hpcflow/tests/unit/test_shell.py +129 -0
- hpcflow/tests/unit/test_slurm.py +39 -0
- hpcflow/tests/unit/test_submission.py +502 -0
- hpcflow/tests/unit/test_task.py +2560 -0
- hpcflow/tests/unit/test_task_schema.py +182 -0
- hpcflow/tests/unit/test_utils.py +616 -0
- hpcflow/tests/unit/test_value_sequence.py +549 -0
- hpcflow/tests/unit/test_values.py +91 -0
- hpcflow/tests/unit/test_workflow.py +827 -0
- hpcflow/tests/unit/test_workflow_template.py +186 -0
- hpcflow/tests/unit/utils/test_arrays.py +40 -0
- hpcflow/tests/unit/utils/test_deferred_file_writer.py +34 -0
- hpcflow/tests/unit/utils/test_hashing.py +65 -0
- hpcflow/tests/unit/utils/test_patches.py +5 -0
- hpcflow/tests/unit/utils/test_redirect_std.py +50 -0
- hpcflow/tests/unit/utils/test_strings.py +97 -0
- hpcflow/tests/workflows/__init__.py +0 -0
- hpcflow/tests/workflows/test_directory_structure.py +31 -0
- hpcflow/tests/workflows/test_jobscript.py +355 -0
- hpcflow/tests/workflows/test_run_status.py +198 -0
- hpcflow/tests/workflows/test_skip_downstream.py +696 -0
- hpcflow/tests/workflows/test_submission.py +140 -0
- hpcflow/tests/workflows/test_workflows.py +564 -0
- hpcflow/tests/workflows/test_zip.py +18 -0
- hpcflow/viz_demo.ipynb +6794 -0
- hpcflow-0.2.0a271.dist-info/LICENSE +375 -0
- hpcflow-0.2.0a271.dist-info/METADATA +65 -0
- hpcflow-0.2.0a271.dist-info/RECORD +237 -0
- {hpcflow-0.1.9.dist-info → hpcflow-0.2.0a271.dist-info}/WHEEL +4 -5
- hpcflow-0.2.0a271.dist-info/entry_points.txt +6 -0
- hpcflow/api.py +0 -458
- hpcflow/archive/archive.py +0 -308
- hpcflow/archive/cloud/cloud.py +0 -47
- hpcflow/archive/cloud/errors.py +0 -9
- hpcflow/archive/cloud/providers/dropbox.py +0 -432
- hpcflow/archive/errors.py +0 -5
- hpcflow/base_db.py +0 -4
- hpcflow/config.py +0 -232
- hpcflow/copytree.py +0 -66
- hpcflow/data/examples/_config.yml +0 -14
- hpcflow/data/examples/damask/demo/1.run.yml +0 -4
- hpcflow/data/examples/damask/demo/2.process.yml +0 -29
- hpcflow/data/examples/damask/demo/geom.geom +0 -2052
- hpcflow/data/examples/damask/demo/load.load +0 -1
- hpcflow/data/examples/damask/demo/material.config +0 -185
- hpcflow/data/examples/damask/inputs/geom.geom +0 -2052
- hpcflow/data/examples/damask/inputs/load.load +0 -1
- hpcflow/data/examples/damask/inputs/material.config +0 -185
- hpcflow/data/examples/damask/profiles/_variable_lookup.yml +0 -21
- hpcflow/data/examples/damask/profiles/damask.yml +0 -4
- hpcflow/data/examples/damask/profiles/damask_process.yml +0 -8
- hpcflow/data/examples/damask/profiles/damask_run.yml +0 -5
- hpcflow/data/examples/damask/profiles/default.yml +0 -6
- hpcflow/data/examples/thinking.yml +0 -177
- hpcflow/errors.py +0 -2
- hpcflow/init_db.py +0 -37
- hpcflow/models.py +0 -2549
- hpcflow/nesting.py +0 -9
- hpcflow/profiles.py +0 -455
- hpcflow/project.py +0 -81
- hpcflow/scheduler.py +0 -323
- hpcflow/utils.py +0 -103
- hpcflow/validation.py +0 -167
- hpcflow/variables.py +0 -544
- hpcflow-0.1.9.dist-info/METADATA +0 -168
- hpcflow-0.1.9.dist-info/RECORD +0 -45
- hpcflow-0.1.9.dist-info/entry_points.txt +0 -8
- hpcflow-0.1.9.dist-info/top_level.txt +0 -1
- /hpcflow/{archive → data/jinja_templates}/__init__.py +0 -0
- /hpcflow/{archive/cloud → data/programs}/__init__.py +0 -0
- /hpcflow/{archive/cloud/providers → data/workflows}/__init__.py +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
fdot 0.0001 0 0 0 * 0 0 0 * p * * * * 0 * * * 0 time 100 incs 100
|
|
@@ -1,185 +0,0 @@
|
|
|
1
|
-
#-------------------#
|
|
2
|
-
<homogenization>
|
|
3
|
-
#-------------------#
|
|
4
|
-
[SX]
|
|
5
|
-
type none
|
|
6
|
-
|
|
7
|
-
#-------------------#
|
|
8
|
-
<crystallite>
|
|
9
|
-
#-------------------#
|
|
10
|
-
[almostAll]
|
|
11
|
-
(output) e
|
|
12
|
-
(output) ee
|
|
13
|
-
(output) eulerangles
|
|
14
|
-
(output) f
|
|
15
|
-
(output) fe
|
|
16
|
-
(output) fp
|
|
17
|
-
(output) grainrotation
|
|
18
|
-
(output) lp
|
|
19
|
-
(output) orientation
|
|
20
|
-
(output) p
|
|
21
|
-
(output) phase
|
|
22
|
-
(output) texture
|
|
23
|
-
(output) volume
|
|
24
|
-
|
|
25
|
-
#-------------------#
|
|
26
|
-
<phase>
|
|
27
|
-
#-------------------#
|
|
28
|
-
[Aluminium_phenopowerlaw]
|
|
29
|
-
Nslip 12
|
|
30
|
-
Ntwin 0
|
|
31
|
-
a_slip 2.25
|
|
32
|
-
atol_resistance 1
|
|
33
|
-
c11 106.75e9
|
|
34
|
-
c12 60.41e9
|
|
35
|
-
c44 28.34e9
|
|
36
|
-
elasticity hooke
|
|
37
|
-
gdot0_slip 0.001
|
|
38
|
-
h0_slipslip 75e6
|
|
39
|
-
interaction_slipslip 1 1 1.4 1.4 1.4 1.4
|
|
40
|
-
lattice_structure fcc
|
|
41
|
-
n_slip 20
|
|
42
|
-
plasticity phenopowerlaw
|
|
43
|
-
tau0_slip 31e6
|
|
44
|
-
tausat_slip 63e6
|
|
45
|
-
(output) resistance_slip
|
|
46
|
-
(output) resistance_twin
|
|
47
|
-
(output) resolvedstress_slip
|
|
48
|
-
(output) resolvedstress_twin
|
|
49
|
-
(output) shearrate_slip
|
|
50
|
-
(output) shearrate_twin
|
|
51
|
-
(output) totalshear
|
|
52
|
-
(output) totalvolfrac
|
|
53
|
-
|
|
54
|
-
#-------------------#
|
|
55
|
-
<Microstructure>
|
|
56
|
-
#-------------------#
|
|
57
|
-
[Grain01]
|
|
58
|
-
crystallite 1
|
|
59
|
-
(constituent) phase 1 texture 01 fraction 1.0
|
|
60
|
-
[Grain02]
|
|
61
|
-
crystallite 1
|
|
62
|
-
(constituent) phase 1 texture 02 fraction 1.0
|
|
63
|
-
[Grain03]
|
|
64
|
-
crystallite 1
|
|
65
|
-
(constituent) phase 1 texture 03 fraction 1.0
|
|
66
|
-
[Grain04]
|
|
67
|
-
crystallite 1
|
|
68
|
-
(constituent) phase 1 texture 04 fraction 1.0
|
|
69
|
-
[Grain05]
|
|
70
|
-
crystallite 1
|
|
71
|
-
(constituent) phase 1 texture 05 fraction 1.0
|
|
72
|
-
[Grain06]
|
|
73
|
-
crystallite 1
|
|
74
|
-
(constituent) phase 1 texture 06 fraction 1.0
|
|
75
|
-
[Grain07]
|
|
76
|
-
crystallite 1
|
|
77
|
-
(constituent) phase 1 texture 07 fraction 1.0
|
|
78
|
-
[Grain08]
|
|
79
|
-
crystallite 1
|
|
80
|
-
(constituent) phase 1 texture 08 fraction 1.0
|
|
81
|
-
[Grain09]
|
|
82
|
-
crystallite 1
|
|
83
|
-
(constituent) phase 1 texture 09 fraction 1.0
|
|
84
|
-
[Grain10]
|
|
85
|
-
crystallite 1
|
|
86
|
-
(constituent) phase 1 texture 10 fraction 1.0
|
|
87
|
-
[Grain11]
|
|
88
|
-
crystallite 1
|
|
89
|
-
(constituent) phase 1 texture 11 fraction 1.0
|
|
90
|
-
[Grain12]
|
|
91
|
-
crystallite 1
|
|
92
|
-
(constituent) phase 1 texture 12 fraction 1.0
|
|
93
|
-
[Grain13]
|
|
94
|
-
crystallite 1
|
|
95
|
-
(constituent) phase 1 texture 13 fraction 1.0
|
|
96
|
-
[Grain14]
|
|
97
|
-
crystallite 1
|
|
98
|
-
(constituent) phase 1 texture 14 fraction 1.0
|
|
99
|
-
[Grain15]
|
|
100
|
-
crystallite 1
|
|
101
|
-
(constituent) phase 1 texture 15 fraction 1.0
|
|
102
|
-
[Grain16]
|
|
103
|
-
crystallite 1
|
|
104
|
-
(constituent) phase 1 texture 16 fraction 1.0
|
|
105
|
-
[Grain17]
|
|
106
|
-
crystallite 1
|
|
107
|
-
(constituent) phase 1 texture 17 fraction 1.0
|
|
108
|
-
[Grain18]
|
|
109
|
-
crystallite 1
|
|
110
|
-
(constituent) phase 1 texture 18 fraction 1.0
|
|
111
|
-
[Grain19]
|
|
112
|
-
crystallite 1
|
|
113
|
-
(constituent) phase 1 texture 19 fraction 1.0
|
|
114
|
-
[Grain20]
|
|
115
|
-
crystallite 1
|
|
116
|
-
(constituent) phase 1 texture 20 fraction 1.0
|
|
117
|
-
[Grain21]
|
|
118
|
-
crystallite 1
|
|
119
|
-
(constituent) phase 1 texture 21 fraction 1.0
|
|
120
|
-
[Grain22]
|
|
121
|
-
crystallite 1
|
|
122
|
-
(constituent) phase 1 texture 22 fraction 1.0
|
|
123
|
-
[Grain23]
|
|
124
|
-
crystallite 1
|
|
125
|
-
(constituent) phase 1 texture 23 fraction 1.0
|
|
126
|
-
[Grain24]
|
|
127
|
-
crystallite 1
|
|
128
|
-
(constituent) phase 1 texture 24 fraction 1.0
|
|
129
|
-
[Grain25]
|
|
130
|
-
crystallite 1
|
|
131
|
-
(constituent) phase 1 texture 25 fraction 1.0
|
|
132
|
-
|
|
133
|
-
#-------------------#
|
|
134
|
-
<Texture>
|
|
135
|
-
#-------------------#
|
|
136
|
-
[Grain01]
|
|
137
|
-
(gauss) phi1 129.2770 Phi 137.0130 phi2 300.4130 scatter 0.0 fraction 1.0
|
|
138
|
-
[Grain02]
|
|
139
|
-
(gauss) phi1 356.6480 Phi 104.6600 phi2 232.2710 scatter 0.0 fraction 1.0
|
|
140
|
-
[Grain03]
|
|
141
|
-
(gauss) phi1 99.1848 Phi 88.8519 phi2 181.9760 scatter 0.0 fraction 1.0
|
|
142
|
-
[Grain04]
|
|
143
|
-
(gauss) phi1 244.0830 Phi 126.6360 phi2 53.6494 scatter 0.0 fraction 1.0
|
|
144
|
-
[Grain05]
|
|
145
|
-
(gauss) phi1 164.8460 Phi 125.4190 phi2 109.2600 scatter 0.0 fraction 1.0
|
|
146
|
-
[Grain06]
|
|
147
|
-
(gauss) phi1 180.3420 Phi 96.1340 phi2 157.0620 scatter 0.0 fraction 1.0
|
|
148
|
-
[Grain07]
|
|
149
|
-
(gauss) phi1 50.3119 Phi 97.4199 phi2 69.0678 scatter 0.0 fraction 1.0
|
|
150
|
-
[Grain08]
|
|
151
|
-
(gauss) phi1 3.0704 Phi 147.3520 phi2 62.7382 scatter 0.0 fraction 1.0
|
|
152
|
-
[Grain09]
|
|
153
|
-
(gauss) phi1 301.4380 Phi 164.6900 phi2 38.1420 scatter 0.0 fraction 1.0
|
|
154
|
-
[Grain10]
|
|
155
|
-
(gauss) phi1 329.8170 Phi 137.0850 phi2 319.7750 scatter 0.0 fraction 1.0
|
|
156
|
-
[Grain11]
|
|
157
|
-
(gauss) phi1 64.5284 Phi 89.7006 phi2 44.1834 scatter 0.0 fraction 1.0
|
|
158
|
-
[Grain12]
|
|
159
|
-
(gauss) phi1 320.3650 Phi 131.3360 phi2 320.5380 scatter 0.0 fraction 1.0
|
|
160
|
-
[Grain13]
|
|
161
|
-
(gauss) phi1 71.1125 Phi 141.6790 phi2 314.5580 scatter 0.0 fraction 1.0
|
|
162
|
-
[Grain14]
|
|
163
|
-
(gauss) phi1 15.0620 Phi 121.9990 phi2 166.6420 scatter 0.0 fraction 1.0
|
|
164
|
-
[Grain15]
|
|
165
|
-
(gauss) phi1 255.4300 Phi 65.2774 phi2 243.1500 scatter 0.0 fraction 1.0
|
|
166
|
-
[Grain16]
|
|
167
|
-
(gauss) phi1 213.1890 Phi 67.6270 phi2 148.2380 scatter 0.0 fraction 1.0
|
|
168
|
-
[Grain17]
|
|
169
|
-
(gauss) phi1 106.1630 Phi 68.7213 phi2 329.5530 scatter 0.0 fraction 1.0
|
|
170
|
-
[Grain18]
|
|
171
|
-
(gauss) phi1 173.1230 Phi 85.6343 phi2 260.8520 scatter 0.0 fraction 1.0
|
|
172
|
-
[Grain19]
|
|
173
|
-
(gauss) phi1 166.0400 Phi 95.2007 phi2 99.8661 scatter 0.0 fraction 1.0
|
|
174
|
-
[Grain20]
|
|
175
|
-
(gauss) phi1 69.2722 Phi 70.2469 phi2 346.7160 scatter 0.0 fraction 1.0
|
|
176
|
-
[Grain21]
|
|
177
|
-
(gauss) phi1 323.5540 Phi 56.4937 phi2 288.6000 scatter 0.0 fraction 1.0
|
|
178
|
-
[Grain22]
|
|
179
|
-
(gauss) phi1 79.4661 Phi 61.9140 phi2 274.5430 scatter 0.0 fraction 1.0
|
|
180
|
-
[Grain23]
|
|
181
|
-
(gauss) phi1 186.6880 Phi 144.5970 phi2 359.3250 scatter 0.0 fraction 1.0
|
|
182
|
-
[Grain24]
|
|
183
|
-
(gauss) phi1 292.5500 Phi 113.6580 phi2 339.0080 scatter 0.0 fraction 1.0
|
|
184
|
-
[Grain25]
|
|
185
|
-
(gauss) phi1 181.4800 Phi 34.0980 phi2 91.2278 scatter 0.0 fraction 1.0
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
variable_templates:
|
|
2
|
-
file_name_full:
|
|
3
|
-
file_regex: '(.+\.<<arg>>)'
|
|
4
|
-
file_regex_group: 0
|
|
5
|
-
value_type: str
|
|
6
|
-
expected_multiplicity: 1
|
|
7
|
-
file_name_base:
|
|
8
|
-
file_regex: '(.+)\.<<arg>>'
|
|
9
|
-
file_regex_group: 0
|
|
10
|
-
value_type: str
|
|
11
|
-
expected_multiplicity: 1
|
|
12
|
-
scopes:
|
|
13
|
-
damask:
|
|
14
|
-
variables_from_template:
|
|
15
|
-
geom_fn: [file_name_full, geom]
|
|
16
|
-
geom_base_fn: [file_name_base, geom]
|
|
17
|
-
load_fn: [file_name_full, load]
|
|
18
|
-
load_base_fn: [file_name_base, load]
|
|
19
|
-
spectral_fn: [file_name_full, spectralOut]
|
|
20
|
-
spectral_base_fn: [file_name_base, spectralOut]
|
|
21
|
-
variables: {}
|
|
@@ -1,177 +0,0 @@
|
|
|
1
|
-
profile: damask_process
|
|
2
|
-
|
|
3
|
-
command_groups: # Each command groups corresponds to a jobscript, conditional on the previous?
|
|
4
|
-
# group 1:
|
|
5
|
-
- commands:
|
|
6
|
-
- postResults --cr "f,p" --co "totalshear" --split --separation "x,y,z" <<spectral_fn>>
|
|
7
|
-
# group 2:
|
|
8
|
-
- commands:
|
|
9
|
-
- addCauchy <<table_inc_fn>>
|
|
10
|
-
- somethingFake <<spectral_fn>>
|
|
11
|
-
- addStrainTensors --logarithmic --left <<table_inc_fn>>
|
|
12
|
-
- addMises --stress "Cauchy" --strain "ln(V)" <<table_inc_fn>>
|
|
13
|
-
parallel: # parallel options can be specified at root level, or for each command group individually (will be resolved to be individual)
|
|
14
|
-
variables: true # Split different variable values into separate (parallel) job array tasks? (must be independent)
|
|
15
|
-
|
|
16
|
-
variables:
|
|
17
|
-
|
|
18
|
-
# Method A:
|
|
19
|
-
table_inc_fn:
|
|
20
|
-
data: [100, 80, 60, 40, 20]
|
|
21
|
-
value: 'postProc/<<spectral_base_fn>>_inc{:03d}.txt'
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
"""
|
|
25
|
-
|
|
26
|
-
------------
|
|
27
|
-
|
|
28
|
-
# want to populate a dict of variable values.
|
|
29
|
-
# only add a variable to the dict when all sub-variables are already in the dict.
|
|
30
|
-
var_vals = {}
|
|
31
|
-
|
|
32
|
-
# List all variables mentioned in the command group:
|
|
33
|
-
vars = [table_inc_fn, spectral_fn]
|
|
34
|
-
|
|
35
|
-
# For each variable, if it is a base variable, resolve and add to dict:
|
|
36
|
-
var_vals = {
|
|
37
|
-
spectral_fn: ['geom_load.spectralOut'], <--- NEW
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
# Remaining vars are compound:
|
|
41
|
-
vars = [table_inc_fn]
|
|
42
|
-
|
|
43
|
-
# For each compound var, list all dependent variables:
|
|
44
|
-
sub_vars = [spectral_base_fn]
|
|
45
|
-
|
|
46
|
-
# For each sub variable, it if is a base variable, resolve and add to dict:
|
|
47
|
-
var_vals = {
|
|
48
|
-
spectral_fn: ['geom_load.spectralOut'],
|
|
49
|
-
spectral_base_fn: ['geom_load'], <--- NEW
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
------------
|
|
54
|
-
|
|
55
|
-
# want to populate a dict of variable values.
|
|
56
|
-
# only add a variable to the dict when all sub-variables are already in the dict.
|
|
57
|
-
var_vals = {}
|
|
58
|
-
dep_map = {}
|
|
59
|
-
|
|
60
|
-
# For each variables mentioned in the command group (table_inc_fn, spectral_fn):
|
|
61
|
-
|
|
62
|
-
# if it is a base variable, resolve and add to dict:
|
|
63
|
-
var_vals = {
|
|
64
|
-
'spectral_fn': ['geom_load.spectralOut'], <--- NEW
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
# if it is a compound variable, add to the dependency map, along with the list
|
|
68
|
-
# of vars it depends on:
|
|
69
|
-
dep_map = {
|
|
70
|
-
'table_inc_fn': ['spectral_base_fn'],
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
while (dep_map is not empty):
|
|
74
|
-
|
|
75
|
-
for each key in dep map:
|
|
76
|
-
|
|
77
|
-
for each val in list of var key depends on:
|
|
78
|
-
|
|
79
|
-
if it is a *resolved* var, add to var_vals and remove from dep map key list
|
|
80
|
-
if the key list is empty, remove key from dict, and add the key var to var vals
|
|
81
|
-
|
|
82
|
-
if it is a compound var, add to dep map, along with list of vars it depends on
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
# Dependency map:
|
|
87
|
-
# { 'variable name': [list of 'parent' variables that are not yet resolved] }
|
|
88
|
-
|
|
89
|
-
unresolved_dep_map = {
|
|
90
|
-
'spectral_base_fn': ['table_inc_fn', ],
|
|
91
|
-
'spectral_fn': [],
|
|
92
|
-
'table_inc_fn': [],
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
var_vals = {
|
|
101
|
-
spectral_base_fn: [],
|
|
102
|
-
table_inc_fn: [],
|
|
103
|
-
spectral_fn: [],
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
------------
|
|
107
|
-
|
|
108
|
-
# Expand vars to include sub-variables that are included in any compound vars:
|
|
109
|
-
vars = [table_inc_fn, spectral_fn, spectral_base_fn]
|
|
110
|
-
|
|
111
|
-
var_dependencies = {
|
|
112
|
-
table_inc_fn: [spectral_base_fn,],
|
|
113
|
-
spectral_fn: [],
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
# Split into base variables and compound variables (which have other variables
|
|
117
|
-
# in their values). Include in the compouned vars a list of variables that are
|
|
118
|
-
# included:
|
|
119
|
-
base_vars = [spectral_fn]
|
|
120
|
-
compound_vars = [(table_inc_fn, [spectral_base_fn])]
|
|
121
|
-
|
|
122
|
-
comp_vars = {
|
|
123
|
-
spectral_base_fn: [table_inc_fn],
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
# Resolve all base_vars values and add to var_vals dict:
|
|
127
|
-
|
|
128
|
-
var_vals = {
|
|
129
|
-
spectral_fn: ['geom_load.spectralOut'],
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
vals: [
|
|
136
|
-
('geom_load', '100', 'geom_load.spectralOut'),
|
|
137
|
-
('geom_load', '80', 'geom_load.spectralOut'),
|
|
138
|
-
('geom_load', '60', 'geom_load.spectralOut'),
|
|
139
|
-
('geom_load', '40', 'geom_load.spectralOut'),
|
|
140
|
-
('geom_load', '20', 'geom_load.spectralOut'),
|
|
141
|
-
]
|
|
142
|
-
"""
|
|
143
|
-
# ...which can then be formed into a bash loop in the js_cmd file, that accesses
|
|
144
|
-
# a file for each variable:
|
|
145
|
-
"""
|
|
146
|
-
js1a_var1:
|
|
147
|
-
---------
|
|
148
|
-
geom_load
|
|
149
|
-
geom_load...
|
|
150
|
-
|
|
151
|
-
js1a_var2:
|
|
152
|
-
---------
|
|
153
|
-
100
|
|
154
|
-
80...
|
|
155
|
-
|
|
156
|
-
js1a_var3:
|
|
157
|
-
---------
|
|
158
|
-
geom_load.spectralOut
|
|
159
|
-
geom_load.spectralOut...
|
|
160
|
-
|
|
161
|
-
js1a_cmd:
|
|
162
|
-
---------
|
|
163
|
-
|
|
164
|
-
while true
|
|
165
|
-
do
|
|
166
|
-
# Read command variables:
|
|
167
|
-
read -u3 table_inc_fn || break
|
|
168
|
-
read -u4 spectral_fn || break
|
|
169
|
-
|
|
170
|
-
# Execute the commands:
|
|
171
|
-
addCauchy ${table_inc_fn}
|
|
172
|
-
somethingFake ${spectral_fn}
|
|
173
|
-
addStrainTensors --logarithmic --left ${table_inc_fn}
|
|
174
|
-
addMises --stress Cauchy --strain ln(V) ${table_inc_fn}
|
|
175
|
-
|
|
176
|
-
done <3 js1a_var1 <4 js1a_var2
|
|
177
|
-
"""
|
hpcflow/errors.py
DELETED
hpcflow/init_db.py
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
"""`hpcflow.init_db.py`"""
|
|
2
|
-
|
|
3
|
-
from sqlalchemy import create_engine
|
|
4
|
-
from sqlalchemy.orm import sessionmaker
|
|
5
|
-
|
|
6
|
-
from hpcflow import base_db
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
def init_db(project, check_exists=True):
|
|
10
|
-
"""Get database Session.
|
|
11
|
-
|
|
12
|
-
Parameters
|
|
13
|
-
----------
|
|
14
|
-
project : Project
|
|
15
|
-
check_exists : bool
|
|
16
|
-
If True, an exception is raised if the database does not exist. Default
|
|
17
|
-
is True. This allows us to distinguish between commands that require
|
|
18
|
-
the database to already exist and those that may create it (i.e.
|
|
19
|
-
`submit`).
|
|
20
|
-
|
|
21
|
-
"""
|
|
22
|
-
|
|
23
|
-
engine = create_engine(project.db_uri, echo=False)
|
|
24
|
-
|
|
25
|
-
if check_exists:
|
|
26
|
-
try:
|
|
27
|
-
engine.connect()
|
|
28
|
-
except:
|
|
29
|
-
raise
|
|
30
|
-
|
|
31
|
-
# Ensure models are represented in the database (`hpcflow.models` must be
|
|
32
|
-
# in-scope):
|
|
33
|
-
base_db.Base.metadata.create_all(engine)
|
|
34
|
-
project.ensure_db_symlink()
|
|
35
|
-
Session = sessionmaker(bind=engine)
|
|
36
|
-
|
|
37
|
-
return Session
|