Task schemas#
test_t1_bash#
Inputs:
-
Labels: {‘’: {‘propagation_mode’: <ParameterPropagationMode.IMPLICIT: 0>}}
Outputs:
Actions:
Action 0
Inputs: p1
Outputs: p2
Commands:
Command:
echo "$((<<parameter:p1>> + 100))"
Stdout:
<<parameter:p2>>
Command:
count=0
while [ $count -le 100 ] do
echo “count: $count; sleeping…” echo “This message goes to stderr” 1>&2 ((count++)) sleep 1
done
Environments:
any: reference/template_components/environments:
test_t1_ps#
Inputs:
-
Labels: {‘’: {‘propagation_mode’: <ParameterPropagationMode.IMPLICIT: 0>}}
Outputs:
Actions:
Action 0
Inputs: p1
Outputs: p2
Commands:
Command:
& {
$count = 0 while ($true) {
Write-Host “count: $count; sleeping…” $count++ if ($count -ge <<parameter:p1>>) {
break
} Start-Sleep 1
} Write-Output ((<<parameter:p1>> + 100))
} <<executable:python_script>> –version
Stdout:
<<parameter:p2>>
Environments:
any: reference/template_components/environments:
test_t2_bash#
Inputs:
-
Labels: {‘’: {‘propagation_mode’: <ParameterPropagationMode.IMPLICIT: 0>}}
Outputs:
Actions:
Action 0
Inputs: p2
Outputs: p3
Commands:
Command:
echo "$((<<parameter:p2>> + 100))"
Stdout:
<<parameter:p3>>
Environments:
any: reference/template_components/environments:
test_t2_ps#
Inputs:
-
Labels: {‘’: {‘propagation_mode’: <ParameterPropagationMode.IMPLICIT: 0>}}
Outputs:
Actions:
Action 0
Inputs: p2
Outputs: p3
Commands:
Command:
Write-Output ((<<parameter:p2>> + 100))
Stdout:
<<parameter:p3>>
Environments:
any: reference/template_components/environments:
generate_microstructure_seeds#
Inputs:
-
Labels: {‘’: {‘propagation_mode’: <ParameterPropagationMode.IMPLICIT: 0>}}
-
Labels: {‘’: {‘propagation_mode’: <ParameterPropagationMode.IMPLICIT: 0>}}
-
Labels: {‘’: {‘propagation_mode’: <ParameterPropagationMode.IMPLICIT: 0>}}
Outputs:
Actions:
Action 0
Inputs: phase_label, num_grains, VE_size
Outputs: microstructure_seeds
Commands:
Command:
None
Environments:
any: reference/template_components/environments:
generate_volume_element#
Inputs:
-
Labels: {‘’: {‘propagation_mode’: <ParameterPropagationMode.IMPLICIT: 0>}}
-
Labels: {‘’: {‘propagation_mode’: <ParameterPropagationMode.IMPLICIT: 0>}}
-
Labels: {‘’: {‘propagation_mode’: <ParameterPropagationMode.IMPLICIT: 0>, ‘default_value’: InputValue(parameter=’homog_label’, label=’’, value=SX)}}
-
Labels: {‘’: {‘propagation_mode’: <ParameterPropagationMode.IMPLICIT: 0>, ‘default_value’: InputValue(parameter=’orientations’, label=’’, value=None)}}
Outputs:
Actions:
Action 0
Inputs: homog_label, microstructure_seeds, orientations, VE_grid_size
Outputs: volume_element
Commands:
Command:
None
Environments:
any: reference/template_components/environments:
sample_texture#
Inputs:
-
Labels: {‘’: {‘propagation_mode’: <ParameterPropagationMode.EXPLICIT: 1>, ‘default_value’: InputValue(parameter=’compile’, label=’’, value=False)}}
-
Labels: {‘’: {‘propagation_mode’: <ParameterPropagationMode.IMPLICIT: 0>}}
-
Labels: {‘’: {‘propagation_mode’: <ParameterPropagationMode.IMPLICIT: 0>}}
-
Labels: {‘’: {‘propagation_mode’: <ParameterPropagationMode.IMPLICIT: 0>}}
-
Labels: {‘’: {‘propagation_mode’: <ParameterPropagationMode.IMPLICIT: 0>}}
EBSD_reference_frame_transformation
Labels: {‘’: {‘propagation_mode’: <ParameterPropagationMode.IMPLICIT: 0>, ‘default_value’: InputValue(parameter=’EBSD_reference_frame_transformation’, label=’’, value=euler_to_spatial)}}
-
Labels: {‘’: {‘propagation_mode’: <ParameterPropagationMode.IMPLICIT: 0>, ‘default_value’: InputValue(parameter=’EBSD_rotation’, label=’’, value=None)}}
Outputs:
Actions:
Action 0
Inputs: EBSD_phase, EBSD_rotation, EBSD_reference_frame_transformation, specimen_symmetry, compile, CTF_file_path, num_orientations
Outputs: orientations
Commands:
Command:
None
Environments:
any: reference/template_components/environments:
Action 1
Inputs: EBSD_phase, EBSD_rotation, EBSD_reference_frame_transformation, specimen_symmetry, compile, CTF_file_path, num_orientations
Outputs: orientations
Commands:
Command:
None
Environments:
any: reference/template_components/environments:
Action 2
Inputs: EBSD_phase, EBSD_rotation, EBSD_reference_frame_transformation, specimen_symmetry, compile, CTF_file_path, num_orientations
Outputs: orientations
Commands:
Command:
None
Environments:
any: reference/template_components/environments:
sample_texture#
Inputs:
-
Labels: {‘’: {‘propagation_mode’: <ParameterPropagationMode.EXPLICIT: 1>, ‘default_value’: InputValue(parameter=’compile’, label=’’, value=False)}}
-
Labels: {‘’: {‘propagation_mode’: <ParameterPropagationMode.IMPLICIT: 0>}}
-
Labels: {‘’: {‘propagation_mode’: <ParameterPropagationMode.IMPLICIT: 0>}}
Outputs:
Actions:
Action 0
Inputs: compile, num_orientations, ODF_mat_file_path
Outputs: orientations
Commands:
Command:
None
Environments:
any: reference/template_components/environments:
Action 1
Inputs: compile, num_orientations, ODF_mat_file_path
Outputs: orientations
Commands:
Command:
None
Environments:
any: reference/template_components/environments:
Action 2
Inputs: compile, num_orientations, ODF_mat_file_path
Outputs: orientations
Commands:
Command:
None
Environments:
any: reference/template_components/environments:
visualise_orientations#
Inputs:
-
Labels: {‘’: {‘propagation_mode’: <ParameterPropagationMode.IMPLICIT: 0>}}
reference/template_components/parameters:crystal_symmetry
Labels: {‘’: {‘propagation_mode’: <ParameterPropagationMode.IMPLICIT: 0>}}
reference/template_components/parameters:pole_figure_directions
Labels: {‘’: {‘propagation_mode’: <ParameterPropagationMode.IMPLICIT: 0>}}
reference/template_components/parameters:use_contours
Labels: {‘’: {‘propagation_mode’: <ParameterPropagationMode.IMPLICIT: 0>, ‘default_value’: InputValue(parameter=’use_contours’, label=’’, value=True)}}
reference/template_components/parameters:IPF_reference_direction
Labels: {‘’: {‘propagation_mode’: <ParameterPropagationMode.IMPLICIT: 0>, ‘default_value’: InputValue(parameter=’IPF_reference_direction’, label=’’, value=z)}}
reference/template_components/parameters:colourbar_limits
Labels: {‘’: {‘propagation_mode’: <ParameterPropagationMode.IMPLICIT: 0>, ‘default_value’: InputValue(parameter=’colourbar_limits’, label=’’, value=None)}}
reference/template_components/parameters:use_one_colourbar
Labels: {‘’: {‘propagation_mode’: <ParameterPropagationMode.IMPLICIT: 0>, ‘default_value’: InputValue(parameter=’use_one_colourbar’, label=’’, value=False)}}
-
Labels: {‘’: {‘propagation_mode’: <ParameterPropagationMode.IMPLICIT: 0>, ‘default_value’: InputValue(parameter=’compile’, label=’’, value=False)}}
Outputs:
Actions:
Action 0
Inputs: pole_figure_directions, colourbar_limits, orientations, IPF_reference_direction, compile, crystal_symmetry, use_contours, use_one_colourbar
Commands:
Command:
None
Environments:
any: reference/template_components/environments:
Action 1
Inputs: pole_figure_directions, colourbar_limits, orientations, IPF_reference_direction, compile, crystal_symmetry, use_contours, use_one_colourbar
Commands:
Command:
None
Environments:
any: reference/template_components/environments:
Action 2
Inputs: pole_figure_directions, colourbar_limits, orientations, IPF_reference_direction, compile, crystal_symmetry, use_contours, use_one_colourbar
Commands:
Command:
None
Environments:
any: reference/template_components/environments:
generate_orientations#
Inputs:
-
Labels: {‘’: {‘propagation_mode’: <ParameterPropagationMode.IMPLICIT: 0>}}
Outputs:
Actions:
Action 0
Inputs: num_orientations
Outputs: orientations
Commands:
Command:
None
Environments:
any: reference/template_components/environments:
define_p1#
Inputs:
-
Labels: {‘’: {‘propagation_mode’: <ParameterPropagationMode.IMPLICIT: 0>}}
Outputs:
Actions:
define_load_case#
Inputs:
-
Labels: {‘’: {‘propagation_mode’: <ParameterPropagationMode.IMPLICIT: 0>}}
Outputs:
Actions:
simulate_VE_loading#
Inputs:
-
Labels: {‘’: {‘propagation_mode’: <ParameterPropagationMode.IMPLICIT: 0>}}
-
Labels: {‘’: {‘propagation_mode’: <ParameterPropagationMode.IMPLICIT: 0>}}
-
Labels: {‘’: {‘propagation_mode’: <ParameterPropagationMode.IMPLICIT: 0>}}
-
Labels: {‘’: {‘propagation_mode’: <ParameterPropagationMode.IMPLICIT: 0>}}
-
Labels: {‘’: {‘propagation_mode’: <ParameterPropagationMode.IMPLICIT: 0>}}
-
Labels: {‘’: {‘propagation_mode’: <ParameterPropagationMode.IMPLICIT: 0>}}
-
Labels: {‘’: {‘propagation_mode’: <ParameterPropagationMode.IMPLICIT: 0>}}
Outputs:
Actions:
Action 0
Inputs: volume_element
Commands:
Command:
None
Environments:
processing: reference/template_components/environments:
Action 1
Inputs: load_case
Commands:
Command:
None
Environments:
processing: reference/template_components/environments:
Action 2
Inputs: homogenization, damask_phases, volume_element
Commands:
Command:
None
Environments:
processing: reference/template_components/environments:
Action 3
Commands:
Command:
<<executable:damask_grid>> --load load.yaml --geom geom.vti
Stdout:
stdout.log
Stderr:
stderr.log
Environments:
main: reference/template_components/environments:
Action 4
Outputs: damask_log
Commands:
Command:
None
Environments:
processing: reference/template_components/environments:
Action 5
Inputs: damask_post_processing
Outputs: damask_post_processing_result
Commands:
Command:
None
Environments:
processing: reference/template_components/environments:
Action 6
Inputs: VE_response_data
Outputs: VE_response
Commands:
Command:
None
Environments:
processing: reference/template_components/environments:
Action 7
Inputs: damask_viz
Outputs: VE_response, damask_viz_result
Commands:
Command:
None
Environments:
processing: reference/template_components/environments:
dump_all_yield_stresses#
Inputs:
-
Labels: {‘’: {‘propagation_mode’: <ParameterPropagationMode.IMPLICIT: 0>, ‘group’: ‘all_simulations’}}
-
Labels: {‘’: {‘propagation_mode’: <ParameterPropagationMode.IMPLICIT: 0>}}
-
Labels: {‘’: {‘propagation_mode’: <ParameterPropagationMode.IMPLICIT: 0>}}
Outputs:
Actions:
Action 0
Inputs: VE_response, yield_point, dump_path
Commands:
Command:
None
Environments:
any: reference/template_components/environments:
fit_yield_function#
Inputs:
-
Labels: {‘’: {‘propagation_mode’: <ParameterPropagationMode.IMPLICIT: 0>}}
-
Labels: {‘’: {‘propagation_mode’: <ParameterPropagationMode.IMPLICIT: 0>}}
-
Labels: {‘uniaxial’: {‘propagation_mode’: <ParameterPropagationMode.IMPLICIT: 0>}, ‘multiaxial’: {‘propagation_mode’: <ParameterPropagationMode.IMPLICIT: 0>, ‘group’: ‘multiaxial_load_cases’}}
-
Labels: {‘’: {‘propagation_mode’: <ParameterPropagationMode.IMPLICIT: 0>, ‘default_value’: InputValue(parameter=’fit_yield_fixed_parameters’, label=’’, value=None)}}
-
Labels: {‘’: {‘propagation_mode’: <ParameterPropagationMode.IMPLICIT: 0>, ‘default_value’: InputValue(parameter=’fit_yield_initial_parameters’, label=’’, value=None)}}
-
Labels: {‘’: {‘propagation_mode’: <ParameterPropagationMode.IMPLICIT: 0>, ‘default_value’: InputValue(parameter=’fit_yield_opt_parameters’, label=’’, value=None)}}
Outputs:
Actions:
Action 0
Inputs: VE_response[uniaxial], VE_response[multiaxial], yield_function_name, yield_point_criteria, fit_yield_initial_parameters, fit_yield_opt_parameters, fit_yield_fixed_parameters
Outputs: fitted_yield_functions
Commands:
Command:
None
Environments:
any: reference/template_components/environments:
print_hello#
Inputs:
-
Labels: {‘’: {‘propagation_mode’: <ParameterPropagationMode.IMPLICIT: 0>, ‘default_value’: InputValue(parameter=’my_name’, label=’’, value=world)}}
Outputs:
Actions:
Action 0
Inputs: my_name
Commands:
Command:
echo "Hello, <<parameter:my_name>>!"
Environments:
any: reference/template_components/environments:
Action 1
Inputs: my_name
Commands:
Command:
Write-Host "Hello, <<parameter:my_name>>!"
Environments:
any: reference/template_components/environments:
demo_adder#
Inputs:
-
Labels: {‘’: {‘propagation_mode’: <ParameterPropagationMode.IMPLICIT: 0>}}
-
Labels: {‘’: {‘propagation_mode’: <ParameterPropagationMode.IMPLICIT: 0>}}
Outputs:
Actions:
Action 0
Inputs: number_2, number_1
Outputs: sum
Commands:
Command:
echo "$((<<parameter:number_1>> + <<parameter:number_2>>))"
Stdout:
<<int(parameter:sum)>>
Environments:
any: reference/template_components/environments:
Action 1
Inputs: number_2, number_1
Outputs: sum
Commands:
Command:
Write-Output (<<parameter:number_1>> + <<parameter:number_2>>)
Stdout:
<<int(parameter:sum)>>
Environments:
any: reference/template_components/environments:
demo_sleep#
Inputs:
-
Labels: {‘’: {‘propagation_mode’: <ParameterPropagationMode.IMPLICIT: 0>, ‘default_value’: InputValue(parameter=’max_sleep_time’, label=’’, value=1800)}}
Outputs:
Actions:
Action 0
Inputs: max_sleep_time
Commands:
Command:
count=0
while [ $count -le <<parameter:max_sleep_time>> ] do
echo “count: $count; sleeping…” ((count++)) echo $count > sleep_seconds.txt sleep 1
done
Environments:
any: reference/template_components/environments:
Action 1
Inputs: max_sleep_time
Commands:
Command:
$count = 0
- while ($true) {
Write-Host “count: $count; sleeping…” $count++ if ($count -ge <<parameter:max_sleep_time>>) {
break
} $count | Out-File -FilePath sleep_seconds.txt Start-Sleep 1
}
Environments:
any: reference/template_components/environments:
Action 2
Outputs: sleep_time
Commands:
Command:
head -n 1 sleep_seconds.txt
Stdout:
<<int(parameter:sleep_time)>>
Environments:
any: reference/template_components/environments:
Action 3
Outputs: sleep_time
Commands:
Command:
Write-Output (Get-Content sleep_seconds.txt)
Stdout:
<<int(parameter:sleep_time)>>
Environments:
any: reference/template_components/environments: