CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Problem with volSymmTensorField components

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree3Likes
  • 2 Post By cedric_duprat
  • 1 Post By rvl565

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 16, 2008, 09:04
Default Hi all, I've a small questi
  #1
Senior Member
 
Cedric DUPRAT
Join Date: Mar 2009
Location: Nantes, France
Posts: 195
Rep Power: 17
cedric_duprat is on a distinguished road
Hi all,

I've a small question about tensor components.
I'm playing with a volSymmTensorField, because it's symetric tensor, it has only 6 components.
to get the component of the tensor, I'm using this command: myTensor.component(vector::XX).

I wanted to get (with Info) the value of myTensor.component(vector::ZZ) and I had an error.
(FOAM FATAL ERROR : index out of range#0 ...)

To find the mistake, I ploted 9 components of myTensor in this order: XX, XY, XZ, YX, YY, ... to ZZ
And, I get different value the first sixth one (XX, XY, XZ, YX, YY, YZ) which is not normal. And because of that, ZZ doesn't seems to exist.

My questions are in which order are the component in a symmTensorField ? and ... is it normal to get values for (vector::XY) and (vector::YX) in a symmetric tensor?

Thanks for helping,

Cedric
cedric_duprat is offline   Reply With Quote

Old   December 16, 2008, 12:20
Default I found a part of my questions
  #2
Senior Member
 
Cedric DUPRAT
Join Date: Mar 2009
Location: Nantes, France
Posts: 195
Rep Power: 17
cedric_duprat is on a distinguished road
I found a part of my questions, if someone is interrested.
in a volSymmTensorField, there is only the upper triangle which means XX, XY, XZ, YY, YZ, ZZ.
and for the other part of my question, ... I just imagine that my command to get the components of the tensor is not the right one for a symmetric tensor.

Cedric
nishant.kumar and krikre like this.
cedric_duprat is offline   Reply With Quote

Old   August 19, 2009, 14:20
Default How to plot components of Symmetric tensor?
  #3
Member
 
Sven Winkler
Join Date: May 2009
Posts: 70
Rep Power: 16
sven is on a distinguished road
Hey Cedric,

I just saw your post and you mention, that you use the command: myTensor.component(vector::XX) to get e.g the first component of a volSymmTensorField named myTensor. I tried the same and wanted to give out this component by

Code:
Info<< myTensor.component(vector::XX)
Unfortunately I always get an error saying

Code:
XX is not a member of 'Foam::vector'
What am I doing wrong? Thanks a lot!
sven is offline   Reply With Quote

Old   August 19, 2009, 14:40
Default
  #4
Senior Member
 
Henrik Rusche
Join Date: Mar 2009
Location: Wernigerode, Sachsen-Anhalt, Germany
Posts: 281
Rep Power: 18
henrik is on a distinguished road
Dear Sven,

try tensor::XX.

Henrik
henrik is offline   Reply With Quote

Old   August 20, 2009, 06:35
Default
  #5
Member
 
Flavio Galeazzo
Join Date: Mar 2009
Location: Karlsruhe, Germany
Posts: 34
Rep Power: 18
flavio_galeazzo is on a distinguished road
I have faced the same problems with the symmTensor, in the post processing tool stressComponents.C (http://www.cfd-online.com/Forums/ope...ponents-c.html)

Where is myTensor.component(tensor::@@) should be myTensor.component(symmTensor::@@). Then the nummering of the elements is right.
flavio_galeazzo is offline   Reply With Quote

Old   June 3, 2016, 00:21
Default
  #6
Member
 
RacMat
Join Date: Jan 2013
Posts: 78
Rep Power: 13
rvl565 is on a distinguished road
Hi!

I have a similar problem and it would be great if someone could help me!
volSymmTensorField S = symm(fvc::grad(U_)); // this line is fine
volScalarField x2=S.component(symmTensor::xx); // this line is not! i tried (Tensor::xx) as well and that dosent work either

Please let me know how to access and use one of the components!
rvl565 is offline   Reply With Quote

Old   June 3, 2016, 00:29
Default
  #7
Member
 
RacMat
Join Date: Jan 2013
Posts: 78
Rep Power: 13
rvl565 is on a distinguished road
lol got it
volScalarField x2(S.component(symmTensor::XX));

Quote:
Originally Posted by rvl565 View Post
Hi!

I have a similar problem and it would be great if someone could help me!
volSymmTensorField S = symm(fvc::grad(U_)); // this line is fine
volScalarField x2=S.component(symmTensor::xx); // this line is not! i tried (Tensor::xx) as well and that dosent work either

Please let me know how to access and use one of the components!
BruceThe likes this.
rvl565 is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
What are the UVW velocity components Nikunj FLUENT 2 January 12, 2022 13:28
to know fluctuating components R.THUNDIL KARUPPA RAJ FLUENT 1 June 29, 2005 18:30
stoke components Sara Fidelity CFD 0 May 30, 2004 12:05
stoke components Sara FLUENT 0 May 30, 2004 12:04
How to visualize the components raintung FLUENT 3 May 20, 2003 10:47


All times are GMT -4. The time now is 19:50.