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

Problems using 'det()'-function in dimensionedSymmTensor

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 7, 2011, 05:20
Default Problems using 'det()'-function in dimensionedSymmTensor
  #1
New Member
 
Janto
Join Date: Oct 2009
Location: Kassel
Posts: 8
Rep Power: 16
chilledkroete is on a distinguished road
Hi,

I'm uncertain about the det()-function which can be found in src/OpenFOAM/dimensionedTypes/dimensionedTensor/dimensionedSymmTensor.C resp.here: http://foam.sourceforge.net/doc/Doxy...ce.html#l00064

In line 122 the file says 'pow(dt.dimensions(), symmTensor::dim)'. .dimensions() delivers a vector containing the exponents of the base units e.g. [0 0 -1 0 0 0 0] for grad(U).
symmTensor::dim raises to the power of the dimension of the tensor (3 in 3-D). In case of grad(U) the function will throw out [0 0 -1 0 0 0 0]³=[0 0 -1 0 0 0 0] although the correct dimensionSet should be [0 0 -3 0 0 0 0] for the scalar.

Anybody knows where I'm wrong?
chilledkroete 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
Compile problem ivanyao OpenFOAM Running, Solving & CFD 1 October 12, 2012 10:31
[swak4Foam] wmake groovyBC in OpenFOAM 1.7 ? randomid OpenFOAM Community Contributions 1 August 27, 2010 06:15
Error with Wmake skabilan OpenFOAM Installation 3 July 28, 2009 01:35
Problems compiling OF 141 on Edubuntu 71 david_flo1 OpenFOAM Installation 16 January 22, 2008 00:16
OpenFoam 14 installation problem gfcoppola OpenFOAM Installation 20 November 2, 2007 14:38


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