View Issue Details

IDProjectCategoryView StatusLast Update
0003750OpenFOAMFeaturepublic2021-11-02 11:57
Reporterpeksa Assigned Tohenry  
PrioritylowSeveritytextReproducibilityalways
Status resolvedResolutionfixed 
PlatformGNU/LinuxOSUbuntuOS Version15.04
Product Versiondev 
Summary0003750: UniformTable2 header example text clarification.
DescriptionDear developers,

I was trying to learn how to use UniformTable2 function feature in latest OpenFOAM-dev. I looked-up the source header (UniformTable2.H) for an example usage but quickly became puzzled by two aspects:

1) There is no pLow/pHigh/Tlow/Thigh keywords but they are replaced by low/high pairs.
2) How one should give a 2d matrix as an input for the "values" keyword? The present example is valid for 1d arrays only.
3) In case of two variables, which one corresponds the matrix row and column, respectively?

I had to look into source code to ensure the behavior. Hence, I'd like to propose the following new header documentation:

------------------------
    Example for the density of water between 1-3 bar (3 rows) and 280-350K (2 columns)
    \verbatim
    rho
    {
          type uniformTable;

          low (1e5 280);
          high (3e5 350);
          values
          3 2
          (
            (991 992)
            (993 994)
            (995 996)
          );
    }
    \endverbatim
------------------------


TagsNo tags attached.

Activities

henry

2021-11-02 11:57

manager   ~0012264

Resolved in OpenFOAM-9 by commit 149c9bcc44ef86d6ab4102466046d6040a426fb8
Resolved in OpenFOAM-dev by commit 2d1c97f4fa8abef5143b4a8deec3d91f0beca807

Issue History

Date Modified Username Field Change
2021-11-02 09:19 peksa New Issue
2021-11-02 11:57 henry Assigned To => henry
2021-11-02 11:57 henry Status new => resolved
2021-11-02 11:57 henry Resolution open => fixed
2021-11-02 11:57 henry Fixed in Version => 9
2021-11-02 11:57 henry Note Added: 0012264