# Arrangement of Projected Stress Tensor

**URL:** <https://fenicsproject.discourse.group/t/arrangement-of-projected-stress-tensor/2296>\
**Category:** Uncategorized\
**Created:** [January 25, 2020, 11:53am UTC](https://fenicsproject.discourse.group/t/arrangement-of-projected-stress-tensor/2296 "2020-01-25T11:53:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Martin1](https://avatars.discourse-cdn.com/v4/letter/m/3be4f8/32.png) [@Martin1](https://fenicsproject.discourse.group/u/Martin1)\
**Post date:** [January 25, 2020, 11:53am UTC](https://fenicsproject.discourse.group/t/arrangement-of-projected-stress-tensor/2296/1 "2020-01-25T11:53:28Z")

</div>

Hello Everyone,

I have a question concerning the arrangement of the Values after I computed the vertex values of my Stress-Tensor.  
Is the arrangement  
Stress = [sigma\_xx\_1, sigma\_xy\_1, sigma\_yx\_1, sigma\_yy\_1, sigma\_xx\_2, sigma\_xy\_2 …]  
so that every 4th value is x-Stress?  
Or is it  
Stress = [sigma\_xx\_1, sigma\_xx\_2, sigma\_xx\_3 … , sigma\_xy\_1, sigma\_xy\_2 …, sigma\_yx\_1,sigma\_yx\_2 …] ?  
Where the numbers 1,2… represent the number of the Nodes.

Because my values are not like I would accpected them to be.  
And if the shape is different, can you tell me how I can get only the x Values?

I compute them like this: (“Netz” is my mesh)

> ```
> Fspace_sigma = TensorFunctionSpace(Netz, 'Lagrange', Tensor_grad)
> sigmaTensor = project(2*G* epsilon(u) + 2*G * nu/(1-2*nu) *(nabla_div(u))*I- b*p*I, Fspace_sigma ) 
> Stress = sigmaTensor.compute_vertex_values(Netz) 
> Sigma_x = Stress[::4]
> 
> ```

My thanks in advance

Martin
