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

Problems using 'det()'-function in dimensionedSymmTensor

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

Reply
 
LinkBack Thread Tools 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: 7
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
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
Compile problem ivanyao OpenFOAM Running, Solving & CFD 1 October 12, 2012 09:31
wmake groovyBC in OpenFOAM 1.7 ? randomid OpenFOAM Running, Solving & CFD 1 August 27, 2010 05:15
Error with Wmake skabilan OpenFOAM Installation 3 July 28, 2009 00: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 09:10.