View Issue Details

IDProjectCategoryView StatusLast Update
0000422OpenFOAMBugpublic2012-02-16 21:09
Reporterakidess Assigned Touser4 
PrioritynormalSeverityminorReproducibilitysometimes
Status resolvedResolutionfixed 
PlatformLinuxOSOpenSuseOS Version11.3
Summary0000422: functionObject produces non-standard Ensight data
DescriptionI use a functionObject (libsampling) so sample cellPoint data on a cuttingPlane and output it to ensight format. This works fine for some fields, but for the alpha1 field of interFoam it produces invalid formatted data (e.g. -3.26244e-105).
Steps To ReproduceSample data using function objects in ensight format
Check outputted data files with ens_checker or try to plot in Tecplot
Additional InformationProblematic sample data and output of the tool ens_checker (see http://www.ensight.com/EnLiten/viewers.html) is attached

ens_checker output:
===> Problem:
-------------
Previous lines end with 1 extra chars on the line,
but line 21123 has 2 extra chars. The lines must be consistent
or EnSight will have trouble reading it.
-3.26244e-105|
-----------^
Looking for: (1) numbers per line
             field width of (12) per number
TagsNo tags attached.

Activities

akidess

2012-02-16 12:08

reporter  

ens_check.txt (3,794 bytes)   

*****************************************************************
*  EnSight Data Format Checker                                  *
*  ===========================                                  *
*   Currently,                                                  *
*   1. Must be run from directory in which casefile is located. *
*   2. Handles EnSight6 and EnSight Gold formats only.          *
*   3. Does not process SOS casefiles.                          *
*****************************************************************
<Version: 2.032>
<Built: 2/18/2011>
 
====> Output Verbosity set for default, which includes:
        Problems + Warnings + Informational

   Note: You can change this via environment variable if desired
         setenv ENS_CHECKER_VERBOSITY n 

   Where: n = 0   For Problems only                       (no other feedback)
          n = 1   For Problems + Warnings
          n = 2   For Problems            + Informational (no warnings)
          n = 3   For Problems + Warnings + Informational (default)


Casefile to Process:
--------------------
zNormal.case   (Opened successfully)

---------------------
Major Sections Found:
---------------------
Required FORMAT   section    (at line 1)
Required GEOMETRY section    (at line 4)
Optional VARIABLE section    (at line 7)
Optional TIME     section    (at line 10)

---------------
FORMAT Section:
---------------
EnSight Gold Format   (set at line 2)

-------------
TIME section:
-------------
Info for timeset number: 1
----------------------------
Time set: 1   (at line 11)
   No description provided
   Number of steps:       1   (at line 12)
   Filename start number: 0   (at line 13)
   Filename increment:    1   (at line 14)
   Time values:           (starting on line 15)
                          time values[1] = 0

  >-------------------<
  > TIME section OKAY <
  >-------------------<

-----------------
GEOMETRY Section:
-----------------

--------
Model filename is:   zNormal.000.mesh      (at line 5)

   Static geometry

   --------
   Opened zNormal.000.mesh successfully

   File type is:    ASCII
   This is Step:    0
   Description 1:   Ensight Geometry File
   Description 2:   =====================
   node ids:        assign
   element ids:     assign
   No extents given

   Part 1:
      Description is: zNormal.000.mesh
      Unstructured Part
      Number of nodes is: 67699
         X Coordinates for (67699) nodes found
         Y Coordinates for (67699) nodes found
         Z Coordinates for (67699) nodes found
      Number of tria3 elements in section is: 134116
         Connectivities for (134116) tria3 elements found

  >-----------------------<
  > GEOMETRY section OKAY <
  >-----------------------<

-----------------
VARIABLE Section:
-----------------

scalar per node:   alpha1      (at line 8)
   Filename is: zNormal.***.alpha1
   Transient variable
   Associated time set is: 1

   --------
   Opened zNormal.000.alpha1 successfully

   Description: scalar

   Part 1:

===> Problem:
-------------
Previous lines end with 1 extra chars on the line,
but line 21123 has 2 extra chars. The lines must be consistent
or EnSight will have trouble reading it.
-3.26244e-105|
-----------^
Looking for: (1) numbers per line
             field width of (12) per number


===> Problem:
-------------
Not successful reading (67699) nodal scalar values

  >-------------------------<
  > VARIABLE section FAILED <
  >-------------------------<


  >-*-*-*-*-*-* bummer! *-*-*-*-*-*-<
  >                                 <
  > Verification of the data FAILED <
  >                                 <
  >-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-<

ens_check.txt (3,794 bytes)   

akidess

2012-02-16 12:08

reporter  

zNormal.000.alpha1 (882,059 bytes)

akidess

2012-02-16 12:11

reporter   ~0001037

I'm unable to upload a compressed file with the mesh part of the Ensight output (due to "Application error #401")

akidess

2012-02-16 12:12

reporter  

zNormal.case (302 bytes)

user4

2012-02-16 21:09

  ~0001040

Fixed in 21x in e59d457cda3efe5dbe7fca03cfde6614de1d17fe

This limits the output to float only so any number <1e-15 will get truncated to 0. Let us know if it doesn't solve your problem.

Thanks for reporting,

Mattijs

Issue History

Date Modified Username Field Change
2012-02-16 12:07 akidess New Issue
2012-02-16 12:08 akidess File Added: ens_check.txt
2012-02-16 12:08 akidess File Added: zNormal.000.alpha1
2012-02-16 12:11 akidess Note Added: 0001037
2012-02-16 12:12 akidess File Added: zNormal.case
2012-02-16 21:09 user4 Note Added: 0001040
2012-02-16 21:09 user4 Status new => resolved
2012-02-16 21:09 user4 Fixed in Version => 2.1.x
2012-02-16 21:09 user4 Resolution open => fixed
2012-02-16 21:09 user4 Assigned To => user4