View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000142 | OpenFOAM | Bug | public | 2011-02-19 10:41 | 2011-02-19 16:04 |
Reporter | Assigned To | henry | |||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Platform | Linux | OS | OpenSuse | OS Version | 11.1 |
Summary | 0000142: EigenVectors/EigenValues for dimensionedTensorField set wrong dimensions | ||||
Description | The 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 Information | As 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) | ||||
Tags | No tags attached. | ||||