Skip to content
Snippets Groups Projects
Commit 52b5ef57 authored by Dave Whipp's avatar Dave Whipp
Browse files

Fixed dilatation rate calculation, added option of using 2D strain rate...

Fixed dilatation rate calculation, added option of using 2D strain rate invariants and removed some commented lines
parent eddc6f7e
No related branches found
No related tags found
No related merge requests found
...@@ -150,12 +150,12 @@ do i=1+iproc,nleaves,nproc ...@@ -150,12 +150,12 @@ do i=1+iproc,nleaves,nproc
exy=exy+(dhdx(k)*vy(k)+dhdy(k)*vx(k))/2.d0 exy=exy+(dhdx(k)*vy(k)+dhdy(k)*vx(k))/2.d0
eyz=eyz+(dhdy(k)*vz(k)+dhdz(k)*vy(k))/2.d0 eyz=eyz+(dhdy(k)*vz(k)+dhdz(k)*vy(k))/2.d0
ezx=ezx+(dhdz(k)*vx(k)+dhdx(k)*vz(k))/2.d0 ezx=ezx+(dhdz(k)*vx(k)+dhdx(k)*vz(k))/2.d0
! exy=exy+(dhdx(k)*vy(k)-dhdy(k)*vx(k))/2.d0
! eyz=eyz+(dhdy(k)*vz(k)-dhdz(k)*vy(k))/2.d0
! ezx=ezx+(dhdz(k)*vx(k)-dhdx(k)*vz(k))/2.d0
enddo enddo
call deviatoric (exx,eyy,ezz,exy,eyz,ezx) ! Dilatation rate
dilatrtemp(i)=(exx+eyy+ezz)
call deviatoric (params%invariants_2d,exx,eyy,ezz,exy,eyz,ezx)
! if (.not.osolve%is_plastic(i)) then ! if (.not.osolve%is_plastic(i)) then
! qtemp(i)=0.d0 ! qtemp(i)=0.d0
...@@ -163,14 +163,9 @@ do i=1+iproc,nleaves,nproc ...@@ -163,14 +163,9 @@ do i=1+iproc,nleaves,nproc
qtemp(i)=2.d0*osolve%eviscosity(i)*sqrt(second_invariant(exx,eyy,ezz,exy,eyz,ezx)) qtemp(i)=2.d0*osolve%eviscosity(i)*sqrt(second_invariant(exx,eyy,ezz,exy,eyz,ezx))
! end if ! end if
! Dilatation rate
dilatrtemp(i)=(exx+eyy+ezz)
J2d=second_invariant(exx,eyy,ezz,exy,eyz,ezx) J2d=second_invariant(exx,eyy,ezz,exy,eyz,ezx)
J3d=third_invariant (exx,eyy,ezz,exy,eyz,ezx) J3d=third_invariant (exx,eyy,ezz,exy,eyz,ezx)
!e2dtemp(i)=J2d
! Set e2d as effective stress (sqrt of 2nd invariant) - dwhipp 12/09
e2dtemp(i)=sqrt(J2d) e2dtemp(i)=sqrt(J2d)
if (J2d/=0.d0) lodetemp(i)=lode_angle (J2d,J3d)/pi if (J2d/=0.d0) lodetemp(i)=lode_angle (J2d,J3d)/pi
...@@ -223,4 +218,4 @@ return ...@@ -223,4 +218,4 @@ return
end end
!------------------------------------------------------------------------------| !------------------------------------------------------------------------------|
!------------------------------------------------------------------------------| !------------------------------------------------------------------------------|
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment