Skip to content

Commit

Permalink
Merge pull request #4 from mikesmic/master
Browse files Browse the repository at this point in the history
Add implementation of task `modify_volume_element` by method `add_buf…
  • Loading branch information
aplowman authored Jan 19, 2021
2 parents fe5865d + 7a2fec4 commit 544e290
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions matflow_damask/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
get_header_lines,
parse_damask_spectral_version_info,
volume_element_from_2D_microstructure,
add_volume_element_buffer_zones,
)
from damask_parse import __version__ as damask_parse_version
from matflow.scripting import get_wrapper_script
Expand Down Expand Up @@ -298,6 +299,17 @@ def volume_element_from_microstructure_image(microstructure_image, depth, image_
return out


@func_mapper(task='modify_volume_element', method='add_buffer_zones')
def modify_volume_element_add_buffer_zones(volume_element, buffer_sizes,
phase_ids, phase_labels, homog_label, order):
out = {
'volume_element': add_volume_element_buffer_zones(
volume_element, buffer_sizes, phase_ids, phase_labels, homog_label, order
)
}
return out


@func_mapper(task='visualise_volume_element', method='VTK')
def visualise_volume_element(volume_element):
from damask import Geom
Expand Down

0 comments on commit 544e290

Please sign in to comment.