CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Programming & Development

Extracting one component of a tensorField

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

Like Tree3Likes
  • 3 Post By nimasam

Reply
 
LinkBack Thread Tools Display Modes
Old   February 13, 2013, 04:58
Default Extracting one component of a tensorField
  #1
Senior Member
 
Mahdi Hosseinali
Join Date: Apr 2009
Posts: 124
Rep Power: 8
anishtain4 is on a distinguished road
In a tensor T if you use T.xx() it returns the first component of it, and according to openfoam convention when you do it to a tensorField it should return a scalarField, like when you do it with a vectorField, but when I try to use it that just blows up and complain that no such a member is defined. How should I extract this field?
anishtain4 is offline   Reply With Quote

Old   February 15, 2013, 08:19
Default
  #2
Senior Member
 
Mahdi Hosseinali
Join Date: Apr 2009
Posts: 124
Rep Power: 8
anishtain4 is on a distinguished road
Please give me a guide, I rather not go through the forAll to access each point individually.
anishtain4 is offline   Reply With Quote

Old   February 15, 2013, 15:38
Default
  #3
Senior Member
 
Nima Sam
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,123
Blog Entries: 1
Rep Power: 14
nimasam is on a distinguished road
Send a message via Yahoo to nimasam
Hello Dear Mahdi

using following structure:
Quote:
T.component(tensor::XX);
anishtain4, vonboett and bmikuz like this.
__________________
Training Course on OpenFOAM at (http://www.isme.ir/)
My Weblog (http://openfoam.blogfa.com/)
nimasam is offline   Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Momentum source coefficient, cylindrical coordinates, circumferential component? polakse CFX 14 April 17, 2015 05:56
Please Help.....Insufficient Catalogue Size Paresh Jain CFX 17 March 11, 2014 12:40
Add total mass using sources to multi component fluids mullenc525 CFX 1 February 5, 2011 05:56
Diffusion component at inlet Balaji FLUENT 2 August 8, 2005 07:37
UDF component in Cyliderical Velocity? Hongchan Kim FLUENT 3 April 24, 2001 12:20


All times are GMT -4. The time now is 05:25.