Skip to content

Commit

Permalink
Add write_damask_numerics
Browse files Browse the repository at this point in the history
  • Loading branch information
aplowman committed Aug 25, 2020
1 parent c6d91e0 commit 797417d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions matflow_damask/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
write_load_case,
write_geom,
write_material_config,
write_numerics_config,
)
from damask import DADF5
from damask_parse.utils import (
Expand Down Expand Up @@ -145,6 +146,11 @@ def write_damask_material(path, homogenization_schemes, homogenization_labels,
)


@input_mapper('numerics.config', 'simulate_volume_element_loading', 'CP_FFT')
def write_damask_numerics(path, numerics):
write_numerics_config(Path(path).parent, numerics)


@output_mapper('volume_element_response', 'simulate_volume_element_loading', 'CP_FFT')
def read_damask_hdf5_file(hdf5_path, incremental_data, operations=None):
return read_HDF5_file(hdf5_path, incremental_data, operations=operations)
Expand Down

0 comments on commit 797417d

Please sign in to comment.