|
[Sponsors] |
Problems using 'det()'-function in dimensionedSymmTensor |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
March 7, 2011, 05:20 |
Problems using 'det()'-function in dimensionedSymmTensor
|
#1 |
New Member
Janto
Join Date: Oct 2009
Location: Kassel
Posts: 8
Rep Power: 16 |
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? |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
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 |