CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

Error in gmshToFoam on ESI v2106

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 16, 2021, 14:35
Default Error in gmshToFoam on ESI v2106
  #1
Member
 
Join Date: Aug 2017
Posts: 32
Rep Power: 9
siefer92 is on a distinguished road
Howdy yall!!

As the title suggests I am having a problem with gmshToFoam in ESI OpenFoam release v2106. I have not had such problems with earlier releases such as v2012, v2006, v1912.

I am attaching my commands and the outputs for versions 2106 and 2012 below.

Bash command executed
Code:
gmsh -3 -optimize_netgen cylinder.geo -o cylinder.msh -format msh2
gmshToFoam cylinder.msh
checkMesh
v2012
Code:
Info    : Running 'gmsh -3 -optimize_netgen cylinder.geo -o cylinder.msh -format msh2' [Gmsh 4.4.1, 1 node, max. 1 thread]
Info    : Started on Fri Jul 16 11:23:20 2021
Info    : Reading 'cylinder.geo'...
Info    : Done reading 'cylinder.geo'
Info    : Meshing 1D...
Info    : Meshing curve 9 (Line)
CUTTING GENNERIC REPEATED OUTPUT DUE TO CFD ONLINE CHAR LIMIT 
Info    : Meshing volume 20 (extruded)
Info    : Done meshing 3D (0.2968 s)
Info    : Optimizing 3D mesh...
Info    : Done optimizing 3D mesh (0.0032009 s)
Info    : Optimizing 3D mesh with Netgen...
Info    : Done optimizing 3D mesh with Netgen (0.0032047 s)
Info    : 159618 vertices 247083 elements
Info    : Writing 'cylinder.msh'...
Info    : Done writing 'cylinder.msh'
Info    : Stopped on Fri Jul 16 11:23:21 2021
/*---------------------------------------------------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  v2012                                 |
|   \\  /    A nd           | Website:  www.openfoam.com                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
Build  : _7bdb509494-20201222 OPENFOAM=2012
Arch   : "LSB;label=64;scalar=64"
Exec   : gmshToFoam cylinder.msh
Date   : Jul 16 2021
Time   : 11:23:21
Host   : LAPTOP-3DDQJHAE
PID    : 2350
I/O    : uncollated
Case   : /home/john/PhD/test_case_data/sonicCyl
nProcs : 1
trapFpe: Floating point exception trapping enabled (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster (fileModificationSkew 5, maxFileModificationPolls 20)
allowSystemOperations : Allowing user-supplied system call operations

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

Starting to read mesh format at line 2
Read format version 2.2  ascii 0

Starting to read physical names at line 5
Physical names:6
    Surface 2   inlet
    Surface 3   symmetry
    Surface 4   empty
    Surface 5   obstacle
    Surface 6   outlet
    Volume 1    flow

Starting to read points at line 14
Vertices to be read: 159616
Vertices read:159616

Starting to read cells at line 159633
Cells to be read: 238676

Mapping region 4 to Foam patch 0
Mapping region 2 to Foam patch 1
Mapping region 3 to Foam patch 2
Mapping region 5 to Foam patch 3
Mapping region 6 to Foam patch 4
Mapping region 1 to Foam cellZone 0
Cells:
    total:79060
    hex  :79060
    prism:0
    pyr  :0
    tet  :0

CellZones:
Zone    Size
    0   79060

Skipping tag $Periodic at line 398312
Patch 0 gets name empty
Patch 1 gets name inlet
Patch 2 gets name symmetry
Patch 3 gets name obstacle
Patch 4 gets name outlet

--> FOAM Warning :
    From Foam::polyMesh::polyMesh(const Foam::IOobject&, Foam::pointField&&, const cellShapeList&, const faceListList&, const wordList&, const wordList&, const Foam::word&, const Foam::word&, const wordList&, bool)
    in file meshes/polyMesh/polyMeshFromShapeMesh.C at line 645
    Found 159616 undefined faces in mesh; adding to default patch defaultFaces
Finding faces of patch 0
Finding faces of patch 1
Finding faces of patch 2
Finding faces of patch 3
Finding faces of patch 4

FaceZones:
Zone    Size

Writing zone 0 to cellZone flow and cellSet
End

/*---------------------------------------------------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  v2012                                 |
|   \\  /    A nd           | Website:  www.openfoam.com                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
Build  : _7bdb509494-20201222 OPENFOAM=2012
Arch   : "LSB;label=64;scalar=64"
Exec   : checkMesh
Date   : Jul 16 2021
Time   : 11:23:23
Host   : LAPTOP-3DDQJHAE
PID    : 2351
I/O    : uncollated
Case   : /home/john/PhD/test_case_data/sonicCyl
nProcs : 1
trapFpe: Floating point exception trapping enabled (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster (fileModificationSkew 5, maxFileModificationPolls 20)
allowSystemOperations : Allowing user-supplied system call operations

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

Create mesh for time = 0

Time = 0

Mesh stats
    points:           159616
    internal points:  0
    faces:            316988
    internal faces:   157372
    cells:            79060
    faces per cell:   6
    boundary patches: 5
    point zones:      0
    face zones:       0
    cell zones:       1

Overall number of cells of each type:
    hexahedra:     79060
    prisms:        0
    wedges:        0
    pyramids:      0
    tet wedges:    0
    tetrahedra:    0
    polyhedra:     0

Checking topology...
    Boundary definition OK.
    Cell to face addressing OK.
    Point usage OK.
    Upper triangular ordering OK.
    Face vertices OK.
    Number of regions: 1 (OK).

Checking patch topology for multiply connected surfaces...
    Patch               Faces    Points   Surface topology
    empty               158120   159616   ok (non-closed singly connected)
    inlet               276      554      ok (non-closed singly connected)
    symmetry            472      948      ok (non-closed singly connected)
    obstacle            472      944      ok (non-closed singly connected)
    outlet              276      554      ok (non-closed singly connected)

Checking faceZone topology for multiply connected surfaces...
    No faceZones found.

Checking basic cellZone addressing...
    CellZone            Cells        Points       Volume       BoundingBox
    flow                79060        159616       1.11214625   (-5.5 -3.5 0) (10.5 3.5 0.01)

Checking geometry...
    Overall domain bounding box (-5.5 -3.5 0) (10.5 3.5 0.01)
    Mesh has 3 geometric (non-empty/wedge) directions (1 1 1)
    Mesh has 3 solution (non-empty) directions (1 1 1)
    Boundary openness (-4.620442256e-21 3.980571799e-19 4.285640679e-20) OK.
    Max cell openness = 2.94494556e-16 OK.
    Max aspect ratio = 15.3996381 OK.
    Minimum face area = 6.655867375e-05. Maximum face area = 0.00406586789.  Face area magnitudes OK.
    Min volume = 1.07308287e-06. Max volume = 4.06586789e-05.  Total volume = 1.11214625.  Cell volumes OK.
    Mesh non-orthogonality Max: 44.22717805 average: 10.27181136
    Non-orthogonality check OK.
    Face pyramids OK.
    Max skewness = 0.795245414 OK.
    Coupled point location match (average 0) OK.

Mesh OK.

End
V2106
Code:
Info    : Running 'gmsh -3 -optimize_netgen cylinder.geo -o cylinder.msh -format msh2' [Gmsh 4.4.1, 1 node, max. 1 thread]
Info    : Started on Fri Jul 16 11:17:03 2021
Info    : Reading 'cylinder.geo'...
Info    : Done reading 'cylinder.geo'
Info    : Meshing 1D...
CUTTING GENNERIC REPEATED OUTPUT DUE TO CFD ONLINE CHAR LIMIT 
Info    : Meshing volume 20 (extruded)
Info    : Done meshing 3D (0.300775 s)
Info    : Optimizing 3D mesh...
Info    : Done optimizing 3D mesh (0.0035832 s)
Info    : Optimizing 3D mesh with Netgen...
Info    : Done optimizing 3D mesh with Netgen (0.0031208 s)
Info    : 159618 vertices 247083 elements
Info    : Writing 'cylinder.msh'...
Info    : Done writing 'cylinder.msh'
Info    : Stopped on Fri Jul 16 11:17:05 2021
/*---------------------------------------------------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  v2106                                 |
|   \\  /    A nd           | Website:  www.openfoam.com                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
Build  : _c15bfde3cb-20210624 OPENFOAM=2106
Arch   : "LSB;label=64;scalar=64"
Exec   : gmshToFoam cylinder.msh
Date   : Jul 16 2021
Time   : 11:17:05
Host   : LAPTOP-3DDQJHAE
PID    : 1643
I/O    : uncollated
Case   : /home/john/PhD/test_case_data/sonicCyl
nProcs : 1
trapFpe: Floating point exception trapping enabled (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster (fileModificationSkew 5, maxFileModificationPolls 20)
allowSystemOperations : Allowing user-supplied system call operations

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



--> FOAM FATAL IO ERROR: (openfoam-2106)
Wrong token type - expected word, found on line 0: variable "$MeshFormat"

file: input at line 0.

    From Foam::Istream& Foam::operator>>(Foam::Istream&, Foam::word&)
    in file primitives/strings/word/wordIO.C at line 70.

FOAM exiting

/*---------------------------------------------------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  v2106                                 |
|   \\  /    A nd           | Website:  www.openfoam.com                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
Build  : _c15bfde3cb-20210624 OPENFOAM=2106
Arch   : "LSB;label=64;scalar=64"
Exec   : checkMesh
Date   : Jul 16 2021
Time   : 11:17:05
Host   : LAPTOP-3DDQJHAE
PID    : 1644
I/O    : uncollated
Case   : /home/john/PhD/test_case_data/sonicCyl
nProcs : 1
trapFpe: Floating point exception trapping enabled (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster (fileModificationSkew 5, maxFileModificationPolls 20)
allowSystemOperations : Allowing user-supplied system call operations

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

Create mesh for time = 0


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

    From virtual Foam::IOobject Foam::fileOperation::findInstance(const Foam::IOobject&, Foam::scalar, const Foam::word&) const
    in file global/fileOperations/fileOperation/fileOperation.C at line 1137.

FOAM exiting
Thanks again for yalls insight
siefer92 is offline   Reply With Quote

Old   July 16, 2021, 14:48
Default
  #2
Member
 
Join Date: Aug 2017
Posts: 32
Rep Power: 9
siefer92 is on a distinguished road
As a note, I checked the file between versions:

/home/user/OpenFOAM/OpenFOAM-v2106/applications/utilities/mesh/conversion/gmshToFoam/gmshToFoam.C

1328c1328
< IFstream inFile(args[1]);
---
> IFstream inFile(args.get<fileName>(1));

where the first line is from v2012 and the second from v2106.

I tried changing that line in 2106 to 2012's and it didn't work. Going to replace the new file with the old one and try again. will post another reply momentarily.
siefer92 is offline   Reply With Quote

Old   July 16, 2021, 14:54
Default
  #3
Member
 
Join Date: Aug 2017
Posts: 32
Rep Power: 9
siefer92 is on a distinguished road
Simply copy-pasting the file from a previous working version, v2012, did not work.

The error show below:

--> FOAM FATAL IO ERROR: (openfoam-2106)
Wrong token type - expected word, found on line 0: variable "$MeshFormat"

is complaining about line 1369 in gmshToFoam.C

Code:
        if (tag == "$MeshFormat")
        {
            versionFormat = readMeshFormat(inFile);
        }
moving through the code to see how tag is updated. Will post an update if I find anything.

As a direct update to this, It makes more sense that the error is coming from reading the msh file at the beginning of gmshToFoam. the code snippet contained above is the only location where the $MeshFormat tag is explicitly mentioned but it is not the reason for the error.

Still kinda stuck atm.

My work around of:

source OFv2012/etc/bashrc
gmshToFoam mesh
source OFv2106/etc/bashrc
checkMesh

works but it is rather crude. I am migrating to v2106 because of the 70x performance boost on simulation startup on large core count jobs for supercomputing applications. Though the cloudFunctionObjects for reynolds and nusselt number are convenient as well

Last edited by siefer92; July 16, 2021 at 16:07.
siefer92 is offline   Reply With Quote

Old   July 16, 2021, 15:37
Default
  #4
Member
 
Join Date: Aug 2017
Posts: 32
Rep Power: 9
siefer92 is on a distinguished road
My Geo File for a 2D Cylinder

Cylinder.jpg

The header of the cylinder.msh file

Code:
$MeshFormat
2.2 0 8
$EndMeshFormat
$PhysicalNames
6
2 2 "inlet"
2 3 "symmetry"
2 4 "empty"
2 5 "obstacle"
2 6 "outlet"
3 1 "flow"
$EndPhysicalNames
$Nodes
159616
I should note that I am aware of gmshToFoam's sensitivity to ascii v4 vs ascii v2.

Code:
outer_diameter = 4;
diameter = 1;
outer_radius = outer_diameter*.5;
radius = diameter*.5;
insp = 5.5;
ousp = 10.5;
vesp = 3.5;
ogsp = 2;

cellsVert = 80;
cellsCirc = 60;
cellsInnerRad = 60;
cellsRad = 60;
cellsFrontHorz = 60;
cellsBackHorz = 60;

del = .015;
progRad = 1+del;
progRadInv = 1-del;

//+
Point(1) = {0, 0, 0, 1.0};
//+
Point(3) = {-insp*diameter, vesp*diameter, 0, 1.0};
//+
Point(4) = {-insp*diameter, -vesp*diameter, 0, 1.0};
//+
Point(5) = {-insp*diameter, -0, 0, 1.0};
//+
Point(6) = {0, vesp*diameter, 0, 1.0};
//+
Point(7) = {0, -vesp*diameter, 0, 1.0};
//+
Point(8) = {ousp*diameter, -vesp*diameter, 0, 1.0};
//+
Point(9) = {ousp*diameter, vesp*diameter, 0, 1.0};
//+
Point(10) = {ousp*diameter, 0, 0, 1.0};
//+
Point(11) = {-.35355339*outer_diameter, .35355339*outer_diameter, 0, 1.0};
//+
Point(12) = {-.35355339*outer_diameter, -.35355339*outer_diameter, 0, 1.0};
//+
Point(13) = {-.5*outer_diameter, 0, 0, 1.0};
//+
Point(14) = {0, .5*outer_diameter, 0, 1.0};
//+
Point(15) = {0, -.5*outer_diameter, 0, 1.0};
//+
Point(16) = {.35355339*outer_diameter, -.35355339*outer_diameter, 0, 1.0};
//+
Point(17) = {.5*outer_diameter, 0, 0, 1.0};
//+
Point(18) = {.35355339*outer_diameter, .35355339*outer_diameter, 0, 1.0};
//+
Point(19) = {0, .5*diameter, 0, 1.0};
//+
Point(20) = {0, -.5*diameter, 0, 1.0};
//+
Point(21) = {.5*diameter, 0, 0, 1.0};
//+
Point(22) = {-.5*diameter, 0, 0, 1.0};
//+
Point(23) = {.35355339*diameter, .35355339*diameter, 0, 1.0};
//+
Point(24) = {.35355339*diameter, -.35355339*diameter, 0, 1.0};
//+
Point(25) = {-.35355339*diameter, .35355339*diameter, 0, 1.0};
//+
Point(26) = {-.35355339*diameter, -.35355339*diameter, 0, 1.0};
//+
Point(27) = {.35355339*outer_diameter, vesp*diameter, 0, 1.0};
//+
Point(28) = {.35355339*outer_diameter, -vesp*diameter, 0, 1.0};
//+
Point(29) = {-.35355339*outer_diameter, -vesp*diameter, 0, 1.0};
//+
Point(30) = {-.35355339*outer_diameter, vesp*diameter, 0, 1.0};
//+
Point(31) = {-insp*diameter, .35355339*outer_diameter, 0, 1.0};
//+
Point(32) = {-insp*diameter, -.35355339*outer_diameter, 0, 1.0};
//+
Point(33) = {ousp*diameter, .35355339*outer_diameter, 0, 1.0};
//+
Point(34) = {ousp*diameter, -.35355339*outer_diameter, 0, 1.0};
//+
Point(35) = {-insp*diameter, vesp*diameter, 0, 1.0};
//+
Point(36) = {-insp*diameter, -vesp*diameter, 0, 1.0};
//+
Point(37) = {ousp*diameter, -vesp*diameter, 0, 1.0};
//+
Point(38) = {ousp*diameter, vesp*diameter, 0, 1.0};
//+
Line(9) = {31, 11};
//+
Line(10) = {11, 30};
//+
Line(11) = {32, 12};
//+
Line(12) = {12, 29};
//+
Line(13) = {5, 13};
//+
Circle(14) = {13, 1, 11};
//+
Circle(15) = {13, 1, 12};
//+
Circle(16) = {12, 1, 15};
//+
Line(17) = {15, 7};
//+
Circle(18) = {15, 1, 16};
//+
Line(19) = {16, 28};
//+
Line(20) = {16, 34};
//+
Line(21) = {27, 18};
//+
Line(22) = {18, 33};
//+
Line(23) = {10, 17};
//+
Circle(24) = {17, 1, 18};
//+
Circle(25) = {17, 1, 16};
//+
Circle(26) = {11, 1, 14};
//+
Circle(27) = {14, 1, 18};
//+
Line(28) = {6, 14};
//+
Line(29) = {12, 26};
//+
Line(30) = {22, 22};
//+
Line(31) = {13, 22};
//+
Line(32) = {25, 11};
//+
Line(33) = {19, 14};
//+
Line(34) = {23, 18};
//+
Line(35) = {21, 17};
//+
Line(36) = {24, 16};
//+
Line(37) = {20, 15};
//+
Line(46) = {3, 30};
//+
Line(47) = {30, 6};
//+
Line(48) = {6, 27};
//+
Line(49) = {27, 9};
//+
Line(50) = {9, 33};
//+
Line(51) = {33, 10};
//+
Line(52) = {10, 34};
//+
Line(53) = {34, 8};
//+
Line(54) = {8, 28};
//+
Line(55) = {28, 7};
//+
Line(56) = {7, 29};
//+
Line(57) = {29, 4};
//+
Line(58) = {4, 32};
//+
Line(59) = {32, 5};
//+
Line(60) = {5, 31};
//+
Line(61) = {31, 3};
//+
Circle(38) = {19, 1, 25};
//+
Circle(39) = {25, 1, 22};
//+
Circle(40) = {22, 1, 26};
//+
Circle(41) = {26, 1, 20};
//+
Circle(42) = {20, 1, 24};
//+
Circle(43) = {24, 1, 21};
//+
Circle(44) = {21, 1, 23};
//+
Circle(45) = {23, 1, 19};
//+
// vertical discretization of top and bottom row of blocks
Transfinite Line {61, 10, 28, 21, 50, 53, 19, 17, 12, 58} = cellsVert  Using Progression 1;
//+
// circumfrential discretization of the domain
Transfinite Line {60, 14, 39, 44, 24, 51, 52, 25, 43, 40, 15, 59, 47, 26, 38, 41, 16, 56, 48, 27, 45, 42, 18, 55} = cellsCirc Using Progression 1;
//+
// radial discretization of the domain
Transfinite Line {33, 34, 35, 36, 37, 32} = cellsRad Using Progression progRad;
// radial discretization of the domain
Transfinite Line {29, 31} = cellsRad Using Progression progRadInv;
//+
// horizontal discretization of the first collumn of blocks
Transfinite Line {46, 9, 13, 11, 57} = cellsFrontHorz Using Progression 1;
// horizontal dicretization of the final collumn of blocks
Transfinite Line {49, 22, 23, 20, 54} = cellsBackHorz Using Progression 1;
//+
Line Loop(1) = {61, 46, -10, -9};
//+
Surface(1) = {1};
//+
Line Loop(2) = {9, -14, -13, 60};
//+
Surface(2) = {2};
//+
Line Loop(3) = {13, 15, -11, 59};
//+
Surface(3) = {3};
//+
Line Loop(4) = {11, 12, 57, 58};
//+
Surface(4) = {4};
//+
Line Loop(5) = {12, -56, -17, -16};
//+
Surface(5) = {5};
//+
Line Loop(6) = {18, 19, 55, -17};
//+
Surface(6) = {6};
//+
Line Loop(7) = {20, 53, 54, -19};
//+
Surface(7) = {7};
//+
Line Loop(8) = {23, 25, 20, -52};
//+
Surface(8) = {8};
//+
Line Loop(9) = {23, 24, 22, 51};
//+
Surface(9) = {9};
//+
Line Loop(10) = {22, -50, -49, 21};
//+
Surface(10) = {10};
//+
Line Loop(11) = {48, 21, -27, -28};
//+
Surface(11) = {11};
//+
Line Loop(12) = {47, 28, -26, 10};
//+
Surface(12) = {12};
//+
Line Loop(13) = {26, -33, 38, 32};
//+
Surface(13) = {13};
//+
Line Loop(14) = {32, -14, 31, -39};
//+
Surface(14) = {14};
//+
Line Loop(15) = {31, 40, -29, -15};
//+
Surface(15) = {15};
//+
Line Loop(16) = {29, 41, 37, -16};
//+
Surface(16) = {16};
//+
Line Loop(17) = {42, 36, -18, -37};
//+
Surface(17) = {17};
//+
Line Loop(18) = {43, 35, 25, -36};
//+
Surface(18) = {18};
//+
Line Loop(19) = {44, 34, -24, -35};
//+
Surface(19) = {19};
//+
Line Loop(20) = {45, 33, 27, -34};
//+
Surface(20) = {20};
//+
Transfinite Surface {1} = {3, 31, 11, 30};
//+
Transfinite Surface {2} = {31, 5, 13, 11};
//+
Transfinite Surface {3} = {5, 32, 12, 13};
//+
Transfinite Surface {4} = {32, 4, 29, 12};
//+
Transfinite Surface {5} = {12, 29, 7, 15};
//+
Transfinite Surface {6} = {15, 7, 28, 16};
//+
Transfinite Surface {7} = {16, 28, 8, 34};
//+
Transfinite Surface {8} = {17, 16, 34, 10};
//+
Transfinite Surface {9} = {18, 17, 10, 33};
//+
Transfinite Surface {10} = {27, 18, 33, 9};
//+
Transfinite Surface {11} = {6, 14, 18, 27};
//+
Transfinite Surface {12} = {30, 11, 14, 6};
//+
Transfinite Surface {13} = {11, 25, 19, 14};
//+
Transfinite Surface {14} = {11, 13, 22, 25};
//+
Transfinite Surface {15} = {13, 12, 26, 22};
//+
Transfinite Surface {16} = {26, 12, 15, 20};
//+
Transfinite Surface {17} = {20, 15, 16, 24};
//+
Transfinite Surface {18} = {24, 16, 17, 21};
//+
Transfinite Surface {19} = {21, 17, 18, 23};
//+
Transfinite Surface {20} = {23, 18, 14, 19};
//+
Recombine Surface {1};
//+
Recombine Surface {2};
//+
Recombine Surface {3};
//+
Recombine Surface {4};
//+
Recombine Surface {5};
//+
Recombine Surface {6};
//+
Recombine Surface {7};
//+
Recombine Surface {8};
//+
Recombine Surface {9};
//+
Recombine Surface {10};
//+
Recombine Surface {11};
//+
Recombine Surface {12};
//+
Recombine Surface {13};
//+
Recombine Surface {14};
//+
Recombine Surface {15};
//+
Recombine Surface {16};
//+
Recombine Surface {17};
//+
Recombine Surface {18};
//+
Recombine Surface {19};
//+
Recombine Surface {20};
//+
Extrude {0, 0, .01} {
  Surface{1}; Surface{2}; Surface{3}; Surface{4}; Surface{5}; Surface{16}; Surface{15}; Surface{14}; Surface{13}; Surface{12}; Surface{11}; Surface{20}; Surface{19}; Surface{18}; Surface{17}; Surface{6}; Surface{7}; Surface{8}; Surface{9}; Surface{10}; 
Layers{1};
Recombine; 
}
//+
Physical Volume("flow") = {1, 2, 3, 4, 5, 6, 7, 9, 8, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20};

//+
Physical Surface("inlet") = {70, 104, 126, 148};
//+
Physical Surface("symmetry") = {430, 408, 162, 144, 74, 268, 290, 496};
//+
Physical Surface("empty") = {1, 83, 105, 2, 3, 127, 4, 149, 5, 171, 6, 413, 7, 435, 8, 457, 9, 479, 10, 501, 303, 11, 12, 281, 13, 259, 14, 237, 15, 215, 16, 193, 17, 391, 18, 369, 19, 347, 20, 325};
//+
Physical Surface("obstacle") = {312, 334, 356, 378, 184, 206, 254, 236};
//+
Physical Surface("outlet") = {492, 478, 456, 426};
siefer92 is offline   Reply With Quote

Old   July 17, 2021, 06:11
Default
  #5
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,715
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
Quote:
Originally Posted by siefer92 View Post
Simply copy-pasting the file from a previous working version, v2012, did not work.

The error show below:

--> FOAM FATAL IO ERROR: (openfoam-2106)
Wrong token type - expected word, found on line 0: variable "$MeshFormat"

is complaining about line 1369 in gmshToFoam.C
Looks like this application fell victim to tightening in the input parser. Please open a GitLab issue.

EDIT: problem localised, created an issue
https://develop.openfoam.com/Develop...am/issues/2160

Last edited by olesen; July 17, 2021 at 08:25.
olesen is offline   Reply With Quote

Reply

Tags
gmshtofoam, mesh conversion, v2106


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Gmsh] New version of gmshToFoam? stootoon OpenFOAM Meshing & Mesh Conversion 7 February 14, 2022 10:01
[Gmsh] gmshToFoam problem. nilashansen OpenFOAM Meshing & Mesh Conversion 11 June 5, 2016 11:45
[Gmsh] Cell to node connectivity after 'gmshToFoam' Jibran OpenFOAM Meshing & Mesh Conversion 1 June 8, 2015 10:09
[Gmsh] gmshTofoam pbm with cyclicAMI acahuzac OpenFOAM Meshing & Mesh Conversion 2 October 20, 2014 04:53
[Gmsh] gmshToFoam command mvinassa OpenFOAM Meshing & Mesh Conversion 1 April 25, 2014 08:36


All times are GMT -4. The time now is 15:57.