Commit Graph

753 Commits

Author SHA1 Message Date
Philip Eisenlohr 81d0002a49 corrected remaining instances of phenopowerlaw configuration 2023-08-05 11:50:03 -04:00
Vitesh Shah 2729e3f4a0 complying with yaml standards 2023-07-05 15:21:39 +02:00
Vitesh Shah e4b793cf77 Merge branch 'development' into export_DAMASK_to_DREAM3D 2023-07-05 15:04:08 +02:00
Daniel Otto de Mentock b9062c9425 github actions has issues with interpretation of function calls inside assert statements 2023-06-26 14:00:01 +02:00
Martin Diehl 137c4e3b03 easier to understand 2023-06-12 20:38:14 +02:00
Martin Diehl 1a4c171109 checking correctness of displacements for 1D strain 2023-06-06 19:25:44 +02:00
Martin Diehl 11c4be008f analytic solution for displacement calculation 2023-06-04 22:54:31 +02:00
Martin Diehl 5b8194d8eb Merge remote-tracking branch 'origin/development' into 256-grid-geometry-displacement-reconstruction 2023-06-04 14:26:31 +02:00
Martin Diehl cfdf33e4b1 don't change Neper material ID definition
Neper material ID start at 0 if a buffer layer is added
(run "neper -T -n 100 -tesrsize 320:320:320 -domain "cylinder(20,10)"  -format vtk"),
otherwise at 1.

Hence, leave the IDs untouched and let the user change the
numbering (either by a constant offset or by re-numbering): "explicit is better than implicit"
2023-05-22 17:32:39 +02:00
Vitesh Shah 2c6e8a56d0 remove unnecessary modules 2023-05-04 13:39:07 +02:00
Vitesh Shah 7ec3d1da8a fixing invalid yaml
Strange that material.yaml made by ConfigMaterial class is creating
problems
2023-05-04 13:36:33 +02:00
Vitesh Shah b5b6c2d695 fixed typos and other python warnings 2023-05-04 12:59:56 +02:00
Vitesh Shah 8de19f0c3b better checks for values 2023-05-04 11:03:19 +02:00
Vitesh Shah c4baca0cb6 fixed typo 2023-05-04 10:49:11 +02:00
Vitesh Shah 9193085913 added more reference files 2023-04-28 13:11:18 +02:00
Vitesh Shah 767ba5a421 test for export_DREAM3D 2023-04-26 13:01:18 +02:00
Martin Diehl f36a175867 binary VTK file
does not need EOL@EOF
2023-04-24 07:17:34 +02:00
Martin Diehl 17ce0b9aec more reasonable name
folder contains all test resources, not just reference results
2023-04-24 07:16:45 +02:00
Vitesh Shah 66df416891 added input dream3D file for 2 phase microstructure 2023-04-21 12:18:43 +02:00
Sharan Roongta 7b158f5ec4 Merge branch 'regrid-result' into 'development'
regrid/map when exporting DADF5

See merge request damask/DAMASK!748
2023-04-14 20:05:30 +00:00
Martin Diehl 03768e14dc Grid loadcase 2023-03-27 17:33:11 +00:00
Martin Diehl d2e85ef15b regrid/map when exporting DADF5 2023-03-25 07:40:21 +01:00
Philip Eisenlohr 782a593bf2 separate import of vtk modules
vtk is a collection of modules. Some are missing in some installations, so it is recommended to import only the functionality that is needed.
2023-03-08 18:03:22 +00:00
Daniel Otto de Mentock ad39577ea4 improvements to docstrings (in `damask.Rotation`) 2023-03-02 18:46:00 +00:00
Philip Eisenlohr b15096c2f6 flexibility for non-standard ANG headers. 2023-02-28 15:35:31 +00:00
Martin Diehl c40b446854 add keywords to signature of Orientation functions that inherit from Rotation 2023-02-23 18:49:08 +00:00
Philip Eisenlohr 06201da5e2 Improvements to Python docstrings 2023-02-21 15:27:06 +00:00
Philip Eisenlohr 71e383bfc8 test for ValueError 2023-02-20 14:44:40 -05:00
Daniel Otto de Mentock 4ae3274ac4 Merge branch '250-configmaterial-material_add-simplifications' into 'development'
several improvements to ConfigMaterial and Config

Closes #250

See merge request damask/DAMASK!714
2023-02-06 16:52:14 +00:00
Martin Diehl f401c51e22 update to DADF5 v1.0 2023-02-04 15:22:39 +01:00
Martin Diehl 12d1e9be65 pipeline was failing with decode error
I could not reproduce it, maybe this helps
2023-02-04 12:42:56 +01:00
Martin Diehl b818ec6885 include more files 2023-02-04 11:47:54 +01:00
Martin Diehl 29933a6618 includes unit of 'O', which was corrected 2023-02-04 11:44:12 +01:00
Martin Diehl e49090b26b update to DADF5 v1.0 2023-02-04 11:14:03 +01:00
Martin Diehl 89817d1bc1 not needed 2023-02-04 11:09:27 +01:00
Martin Diehl 780fc8a050 new/correct unit for quaternions 2023-02-04 10:23:01 +01:00
Martin Diehl 42495942b1 updated to DADF5 v1.0 2023-02-04 10:22:19 +01:00
Martin Diehl 7420c779d7 checking for invalid volume fractions 2023-02-02 22:13:17 +01:00
Martin Diehl 46ad436d76 check for invalid materialpoint configuration 2023-02-01 22:48:43 +01:00
Martin Diehl 8895e7a36f more logical behavior
explicit keywords are more important than existing one
2023-02-01 14:59:00 +01:00
Philip Eisenlohr 5edd001d4c Option to normalize rotation matrix 2023-01-16 23:53:49 +00:00
Daniel Otto de Mentock 1b8f3292f0 test was not using parametrized values 2023-01-16 11:45:09 +01:00
Martin Diehl 907b01e9f3 simple test setup 2023-01-15 13:45:39 +01:00
Philip Eisenlohr 5d2d611898 Merge branch '238-tail_repack-behavior-and-use' into 'development'
simplifications of Python code

Closes #238

See merge request damask/DAMASK!684
2022-12-13 18:32:19 +00:00
Martin Diehl dcdc4acbd5 Unified object.comments as list[str]; simplifications of Python code 2022-12-13 18:32:19 +00:00
Martin Diehl 0e48f04d0f consistent naming 2022-12-11 16:09:54 +01:00
Daniel Otto de Mentock 8c6593985c Merge branch 'yaml-emit-numpy-scalar' into 'development'
single elements of numpy arrays are not of native type

See merge request damask/DAMASK!681
2022-12-08 12:03:54 +00:00
Martin Diehl ce2e0a01f5 single elements of numpy arrays are not of native type 2022-12-05 20:29:08 +01:00
Philip Eisenlohr 5127dfe90b from/as tests use rotation-array; separate bounds checks 2022-12-05 02:08:31 +00:00
Martin Diehl f8844285d7 putting understanding of hybridIA into code 2022-11-25 01:15:39 +01:00
Martin Diehl 815d825fac Merge branch 'material_add' into 'development'
configMaterial functionality

See merge request damask/DAMASK!651
2022-11-20 12:59:01 +00:00
Daniel Otto de Mentock 5017aabcea util.extend_docstring: proper layout for extended class (incl. current return type) 2022-11-19 08:10:00 +00:00
Philip Eisenlohr ce4b373f9c Merge branch 'development' into '225-tolerate-non-unit-quaternion'
# Conflicts:
#   python/damask/_rotation.py
2022-11-18 00:48:45 +00:00
Philip Eisenlohr 1f947245bb Merge branch 'development' into '225-tolerate-non-unit-quaternion'
# Conflicts:
#   python/damask/_rotation.py
#   python/tests/test_Rotation.py
2022-11-16 20:27:02 +00:00
Philip Eisenlohr 25979fcd77 Merge branch 'development' into 'polish-rotation-error-determination'
# Conflicts:
#   python/damask/_rotation.py
2022-11-16 18:05:36 +00:00
Philip Eisenlohr 740965df7c cleaner and more efficient determination of ValueErrors 2022-11-15 17:03:57 -05:00
Philip Eisenlohr 23d2337fb2 add option to normalize quaternions 2022-11-15 16:11:29 -05:00
Philip Eisenlohr 1dbf9ae9bc increase test coverage to 100% 2022-11-15 11:46:52 -05:00
Philip Eisenlohr 349a39609e Robust translation for view.times 2022-11-11 06:03:14 +00:00
Sharan 13df12be1b initialising dummy arguments with None, making few changes on what is_complete should do 2022-11-11 01:54:59 +01:00
Martin Diehl 26284ba2df accidentally added 2022-11-10 09:37:16 +01:00
Philip Eisenlohr 02d785f8f1 comprehensive simulation_setup tests 2022-11-09 17:32:14 -05:00
Sharan Roongta 443d796643 phase and homogenization dict to be updated when new material added 2022-11-09 23:13:45 +01:00
Martin Diehl 75cf446654 including restart information
needed updated tests after generating new HDF5 file
2022-11-09 22:50:32 +01:00
Martin Diehl b2db825fca newest file format 2022-11-09 22:06:20 +01:00
Philip Eisenlohr 1a748ec5aa shorter function name; setup_files is property 2022-11-09 09:39:47 -05:00
Daniel Otto de Mentock 1cdb7ef09f function to list available setup files can be useful 2022-11-09 12:48:37 +01:00
Daniel Otto de Mentock ce7d2af6e3 simulation setup export function naming and description was inaccurate 2022-11-09 12:47:47 +01:00
Philip Eisenlohr b5b861afdd Merge branch 'result-export-DADF5' into 'development'
export to new DADF5 file

See merge request damask/DAMASK!644
2022-11-08 19:01:48 +00:00
Martin Diehl 4f0db64e15 grid assemble + corrected grid.scale 2022-11-08 18:52:08 +00:00
Martin Diehl 015f1ec741 possibility to export into new DADF5 file 2022-11-07 10:10:13 +01:00
Martin Diehl 0fa9631675 testing output of export_result 2022-11-06 23:16:30 +01:00
Daniel Otto de Mentock 2c3da9c1bf added custom path export option to Result.export_* functions 2022-11-06 18:10:23 +00:00
Daniel Otto de Mentock 580e01bd1c fix grid add primitive bug 2022-08-29 11:44:50 +00:00
Philip Eisenlohr ef8891797a Merge branch 'development' into empty-table-init 2022-08-12 16:15:33 -04:00
Philip Eisenlohr 7082eab366 small test to demonstrate alternative Table init 2022-07-08 18:01:36 +02:00
Martin Diehl bcd3d00960 fixed test
this tests should ensure that each Orientation has exactly one symmetrically
equivalent representation. It was not fully correct before and works as expected
after 8fefc46f38
2022-06-10 09:26:15 +02:00
Martin Diehl cdd3b44519 using more precise coefficients also in test
changes in _rotation.py are just cosmetic
2022-06-09 23:54:56 +02:00
Martin Diehl 556d9d840e specifying V_e is more natural than F_i 2022-05-19 01:15:17 +02:00
Martin Diehl 6c7f2344da Merge branch 'normalize-to_pole' into 'development'
normalize to_pole output by default

See merge request damask/DAMASK!578
2022-05-15 21:46:27 +00:00
Martin Diehl c8d48d6eb9 Merge branch 'universal-VTK.set' into 'development'
Universal VTK.set

See merge request damask/DAMASK!577
2022-05-13 03:44:11 +00:00
Martin Diehl 236a009e2b Merge branch 'universal-table.set' into 'development'
universal Table.set

See merge request damask/DAMASK!576
2022-05-11 22:30:42 +00:00
Philip Eisenlohr 648d17d381 renamed .add to .set to be consistent with Table.set 2022-05-11 18:19:10 -04:00
Philip Eisenlohr 35aa8a9bc6 combine table.add and .set 2022-05-11 09:19:48 -04:00
Franz Roters 53c345f4f1 Merge branch 'from_fiber-improvements' into 'development'
From fiber improvements

See merge request damask/DAMASK!573
2022-05-11 13:13:31 +00:00
Philip Eisenlohr b080e414ae normalize to_pole output by default 2022-05-11 08:55:55 -04:00
Martin Diehl 302f020f63 looks better
at least on Linux
2022-05-11 09:22:05 +02:00
Philip Eisenlohr c9f344758a use symmetry-aware Miller brackets in Result.add_pole 2022-05-10 15:26:33 -04:00
Martin Diehl f27969caf9 documenting and testing 2022-05-08 23:22:03 +02:00
Martin Diehl 06cef42927 use physical/ISO convention 2022-04-28 15:57:04 +02:00
Martin Diehl a0455cadf3 consistently have input in radians 2022-04-28 15:46:19 +02:00
Martin Diehl 5c4d481155 common order is theta,phi 2022-04-28 01:33:33 +02:00
Martin Diehl e0d2859202 better test coverage 2022-04-27 17:25:39 +02:00
Philip Eisenlohr 8f0240c67b avoid option clash in Orientation.from_fiber_component 2022-04-27 08:59:55 -04:00
Martin Diehl f3cf67d3fa avoid code duplication and inconsistencies 2022-03-27 09:55:20 +02:00
Martin Diehl 0d57a13c9b run tests on Windows
XDMF does not work (not sure why, works locally)
2022-03-26 22:16:32 +01:00
Martin Diehl bd56a3f2a5 tests might fail on windows 2022-03-26 22:13:54 +01:00
Martin Diehl ff3d3afe9e '/' is separator in h5py even on windows.
os.path assumes OS-dependent path separators
2022-03-26 22:09:45 +01:00
Martin Diehl c11d38b2ec avoid blocking pop-up 2022-03-26 22:08:09 +01:00
Philip Eisenlohr 5b87fafcae Merge branch 'consistent-orientation-from' into 'development'
consistent "shape" keyword in from_X

Closes #165

See merge request damask/DAMASK!546
2022-03-20 00:00:25 +00:00