CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Pre-Processing

Meshing problem

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 27, 2021, 02:51
Default Meshing problem
  #1
New Member
 
Anton
Join Date: Nov 2021
Location: Saint-Petersburg
Posts: 10
Rep Power: 4
sancho78rus is on a distinguished road
I'm trying to mesh race car.
Everything went ok before we added diffuser to the floor.
After that meshing time increased 3 times and I got errors after checking mesh and cannot do potentialFoam.
Please help.

Code:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Create polyMesh for time = 0

Time = 0

Mesh stats
    points:           8311921
    faces:            22546314
    internal faces:   21680401
    cells:            7144048
    faces per cell:   6.19071
    boundary patches: 6
    point zones:      0
    face zones:       0
    cell zones:       0

Overall number of cells of each type:
    hexahedra:     6305947
    prisms:        113448
    wedges:        2
    pyramids:      0
    tet wedges:    4703
    tetrahedra:    68
    polyhedra:     719880
    Breakdown of polyhedra by number of faces:
        faces   number of cells
            4   38309
            5   31075
            6   143250
            7   131096
            8   40681
            9   231452
           10   2317
           11   485
           12   79586
           13   74
           14   115
           15   20545
           16   2
           17   4
           18   885
           21   4

Checking topology...
    Boundary definition OK.
    Cell to face addressing OK.
    Point usage OK.
    Upper triangular ordering OK.
    Face vertices OK.
   *Number of regions: 141
    The mesh has multiple regions which are not connected by any face.
  <<Writing region information to "0/cellToRegion"
  <<Writing region 0 with 7143908 cells to cellSet region0
  <<Writing region 1 with 1 cells to cellSet region1
  <<Writing region 2 with 1 cells to cellSet region2
  <<Writing region 3 with 1 cells to cellSet region3
  <<Writing region 4 with 1 cells to cellSet region4
  <<Writing region 5 with 1 cells to cellSet region5
  <<Writing region 6 with 1 cells to cellSet region6
  <<Writing region 7 with 1 cells to cellSet region7
  <<Writing region 8 with 1 cells to cellSet region8
  <<Writing region 9 with 1 cells to cellSet region9
  <<Writing region 10 with 1 cells to cellSet region10
  <<Writing region 11 with 1 cells to cellSet region11
  <<Writing region 12 with 1 cells to cellSet region12
  <<Writing region 13 with 1 cells to cellSet region13
  <<Writing region 14 with 1 cells to cellSet region14
  <<Writing region 15 with 1 cells to cellSet region15
  <<Writing region 16 with 1 cells to cellSet region16
  <<Writing region 17 with 1 cells to cellSet region17
  <<Writing region 18 with 1 cells to cellSet region18
  <<Writing region 19 with 1 cells to cellSet region19
  <<Writing region 20 with 1 cells to cellSet region20
  <<Writing region 21 with 1 cells to cellSet region21
  <<Writing region 22 with 1 cells to cellSet region22
  <<Writing region 23 with 1 cells to cellSet region23
  <<Writing region 24 with 1 cells to cellSet region24
  <<Writing region 25 with 1 cells to cellSet region25
  <<Writing region 26 with 1 cells to cellSet region26
  <<Writing region 27 with 1 cells to cellSet region27
  <<Writing region 28 with 1 cells to cellSet region28
  <<Writing region 29 with 1 cells to cellSet region29
  <<Writing region 30 with 1 cells to cellSet region30
  <<Writing region 31 with 1 cells to cellSet region31
  <<Writing region 32 with 1 cells to cellSet region32
  <<Writing region 33 with 1 cells to cellSet region33
  <<Writing region 34 with 1 cells to cellSet region34
  <<Writing region 35 with 1 cells to cellSet region35
  <<Writing region 36 with 1 cells to cellSet region36
  <<Writing region 37 with 1 cells to cellSet region37
  <<Writing region 38 with 1 cells to cellSet region38
  <<Writing region 39 with 1 cells to cellSet region39
  <<Writing region 40 with 1 cells to cellSet region40
  <<Writing region 41 with 1 cells to cellSet region41
  <<Writing region 42 with 1 cells to cellSet region42
  <<Writing region 43 with 1 cells to cellSet region43
  <<Writing region 44 with 1 cells to cellSet region44
  <<Writing region 45 with 1 cells to cellSet region45
  <<Writing region 46 with 1 cells to cellSet region46
  <<Writing region 47 with 1 cells to cellSet region47
  <<Writing region 48 with 1 cells to cellSet region48
  <<Writing region 49 with 1 cells to cellSet region49
  <<Writing region 50 with 1 cells to cellSet region50
  <<Writing region 51 with 1 cells to cellSet region51
  <<Writing region 52 with 1 cells to cellSet region52
  <<Writing region 53 with 1 cells to cellSet region53
  <<Writing region 54 with 1 cells to cellSet region54
  <<Writing region 55 with 1 cells to cellSet region55
  <<Writing region 56 with 1 cells to cellSet region56
  <<Writing region 57 with 1 cells to cellSet region57
  <<Writing region 58 with 1 cells to cellSet region58
  <<Writing region 59 with 1 cells to cellSet region59
  <<Writing region 60 with 1 cells to cellSet region60
  <<Writing region 61 with 1 cells to cellSet region61
  <<Writing region 62 with 1 cells to cellSet region62
  <<Writing region 63 with 1 cells to cellSet region63
  <<Writing region 64 with 1 cells to cellSet region64
  <<Writing region 65 with 1 cells to cellSet region65
  <<Writing region 66 with 1 cells to cellSet region66
  <<Writing region 67 with 1 cells to cellSet region67
  <<Writing region 68 with 1 cells to cellSet region68
  <<Writing region 69 with 1 cells to cellSet region69
  <<Writing region 70 with 1 cells to cellSet region70
  <<Writing region 71 with 1 cells to cellSet region71
  <<Writing region 72 with 1 cells to cellSet region72
  <<Writing region 73 with 1 cells to cellSet region73
  <<Writing region 74 with 1 cells to cellSet region74
  <<Writing region 75 with 1 cells to cellSet region75
  <<Writing region 76 with 1 cells to cellSet region76
  <<Writing region 77 with 1 cells to cellSet region77
  <<Writing region 78 with 1 cells to cellSet region78
  <<Writing region 79 with 1 cells to cellSet region79
  <<Writing region 80 with 1 cells to cellSet region80
  <<Writing region 81 with 1 cells to cellSet region81
  <<Writing region 82 with 1 cells to cellSet region82
  <<Writing region 83 with 1 cells to cellSet region83
  <<Writing region 84 with 1 cells to cellSet region84
  <<Writing region 85 with 1 cells to cellSet region85
  <<Writing region 86 with 1 cells to cellSet region86
  <<Writing region 87 with 1 cells to cellSet region87
  <<Writing region 88 with 1 cells to cellSet region88
  <<Writing region 89 with 1 cells to cellSet region89
  <<Writing region 90 with 1 cells to cellSet region90
  <<Writing region 91 with 1 cells to cellSet region91
  <<Writing region 92 with 1 cells to cellSet region92
  <<Writing region 93 with 1 cells to cellSet region93
  <<Writing region 94 with 1 cells to cellSet region94
  <<Writing region 95 with 1 cells to cellSet region95
  <<Writing region 96 with 1 cells to cellSet region96
  <<Writing region 97 with 1 cells to cellSet region97
  <<Writing region 98 with 1 cells to cellSet region98
  <<Writing region 99 with 1 cells to cellSet region99
  <<Writing region 100 with 1 cells to cellSet region100
  <<Writing region 101 with 1 cells to cellSet region101
  <<Writing region 102 with 1 cells to cellSet region102
  <<Writing region 103 with 1 cells to cellSet region103
  <<Writing region 104 with 1 cells to cellSet region104
  <<Writing region 105 with 1 cells to cellSet region105
  <<Writing region 106 with 1 cells to cellSet region106
  <<Writing region 107 with 1 cells to cellSet region107
  <<Writing region 108 with 1 cells to cellSet region108
  <<Writing region 109 with 1 cells to cellSet region109
  <<Writing region 110 with 1 cells to cellSet region110
  <<Writing region 111 with 1 cells to cellSet region111
  <<Writing region 112 with 1 cells to cellSet region112
  <<Writing region 113 with 1 cells to cellSet region113
  <<Writing region 114 with 1 cells to cellSet region114
  <<Writing region 115 with 1 cells to cellSet region115
  <<Writing region 116 with 1 cells to cellSet region116
  <<Writing region 117 with 1 cells to cellSet region117
  <<Writing region 118 with 1 cells to cellSet region118
  <<Writing region 119 with 1 cells to cellSet region119
  <<Writing region 120 with 1 cells to cellSet region120
  <<Writing region 121 with 1 cells to cellSet region121
  <<Writing region 122 with 1 cells to cellSet region122
  <<Writing region 123 with 1 cells to cellSet region123
  <<Writing region 124 with 1 cells to cellSet region124
  <<Writing region 125 with 1 cells to cellSet region125
  <<Writing region 126 with 1 cells to cellSet region126
  <<Writing region 127 with 1 cells to cellSet region127
  <<Writing region 128 with 1 cells to cellSet region128
  <<Writing region 129 with 1 cells to cellSet region129
  <<Writing region 130 with 1 cells to cellSet region130
  <<Writing region 131 with 1 cells to cellSet region131
  <<Writing region 132 with 1 cells to cellSet region132
  <<Writing region 133 with 1 cells to cellSet region133
  <<Writing region 134 with 1 cells to cellSet region134
  <<Writing region 135 with 1 cells to cellSet region135
  <<Writing region 136 with 1 cells to cellSet region136
  <<Writing region 137 with 1 cells to cellSet region137
  <<Writing region 138 with 1 cells to cellSet region138
  <<Writing region 139 with 1 cells to cellSet region139
  <<Writing region 140 with 1 cells to cellSet region140

Checking patch topology for multiply connected surfaces...
                   Patch    Faces   Points                  Surface topology
            frontAndBack    28929    30391  ok (non-closed singly connected)
                   inlet      120      143  ok (non-closed singly connected)
                  outlet      120      143  ok (non-closed singly connected)
               lowerWall      622      699  ok (non-closed singly connected)
               upperWall      622      699  ok (non-closed singly connected)
               motorBike   835500   890235  ok (non-closed singly connected)

Checking geometry...
    Overall domain bounding box (-6 -0.69 -2.5) (14 4.31 2.5)
    Mesh has 3 geometric (non-empty/wedge) directions (1 1 1)
    Mesh has 3 solution (non-empty) directions (1 1 1)
    Boundary openness (6.74785e-17 4.0558e-16 2.29111e-16) OK.
    Max cell openness = 9.88519e-16 OK.
    Max aspect ratio = 45.4329 OK.
    Minimum face area = 2.31973e-09. Maximum face area = 0.277542.  Face area magnitudes OK.
    Min volume = 5.52173e-13. Max volume = 0.12513.  Total volume = 493.918.  Cell volumes OK.
    Mesh non-orthogonality Max: 64.9944 average: 8.8021
    Non-orthogonality check OK.
    Face pyramids OK.
 ***Max skewness = 7.45245, 5 highly skew faces detected which may impair the quality of the results
  <<Writing 5 skew faces to set skewFaces
    Coupled point location match (average 0) OK.

Failed 1 mesh checks.

End
Attached Images
File Type: png Screenshot_30.png (74.5 KB, 27 views)
File Type: png Screenshot_29.png (61.7 KB, 25 views)
sancho78rus is offline   Reply With Quote

Old   November 27, 2021, 14:49
Default
  #2
New Member
 
Anton
Join Date: Nov 2021
Location: Saint-Petersburg
Posts: 10
Rep Power: 4
sancho78rus is on a distinguished road
If ignore it and run mpirun potentialFoam, I get this error:
cannot solve incomplete matrix, no diagonal or off-diagonal coefficient
sancho78rus is offline   Reply With Quote

Old   December 10, 2021, 06:19
Default
  #3
Senior Member
 
Join Date: Dec 2019
Location: Cologne, Germany
Posts: 365
Rep Power: 8
geth03 is on a distinguished road
hi,

could you post the checkMesh-result from the simulation that runs without a problem?
geth03 is offline   Reply With Quote

Old   December 10, 2021, 06:30
Default
  #4
New Member
 
Anton
Join Date: Nov 2021
Location: Saint-Petersburg
Posts: 10
Rep Power: 4
sancho78rus is on a distinguished road
Quote:
Originally Posted by geth03 View Post
hi,

could you post the checkMesh-result from the simulation that runs without a problem?
Hi.
Here it is:
Code:
/*---------------------------------------------------------------------------*\
  =========                 |
  \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
   \\    /   O peration     | Website:  https://openfoam.org
    \\  /    A nd           | Version:  9
     \\/     M anipulation  |
\*---------------------------------------------------------------------------*/
Build  : 9-a0f1846504f2
Exec   : checkMesh
Date   : Dec 05 2021
Time   : 13:04:48
Host   : "openfoam-vm"
PID    : 6527
I/O    : uncollated
Case   : /home/anton/dif9
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 polyMesh for time = 0

Time = 0

Mesh stats
    points:           6266492
    faces:            16854825
    internal faces:   16205092
    cells:            5317779
    faces per cell:   6.21687
    boundary patches: 6
    point zones:      0
    face zones:       0
    cell zones:       0

Overall number of cells of each type:
    hexahedra:     4616017
    prisms:        86743
    wedges:        0
    pyramids:      0
    tet wedges:    5159
    tetrahedra:    28
    polyhedra:     609832
    Breakdown of polyhedra by number of faces:
        faces   number of cells
            4   27460
            5   23128
            6   133257
            7   112616
            8   40010
            9   184467
           10   3022
           11   1055
           12   66868
           13   117
           14   185
           15   16753
           16   6
           17   4
           18   880
           21   4

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
            frontAndBack     1640     1792  ok (non-closed singly connected)
                   inlet      120      143  ok (non-closed singly connected)
                  outlet      120      143  ok (non-closed singly connected)
               lowerWall    30740    32145  ok (non-closed singly connected)
               upperWall      400      451  ok (non-closed singly connected)
               motorBike   616713   665767  ok (non-closed singly connected)

Checking geometry...
    Overall domain bounding box (-6 -0.69 -2.5) (14 4.31 2.5)
    Mesh has 3 geometric (non-empty/wedge) directions (1 1 1)
    Mesh has 3 solution (non-empty) directions (1 1 1)
    Boundary openness (7.98522e-17 6.70506e-16 2.90347e-16) OK.
    Max cell openness = 7.42443e-16 OK.
    Max aspect ratio = 37.0962 OK.
    Minimum face area = 1.43585e-08. Maximum face area = 0.255204.  Face area magnitudes OK.
    Min volume = 3.02126e-10. Max volume = 0.125899.  Total volume = 493.879.  Cell volumes OK.
    Mesh non-orthogonality Max: 64.8274 average: 9.24804
    Non-orthogonality check OK.
    Face pyramids OK.
 ***Max skewness = 8.86648, 5 highly skew faces detected which may impair the quality of the results
  <<Writing 5 skew faces to set skewFaces
    Coupled point location match (average 0) OK.

Failed 1 mesh checks.

End
We solved the problem by deleting some holes in model.
sancho78rus is offline   Reply With Quote

Old   December 10, 2021, 06:36
Default
  #5
Senior Member
 
Join Date: Dec 2019
Location: Cologne, Germany
Posts: 365
Rep Power: 8
geth03 is on a distinguished road
when you compare those two checkMesh-results, you see for the case where the problem occurs the following terminal output:

The mesh has multiple regions which are not connected by any face.

i think that was the problem.
geth03 is offline   Reply With Quote

Old   December 10, 2021, 10:30
Default
  #6
New Member
 
Anton
Join Date: Nov 2021
Location: Saint-Petersburg
Posts: 10
Rep Power: 4
sancho78rus is on a distinguished road
Quote:
Originally Posted by geth03 View Post
when you compare those two checkMesh-results, you see for the case where the problem occurs the following terminal output:

The mesh has multiple regions which are not connected by any face.

i think that was the problem.
I understand that. But how could I find these regions?
sancho78rus is offline   Reply With Quote

Old   December 14, 2021, 02:28
Default
  #7
Senior Member
 
Join Date: Dec 2019
Location: Cologne, Germany
Posts: 365
Rep Power: 8
geth03 is on a distinguished road
i think after executing checkmesh, a directory called "sets" will be created in the polymesh directory. according to your checkmesh result those regions are called region1, region2 etc.
if you want to visualize one region for example you can execute the following command in the terminal:
foamToVTK -cellSet region1
a VTK directory will be created in your case directory. you can use paraview now to view your result.
geth03 is offline   Reply With Quote

Old   December 14, 2021, 02:29
Default
  #8
New Member
 
Anton
Join Date: Nov 2021
Location: Saint-Petersburg
Posts: 10
Rep Power: 4
sancho78rus is on a distinguished road
Quote:
Originally Posted by geth03 View Post
i think after executing checkmesh, a directory called "sets" will be created in the polymesh directory. according to your checkmesh result those regions are called region1, region2 etc.
if you want to visualize one region for example you can execute the following command in the terminal:
foamToVTK -cellSet region1
a VTK directory will be created in your case directory. you can use paraview now to view your result.
Thanks for reply.
Will try next time.
sancho78rus is offline   Reply With Quote

Reply


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
Problem with querying the meshing database in CFX-Pre ashtonJ CFX 18 April 18, 2023 23:49
[ANSYS Meshing] Wing leading edge curvature meshing problem Alexia166 ANSYS Meshing & Geometry 2 April 21, 2021 04:29
[ICEM] ICEM CFD volume meshing problem PietW ANSYS Meshing & Geometry 5 September 15, 2020 04:19
Meshing problem in GAMBIT Vidya Raja FLUENT 0 May 20, 2006 23:31
GAMBIT meshing problem Gauthier Lambert Main CFD Forum 1 August 3, 2000 09:22


All times are GMT -4. The time now is 20:19.