debugged zoo of rotation operations and transformations
all angles now in radians introduced a rudimentary check in math_init to complain (IO_error) about broken transformations (e.g. quat --> R --> quat)
This commit is contained in:
parent
4954228b3a
commit
e4067f2d26
|
@ -1085,6 +1085,15 @@ endfunction
|
|||
case (666)
|
||||
msg = 'Memory leak detected'
|
||||
|
||||
case (670)
|
||||
msg = 'math_check: quat -> axisAngle -> quat failed'
|
||||
case (671)
|
||||
msg = 'math_check: quat -> R -> quat failed'
|
||||
case (672)
|
||||
msg = 'math_check: quat -> euler -> quat failed'
|
||||
case (673)
|
||||
msg = 'math_check: R -> euler -> R failed'
|
||||
|
||||
case (700)
|
||||
msg = 'Singular matrix in stress iteration'
|
||||
case default
|
||||
|
|
|
@ -866,7 +866,7 @@ function lattice_initializeStructure(struct,CoverA)
|
|||
lattice_tn(:,i,myStructure) = tn(:,i)
|
||||
lattice_Stwin(:,:,i,myStructure) = math_tensorproduct(td(:,i),tn(:,i))
|
||||
lattice_Stwin_v(:,i,myStructure) = math_Mandel33to6(math_symmetric3x3(lattice_Stwin(:,:,i,myStructure)))
|
||||
lattice_Qtwin(:,:,i,myStructure) = math_RodrigToR(tn(:,i),180.0_pReal*inRad)
|
||||
lattice_Qtwin(:,:,i,myStructure) = math_AxisAngleToR(tn(:,i),180.0_pReal*inRad)
|
||||
lattice_shearTwin(i,myStructure) = ts(i)
|
||||
enddo
|
||||
lattice_NslipSystem(1:lattice_maxNslipFamily,myStructure) = myNslipSystem ! number of slip systems in each family
|
||||
|
|
621
code/math.f90
621
code/math.f90
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue