[deal.II] Re: Easy way to calculate second-deviatoric tensor

2016-10-18 Thread JAEKWANG KIM
Thank you all guys who replied here!! 

-- 
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
https://groups.google.com/d/forum/dealii?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dealii+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [deal.II] Re: Easy way to calculate second-deviatoric tensor

2016-10-18 Thread Wolfgang Bangerth

On 10/17/2016 03:36 AM, Daniel Arndt wrote:


From this symmetric gradient tensor, do we have one easy way to calculate
the following "the second invariant of rate-of-strain tensor"?

There is SymmetricTensor::second_invariant [1] which is defined as I2 = 1/2[
(trace sigma)^2 - trace (sigma^2) ]
and SymmetricTensor::first_invariant [1] which just the trace I_1=trace sigma.
According to Wikipedia [2], your \Pi_\gamma can then be expressed as
\Pi_\gamma^2 = 1/2(I1^2 -2 I2).


You can also compute it directly: if you have the symmetric gradient eps(u) 
already computed, then

  Pi_gamma = std::sqrt (2*eps*eps);

Best
 W.

--

Wolfgang Bangerth  email: bange...@colostate.edu
   www: http://www.math.colostate.edu/~bangerth/

--
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
https://groups.google.com/d/forum/dealii?hl=en
--- 
You received this message because you are subscribed to the Google Groups "deal.II User Group" group.

To unsubscribe from this group and stop receiving emails from it, send an email 
to dealii+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[deal.II] Re: Easy way to calculate second-deviatoric tensor

2016-10-17 Thread Daniel Arndt
Jaekwang,

>From this symmetric gradient tensor, do we have one easy way to calculate 
> the following "the second invariant of rate-of-strain tensor"? 
>
There is SymmetricTensor::second_invariant [1] which is defined as I2 = 
1/2[ (trace sigma)^2 - trace (sigma^2) ]
and SymmetricTensor::first_invariant [1] which just the trace I_1=trace 
sigma. 
According to Wikipedia [2], your \Pi_\gamma can then be expressed as 
\Pi_\gamma^2 = 1/2(I1^2 -2 I2).

Best,
Daniel

[1] 
https://www.dealii.org/8.4.0/doxygen/deal.II/classSymmetricTensor.html#a7bbdfc57da6931de6a1757a0fa7ee982
 

[2] https://en.wikipedia.org/wiki/Invariants_of_tensors

>
> 
>
>
>
> Regards, 
>
> Jaekwang Kim 
>  
>

-- 
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
https://groups.google.com/d/forum/dealii?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dealii+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.