View Issue Details

IDProjectCategoryView StatusLast Update
0000142OpenFOAMBugpublic2011-02-19 16:04
Reporteruser138Assigned Tohenry  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
PlatformLinuxOSOpenSuseOS Version11.1
Summary0000142: EigenVectors/EigenValues for dimensionedTensorField set wrong dimensions
DescriptionThe functions eigenVectors and eigenValues applied to a dimensionedTensorField return the wrong dimensions

eigenVectors(dimtensorfield f) returns f.dimensions()
eigenValues(dimtensorfield f) returns dimless

It should be the opposite (as correctly implemented in src \ OpenFOAM \ primitives \ Tensor \ tensor \ tensor.C)
eigenVectors(dimtensorfield f) returns dimless
eigenValues(dimtensorfield f) returns f.dimensions()
Additional InformationAs far as I have understood, the error is simple to correct.
In src \OpenFOAM \fields \DimensionedFields \DimensionedTensorField \ DimensionedTensorField.C

Old
00049 UNARY_FUNCTION(vector, tensor, eigenValues, sign)
00050 UNARY_FUNCTION(tensor, tensor, eigenVectors, transform)
00051
00052 UNARY_FUNCTION(vector, symmTensor, eigenValues, sign)
00053 UNARY_FUNCTION(symmTensor, symmTensor, eigenVectors, transform)

New
00049 UNARY_FUNCTION(vector, tensor, eigenValues, transform)
00050 UNARY_FUNCTION(tensor, tensor, eigenVectors, sign)
00051
00052 UNARY_FUNCTION(vector, symmTensor, eigenValues, transform)
00053 UNARY_FUNCTION(symmTensor, symmTensor, eigenVectors, sign)

In src \OpenFOAM \fields \DimensionedFields \DimensionedTensorField \ DimensionedTensorField.H

Old
00062 UNARY_FUNCTION(vector, tensor, eigenValues, sign)
00063 UNARY_FUNCTION(tensor, tensor, eigenVectors, transform)
00064
00065 UNARY_FUNCTION(vector, symmTensor, eigenValues, sign)
00066 UNARY_FUNCTION(symmTensor, symmTensor, eigenVectors, transform)

New
00062 UNARY_FUNCTION(vector, tensor, eigenValues, transform)
00063 UNARY_FUNCTION(tensor, tensor, eigenVectors, sign)
00064
00065 UNARY_FUNCTION(vector, symmTensor, eigenValues, transform)
00066 UNARY_FUNCTION(symmTensor, symmTensor, eigenVectors, sign)
TagsNo tags attached.

Activities

henry

2011-02-19 16:04

manager   ~0000255

Thanks for the bug report. This is resolved in OpenFOAM-1.7.x by
commit cb581e7a33087d92b1e8219bca4de55590add315

Issue History

Date Modified Username Field Change
2011-02-19 10:41 user138 New Issue
2011-02-19 16:04 henry Note Added: 0000255
2011-02-19 16:04 henry Status new => resolved
2011-02-19 16:04 henry Resolution open => fixed
2011-02-19 16:04 henry Assigned To => henry