Commit Graph

2456 Commits

Author SHA1 Message Date
Philip Eisenlohr a2b571c1fc corrected sign definition of <111>{110} slip systems
Breaking change: Sign of shear differs
2023-09-15 00:21:04 +02:00
Martin Diehl 9b0a051737 standardized citation 2023-09-01 13:05:28 +02:00
Philip Eisenlohr 96137f6768 use 30% faster algorithm 2023-08-31 15:29:48 -04:00
Philip Eisenlohr 0cda7af7ed Merge branch 'documenting-symmetry' into 'development'
document source of symmetry operations

See merge request damask/DAMASK!803
2023-08-28 12:50:10 +00:00
Martin Diehl ea8359ddc8 Merge branch 'compose-broadcasted-rotations' into 'development'
Numpy-intrinsic broadcasting for "outer" rotation compositions

See merge request damask/DAMASK!804
2023-08-28 12:49:45 +00:00
Philip Eisenlohr 0393bdb214 added broadcasting test for composite rotations 2023-08-17 21:21:16 +00:00
Philip Eisenlohr fb2d49741a self.shape does not equal broadcastable shape 2023-08-17 21:10:26 +00:00
Martin Diehl e944ece5ec document source of symmetry operations 2023-08-17 14:41:46 +02:00
Martin Diehl cc8790908c there is no "crystal lattice", what we define are the 14 Bravais
lattices
2023-08-16 22:01:20 +02:00
Philip Eisenlohr 81d0002a49 corrected remaining instances of phenopowerlaw configuration 2023-08-05 11:50:03 -04:00
Franz Roters d8a1d28797 actually use new version 2023-07-24 17:06:07 +02: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
Yi Hu 09858317d8 add m=0 (default) case in docstring 2023-07-04 16:44:31 +02:00
Yi Hu 0e9e37bfb3 Merge branch 'development' into 284-more-friendly-output-name-of-add_strain-or-a-better-presentation-in-documentation-webpage 2023-07-04 16:07:48 +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 898aaf1068 shortened 2023-06-04 23:46:35 +02:00
Martin Diehl 11c4be008f analytic solution for displacement calculation 2023-06-04 22:54:31 +02:00
Martin Diehl d64b64ed05 bugfix: fluct displacement were wrongly scaled 2023-06-04 22:20:44 +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
Philip Eisenlohr 4eb5577652 Merge branch '254-testing-resources-folder-name' into 'development'
more reasonable name

Closes #254

See merge request damask/DAMASK!758
2023-05-01 12:35:56 +00: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
Vitesh Shah 3462d41d8e consistent dataset naming eases testing 2023-04-26 12:56:34 +02:00
Vitesh Shah 45cebe3aee better variable naming and splitext 2023-04-26 10:28:17 +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
Martin Diehl 62eda982fd drop support for older DADF5 versions
simplifies code a little and 0.14 was already used in alpha5
2023-04-20 19:32:23 +02:00
Vitesh Shah 5dddf792e1 pathlib can give name of the file directly 2023-04-20 10:52:08 +02:00
Vitesh Shah 029b830156 corrected the looping and target dir 2023-04-17 08:03:44 +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 29a968b3a8 support for pandas >= 2.0 2023-04-14 08:37:40 +02:00
Vitesh Shah 2ae1a20443 seems to read the data correctly 2023-04-06 21:42:34 +02:00
Vitesh Shah f619cf4ff2 making export DREAM3D compatible with results class 2023-04-06 20:56:42 +02: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
Martin Diehl b11ad8c774 helpful information on strain calculation 2023-03-24 12:34:51 +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
Sharan Roongta 95017b252f typo in example 2023-02-24 14:16:16 +01: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
Philip Eisenlohr 6aa566760f shorter calculation of Seth–Hill strains 2023-02-20 14:42:31 -05:00
Philip Eisenlohr a335e2db6d Merge branch 'fix-ravel-docstring' into 'development'
sphinx does not handle white spaces properly

See merge request damask/DAMASK!727
2023-02-18 03:26:50 +00:00
Daniel Otto de Mentock 6fd30dd266 Merge branch 'extra-documentation' into 'development'
improved docstrings

See merge request damask/DAMASK!722
2023-02-17 12:58:09 +00:00
Philip Eisenlohr 4485e1045c proper indication of transpose; polish 2023-02-16 15:12:10 -05:00
Martin Diehl e501e76d84 sphinx does not handle white spaces properly 2023-02-16 19:40:09 +01:00
Martin Diehl eefa2c29a2 more details 2023-02-16 19:32:15 +01:00
Philip Eisenlohr 61f2ae295b switch to physics macros 2023-02-16 11:59:19 -05:00
Martin Diehl 66b0b2e9dc using latex to improve documentation 2023-02-14 17:11:52 +01:00
Martin Diehl 4cd84ab8ce return was missing 2023-02-14 12:54:51 +01:00
Martin Diehl 24ebc465c4 should not be in here
https://stackoverflow.com/questions/58521386
2023-02-12 09:20:46 +01: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 a45a86cfbf mark DADF5 file layout as stable 2023-02-04 09:55:23 +01:00
Martin Diehl 7420c779d7 checking for invalid volume fractions 2023-02-02 22:13:17 +01:00
Martin Diehl aa11e1aca3 easier to understand 2023-02-02 08:59:44 +01:00
Martin Diehl 6682f58f86 explicit arguments to guide the user 2023-02-02 08:38:50 +01:00
Martin Diehl 008d3cca6f limits hold for sum and individual 2023-02-02 08:35:46 +01:00
Martin Diehl 46ad436d76 check for invalid materialpoint configuration 2023-02-01 22:48:43 +01:00
Martin Diehl fd84406903 guide the user with explicit keywords 2023-02-01 15:03:30 +01:00
Martin Diehl 8895e7a36f more logical behavior
explicit keywords are more important than existing one
2023-02-01 14:59:00 +01:00
Martin Diehl ce6c86dd6d essentially same behavior as before,
but better documentation, a few simplifications, and typehints
2023-01-24 11:26:14 +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
Sharan Roongta 214ee7b2f8 Merge branch 'material_add-no-kwargs' into 'development'
kwargs flexibility not needed

See merge request damask/DAMASK!694
2023-01-09 11:27:14 +00:00
Martin Diehl 93e05aed29 should always point to the most recent version 2023-01-08 20:46:07 +01:00
Martin Diehl cdaddf8e6f kwargs flexibility not needed
the number of supported entries is rather limited, so guide the user
using explicit arguments
2023-01-07 14:32:05 +01:00
Martin Diehl e658f3126b guide choice of strain measure that makes sense 2022-12-29 20:29:13 +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 e03ad0db11 Improving grid.vicinity_offset performance optionally with numba 2022-12-10 07:22:22 +00: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
Daniel Otto de Mentock ba2062e4ed CSafeDumper is significantly faster and can be subclassed for custom extensions. 2022-12-06 20:17:23 +00:00
Sharan Roongta 4717536f1a Merge branch '241-same-quaternion-but-different-ipfs-calculated-by-damask-and-orix-python-package' into 'development'
lower exponent gives smoother gradients

Closes #241

See merge request damask/DAMASK!675
2022-12-06 14:15:35 +00:00
Philip Eisenlohr 7b8fce8db0 help polish 2022-12-05 18:29:03 -05:00
Martin Diehl ce2e0a01f5 single elements of numpy arrays are not of native type 2022-12-05 20:29:08 +01:00
Philip Eisenlohr 65cb9d5997 Merge branch 'development' into 228-unit-tests-for-spectral-functionality 2022-12-05 11:07:43 -05:00
Philip Eisenlohr f8ec873e54 == syntax consistency 2022-12-05 11:00:23 -05:00
Philip Eisenlohr 5127dfe90b from/as tests use rotation-array; separate bounds checks 2022-12-05 02:08:31 +00:00
Martin Diehl c7cb56fc18 lower exponent gives smoother gradients 2022-12-02 22:55:22 +01:00
Martin Diehl 18ad14708f stay consistent 2022-11-29 22:01:14 +01:00
Philip Eisenlohr 8ba9bb02c7 slight reduction of code doubling 2022-11-29 15:47:11 -05:00
Martin Diehl 741aeab1d3 Merge branch '235-docstring-of-orientation-from_axis_angle' into development 2022-11-29 06:06:31 +01:00
Martin Diehl d668f8a56d don't add empty strings 2022-11-28 20:05:39 +00:00
Daniel Otto de Mentock 8112f87d39 parameter names can contain underscores 2022-11-28 10:33:07 +01:00
Martin Diehl 39157b75b7 plane waves have known solutions 2022-11-27 16:53:53 +01:00
Martin Diehl 92ae86b636 Merge branch 'fix-mypy-no-implicit-optional' into 'development'
PEP 484 compatibility (no-implicit-optional in mypy)

See merge request damask/DAMASK!664
2022-11-25 21:25:33 +00:00
Martin Diehl 77be2c0d4c standard way to report 2022-11-25 07:00:15 +01:00
Martin Diehl e10f9fa299 not useful here
not a general convention, is documented for the affected from_/as_
methods
2022-11-25 01:25:36 +01:00
Martin Diehl f8844285d7 putting understanding of hybridIA into code 2022-11-25 01:15:39 +01:00
Martin Diehl eea0c4c44c return was missing 2022-11-24 10:15:23 +01:00
Philip Eisenlohr 6315f97f4a added explicit Optional type hint 2022-11-22 16:26:15 -05:00
Franz Roters 4a49523720 Merge branch 'mypy-etc-polish' into 'development'
Collection of small polishing steps

See merge request damask/DAMASK!659
2022-11-22 14:39:52 +00:00
Philip Eisenlohr cbe2e74cdd Collection of small polishing steps 2022-11-22 14:39:51 +00: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
Philip Eisenlohr 6907ca60b3 adjustments to make mypy happy 2022-11-19 20:55:23 -05: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 7e5a3a12ab proper dealing with default/mandatory items in material_add 2022-11-18 16:30:26 -05:00
Philip Eisenlohr d374f6a02c revert, since not working in python3.8... 2022-11-18 11:01:01 -05:00
Philip Eisenlohr 822a098659 cleaner way to specify default dict entries 2022-11-18 10:06:15 -05: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 87579dff11 extensive style polish; no functional changes 2022-11-17 18:39:32 -05:00
Martin Diehl 05974fb300 Merge branch 'polish-rotation-error-determination' into 'development'
cleaner and more efficient determination of ValueErrors

See merge request damask/DAMASK!656
2022-11-17 17:52:14 +00:00
Franz Roters bdd85a414c support for MSC.Marc 2022.2 2022-11-17 07:12:27 +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
Martin Diehl d887f0a9d8 better group if/if-elif cases
one line if only when no elif follows to avoid confusion
2022-11-16 21:13:13 +01: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
Martin Diehl 5d656d9c76 Merge branch 'rotation-test-coverage' into 'development'
increase test coverage to 100%

See merge request damask/DAMASK!655
2022-11-16 14:31:43 +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 584d5b4213 Merge branch 'simplify-grid-scale' into 'development'
less repetition

See merge request damask/DAMASK!654
2022-11-15 14:44:53 +00:00
Philip Eisenlohr 045f1d39a1 add shorthand function for formatting 2022-11-14 14:52:07 -05:00
Philip Eisenlohr fa69a1876b unify X or list/seq/collection of X --> (A/B/C of) X in docstrings 2022-11-14 09:09:45 -05:00
Martin Diehl ba4ac5c108 less repetition 2022-11-14 12:42:13 +01:00
Philip Eisenlohr 2e7d59ab43 brief but comprehensive "is_complete" reporting 2022-11-11 18:07:48 -05:00
Sharan Roongta 4fc5ba54df dummy phase dict need to be added for any new material added (similar to dream3D) 2022-11-11 18:47:01 +01: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
Philip Eisenlohr 5c6d21e9cf only create subdir when dataset 2022-11-09 17:32:14 -05:00
Philip Eisenlohr 4f6a1720cc recursive list of setup files; no printing but PermissionError 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 836feaa5f4 polishing 2022-11-09 12:48:48 +01:00
Daniel Otto de Mentock 1cdb7ef09f function to list available setup files can be useful 2022-11-09 12:48:37 +01:00