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

inversion of volTensorField doesn't work

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 18, 2012, 12:17
Default inversion of volTensorField doesn't work
  #1
Cyp
Senior Member
 
Cyprien
Join Date: Feb 2010
Location: Stanford University
Posts: 299
Rep Power: 18
Cyp is on a distinguished road
Hi!

I am facing an issue when I a try to inverse a volTensorField. For example :

Code:
volTensorField TM1 = blah blah blah;
volTensorField invTM1 = inv(TM1);
compile but leads to an error while it runs..

Do you have any idea to overcome this problem ?

Best regards,
Cyp
Cyp is offline   Reply With Quote

Old   January 19, 2012, 03:24
Default
  #2
Senior Member
 
Kathrin Kissling
Join Date: Mar 2009
Location: Besigheim, Germany
Posts: 134
Rep Power: 17
kathrin_kissling is on a distinguished road
Hi Cyp,

can you try the following:

Code:
tensorField TM1internal = TM1.internalField();
tensorField invTM1internal = inv(TM1internal);
Than you can copy it back to the internalField of a volTensorField.
Be aware: A lot of the methods are not available for complete GeometricFields (like your volTensorField) since they could mess with the boundary conditions.

Best

Kathrin
kathrin_kissling is offline   Reply With Quote

Old   January 19, 2012, 03:42
Default
  #3
Cyp
Senior Member
 
Cyprien
Join Date: Feb 2010
Location: Stanford University
Posts: 299
Rep Power: 18
Cyp is on a distinguished road
Thank for your answer !

In fact the main problem came from a division by zero. Nevertheless, the results are not the one I expected (my other topic..)

@+
Cyp
Cyp 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
How to work with constant pressure? Martin Siemens 2 February 25, 2009 14:23
Getting FoamX to work shaun OpenFOAM Installation 12 March 23, 2007 09:55
work related to brake study of a vehical aero Siemens 3 November 23, 2006 08:43
Why do the Plant library cases don't work? Alumna Phoenics 6 June 22, 2004 13:08
why my In-Form doesn't work? green Phoenics 2 May 27, 2004 22:03


All times are GMT -4. The time now is 18:49.