View Issue Details

IDProjectCategoryView StatusLast Update
0001123OpenFOAMBugpublic2014-01-05 09:33
Reporterwyldckat Assigned Tohenry  
PrioritynormalSeverityminorReproducibilitysometimes
Status closedResolutionfixed 
Summary0001123: Field files for the tutorials cases in "multiphase/cavitatingFoam/les/" have incomplete dimensions
DescriptionFor example, the file "multiphase/cavitatingFoam/les/throttle/0/U" has got the following dimensions entry:

  dimensions [0 1 -1 0 0];

When the complete entry should be:

  dimensions [0 1 -1 0 0 0 0];

Similar occurs for most of the other non-turbulence field files. And the same happens for the "throttle3D" tutorial.

This is not a problem for OpenFOAM, nor for OpenFOAM's own plug-in for ParaView. But unfortunately, ParaView's built-in reader does has some problems reading these files. And from the information gathered and reported in the "Steps To Reproduce" entry, it seems that this incomplete form isn't the standard for most of the tutorials.
Steps To ReproduceTo pick up on all files that use the incomplete dimensions definition, run:

cd $FOAM_TUTORIALS
grep -r -e "\[\ *-*[0-9]* -*[0-9]* -*[0-9]* -*[0-9]* -*[0-9]*\ *\]" *

Looks like that there are lot more files than I originally found... to compare, here are the grep commands for counting the number of 7 element vectors, vs 5 element vectors:

grep -r -e "\[\ *-*[0-9]* -*[0-9]* -*[0-9]* -*[0-9]* -*[0-9]* -*[0-9]* -*[0-9]*\ *\]" * | wc -l # gave 2000

Versus:

grep -r -e "\[\ *-*[0-9]* -*[0-9]* -*[0-9]* -*[0-9]* -*[0-9]*\ *\]" * | wc -l # gave 93


Searching for 4, 6 and 8 element vectors did not give any results.
Additional InformationI only stumbled upon this thanks to this post: http://www.cfd-online.com/Forums/openfoam-installation/127760-paraview-version-update-errors.html#post468525 - the error is emitted only when the built-in reader in ParaView is used.
TagsNo tags attached.

Activities

henry

2014-01-05 09:33

manager   ~0002741

Both

    dimensions [0 1 -1 0 0];

and

    dimensions [0 1 -1 0 0 0 0];

are valid and accepted dimensionSet specifications in OpenFOAM and have been since the last two SI dimensions were added about 20 years ago.

Issue History

Date Modified Username Field Change
2014-01-05 01:16 wyldckat New Issue
2014-01-05 09:33 henry Note Added: 0002741
2014-01-05 09:33 henry Status new => closed
2014-01-05 09:33 henry Assigned To => henry
2014-01-05 09:33 henry Resolution open => fixed