Commit Graph

2474 Commits

Author SHA1 Message Date
Martin Diehl 38c7e6a8e4 consistent code 2023-11-28 20:57:24 +01:00
Philip Eisenlohr 118247111b slightly shorter code 2023-11-28 12:31:47 -05:00
Philip Eisenlohr 7e56abf41c language polish 2023-11-28 17:21:06 +00:00
Martin Diehl 59765ab0df typo: do not overwrite 'label' 2023-11-28 14:40:14 +01:00
Vitesh Shah 338fce8b5d nested methods and attributes need to added individually 2023-11-28 12:52:57 +01:00
Martin Diehl 9aa68e83a2 new delete function for VTK
follows 'damask.Table' and makes GeomGrid.load_SPPARKS easier
2023-11-28 11:51:14 +01:00
Martin Diehl 9710ec11f0 load data from SPPARKS
https://spparks.github.io/
2023-11-28 10:29:45 +01:00
Vitesh Shah 05da811afe adding ._hl method to modified h5py class
Simple loading of module from importlib misses the extra methods and
attributes associated with h5py.
For h5py._hl is missing which is needed for nullterm strings in
attributes.
2023-11-28 09:45:51 +01:00
Martin Diehl 4c5f980d00 more systematic name 2023-11-27 23:14:23 +01:00
Vitesh Shah 1cf8696cbb correct crystal structure array shape 2023-11-27 15:51:02 +01:00
Vitesh Shah 986d6a5973 compare the bytes types better 2023-11-27 15:34:02 +01:00
Vitesh Shah e3d85e09c8 even with patched copy the class needs to called 2023-11-27 14:00:17 +01:00
Vitesh Shah b1c2e51528 name correction 2023-11-27 11:10:37 +01:00
Vitesh Shah 30b546f2dd message in case of unstructured grids and more constituents 2023-11-24 08:03:16 +01:00
Vitesh Shah fb823c81e7 not needed since patched copy of module is used 2023-11-24 07:55:41 +01:00
Vitesh Shah 2a48bf504e attempting patched copy of h5py
https://stackoverflow.com/questions/11170949/how-to-make-a-copy-of-a-python-module-at-runtime
2023-11-24 07:55:41 +01:00
Vitesh Shah 597175d8fd tests for PhaseName and CrystalStructure datasets and their attributes 2023-11-24 07:55:41 +01:00
Vitesh Shah 66dc5af5e0 needs specific datatype to write string arrays 2023-11-24 07:55:40 +01:00
Vitesh Shah 5dd9445f58 polishing 2023-11-24 07:55:03 +01:00
Martin Diehl c0a97a93fe do not overwrite input, use specialized function 2023-11-20 12:27:23 +01:00
Martin Diehl 39dacbc972 easier to understand 2023-11-20 11:49:59 +01:00
Philip Eisenlohr d8baf3c754 reset field to average of bounds avoiding casting masked NaNs 2023-11-18 20:06:15 -05:00
Vitesh Shah 56a9dd843c polishing 2023-11-10 12:56:18 +01:00
Vitesh Shah 562e2ea932 updated the files 2023-11-10 12:45:02 +01:00
Vitesh Shah df697981ee avoid file duplication 2023-11-10 12:45:02 +01:00
Vitesh Shah a257fe3e1f updated the resource files 2023-11-10 12:45:02 +01:00
Vitesh Shah 27168f2234 get crystal structure info from DADF5 2023-11-10 12:45:01 +01:00
Vitesh Shah 796e1ae2d5 increment number with leading zeroes 2023-11-10 12:45:01 +01:00
Martin Diehl b332fd2b30 restored type hints
for some strange reason, ignore is needed for damask.Crystal.__eq__
2023-11-07 11:32:40 +01:00
Martin Diehl 1855bafd6a additional, self-explanatory tests 2023-11-07 01:09:25 +01:00
Martin Diehl f687e0a433 helpful error message 2023-11-06 23:42:11 +01:00
Philip Eisenlohr 50d47908fb clearer help 2023-11-06 10:00:07 -05:00
Philip Eisenlohr d38ab0e07a signed direction as in KS paper; added Pitsch and Burgers references 2023-11-03 18:51:57 -04:00
Philip Eisenlohr 934835f93c proper return value when lacking lattice information 2023-10-24 15:00:19 -04:00
Philip Eisenlohr 926d86935f added typehinting 2023-10-24 14:39:17 -04:00
Philip Eisenlohr 199b84d096 proper bi-directional orientation relationships 2023-10-23 22:53:27 -04:00
Martin Diehl 7d36923178 Merge branch 'new-Marc-versions' into 'development'
New marc versions

See merge request damask/DAMASK!838
2023-10-20 23:26:18 +00:00
Franz Roters 755fa7e5d8 make Marc 2023.3 the default version and use it for testing 2023-10-18 16:21:29 +02:00
Franz Roters ab41273df7 make Marc 2023.2 and use it for testing with new reference results 2023-10-18 13:56:27 +02:00
Martin Diehl 467638e952 do not include origin into calculation 2023-10-16 15:33:57 +02:00
Vitesh f71b1c4dc3 Merge branch 'development' into 'export_DAMASK_to_DREAM3D'
# Conflicts:
#   python/damask/_result.py
2023-10-13 12:21:46 +00:00
Vitesh Shah 8bb193cc70 reset the attribute manager to default 2023-10-09 20:20:34 +02:00
Martin Diehl 5fc3b23cc4 Merge branch 'smart-blend' into 'development'
robust Rotation/Orientation blending

See merge request damask/DAMASK!831
2023-10-06 22:14:31 +00:00
Philip Eisenlohr 51a35dd17c correct in_disorientation_FZ 2023-10-06 09:41:36 -04:00
Daniel Otto de Mentock 4f2c726b95 Merge branch 'result-typehints' into 'development'
more specific typehints

See merge request damask/DAMASK!825
2023-10-06 08:43:37 +00:00
Philip Eisenlohr 634f9fd1f5 extended slicing types, but have to ignore..! 2023-10-04 10:38:03 -04:00
Philip Eisenlohr afe2094c65 remove debug print 2023-10-04 10:29:55 -04:00
Philip Eisenlohr 550c757cdc overall smart blending; more robust disFZ 2023-10-04 09:42:09 -04:00
Philip Eisenlohr 983a376f45 bugfix; serial string use 2023-10-04 09:10:11 -04:00
Martin Diehl a0dc25c16e more specific typehints 2023-10-03 23:02:12 +02:00
Vitesh Shah 85010a8d6d the monkey patch should be used only for export Dream3D
Initially  it got activated at the start of _result.py
This led to failure of other tests.
Use the patch only when needed.
2023-10-02 15:11:02 +02:00
Vitesh Shah fc44112109 change of variable name after merge 2023-09-29 09:23:58 +02:00
Vitesh Shah 5ba83fd05b Merge branch 'development' into export_DAMASK_to_DREAM3D 2023-09-29 08:00:23 +02:00
Daniel Otto de Mentock c3d3ea6588 Merge branch '272-parallel-post-processing' into 'development'
no multiprocessing for adding datasets

Closes #272

See merge request damask/DAMASK!820
2023-09-25 15:31:43 +00:00
Martin Diehl 28cb72ced0 simplified 2023-09-25 13:58:17 +02:00
Martin Diehl 5b6aeaf4b3 Merge branch 'shaped-rotation-application' into 'development'
Shaped rotation application

See merge request damask/DAMASK!819
2023-09-24 18:49:41 +00:00
Martin Diehl 8b421ba7a7 simplified 2023-09-23 06:20:25 +02:00
Martin Diehl 4a943ff844 ensure closed file 2023-09-22 15:18:29 +02:00
Martin Diehl 36d2ae1c2a avoid repeated opening of files 2023-09-22 15:17:58 +02:00
Martin Diehl d832d4cf17 improved documentation 2023-09-22 15:17:28 +02:00
Martin Diehl ee4cfe4b24 new name
'prod' was introduced in numpy 1.7, 'product' will be removed in 2.0
2023-09-22 11:46:39 +02:00
Martin Diehl 36c13d2e58 no need to have this as class method
definition as class method was needed to be visible in multiprocessing
2023-09-22 10:58:25 +02:00
Martin Diehl b0bb904c89 no multiprocessing for adding datasets
multiprocessing was not reliable on different platform and caused all
kinds of weird behavior
2023-09-22 08:36:34 +02:00
Philip Eisenlohr 23c6270d4a added examples 2023-09-21 17:27:38 -04:00
Philip Eisenlohr 108ef2a954 reflect updated shape blending 2023-09-19 18:05:12 -04:00
Philip Eisenlohr 4c4c1fbcc8 small polish 2023-09-19 18:03:55 -04:00
Philip Eisenlohr 0704f1122e result (and object interpretation) "flows" from rotation and data shapes 2023-09-19 17:50:28 -04:00
Philip Eisenlohr b3f98ab877 more flexible shapeblending 2023-09-19 17:43:27 -04:00
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