From 797417da881b82e393c450b2266536369f4420de Mon Sep 17 00:00:00 2001 From: aplowman Date: Tue, 25 Aug 2020 12:11:11 +0100 Subject: [PATCH] Add write_damask_numerics --- matflow_damask/main.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/matflow_damask/main.py b/matflow_damask/main.py index 02a52cc..1319f5c 100644 --- a/matflow_damask/main.py +++ b/matflow_damask/main.py @@ -13,6 +13,7 @@ write_load_case, write_geom, write_material_config, + write_numerics_config, ) from damask import DADF5 from damask_parse.utils import ( @@ -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)