Commit Graph

49 Commits

Author SHA1 Message Date
Martin Diehl 6fade15323 no blank lines after docstring 2016-09-21 17:46:53 +02:00
Martin Diehl 9e3c54b0e3 a few comments and adjusted calculation 2016-09-21 17:06:50 +02:00
Martin Diehl 7291c20cd4 added reference 2016-09-21 17:06:50 +02:00
Martin Diehl fbacdd8e6d Merge branch 'development' of magit1.mpie.de:damask/DAMASK into development 2016-09-11 19:17:35 +02:00
Martin Diehl 9d7cad1fa4 python3 compatible solutions that still work on python2 2016-09-11 19:03:32 +02:00
Philip Eisenlohr 0056f05b9d all functions using angles now feature logical "degrees" 2016-07-31 19:33:26 -04:00
Martin Diehl 0b145826a6 unicode docstring does not work for abaqus, but if using ö pyflakes wants to have a unicode docstring 2016-07-15 16:51:49 +02:00
Martin Diehl 9e3f4b1ec4 unicode string caused trouble with Abaqus' IronPython 2016-07-14 16:09:04 +02:00
Martin Diehl a4bbdd5ecb further commenting, removing not used variables and code (marc2vtk) 2016-03-04 19:06:36 +01:00
Martin Diehl bbb00b30e8 using numpy random 2015-12-17 21:26:59 +00:00
Philip Eisenlohr 30a481f152 fixed forgotten symmetry property for average orientation. 2015-11-14 04:36:46 +00:00
Philip Eisenlohr 6211a9faad symQuats-related functions can take optional argument to downselect return values.
“getAverageOrientations” —> “average” and takes optional multiplicities of orientations in list.
2015-11-14 01:46:44 +00:00
Martin Diehl b700721905 comment on literature 2015-11-08 11:44:46 +00:00
Aritra Chakraborty 9ea0898cd9 corrected the convention added yesterday; “proper” and ‘improper” was the wrong way around. “proper = True ” considers the bigger (2 adjacent) SST. In general, an improper rotation is implicitly assumed when projecting a pole into the (single) SST, hence this is termed “improper” now. 2015-10-23 20:16:01 +00:00
Philip Eisenlohr 15963391aa inSST and inversePole now can consider the secondary SST related to improper rotations. Secondary SST is immediately neighboring (positively rotated around Z). 2015-10-22 21:15:15 +00:00
Philip Eisenlohr 7df8d95cd0 slightly cleaner way of dealing with disorientation calculation when axis not required to fall into SST. 2015-10-09 13:03:10 +00:00
Martin Diehl 4c46d155ec line continuation not needed 2015-10-09 10:24:17 +00:00
Harsha Phukan 24bd3a6eee added “non-strict” version to find disorientation, neglecting the search for axis falling into SST (has linear instead of quadratic effort). 2015-09-16 17:07:02 +00:00
Philip Eisenlohr 31bb27268c removed dangerous property overload (.asQuaternion() —> .quaternion) 2015-09-09 22:37:18 +00:00
Tias Maiti eb5ad7528f fixed bug in asEulers() output in degrees 2015-08-29 23:22:32 +00:00
Philip Eisenlohr 636eb8a087 multiple fixes and improvements.
1) asAngleAxis got “degrees” switch, fixed buggy output for negative angles, now angles are always non-negative.
2) removed rotateBys.
3) asEulers corrected for cases w==z or x==y.
4) added method symmetryQuats.
5) calculation of disorientation (finally) fixed, returns tuple (disorientation quaternion, index symA, index symB, boolean whether A—>B or B—>A).
2015-08-24 13:39:09 +00:00
Martin Diehl f9348398ce removed old file, added possibility to normalise euler angels to standard range, added svn properties 2015-08-12 15:15:33 +00:00
Chen Zhang dfe0991134 adding property alias for Orientation class to simplify syntax. 2015-08-04 20:38:06 +00:00
Chen Zhang 70606770d0 correct two typos in Quaternion class 2015-07-28 20:10:27 +00:00
Chen Zhang bfedf037c6 add asAngleAxis() to Orientation class 2015-07-22 21:49:24 +00:00
Yannick Naunheim 5fe65bfcc3 corrected OR models and set up simple test to check them 2015-06-29 16:02:56 +00:00
Martin Diehl 50bcfe6e0d possibility to give fixed seed to random orientation 2015-06-26 06:32:25 +00:00
Martin Diehl 6aaf074651 bug fix 2015-06-25 16:16:01 +00:00
Martin Diehl f10dfa311a fixed ORs 2015-06-25 12:00:08 +00:00
Philip Eisenlohr 2d8af638b0 added optional keyword `degrees´ to q.asEulers().
added methods inFZ, equivalentQuaternions, and equivalentOrientations to Orientation class.
general polishing…
2015-06-21 12:05:17 +00:00
Philip Eisenlohr 66ce1d0b33 speed up for inversePole method. Now only performing symmetry equivalence when asked for SST. 2015-06-13 11:51:10 +00:00
Tias Maiti 9d5ca8b631 orientation matrix shape checked in “ fromMatrix “ function 2015-05-28 21:52:05 +00:00
Philip Eisenlohr 58eb4fc301 transparent (3,3) reshape of matrix when generating orientation. 2015-05-27 18:56:18 +00:00
Harsha Phukan c8d774f456 adopted math from Martin Baker to calculate quaternion from matrix representation. 2015-05-22 20:04:05 +00:00
Martin Diehl 5d19e55eb4 corrected access by number 2015-05-15 13:35:50 +00:00
Martin Diehl b30eba3919 introduced (untested) OR calculation 2015-05-15 12:44:48 +00:00
Yannick Naunheim 88e16f9344 corrected Bain model 2015-05-08 14:45:59 +00:00
Yannick Naunheim 90ae536204 introduction of orientation-relationship (OR) models: Kurdjumov-Sachs (KS), Nishiyama and Wassermann (NW), Greninger-Troiano(GT), Bain 2015-05-08 14:14:44 +00:00
Chen Zhang 43b665ba48 add getAverageOrientation() to Orientation class as class method. 2015-04-02 19:15:09 +00:00
Tias Maiti f5801601d8 fixed UnboundLocalError (calling variable before assignment) in “inversePole” function 2015-03-29 19:16:45 +00:00
Tias Maiti 0e7325b27d added function — “inversePole” axis rotated according to orientation (using crystal symmetry to ensure location falls into SST) 2015-03-28 07:43:49 +00:00
Philip Eisenlohr 4c1e9c559b removed debug printing. 2015-03-06 15:13:18 +00:00
Philip Eisenlohr 3d86c9b363 corrected conversion of quaternion to AxisAngle and Euler angles. 2015-03-06 13:54:30 +00:00
Philip Eisenlohr 28a7c4c727 corrected (probable) bug in disorientation calculation. 2014-08-22 15:45:03 +00:00
Martin Diehl 342ca0be47 tested new scripts to update shebang, all files got same shebang (and for python files encoding) 2014-04-01 18:41:14 +00:00
Philip Eisenlohr 0e8fdaf59e changed exponent in IPF color mapping from 1/3 to 1/2 to get closer to TSL-OIM reference. 2013-12-09 18:57:38 +00:00
Philip Eisenlohr 24a4ca8ca8 "quack-like-a-duck" check for object properties.
sum equiv Quats don't need inverse option anymore.
fixed (severe) bug in IPFcolor determination.
2013-12-09 15:49:57 +00:00
Philip Eisenlohr d17d6636df substantial rewrite of former package. now includes dedicated orientation and (associated) symmetry class. should be easier to handle...
new or improved methods:
- disorientation (between two orientations)
- IPFcolor: TSL color of inverse pole figure for given axis
2013-11-25 19:04:39 +00:00
Philip Eisenlohr c496288144 make "orientation" module part of damask python interface 2013-10-08 13:56:28 +00:00