wyldckat / cgnsToFromFoam

Port of cgnsToFoam from TurbMachinery SIG to OpenFOAM 5.x and newer
Other
13 stars 6 forks source link

case2 needs revising? #7

Open wyldckat opened 1 year ago

wyldckat commented 1 year ago

Quoting from issue #6:

suggested case2 with cycle type of perio1 boundary is outdated, but changing "cycle" type to "patch" helps to blockMesh.

Reptider commented 1 year ago

After using ./Allrun script:

/*---------------------------------------------------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  5.x                                   |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
Build  : 5.x-7f7d351b741b
Exec   : blockMesh
Date   : May 16 2023
Time   : 12:22:58
Host   : "ubuntu"
PID    : 4488
I/O    : uncollated
Case   : /home/nick/OpenFOAM/cgnsToFromFoam/tutorials/cgnsConverters/test2/case
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster (fileModificationSkew 10)
allowSystemOperations : Allowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Not deleting polyMesh directory 
    "/home/nick/OpenFOAM/cgnsToFromFoam/tutorials/cgnsConverters/test2/case/constant/polyMesh"
    because it contains blockMeshDict
Creating block mesh from
    "/home/nick/OpenFOAM/cgnsToFromFoam/tutorials/cgnsConverters/test2/case/constant/polyMesh/blockMeshDict"
Creating block edges
No non-planar block faces defined
Creating topology blocks
Creating topology patches

Reading patches section

--> FOAM FATAL IO ERROR: 
Old-style cyclic definition. Splitting patch perio1 into two halves perio1_half0 and perio1_half1
    Alternatively use new 'boundary' dictionary syntax.

file: /home/nick/OpenFOAM/cgnsToFromFoam/tutorials/cgnsConverters/test2/case/constant/polyMesh/blockMeshDict.patches at line 153.

    From function void Foam::blockMesh::readPatches(const Foam::dictionary&, Foam::faceListList&, Foam::wordList&, Foam::wordList&, Foam::wordList&)
    in file blockMesh/blockMeshTopology.C at line 206.

FOAM exiting

Can't open constant/polyMesh/boundary: No such file or directory at -e line 3.
Running simpleFoam...
/*---------------------------------------------------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  5.x                                   |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
Build  : 5.x-7f7d351b741b
Exec   : foamToCGNS -latestTime
Date   : May 16 2023
Time   : 12:22:58
Host   : "ubuntu"
PID    : 4491
I/O    : uncollated
Case   : /home/nick/OpenFOAM/cgnsToFromFoam/tutorials/cgnsConverters/test2/case
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster (fileModificationSkew 10)
allowSystemOperations : Allowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Create mesh for time = 0

--> FOAM FATAL ERROR: 
Cannot find file "points" in directory "polyMesh" in times 0 down to constant

    From function Foam::word Foam::Time::findInstance(const Foam::fileName&, const Foam::word&, Foam::IOobject::readOption, const Foam::word&) const
    in file db/Time/findInstance.C at line 225.

FOAM exiting

Done.