View Issue Details

IDProjectCategoryView StatusLast Update
0003651OpenFOAMBugpublic2023-05-22 17:20
Reporterjherb Assigned Tohenry  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
PlatformGNU/LinuxOSOpenSuSEOS Version12.3
Summary0003651: Using csv files together with binary file format results in error if run in parallel
DescriptionUsing the following boundary condition, then executing decomposePar and run will result in an error:

T boundary condition (excerpt):

    innercore
    {
        type uniformFixedValue;
        uniformValue
        {
            type tableFile;
            format csv;
            nHeaderLine 0; // number of header lines
            refColumn 0; // time column index
            componentColumns (1); // data column index
            separator ","; // optional (defaults to ",")
            mergeSeparators no; // merge multiple separators
            file "$FOAM_CASE/constant/T/innercore_T.csv";
        }
        value uniform 797.15;
    }


decomposePar produces this:

    innercore
    {
        type uniformFixedValue;
        uniformValue tableFile;
        uniformValueCoeffs
        {
            file "$FOAM_CASE/constant/T/innercore_T.csv";
            format csv;
            nHeaderLine 0;
            refColumn 0;
            componentColumns List<label> 1(1);
            separator ",";
            mergeSeparators 0;
        }
        value nonuniform List<scalar>
0
;
    }


This is the error message of buoyantPimpleFoam -parallel:

[0]
[0]
[0] --> FOAM FATAL IO ERROR:
[0] Expected a ')' while reading binaryBlock, found on line 50 the word 'separator'
[0]
[0] file: /GRS/work/hej/OpenFOAM/hej-8/phenix/dissymmetric/top.2nd.001/processor0/9500/T at line 50.
[0]
[0] From function Foam::Istream &Foam::Istream::readEnd(const char *)
[0] in file db/IOstreams/IOstreams/Istream.C at line 109.
[0]
FOAM parallel run exiting

Happens for collated and uncollated file format.

Changing the writeFormat to ascii "solves" the problem.
TagsNo tags attached.

Activities

henry

2021-03-30 11:30

manager   ~0011956

Revolved in OpenFOAM-8 by commit 1c97446d261011178af3ba5e0debe7588fbc18f0
Resolved in OpenFOAM-dev by commit 8fdf4eb6de97f29c710b627d5800ee9e0be7907d

Issue History

Date Modified Username Field Change
2021-03-29 23:23 jherb New Issue
2021-03-30 11:30 henry Assigned To => henry
2021-03-30 11:30 henry Status new => resolved
2021-03-30 11:30 henry Resolution open => fixed
2021-03-30 11:30 henry Fixed in Version => 8
2021-03-30 11:30 henry Note Added: 0011956