Commit Graph

334 Commits

Author SHA1 Message Date
Philip Eisenlohr b5f9d524d7 optional start,end in times_in_range 2022-04-21 15:56:17 -04:00
Philip Eisenlohr 730bd8ae34 globally defined prefix_inc --> "increment_" 2022-04-21 11:50:24 -04:00
Nikhil Prabhu 58b67007a9 fixed missing add_strain 2022-04-12 12:02:00 +02:00
Philip Eisenlohr 84ac426606 additional property shows integer list 2022-04-01 18:04:50 -04:00
Martin Diehl f3cf67d3fa avoid code duplication and inconsistencies 2022-03-27 09:55:20 +02:00
Martin Diehl e9906864cf ensure Unix line endings 2022-03-26 22:00:08 +01:00
Philip Eisenlohr 56c33b8a5c flipped VTK.add to use (label,data) to be consistent with other functionality 2022-03-11 20:07:18 -05:00
Martin Diehl 05541736a6 clearer message 2022-03-09 15:18:18 +01:00
Martin Diehl 20e056e26a consistent interface also for internal functionality
allows to change multiple 'what's at the same time
2022-03-07 13:10:15 +01:00
Martin Diehl a77b63718c remove deprecated interface options 2022-03-04 20:27:32 +01:00
Philip Eisenlohr 320ab70270 Merge branch 'development' into 'python-vtk-improvements'
# Conflicts:
#   python/damask/_vtk.py
2022-02-23 14:20:52 +00:00
Martin Diehl 77e57a268c unified.
the default python description "Return repr(self)." is pretty useless,
so better agree on a DAMASK standard
2022-02-23 07:21:30 +01:00
Philip Eisenlohr 47dcd4bd41 follow Python exception message convention of lower-case 2022-02-22 10:42:05 -05:00
Philip Eisenlohr aeb0e527ec Consistent formatting of raised messages 2022-02-22 09:46:12 -05:00
Martin Diehl e8a4f06634 out of place behavior for VTK 2022-02-22 07:49:44 +01:00
Martin Diehl 9fe51686e5 allow to use '~' in path
not sure how to test, i.e. how to create a fixture to have a fake home
2022-02-21 07:19:05 +01:00
Philip Eisenlohr 0adc827278 Merge branch 'development' into python-vtk-improvements 2022-02-18 14:46:40 -05:00
Philip Eisenlohr 826611411f "list_data" now returns list not str; deemph creator 2022-02-17 12:05:13 -05:00
Martin Diehl 9a5eb45212 helpful information when comparing files 2022-02-17 07:16:55 +01:00
Philip Eisenlohr 2ce464c48e vtk.comments as directly accessed property 2022-02-14 09:24:12 -05:00
Sharan 1bd654781b tests updated 2022-02-02 00:20:14 +01:00
Martin Diehl 6657e5c4eb testing a few corner cases
behavior for __eq__ is now following python standard, comparing to wrong
class gives False
2022-01-15 13:22:15 +01:00
Martin Diehl 3acabcdc7f docstring adjustments 2022-01-12 23:57:21 +01:00
Martin Diehl 2fc25c6fa9 correct reporting 2021-12-17 14:31:51 +01:00
Martin Diehl a1e42af860 easier to understand 2021-12-17 10:44:41 +01:00
Martin Diehl c1eabc3384 simplified interface 2021-12-17 10:31:41 +01:00
Martin Diehl 0b6af19e54 use of keywords is more intuitive
code needs cleaning after revoming of 'what' and 'datasets'. For the
moment, keep the old style for compatibility with existing evaluation
scripts
2021-12-17 09:48:33 +01:00
Philip Eisenlohr 5dbb60d338 add_pole now has option "with_symmetry" 2021-08-19 06:10:08 +02:00
Martin Diehl c5f284cd8d increased test coverage 2021-08-18 10:44:04 +02:00
Martin Diehl b13e7e174b avoid invalid DADF5 2021-08-16 21:31:17 +02:00
Martin Diehl 30d9f57db0 also compress string datasets
results in different type (numpy string instead of numpy object), tests need to be adjusted
2021-08-14 16:28:51 +02:00
Martin Diehl 595cc4e59e always chunk data
for small datasets:
- only one chunk
- no compression
2021-08-14 15:48:07 +02:00
Vitesh Shah b29b0ecd71 Merge branch 'development' into report-systems 2021-08-10 09:16:13 +02:00
Martin Diehl 4e6663d258 Merge remote-tracking branch 'origin/development' into restructure-Orientation-2 2021-08-08 10:18:34 +02:00
Martin Diehl 68eb930bf0 Merge remote-tracking branch 'origin/development' into report-systems 2021-08-03 21:57:50 +02:00
Martin Diehl e8312a49ed polishing 2021-08-02 10:38:59 +02:00
Martin Diehl 83183408ea can only decode strings, not arrays of strings 2021-07-31 10:20:48 +02:00
Martin Diehl 26ae352a4c make setup data easily accessible to the user 2021-07-27 09:38:47 +02:00
Martin Diehl de428efca5 add_pole is working again 2021-07-18 18:58:05 +02:00
Martin Diehl f11e7742e5 better document
make damask.mpie.de colorful ;)
2021-07-16 10:30:33 +02:00
Martin Diehl b2b93f2780 not needed anymore 2021-07-01 19:36:00 +02:00
Martin Diehl abd660e62d Merge remote-tracking branch 'origin/development' into polishing 2021-06-19 13:28:56 +02:00
Martin Diehl 56b011aa54 better have tests 2021-06-18 21:11:01 +02:00
Philip Eisenlohr 0805445ea8 exchanged x/z dimension in XDMF writing 2021-06-18 10:17:39 -04:00
Martin Diehl db1882e4de polishing 2021-06-17 18:26:37 +02:00
Martin Diehl 218e6a79a8 VTK image data is the appropriate type, not VTK rectilinear grid
FFTs require constant spacing in all three directions, this is
guaranteed by the vtkImageData but not by vtkRectilinearGrid
2021-06-15 19:02:26 +02:00
Martin Diehl 6f9e521cdb Merge branch 'HDFgeometryupdate' into 'development'
HDF geometry update

See merge request damask/DAMASK!395
2021-06-01 08:01:53 +00:00
Martin Diehl bd10ee033e dealing with user errors/incomplete files 2021-06-01 06:51:44 +02:00
Martin Diehl f435a1bea4 include in documentation 2021-05-28 21:06:02 +02:00
Martin Diehl 46dc6b4dab functionality to add field data on regular grids
allows to add curl, divergence, and gradient to results from the grid
solver
2021-05-28 15:38:00 +02:00
Martin Diehl e431d89957 polishing 2021-05-28 13:20:56 +02:00
Martin Diehl dd4612dd9b support singular names
e.g. self.iterate('phase')
2021-05-28 08:06:58 +02:00
Martin Diehl 00bc6a9031 4 threads as default. Reasonable for modern computers
hardcoded + and as shell variable
2021-04-28 20:26:25 +02:00
Philip Eisenlohr ba938f1746 need to check for isinstance(int) 2021-04-26 17:56:15 -04:00
Philip Eisenlohr 5567512f73 removed unnecessary f-strings; added any -x to increments view 2021-04-26 14:26:16 -04:00
Martin Diehl de79d2d897 test handling of Marc results 2021-04-26 00:28:39 +02:00
Martin Diehl 62c987badf add tracer to vtk files 2021-04-25 23:54:33 +02:00
Martin Diehl 68a839ed97 typo + improved help 2021-04-25 22:14:13 +02:00
Martin Diehl d4a46b9be8 Merge remote-tracking branch 'origin/development' into drop-old-DADF5-support 2021-04-25 17:34:14 +02:00
Martin Diehl 0459f17f58 improved usability 2021-04-25 07:58:15 +02:00
Martin Diehl 18aa6f7f12 support for string arrays
allows to add phase label from mapping. Only scalar string arrays are
allowed (no real restriction)
2021-04-24 22:50:59 +02:00
Martin Diehl 6e1fe712c7 Merge branch 'python-documentation' into drop-old-DADF5-support 2021-04-24 19:39:28 +02:00
Philip Eisenlohr 690b478013 [skip ci] language polishing 2021-04-24 13:12:44 -04:00
Martin Diehl 95831e53f6 using improved documentation 2021-04-24 16:23:34 +02:00
Martin Diehl 3977e230b3 documenting and ensuring consistent argument names
'name' for a dataset matches the analogy to a file name
2021-04-24 14:47:45 +02:00
Martin Diehl 4d67c85a33 clarify out-of-place behavior and document return values 2021-04-23 23:32:09 +02:00
Martin Diehl 190ddafa44 don't support old file formats 2021-04-14 23:23:32 +02:00
Martin Diehl 0e6cb127df damage can be defined in parts of the domain ... 2021-04-14 19:24:45 +02:00
Martin Diehl d304654972 allow easy detection of empty view/get/place 2021-04-10 09:33:45 +02:00
Martin Diehl 07d573a56d more helpful dataset descriptors
phase label for single phase material not helpful
2021-04-10 09:32:21 +02:00
Martin Diehl e89236b14d bugfix:
don't overwrite data when doing a 'place-like' operation to merge
datasets
2021-04-08 17:36:33 +02:00
Martin Diehl 2d8658822d report return value 2021-04-08 14:58:22 +02:00
Philip Eisenlohr bf4c88a39e renamed result.read to get; polishing 2021-04-06 11:39:44 -04:00
Martin Diehl 02277fb820 consistently return masked array 2021-04-05 22:18:18 +02:00
Martin Diehl 115e3dd4c7 simplified 2021-04-05 17:18:12 +02:00
Martin Diehl faa9e6aa6a open file only once 2021-04-05 15:58:10 +02:00
Martin Diehl c3a7a85f7a avoid repetition 2021-04-05 15:41:28 +02:00
Martin Diehl 9db1ef9ed7 polishing 2021-04-05 13:41:49 +02:00
Martin Diehl 65b03aeb2d Merge remote-tracking branch 'origin/development' into Results.read-.place 2021-04-05 10:22:49 +02:00
Martin Diehl 62c85db745 out of place behavior 2021-04-05 08:03:00 +02:00
Martin Diehl fc409fcf08 'join' is always linear in time, '+' not 2021-04-04 22:12:28 +02:00
Martin Diehl 1d6b56346a use 'view' and standardized calling signature 2021-04-04 20:56:30 +02:00
Martin Diehl 0e5f693fea untangling 2021-04-04 19:44:06 +02:00
Martin Diehl e1d57f176d simplifying
[] has a special meaning for glob, use () to indicate direction for IPF
color. It is anyways the sample direction, not a crystallographic
direction
2021-04-04 19:05:58 +02:00
Martin Diehl d78e0085fc simplified 2021-04-04 18:32:17 +02:00
Martin Diehl a962777d24 avoid code duplication 2021-04-04 13:38:40 +02:00
Martin Diehl 6fef46539e standard names 2021-04-04 13:16:14 +02:00
Martin Diehl 6f3dc80079 simplified/using new functionality 2021-04-03 16:32:48 +02:00
Martin Diehl 27f2e3b26e avoid random order when using sets 2021-04-03 12:21:06 +02:00
Martin Diehl 885aeb62e5 geometry0 itself is useful
can be combined with 'place' if in-memory VTK is required for spatial
operations
2021-04-03 08:58:22 +02:00
Martin Diehl 39c0bc9de6 polishing 2021-04-03 08:19:16 +02:00
Martin Diehl 20d0242d59 using new logic 2021-04-02 12:21:27 +02:00
Martin Diehl e8ff509502 output all datasets per default
respect 'field' selection
2021-04-02 11:29:58 +02:00
Martin Diehl 18afa217fe easier to understand
limit to same fields for homogenization and fields results in a little
less flexibility (requires two views) but should be acceptable for such
a little used feature
2021-04-02 08:24:49 +02:00
Martin Diehl 58ac99831c polishing 2021-04-02 07:47:03 +02:00
Philip Eisenlohr f6d6aefe1d function renaming; rewording of help messages 2021-04-01 18:41:28 -04:00
Martin Diehl 84e117c6b3 polished and added tests 2021-04-01 17:26:51 +02:00
Martin Diehl 71d1a341e4 simplified 2021-04-01 15:08:48 +02:00
Martin Diehl 2397df88f9 documenting 2021-04-01 07:21:34 +02:00
Martin Diehl 8a8a28adc4 support multi-constituents 2021-03-31 20:02:25 +02:00
Martin Diehl be444b69ca include homogenization 2021-03-31 15:44:27 +02:00
Martin Diehl 7b678af1b4 float and int are different 2021-03-31 12:40:53 +02:00
Martin Diehl 8c7ee5e796 simplified 2021-03-31 12:05:51 +02:00
Martin Diehl 7b846efe4a arguments can be int, bool, str 2021-03-31 08:12:57 +02:00
Martin Diehl eebb050a64 simplified
place seems to work
2021-03-31 07:56:42 +02:00
Martin Diehl 60119c1300 return minimal unique dictionaries per default 2021-03-30 21:39:14 +02:00
Martin Diehl 989992004d cleaning dicts 2021-03-30 19:41:36 +02:00
Martin Diehl b9b66fac45 simplified 2021-03-30 17:15:02 +02:00
Martin Diehl b19ec4f8ae first ideas for more user friendly usage 2021-03-30 07:24:47 +02:00
Martin Diehl be9e00347b cleaning
dropped support for legacy table
2021-03-27 10:11:31 +01:00
Martin Diehl 3b392281e4 consistent naming in HDF5 output 2021-03-25 19:22:59 +01:00
Philip Eisenlohr e2d4ab427e explicit path joining with "/" in _result; updated cpTi CRSS 2021-03-09 22:02:49 -05:00
Philip Eisenlohr 4208c4e713 adapted to Table.add being out-of-place 2021-03-08 11:04:49 -05:00
Philip Eisenlohr 1d62341811 Fixed missing second-to-last entry in representation list. Polished help texts. 2021-02-26 03:20:28 +01:00
Martin Diehl 6895ef6b18 always write LF line endings
small pitfall: I windows users use a filehandle that results from a call
to open() without the newline option, they get still CRLF line endings
2021-02-10 10:03:35 +01:00
Martin Diehl d76543f759 better name 2021-01-13 14:57:58 +01:00
Martin Diehl a7d998dd48 standard name 2021-01-13 14:53:50 +01:00
Martin Diehl a881e6e57a Merge remote-tracking branch 'origin/development' into misc-improvements 2020-12-10 23:41:59 +01:00
Martin Diehl 429b84004d more filters
- shuffle: significanlty better compression
- Fletcher32: checksum to detect errors

computational overhead is very small
2020-12-06 19:57:00 +01:00
Martin Diehl 52e3fb50bc compress.
Datasets are chunked along first timension. Chunk size (1MB for real) is
probably not optimal
2020-12-06 11:44:52 +01:00
Martin Diehl 000de75617 write orientation as plain array, not derived type 2020-12-06 08:36:16 +01:00
Martin Diehl ed286ee09f Merge branch 'rename-grid-2' into misc-improvements 2020-12-05 09:50:46 +01:00
Martin Diehl 0fdefa5e78 renames:
after the rename of "grid" to "cell", the name cell should not be used
for the coordinates of the cell centers. In agreement with the names
x_p/u_p for point positions/displacements, now the "point" is used to
refer to the materialpoints (i.e. cell centers)

Additionally, "_node"/"_point" are now suffixes to
"coordinates"/"displacements".

Finally, "coords" is renamed to "coordinates"
2020-12-03 23:59:37 +01:00
Martin Diehl ac0a20696c rename: grid -> cells 2020-12-03 22:16:34 +01:00
Martin Diehl d3a5979d25 meaningful result 2020-12-02 14:45:47 +01:00
Martin Diehl 1c2cdbd5a1 support of all standard numpy types
+ tests
2020-11-30 12:33:21 +01:00
Martin Diehl 813ef927c4 consistent with "save_XDMF" (capitalized) 2020-11-30 09:28:46 +01:00
Martin Diehl f48f5cb0e8 bugfix/better readable 2020-11-29 08:58:48 +01:00
Martin Diehl c712332e87 using consistent names for Bravais lattice in Fortran and Python 2020-11-28 22:38:12 +01:00
Martin Diehl a8da1e5ed9 Paraview 5.9 supports datasets of arbitrary length in XDMF 2020-11-27 22:57:15 +01:00
Francisco Jose Gallardo Basile 030062d293 Merge branch 'unit-in-vtk' into 'development'
Unit in vtk

See merge request damask/DAMASK!288
2020-11-24 16:21:01 +01:00
Martin Diehl 7fa98ef084 DEcode bytes into str 2020-11-23 20:17:04 +01:00
Martin Diehl cbe8160e13 Merge remote-tracking branch 'origin/development' into vector-mechanics 2020-11-23 19:55:34 +01:00
Martin Diehl f85dba2835 small polishing 2020-11-23 19:43:19 +01:00
Sharan Roongta 24fabdec22 Merge branch 'development' into vector-mechanics 2020-11-22 12:02:29 +01:00
Martin Diehl 2de3a6a205 fits better to stretch_left/right 2020-11-19 22:46:52 +01:00
Martin Diehl a87596cefc return rotation type (ensures proper rotation) 2020-11-19 22:36:19 +01:00
Martin Diehl a4b5c2a537 shorter (but still self-explanatory) name 2020-11-19 15:20:44 +01:00
Martin Diehl 6e5cb60132 general tensor functionality 2020-11-19 15:16:01 +01:00
Martin Diehl 20d0732b2e output unit to XDMF/vtk 2020-11-19 13:45:40 +01:00
Martin Diehl 5a5dd24687 removed aliases 2020-11-19 10:50:14 +01:00
Martin Diehl b9b26cb2cc output results for all constituents 2020-11-18 23:36:02 +01:00
Martin Diehl 5359e05fd3 always merge homogenization results 2020-11-18 23:17:12 +01:00
Martin Diehl 4bf802a28e fixed documentation 2020-11-18 21:51:37 +01:00
Martin Diehl 843d7d8cac Merge remote-tracking branch 'origin/development' into new_names_result 2020-11-18 21:37:52 +01:00
Martin Diehl 564ee6c96a make uvw/hkl keyword-only arguments
avoid to prefer one over the other, since they are mutually exclusive
2020-11-18 16:45:53 +01:00
Martin Diehl c60d9cde2a merge 'mechanics' datasets
was like that for 'generic'. Needs detailed discussion in future
2020-11-18 15:52:55 +01:00
Martin Diehl 838a4ea592 [skip ci] fix for scalar values 2020-11-18 14:57:32 +01:00
Martin Diehl 870c0f7aca removed aliases
required bump of DADF5 version
2020-11-18 14:53:11 +01:00
Martin Diehl 89c748fdf1 Merge remote-tracking branch 'origin/development' into vector-mechanics 2020-11-18 13:55:05 +01:00