Commit Graph

1824 Commits

Author SHA1 Message Date
Test User 1050428e27 [skip ci] updated version information after successful test of v3.0.0-alpha3-302-gb69bae272 2021-06-29 17:44:24 +02:00
Martin Diehl 9dca7d8055 not needed 2021-06-29 10:44:13 +02:00
Martin Diehl 7745640393 consistently use prefix as modifier 2021-06-28 23:41:50 +02:00
Test User b9f273099d [skip ci] updated version information after successful test of v3.0.0-alpha3-278-g23b9361bf 2021-06-24 08:24:27 +02:00
Martin Diehl 172b4fb5d1 Merge remote-tracking branch 'origin/development' into pyproject.toml
annoying conflicts to to change of type (symlink switch)
2021-06-22 22:48:50 +02:00
Martin Diehl 78b54517db pip has problem with symlinked VERSION
https://github.com/pypa/pip/issues/3500
Not the nicest solution, but works and keeps single source of truth
2021-06-22 11:11:23 +02:00
Martin Diehl 223934a406 https://snarky.ca/what-the-heck-is-pyproject-toml
https://www.python.org/dev/peps/pep-0518
https://www.python.org/dev/peps/pep-0517
2021-06-22 11:10:03 +02:00
Martin Diehl 0a22916aba not a double subscript 2021-06-19 15:13:27 +02:00
Martin Diehl abd660e62d Merge remote-tracking branch 'origin/development' into polishing 2021-06-19 13:28:56 +02:00
Martin Diehl 71634f6ce9 split into two tests, one will fail on Ubuntu 2021-06-19 08:12:49 +02:00
Martin Diehl 56b011aa54 better have tests 2021-06-18 21:11:01 +02:00
Martin Diehl 32b5e4dece update time estimate for long running processes 2021-06-18 18:14:52 +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 f19dc27246 transition compatibility 2021-06-16 14:35:54 +02:00
Martin Diehl 9b1f5c7783 testing new functionality for Neper / vti 2021-06-15 23:19:08 +02:00
Martin Diehl 01a32ea236 import from Neper 2021-06-15 22:29:28 +02:00
Martin Diehl 1bfbd30ae2 polishing 2021-06-15 19:53:05 +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 5202da13ea better not have a "Lattice" object with "lattice" parameter 2021-06-07 21:49:04 +02:00
Martin Diehl 41e5f0c06c re-introduced multiple inheritance 2021-06-06 22:25:42 +02:00
Martin Diehl 0722f4f754 disable if not possible 2021-06-03 11:22:28 +02:00
Martin Diehl 3c8d06b6f1 encapsulating all lattice(-family) related data 2021-06-03 11:18:00 +02:00
Martin Diehl 4701eea10f decoupling Orientation and Lattice/LatticeFamily 2021-06-03 10:02:49 +02:00
Martin Diehl 03d3f362e6 equality checks
note: doing this type of comparison means:
- LatticeFamily('cubic') == Lattice('cF')
- Lattice('cF') != LatticeFamily('cubic')

we have the same behavior for comparison between Orientation and
Rotation
2021-06-03 09:38:43 +02:00
Martin Diehl 3b150ddbea simplified/separated 2021-06-03 09:22:54 +02:00
Martin Diehl 87e94b6cf4 sorting
most functions require only lattice family, functions that require full
lattice details are at the end
2021-06-03 08:43:56 +02:00
Martin Diehl 302da1f76a separating functionality 2021-06-02 17:11:37 +02:00
Martin Diehl b55d51491d separating functionality 2021-06-02 08:48:45 +02:00
Martin Diehl e281d8384f distinguish 'family' and 'lattice'
this requires the user to specify a keyword ('*' notation in __init__).
Since all 'from_xxx' methods anyway require a keyword, it does not
causes much more work (one explicit keyword in case of cube orientation
when using __init__ directly).
2021-06-01 21:51:28 +02:00
Martin Diehl 684016f3e3 utility function without connection to an object 2021-06-01 21:29:35 +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
Philip Eisenlohr 02256be8dc Merge branch 'rotation-couple-kinematics' into 'development'
avoid static methods

See merge request damask/DAMASK!393
2021-05-31 15:55:36 +00:00
Francisco Jose Gallardo Basile 0ef5825d35 Merge branch 'Results.add_grid_filters' into 'development'
Result.add_xxx for functions on regular grids

See merge request damask/DAMASK!394
2021-05-31 05:46:06 +00:00
Sharan Roongta d1a6607782 Merge branch 'load2Dtensor' into 'development'
support for 2D tensor in load case

See merge request damask/DAMASK!391
2021-05-29 13:21:47 +00:00
Martin Diehl 94b6be4e83 preferred way to say that something needs to be implemented 2021-05-29 10:54:34 +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 89fc2f05cf no need to attach static data
if needed, a 'kinematics' function that provides slip direction and
plane normal rotated according to the orientation would be helpful
2021-05-27 20:23:22 +02:00
Martin Diehl bfc3fe410f no direct connection to Orientation object 2021-05-27 19:10:23 +02:00
Martin Diehl f7e1aad147 single source of truth 2021-05-27 18:44:20 +02:00
Martin Diehl 545a085c93 no need to hide, just add suffix to avoid clash with string argument 2021-05-27 18:41:42 +02:00
Martin Diehl adb1e51e24 support for 2D tensor in load case
currently optional, but should become mandatory after a transition
period
2021-05-26 08:04:14 +02:00
Martin Diehl 40698740aa fixed symmetry handling
- ort not tested, no examples, no documentation => removed
- aP is the opposite of isotropic => removed

isostropic materials can be easily specified as cI or cF, using C_44 =
1/2 * (C_11 - C_12). Acceptable extra effort for special use case

orthorhombic can be easily implemented if needed, but needs test,
documentation, and examples
2021-05-24 15:45:25 +02:00
Martin Diehl 0b80252d97 Merge remote-tracking branch 'origin/123_bccSlipSystem' into development 2021-05-22 22:40:33 +02:00
Sharan Roongta fa3b077b72 Merge remote-tracking branch 'origin/development' into internal-restructure 2021-05-21 12:32:59 +02:00
f.basile 10c6070873 added {123} slips systems of bcc 2021-05-20 18:45:15 +02:00
Sharan Roongta 125e8fb9e2 Merge remote-tracking branch 'origin/development' into internal-restructure 2021-05-20 10:41:59 +02:00
Sharan Roongta edb7834404 typo 2021-05-20 10:30:00 +02:00
Martin Diehl 2648464525 relax tolerances for quaternion initialization
we read in ASCII/YAML files, 1e-8 must be enough
2021-05-19 09:46:02 +02:00
Martin Diehl 85ecb68b8f Merge remote-tracking branch 'origin/development' into MatrixInteraction_clean 2021-05-11 06:00:16 +02:00
Philip Eisenlohr d6e69d5d4b [skip ci] polishing of doc string 2021-05-10 14:44:58 -04:00
Martin Diehl 053c427509 adjusting to new interaction matrices 2021-05-09 14:50:55 +02:00
Martin Diehl bc8a03b392 Merge branch 'python-polishing' into lattice-into-orientation 2021-05-07 22:04:25 +02:00
Martin Diehl 9c9286a4be no connection to the class 2021-05-07 21:51:11 +02:00
Martin Diehl cb8dbf6eda simplified 2021-05-07 21:33:48 +02:00
Martin Diehl a48fa5d797 better readable and documented 2021-05-07 20:07:59 +02:00
Martin Diehl 8626f6c047 hide imported modules in autocompletion 2021-05-06 15:00:03 +02:00
Martin Diehl b1ad8197f2 object oriented approach
Orientation (of special lattice) should not have generic attributes
Also, import at the beginning of the file
2021-04-29 20:59:54 +02:00
Martin Diehl b061b4911d compatible with older scipy versions 2021-04-29 08:58:32 +02:00
Martin Diehl 3c41cd609f Merge branch 'development' into env-reporting 2021-04-29 08:40:29 +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
Martin Diehl ff8ce3840b handle infinite loop 2021-04-28 08:03:22 +02:00
Philip Eisenlohr e9cfb2f968 Merge branch 'drop-old-DADF5-support' into 'development'
Improvements to damask.Result

See merge request damask/DAMASK!373
2021-04-27 00:33:41 +00: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
Philip Eisenlohr b1bbe5528b [skip ci] fixed mistake (R --> Q) in example 2021-04-26 17:09:11 +00:00
Franz Roters 55333f7e3e Merge branch 'no-shell-variables' into 'development'
KISS: no shell variables

See merge request damask/DAMASK!370
2021-04-26 15:48:58 +00: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 24046ef683 support the user 2021-04-24 18:00:57 +02: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 26f37d822d state return value
not for Rotation as its docstring is extended by Orientation
2021-04-23 19:15:11 +02:00
Martin Diehl 6699f2ee5f don't use shell variables
Marc solver can be controlled in python, installation can be tuned with
CLI arguments
2021-04-22 12:02:53 +02:00
Martin Diehl 3f8bd645d8 handle the case that MSC-related variables are not set 2021-04-22 07:55:41 +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
Sharan Roongta 1be1a72a09 Merge branch 'Fortran-cleaning' into 'development'
Clarifying structure

See merge request damask/DAMASK!368
2021-04-13 11:08:18 +00:00
Martin Diehl cfbb2d416f better example 2021-04-10 23:58:53 +02:00
Martin Diehl 1133090b6c logfile does not contain much valuable information
Marc automatically creates .out
2021-04-10 23:50:20 +02:00
Martin Diehl 37df78a8e0 don't show progress bar for empty iterations 2021-04-10 15:01:50 +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 44331c504b __class__ is unknown (says prospector) 2021-04-10 08:29:42 +02:00
Martin Diehl 63b343ad87 Merge branch 'development' into allclose-rotation-orientation 2021-04-10 08:05:25 +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
Martin Diehl 00aed99419 naming of tests should follow naming in class 2021-04-08 13:39:48 +02:00
Martin Diehl bc1454970c mandatory symmetry
if symmetry is not of interest, damask.Rotation should be used
2021-04-06 22:49:08 +02:00
Philip Eisenlohr bf2515c4c1 removed `Grid.diff` in lieu of `__eq__` 2021-04-06 12:10:35 -04: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 d5806075d4 distinguish isclose/allclose and __eq__ 2021-04-05 22:15:03 +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 1b2d892b42 keep reference folder clean 2021-04-03 07:31:31 +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 cf1ce6a1fe support for masked array
masked arrays are the outcome of Result.place
2021-04-02 08:07:22 +02:00
Martin Diehl 58ac99831c polishing 2021-04-02 07:47:03 +02:00
Martin Diehl 9459fea929 support for pandas not planned any more
damask.Table supports multidimensional data, numpy.ma supports masked
arrays
2021-04-02 07:42:54 +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 4b9fcf2f77 testing new read functionality 2021-04-01 14:55:50 +02:00
Martin Diehl 85aaaa96f3 new tests 2021-04-01 10:47:45 +02:00
Martin Diehl 2397df88f9 documenting 2021-04-01 07:21:34 +02:00
Martin Diehl c1f7ea750b legacy access not needed anymore 2021-04-01 06:55:47 +02:00
Martin Diehl 8a3af87e3e Merge remote-tracking branch 'origin/development' into spring-cleaning 2021-04-01 00:09:51 +02:00
Philip Eisenlohr 07c9cf5f1a - improved reporting and slicing of table.
- implemented numpy-like `allclose` and `isclose`
2021-03-31 18:30:07 +00: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 97e6c397d9 cleaned 2021-03-31 15:10:39 +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 e9c65dee73 documenting and testing 2021-03-31 10:59:21 +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 7865092b82 not needed 2021-03-30 17:24:19 +02:00
Martin Diehl b9b66fac45 simplified 2021-03-30 17:15:02 +02:00
Martin Diehl d1af4b031a source for python-compatible versioning 2021-03-30 17:02:57 +02:00
Martin Diehl b19ec4f8ae first ideas for more user friendly usage 2021-03-30 07:24:47 +02:00
Martin Diehl 3fe1accf18 not used anymore 2021-03-28 19:48:44 +02:00
Martin Diehl 5ea2fa97a0 untested and unused code 2021-03-28 12:46:26 +02:00
Martin Diehl a587e70704 split into small sections and test damage 2021-03-28 12:08:08 +02:00
Martin Diehl a3ab890315 bugfix for ConfigMaterial
don't use mutable variables in python initializers, they get updated
2021-03-28 11:35:40 +02:00
Martin Diehl 480b8315a7 cleaning + testing 2021-03-27 15:54:29 +01:00
Martin Diehl 8a99306aed old table not needed anymore 2021-03-27 14:34:18 +01:00
Martin Diehl c742f7c9d0 need to cope with _asciitable.py and _test.py 2021-03-27 12:47:58 +01:00
Martin Diehl be9e00347b cleaning
dropped support for legacy table
2021-03-27 10:11:31 +01:00
Martin Diehl 111a1a76c6 cleaning 2021-03-27 07:35:49 +01:00
Martin Diehl 9fd244d8a0 cleaning 2021-03-26 20:59:49 +01:00
Martin Diehl 3e8bcd3225 cleaning examples, using consistent names
- examples in repository should only show the most basic steps
- MSC.Marc, marc => Marc
2021-03-26 09:27:49 +01:00
Martin Diehl 9e9eb391ba handle floating point errors 2021-03-25 22:33:14 +01:00
Martin Diehl a72e2db678 Merge branch 'development' into output-rename 2021-03-25 21:03:20 +01:00
Philip Eisenlohr 3d4590a522 Merge branch 'citation-style' into development 2021-03-25 14:39:44 -04:00
Philip Eisenlohr 0e57135239 [skip ci] dx.doi.org --> doi.org 2021-03-25 14:33:08 -04:00
Martin Diehl 3b392281e4 consistent naming in HDF5 output 2021-03-25 19:22:59 +01:00
Martin Diehl fe0cd8e5e2 transparently handle orientations/rotations 2021-03-25 15:30:31 +01:00
Martin Diehl 1ff6a09746 tests/specifications 2021-03-23 18:51:21 +01:00
Martin Diehl 572c3204d0 let the computer do the work 2021-03-23 14:28:56 +01:00
Martin Diehl e0e088eaa8 EBSD dataset for testing
use only non-segmented data. Automatically fall back to numeric phase
names if cell_ensemble_data is not found
2021-03-23 13:42:04 +01:00
Martin Diehl 549b849730 better readable 2021-03-23 12:05:08 +01:00
Martin Diehl 926b5c657d material_add can do expansion 2021-03-23 12:01:35 +01:00
Vitesh Shah 005fde2504 homogenization in material was missing 2021-03-23 11:48:35 +01:00
Martin Diehl 7012099d0c substituted broken link 2021-03-20 14:34:14 +01:00
Martin Diehl 1c3d1ee0f2 documented 2021-03-20 13:37:06 +01:00
Martin Diehl 394fda5f37 improving import from DREAM.3D
- no duplicated entries even for non-segmented data
- using phase labels from file
- material.yaml: Dummy homogenization and phase
- tests to ensure correct order and match between Grid and
  ConfigMaterial
2021-03-20 12:56:18 +01:00
Martin Diehl cdcedd0d44 autodetect base group 2021-03-20 07:26:07 +01:00
Martin Diehl 35c5bfcc45 reference files for DREAM.3D operations
will be used for the configuration of material.yaml and grid (using
symbolic links)
2021-03-19 11:45:04 +01:00
Sharan Roongta fc172921fb unified citation style continued 2021-03-19 10:41:47 +01:00
Martin Diehl 07d79ef4ba unifying style 2021-03-17 11:25:21 +01:00
Martin Diehl ec28fd8a73 polishing 2021-03-12 09:23:05 +01:00
Martin Diehl 3b27c64709 Merge remote-tracking branch 'origin/development' into config_from_dream3D 2021-03-12 08:11:54 +01:00
Philip Eisenlohr e2d4ab427e explicit path joining with "/" in _result; updated cpTi CRSS 2021-03-09 22:02:49 -05:00
Philip Eisenlohr a26e586b14 More general 'delete' (accepts iterables) and backports of '|' and '|=' for union/add.
'|=' would work for python 3.9 without extra code, but '|' unfortunately casts 'damask.Config' (subclass of 'dict') to a 'dict'.
2021-03-09 19:15:15 +00:00
Philip Eisenlohr 4208c4e713 adapted to Table.add being out-of-place 2021-03-08 11:04:49 -05:00
Philip Eisenlohr 7cbc69a4ca added "Returns" to help 2021-03-08 11:02:27 -05:00
Philip Eisenlohr 109ad378c2 corrected help text of as_Rodrigues_vector 2021-03-02 16:26:18 +01:00
Franz Roters 7b89cb41f9 Merge branch 'dislotwin-correction' into 'development'
dislotwin-correction

See merge request damask/DAMASK!347
2021-02-28 19:45:34 +00:00
Philip Eisenlohr 464c62e7e7 abandoned integer aliases for projection directions 2021-02-28 12:47:13 +01:00
Philip Eisenlohr 175d724ded added keepdims=False option to project_stereographic 2021-02-27 18:38:40 -05:00
Philip Eisenlohr ea763fd941 generalized stereographic projection to cope with all three directions (x,y,Z) 2021-02-27 11:15:01 -05:00
Martin Diehl bf223e8e00 helpful reporting in case of errors 2021-02-26 06:35:42 +01:00
Philip Eisenlohr 1d62341811 Fixed missing second-to-last entry in representation list. Polished help texts. 2021-02-26 03:20:28 +01:00
Sharan Roongta c0e488881e converted two examples to yaml 2021-02-24 20:13:55 +01:00
Philip Eisenlohr 2549d7a05a [skip ci] removed debug print statement 2021-02-24 15:50:06 +01:00
Philip Eisenlohr 2dea705fa9 polishing/shortening 2021-02-23 19:01:10 -05:00
Philip Eisenlohr 0b08b3d233 expanded help texts 2021-02-23 18:54:55 -05:00
Philip Eisenlohr dcc42204ec expanded help on material_add 2021-02-23 18:40:32 -05:00
Philip Eisenlohr 69316f186b fixed ConfigMaterial.from_table; 2D grid.from_table now acceptable 2021-02-23 11:50:13 -05:00
Philip Eisenlohr 4a00254dba shortened material_add and allow for multi-constituent; broken from_table... 2021-02-22 22:47:08 -05:00
Martin Diehl 0461c404f7 numpy uses __array__ for casting
avoids infinite loop of __init__, __getitem__, and shape. Found on
8cf07f6113
2021-02-22 18:52:06 +01:00
Martin Diehl 5517be5078 warn the caller of deprecated functions 2021-02-22 08:49:44 +01:00
Martin Diehl 67f0ab2ce8 silence deprecation warning 2021-02-22 08:46:28 +01:00
Martin Diehl b00b4bb0ad more general handling of precision
Anaconda on windows does not have np.float128 defined, but aliases
should work
https://numpy.org/devdocs/user/basics.types.html
2021-02-19 17:03:41 +01:00
Martin Diehl f5f993435b make intention clear 2021-02-19 16:34:28 +01:00
Martin Diehl ab9661d951 don't see how ':=' should help here 2021-02-19 07:04:34 +01:00
Martin Diehl 7c6ce525a3 ask for minimum version 2021-02-19 06:51:32 +01:00
Philip Eisenlohr f609b61157 Merge branch 'development' into account-for-floating-point-precision-in-orientation 2021-02-15 16:26:25 -05:00
Philip Eisenlohr 6bbd55d967 exchanged c for x in from_cubochoric 2021-02-15 16:25:36 -05:00
Philip Eisenlohr 002cfbd085 Merge branch 'account-for-floating-point-precision-in-orientation' into 'development'
ensures that at least one orientation in the FZ is found

See merge request damask/DAMASK!337
2021-02-15 20:53:37 +00:00
Philip Eisenlohr 89e8ca4535 renamed and shortened _separate_arguments() 2021-02-15 11:22:42 -05:00
Sharan Roongta 099cd90890 Merge remote-tracking branch 'origin/development' into python-improvements 2021-02-13 16:51:29 +01:00
Martin Diehl fe63adcca4 mimic python error message and ensure that error is raised 2021-02-12 18:20:39 +01:00
Sharan Roongta 9e8a243d6f avoid name conflict with lattice parameter 'c' 2021-02-12 12:15:08 +01:00
Sharan Roongta f1b8978e21 accept variables that will be used
**kwargs allowed the use of extraneous arguments
2021-02-12 11:24:12 +01:00
Martin Diehl 958936c449 Merge branch 'development' into polishing-for-release 2021-02-11 21:59:59 +01:00
Martin Diehl e8fae6b2a7 simplified 2021-02-11 21:56:53 +01:00
Martin Diehl 4e31862f0f avoid repetition 2021-02-10 18:35:13 +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 4bcbcb34d0 ensures that at least one orientation in the FZ is found 2021-02-09 23:58:00 +01:00
Martin Diehl 869307c5ec temperature not needed for pure mechanics
would also require to define thermal homogenization
2021-02-08 22:56:37 +01:00
Sharan Roongta cab5a5cec7 homogenization 'none' name misleading. 2021-02-04 15:37:40 +01:00
Sharan Roongta 14ce127dc4 fraction --> v 2021-02-04 13:46:01 +01:00
Martin Diehl 051e3ed0ae not needed anymore 2021-02-02 12:26:08 +01:00
Martin Diehl 0f6094890a simplified
damask.environment does not offer any advantage over os.environ for
variables. After 'root_dir' was removed, the whole module became
obsolete
2021-01-15 12:14:05 +01:00
Martin Diehl 37de561938 shell variables are more robust
they will also work if Fortran and python code are installed in
different locations.
2021-01-13 18:53:16 +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 4c35da8627 simplified 2021-01-13 11:33:28 +01:00
Martin Diehl 196902948f simplified 2021-01-13 09:54:04 +01:00
Martin Diehl f4247e0f35 simpler (and scipy compatible) 2021-01-13 09:35:42 +01:00
Philip Eisenlohr 2d6e6a2370 Rotation composition uses "*"; application of Rotation to object uses "@"; "apply()" works on both 2021-01-12 18:57:33 -05:00
Vitesh Shah c3c4b05c01 handling point based data enabled 2021-01-12 13:01:11 +01:00
Vitesh Shah 6bffb91951 Added example 2021-01-11 15:16:46 +01:00
Vitesh Shah 6c367ec010 conform to docstring conventions 2021-01-11 15:05:48 +01:00
Vitesh Shah 2951617e28 able to take phaseID into account 2021-01-11 15:02:15 +01:00
Vitesh Shah dbab3c3a83 dream3D has an extra row at start for grain based data 2021-01-11 14:21:56 +01:00
Vitesh Shah 028d47034d conversion from dream3D for single phase materials 2021-01-11 13:31:08 +01:00
Philip Eisenlohr f0351e403a removed duplicate test 2021-01-07 11:01:15 -05:00
Philip Eisenlohr bde66d85fc Merge branch 'development' into python-improvements 2021-01-07 10:58:33 -05:00
Philip Eisenlohr 94cfe28128 polishing help; Rotation.apply(Rotation) now acceptable. 2021-01-06 18:03:10 -05:00
Martin Diehl acbb564afc restored functionalitity for adding list.
got accidently lost
2021-01-04 07:23:14 +01:00
Martin Diehl d8b4b7e0f5 != and == work componentwise 2021-01-03 21:52:19 +01:00
Martin Diehl f48a446353 compatible with scipy.spatial.transform.Rotation
also introduced inplace variants and '/' as multiplicative inverse of
'*'
2021-01-03 16:08:22 +01:00
Martin Diehl 98723cb0ed need to handle special case of Re() = 0
ensuring that the real part is positive seems to be a good idea on first
sight, but it would be easier to simply acknowledge that qu = -qu
2021-01-03 15:50:15 +01:00
Martin Diehl 80b8693a66 avoid adding to existing data, i.e. when reading a file 2021-01-03 12:10:39 +01:00
Martin Diehl 5f1399acc3 consistent behavior with other classes
python dictionary operates in-place, so wrappers for out-of-place
behavior let it use like the other DAMASK classes
2021-01-03 12:09:21 +01:00
Martin Diehl 9a278daa3f copy not needed
YAML writer does not write out references anymore
2021-01-03 12:07:02 +01:00
Martin Diehl 35ca1ffb0a consistent copy functionality 2021-01-03 12:03:40 +01:00
Martin Diehl 6fe1ff8e39 fixed test for rodrigues parametrization
for angle close to 180deg, the sign of the axis does not matter
2021-01-03 11:50:45 +01:00
Philip Eisenlohr da62daf15d added test for appending rotation lists; better check for type==list 2020-12-28 12:26:09 -05:00
Philip Eisenlohr 4796afdd92 fix for broken representation of no-rotation orientations and averaging weights 2020-12-28 12:10:21 -05:00
Philip Eisenlohr d8b57680ec raise NotImplemented when using R*b instead of R@b 2020-12-21 15:47:18 -05:00
Sharan Roongta 6cc78cb41e Merge branch 'misc-improvements' into 'development'
Misc improvements

See merge request damask/DAMASK!302
2020-12-18 15:19:04 +01:00
Martin Diehl 35f9861818 Fortran standard is 2018
will not work for older compilers
2020-12-18 15:19:04 +01:00
Martin Diehl 5fb0e4908b Examples reflect actual behavior 2020-12-18 07:09:05 +01:00
Philip Eisenlohr 403ac693da need to pass init argument to dict superclass 2020-12-17 18:08:55 -05:00
Philip Eisenlohr e11be7e600 preinitialize a ConfigMaterial object with 'constituents','homogenization','phase' keys 2020-12-17 10:49:33 -05:00
Martin Diehl 2dd520b4a2 P_aim should be independent from P_av
P_av is not defined after restart or cutback. Restart with change of
load case is probably still an issue
2020-12-15 08:06:50 +01:00
Martin Diehl aad123f41b Merge branch 'table-getitem' into development 2020-12-12 19:58:42 +01:00
Philip Eisenlohr 36e4042f0b removed "where" method from Table class 2020-12-11 19:31:19 -05:00
Martin Diehl 2e28bc127a better message in case that GUI is not possible 2020-12-10 23:44:54 +01:00
Martin Diehl a881e6e57a Merge remote-tracking branch 'origin/development' into misc-improvements 2020-12-10 23:41:59 +01:00
Martin Diehl 32c2de6b91 Ensuring regular spacing for grid 2020-12-10 22:47:30 +01:00
Martin Diehl 4286fc3b82 Merge branch 'development' into misc-improvements 2020-12-10 20:21:00 +01:00
Martin Diehl 9b6f5ba9c6 Merge branch 'development' into compressed-hdf5 2020-12-10 00:23:22 +01:00
Martin Diehl de1708b20a missing renames + better help 2020-12-08 00:36:41 +01:00
Martin Diehl 78192ef3fd clearer naming + better comments, thanks to @p.eisenlohr 2020-12-07 17:49:37 +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 c80e1c5420 less confusing in the standard case, more helpful in the special case 2020-12-05 10:47:42 +01:00
Martin Diehl ed286ee09f Merge branch 'rename-grid-2' into misc-improvements 2020-12-05 09:50:46 +01:00
Martin Diehl 171d642dbd rename: Geom -> Grid 2020-12-04 07:50:47 +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
Philip Eisenlohr ccf1a849fa Merge branch 'ShowGrainBoundaries' into 'development'
Show grain boundaries

See merge request damask/DAMASK!297
2020-12-03 17:13:15 +01:00
Philip Eisenlohr 4877334986 added getitem and where functionality to Table 2020-12-02 19:25:54 -05:00
Philip Eisenlohr 97df1ab9b3 reinstated write functionality 2020-12-02 13:04:56 -05:00
Martin Diehl d3a5979d25 meaningful result 2020-12-02 14:45:47 +01:00
Martin Diehl c880052250 avoid evil eval 2020-12-02 14:37:44 +01:00
Martin Diehl aa8f30d746 Merge branch 'development' into ShowGrainBoundaries 2020-12-02 12:50:04 +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 4d2bf37193 Merge branch 'lattice-structure-rename' into ShowGrainBoundaries 2020-11-29 20:53:58 +01:00
Martin Diehl 1d05edd7b3 fixes:
- need to get crystal structure as attribute in test (generic function
  was removed, because the crystal structure is in general not the same
  over the whole domain)
- consistent sorting of attributes
2020-11-29 09:06:47 +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
Martin Diehl 3c1f1af009 more then one direction in file 2020-11-27 20:16:06 +01:00
f.basile c2be41b9f6 remove import vtk because unused 2020-11-25 12:53:29 +01:00
f.basile 31df4c04c8 added test 2020-11-25 12:51:52 +01:00
f.basile eb085958f8 polishing 2020-11-25 11:32:07 +01:00
f.basile cd58278a01 returns vtk object 2020-11-25 10:39:58 +01:00
f.basile 7abc32b09c alternative for if d_s== , not sure it improves the previous 2020-11-24 19:59:46 +01:00
f.basile c8b1f8d9f1 shortest possible way i found to include directions in an elegant way 2020-11-24 17:49:58 +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 5ab2847b36 polishing 2020-11-23 20:06:34 +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
Martin Diehl 287d44c5df Merge remote-tracking branch 'origin/development' into unit-in-vtk 2020-11-23 19:19:02 +01:00
Franz Roters 7356330cf6 Merge remote-tracking branch 'origin/new_names_result' into development 2020-11-23 11:49:15 +01:00
Sharan Roongta c58f9f23a1 read old version while resolving merge conflicts 2020-11-22 14:32:32 +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
Philip Eisenlohr 662a033d91 adapted to VTR geom files 2020-11-19 14:26:15 -05:00
Philip Eisenlohr a82b1adc14 Merge branch 'geom-load-ASCII-autoshift' of magit1.mpie.de:damask/DAMASK into geom-load-ASCII-autoshift 2020-11-19 12:24:09 -05: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 894a8de9f9 avoid name clash: as_Rodrigues_vector(vector = ...) 2020-11-19 14:31:14 +01:00
Martin Diehl 1c07152b96 sorted alphabetically 2020-11-19 14:05:59 +01:00
Martin Diehl 20d0732b2e output unit to XDMF/vtk 2020-11-19 13:45:40 +01:00
Martin Diehl af3a87b197 adjust to new auto-convert of 1-based geom files 2020-11-19 11:34:55 +01:00
Martin Diehl 5a5dd24687 removed aliases 2020-11-19 10:50:14 +01:00
Martin Diehl 903c185ee6 distinguish 'file not found' and 'invalid file' 2020-11-19 10:39:41 +01:00
Martin Diehl c74e57f225 vtk error handling is not very helpful 2020-11-19 09:59:39 +01:00
Martin Diehl 96826dca73 Geom.load_ASCII now auto-shifts material indices 2020-11-19 09:40:19 +01:00
Philip Eisenlohr cb22c34db2 Geom.load_ASCII now auto-shifts material indices 2020-11-18 18:25:25 -05: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 b885e38b3f better readable 2020-11-18 22:12:23 +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 7352431143 vectorized 2020-11-18 20:10:04 +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 1c9028d0b1 simplified 2020-11-18 14:01:52 +01:00
Martin Diehl 89c748fdf1 Merge remote-tracking branch 'origin/development' into vector-mechanics 2020-11-18 13:55:05 +01:00
Martin Diehl 9a1e8e3c38 for the transition period 2020-11-18 13:28:53 +01:00
f.basile 7291b95055 avoid pyflake for blank line 6 final 2020-11-18 12:29:10 +01:00
f.basile ee5822b721 avoid pyflake for blank line 5 2020-11-18 12:25:08 +01:00
f.basile 4dbfad74cb avoid pyflake for blank line 4 2020-11-18 12:24:17 +01:00
f.basile eda3837874 avoid pyflake for blank line 3 2020-11-18 12:21:09 +01:00
f.basile c681101136 avoid pyflake for blank line 2 2020-11-18 12:19:47 +01:00
f.basile 33aa888fc7 avoid pyflake for blank line 2020-11-18 12:17:05 +01:00
f.basile e8f82d52cc fix bug 2020-11-18 12:16:08 +01:00
f.basile be206d28b3 vectorized and more options 2020-11-18 12:14:12 +01:00
Martin Diehl 6bedd84759 self-explanatory names 2020-11-18 08:15:04 +01:00
Martin Diehl cd8434b991 Merge remote-tracking branch 'origin/development' into python-improvements 2020-11-16 22:57:49 +01:00
Sharan Roongta c16ad845bc Merge branch 'modernize-testing' into 'development'
Modernize testing

See merge request damask/DAMASK!280
2020-11-16 20:10:38 +01:00
Martin Diehl a8fec922d5 show name in title 2020-11-16 17:25:13 +01:00
Philip Eisenlohr 5a53f8743b added to docstring 2020-11-16 10:44:33 -05:00
Philip Eisenlohr fa25a13264 fixed typo 2020-11-16 10:34:49 -05:00
Philip Eisenlohr de20e6b35d code shortening; list_predefined() --> property "predefined" 2020-11-16 10:23:26 -05:00
Martin Diehl 5ebde607a2 einsum simplifications 2020-11-16 07:43:20 +01:00