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

Extracting one component of a tensorField

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes
  • 3 Post By nimasam

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 13, 2013, 03:58
Default Extracting one component of a tensorField
  #1
Senior Member
 
Mahdi Hosseinali
Join Date: Apr 2009
Location: NB, Canada
Posts: 273
Rep Power: 18
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, 07:19
Default
  #2
Senior Member
 
Mahdi Hosseinali
Join Date: Apr 2009
Location: NB, Canada
Posts: 273
Rep Power: 18
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, 14:38
Default
  #3
Senior Member
 
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,266
Blog Entries: 1
Rep Power: 24
nimasam is on a distinguished road
Hello Dear Mahdi

using following structure:
Quote:
T.component(tensor::XX);
anishtain4, vonboett and bmikuz like this.
__________________
My Personal Website (http://nimasamkhaniani.ir/)
Telegram channel (https://t.me/cfd_foam)
nimasam is offline   Reply With Quote

Reply


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
Error message: Insufficient Catalogue Size Paresh Jain CFX 32 February 3, 2021 03:37
Momentum source coefficient, cylindrical coordinates, circumferential component? polakse CFX 15 January 18, 2016 02:40
Add total mass using sources to multi component fluids mullenc525 CFX 1 February 5, 2011 04: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 16:26.