请问下为什么blockMesh运行paraview打不开



  • /*--------------------------------*- C++ -*----------------------------------*\
      =========                 |
      \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
       \\    /   O peration     | Website:  https://openfoam.org
        \\  /    A nd           | Version:  6
         \\/     M anipulation  |
    \*---------------------------------------------------------------------------*/
    FoamFile
    {
        version     2.0;
        format      ascii;
        class       dictionary;
        object      blockMeshDict;
    }
    // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
    
    convertToMeters 0.1;
    
    vertices
    (
        (-6 0 -1)
        (-6 1 -1)
        (0 -1 -1)
        (0 0 -1)
        (0 1 -1)
        (18 -1 -1)
        (18 0 -1)
        (18 1 -1)
    
    
        (-6 0 1)
        (-6 1 1)
        (0 -1 1)
        (0 0 1)
        (0 1 1)
        (18 -1 1)
        (18 0 1)
        (18 1 1)
    );
    
    
    blocks
    (
        hex (0 3 4 1 8 11 12 9)
        (3 1 1)
        simpleGrading (1 1 1)
    
        hex (2 5 6 3 10 13 14 11)
        (9 1 1)
        simpleGrading (1 1 1)
    
        hex (3 6 7 4 11 14 15 12)
        (9 1 1)
        simpleGrading (1 1 1)
    
      
    );
    
    edges
    (
    );
    
    boundary
    (
        inlet
        {
            type patch;
            faces
            (
                (0 1 9 8)
            );
        }
        outlet
        {
            type patch;
            faces
            (
                (5 6 14 13)
                (6 7 15 14)
            );
        }
        upperWall
        {
            type wall;
            faces
            (
                (1 4 12 9)
                (4 7 15 12)
             
            );
        }
        lowerWall
        {
            type wall;
            faces
            (
                (0 3 11 8)
                (3 2 10 11)
                (2 5 13 10)
            );
        }
        frontAndBack
        {
            type empty;
            faces
            (
                (0 3 4 1)
                (2 5 6 3)
                (3 6 7 4)
                (8 11 12 9)
                (10 13 14 11)
                (11 14 15 12)
                
            );
        }
    );
    
    // ************************************************************************* //
    报错
    Created temporary 'pitzDaily.OpenFOAM'
    I/O    : uncollated
    **********************************************************
    ParaView failed to open using available graphics hardware.
    Trying fallback to software rendering using MESA.
    **********************************************************
    I/O    : uncollated
    


  • --> FOAM FATAL IO ERROR: 
    size 12225 is not equal to the given value of 21
    
    file: /home/zcy/OpenFOAM/anli/pitzDaily/0/U from line 18 to line 12272.
    
        From function Foam::Field<Type>::Field(const Foam::word&, const Foam::dictionary&, Foam::label) [with Type = Foam::Vector<double>; Foam::label = int]
        in file /home/ubuntu/OpenFOAM/OpenFOAM-6/src/OpenFOAM/lnInclude/Field.C at line 302.
    
    FOAM exiting
    
    Segmentation fault (core dumped)
    

  • OpenFOAM教授

    @郑澄远 你的0文件夹下的U文件有问题。应该是初始场的个数与网格单元数不一致。


Log in to reply