Error with cfmesh

A subforum specific to the development of the OpenFoam-based workbenches ( Cfd https://github.com/qingfengxia/Cfd and CfdOF https://github.com/jaheyns/CfdOF )

Moderator: oliveroxtoby

mikew
Posts: 6
Joined: Sat Oct 24, 2020 12:28 pm

Error with cfmesh

Post by mikew »

Hello! I'm running a "wind load on building analysis", and basicaly every time I try to generate the mesh, using cfmesh, with mesh refinement and "relative lenght of the elements for this region" lower than 0.3 I get an error.

Code: Select all

18:09:10  Part to mesh:
  Name: CobAbastCarroVX_, Label: CobAbastCarro, ShapeType: Solid
18:09:10    CharacteristicLengthMax: 3000.0
18:09:10    ElementDimension: 3D
18:09:10    Mesh refinements - getting the elements
18:09:10  Matching refinement regionsTriangulating part: CobAbastCarro:Face1 ... writing to file
18:09:10  Triangulating part: CobAbastCarro:Face2 ... writing to file
18:09:10  Triangulating part: CobAbastCarro:Face3 ... writing to file
18:09:10  Triangulating part: CobAbastCarro:Face4 ... writing to file
18:09:10  Triangulating part: CobAbastCarro:Face5 ... writing to file
18:09:10  Triangulating part: CobAbastCarro:Face6 ... writing to file
18:09:10  Triangulating part: CobAbastCarro:Face7 ... writing to file
18:09:11  Triangulating part: CobAbastCarro:Face8 ... writing to file
18:09:11  Triangulating part: CobAbastCarro:Face9 ... writing to file
18:09:11  Triangulating part: CobAbastCarro:Face10 ... writing to file
18:09:11  Triangulating part: CobAbastCarro:Face11 ... writing to file
18:09:11  Triangulating part: CobAbastCarro:Face12 ... writing to file
18:09:11  Triangulating part: CobAbastCarro:Face13 ... writing to file
18:09:11  Triangulating part: CobAbastCarro:Face14 ... writing to file
18:09:11  Triangulating part: CobAbastCarro:Face15 ... writing to file
18:09:11  Triangulating part: CobAbastCarro:Face16 ... writing to file
18:09:11  Triangulating part: CobAbastCarro:Face17 ... writing to file
18:09:11  Triangulating part: CobAbastCarro:Face18 ... writing to file
18:09:11  Triangulating part: CobAbastCarro:Face19 ... writing to file
18:09:11  Triangulating part: CobAbastCarro:Face20 ... writing to file
18:09:11  Triangulating part: CobAbastCarro:Face21 ... writing to file
18:09:11  Triangulating part: CobAbastCarro:Face22 ... writing to file
18:09:11  Triangulating part: CobAbastCarro:Face23 ... writing to file
18:09:11  Triangulating part: CobAbastCarro:Face24 ... writing to file
18:09:11  Triangulating part: CobAbastCarro:Face25 ... writing to file
18:09:11  Triangulating part: CobAbastCarro:Face26 ... writing to file
18:09:11  Triangulating part: CobAbastCarro:Face27 ... writing to file
18:09:11  Triangulating part: CobAbastCarro:Face28 ... writing to file
18:09:11  Triangulating part: CobAbastCarro:Face29 ... writing to file
18:09:11  Triangulating part: CobAbastCarro:Face30 ... writing to file
18:09:11  Triangulating part: CobAbastCarro:Face31 ... writing to file
18:09:11  Triangulating part: CobAbastCarro:Face32 ... writing to file
18:09:11  Triangulating part: CobAbastCarro:Face33 ... writing to file
18:09:11  Triangulating part: CobAbastCarro:Face34 ... writing to file
18:09:11  Triangulating part: CobAbastCarro:Face35 ... writing to file
18:09:11  Triangulating part: CobAbastCarro:Face36 ... writing to file
18:09:12  Triangulating part: CobAbastCarro:Face37 ... writing to file
18:09:12  Triangulating part: CobAbastCarro:Face38 ... writing to file
18:09:12  Triangulating part: CobAbastCarro:Face39 ... writing to file
18:09:12  Triangulating part: CobAbastCarro:Face40 ... writing to file
18:09:12  Triangulating part: CobAbastCarro:Face41 ... writing to file
18:09:12  Triangulating part: CobAbastCarro:Face42 ... writing to file
18:09:12  Triangulating part: CobAbastCarro:Face43 ... writing to file
18:09:12  Triangulating part: CobAbastCarro:Face44 ... writing to file
18:09:12  Triangulating part: CobAbastCarro:Face45 ... writing to file
18:09:12  Triangulating part: CobAbastCarro:Face46 ... writing to file
18:09:12  Populating mesh dictionaries in folder C:\Users\Mike\Documents\CfdOF\CobAbastCarro\CobAbastCarroVX-\meshCase
18:09:12  Successfully wrote meshCase to folder C:\Users\Mike\Documents\CfdOF\CobAbastCarro\CobAbastCarroVX-\meshCase
18:09:12  Triangulating part: CobAbastCarro:face0 ... writing to file
18:09:12  Triangulating part: CobAbastCarro:face1 ... writing to file
18:09:12  Triangulating part: CobAbastCarro:face2 ... writing to file
18:09:12  Triangulating part: CobAbastCarro:face3 ... writing to file
18:09:12  Triangulating part: CobAbastCarro:face4 ... writing to file
18:09:12  Triangulating part: CobAbastCarro:face5 ... writing to file
18:09:12  Triangulating part: CobAbastCarro:face6 ... writing to file
18:09:12  Triangulating part: CobAbastCarro:face7 ... writing to file
18:09:12  Triangulating part: CobAbastCarro:face8 ... writing to file
18:09:12  Triangulating part: CobAbastCarro:face9 ... writing to file
18:09:12  Triangulating part: CobAbastCarro:face10 ... writing to file
18:09:12  Triangulating part: CobAbastCarro:face11 ... writing to file
18:09:12  Triangulating part: CobAbastCarro:face12 ... writing to file
18:09:12  Triangulating part: CobAbastCarro:face13 ... writing to file
18:09:12  Triangulating part: CobAbastCarro:face14 ... writing to file
18:09:12  Triangulating part: CobAbastCarro:face15 ... writing to file
18:09:12  Triangulating part: CobAbastCarro:face16 ... writing to file
18:09:12  Triangulating part: CobAbastCarro:face17 ... writing to file
18:09:13  Triangulating part: CobAbastCarro:face18 ... writing to file
18:09:13  Triangulating part: CobAbastCarro:face19 ... writing to file
18:09:13  Triangulating part: CobAbastCarro:face20 ... writing to file
18:09:13  Triangulating part: CobAbastCarro:face21 ... writing to file
18:09:13  Triangulating part: CobAbastCarro:face22 ... writing to file
18:09:13  Triangulating part: CobAbastCarro:face23 ... writing to file
18:09:13  Triangulating part: CobAbastCarro:face24 ... writing to file
18:09:13  Triangulating part: CobAbastCarro:face25 ... writing to file
18:09:13  Triangulating part: CobAbastCarro:face26 ... writing to file
18:09:13  Triangulating part: CobAbastCarro:face27 ... writing to file
18:09:13  Triangulating part: CobAbastCarro:face28 ... writing to file
18:09:13  Triangulating part: CobAbastCarro:face29 ... writing to file
18:09:13  Triangulating part: CobAbastCarro:face30 ... writing to file
18:09:13  Triangulating part: CobAbastCarro:face31 ... writing to file
18:09:13  Triangulating part: CobAbastCarro:face32 ... writing to file
18:09:13  Triangulating part: CobAbastCarro:face33 ... writing to file
18:09:13  Triangulating part: CobAbastCarro:face34 ... writing to file
18:09:13  Triangulating part: CobAbastCarro:face35 ... writing to file
18:09:13  Triangulating part: CobAbastCarro:face36 ... writing to file
18:09:13  Triangulating part: CobAbastCarro:face37 ... writing to file
18:09:13  Triangulating part: CobAbastCarro:face38 ... writing to file
18:09:13  Triangulating part: CobAbastCarro:face39 ... writing to file
18:09:13  Triangulating part: CobAbastCarro:face40 ... writing to file
18:09:13  Triangulating part: CobAbastCarro:face41 ... writing to file
18:09:13  Triangulating part: CobAbastCarro:face42 ... writing to file
18:09:13  Triangulating part: CobAbastCarro:face43 ... writing to file
18:09:13  Triangulating part: CobAbastCarro:face44 ... writing to file
18:09:13  Triangulating part: CobAbastCarro:face45 ... writing to file
18:09:13  Triangulating part: CobAbastCarro:face46 ... writing to file
18:09:13  Triangulating part: CobAbastCarro:face47 ... writing to file
18:09:14  Triangulating part: CobAbastCarro:face48 ... writing to file
18:09:14  Triangulating part: CobAbastCarro:face49 ... writing to file
18:09:14  Triangulating part: CobAbastCarro:face50 ... writing to file
18:09:14  Triangulating part: CobAbastCarro:face51 ... writing to file
18:09:15  Executing: powershell.exe docker-machine.exe start default; docker-machine.exe env --shell powershell default | Invoke-Expression; docker start of_2006; docker exec --privileged of_2006 bash -c "su -c 'cd \`"/home/ofuser/workingDir/Documents/CfdOF/CobAbastCarro/CobAbastCarroVX-/meshCase\`" && ./Allmesh' -l ofuser"
18:09:15  Raw command:  ['C:/FreeCAD_0.19.22894-Win-Conda_vc14.x-x86_64/bin\\python.exe', '-u', 'C:\\Users\\Mike\\AppData\\Roaming\\FreeCAD\\Mod\\CfdOF\\WindowsRunWrapper.py', 'powershell.exe', 'docker-machine.exe start default; docker-machine.exe env --shell powershell default | Invoke-Expression; docker start of_2006; docker exec --privileged of_2006 bash -c "su -c \'cd \\`"/home/ofuser/workingDir/Documents/CfdOF/CobAbastCarro/CobAbastCarroVX-/meshCase\\`" && ./Allmesh\' -l ofuser"']
18:09:15  Starting "default"...
18:09:15  Machine "default" is already running.
18:09:16  of_2006
18:09:16  /*---------------------------------------------------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  v2006                                 |
|   \\  /    A nd           | Website:  www.openfoam.com                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
Build  : v2006 OPENFOAM=2006
Arch   : "LSB;label=32;scalar=64"
Exec   : surfaceFeatureEdges -angle 60 constant/triSurface/CobAbastCarroVX__Geometry.stl CobAbastCarroVX__Geometry.fms
Date   : Nov 07 2020
Time   : 22:09:18
Host   : default
PID    : 2686
18:09:16  I/O    : uncollated
18:09:16  Case   : /home/ofuser/workingDir/Documents/CfdOF/CobAbastCarro/CobAbastCarroVX-/meshCase
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

18:09:16  // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Writing : "CobAbastCarroVX__Geometry.fms"
18:09:16  End

18:09:16  /*---------------------------------------------------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  v2006                                 |
|   \\  /    A nd           | Website:  www.openfoam.com                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
Build  : v2006 OPENFOAM=2006
Arch   : "LSB;label=32;scalar=64"
Exec   : cartesianMesh
Date   : Nov 07 2020
Time   : 22:09:18
Host   : default
PID    : 2692
I/O    : uncollated
Case   : /home/ofuser/workingDir/Documents/CfdOF/CobAbastCarro/CobAbastCarroVX-/meshCase
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

18:09:16  Created 52 surface patches
18:09:16  Setting root cube size and refinement parameters
Root box (-546.5 -404.942 -360) (221.5 363.058 408)
18:09:16  Requested cell size corresponds to octree level 8
Requested boundary cell size corresponds to octree level 8
Refining boundary
Refining boundary boxes to the given size
18:09:16  Finished refining boundary boxes
18:09:16  Refining boxes intersecting surface meshes
18:09:16  Finished refinement of boxes intersecting surface meshes
Performing automatic refinement
18:09:18  Performing automatic refinement
Marking inside/outside.
18:09:18  Number of internal boxes is 3548909
Number of outside boxes is 2575158
18:09:21  Number of data boxes is 217486
Number of unknown boxes is 0
18:09:21  Refining boxes near DATA boxes
18:09:21  Marking inside/outside.
18:09:22  Number of internal boxes is 3714375
18:09:24  Number of outside boxes is 2583878
Number of data boxes is 224026
Number of unknown boxes is 0
Finished refining boxes near DATA boxes
18:09:24  Extracting polyMesh
Creating octree vertices
18:09:24  Octree nodes 4105437
18:09:28  Resizing points!
18:09:28  Finished creating octree vertices
18:09:28  Creating polyMesh from octree
18:09:28  ./Allmesh: line 4:  2692 Killed                  "$@" > >(tee -a log."$sol") 2> >(tee -a log."$sol" >&2)
Error.png
Error.png (101.73 KiB) Viewed 2690 times
Relative element size.png
Relative element size.png (109.94 KiB) Viewed 2690 times
With values higher 0.3 I am able to generate the mesh, but not with the level of detailing that I want for the smaller parts of the roof.
Mesh runs but with bad mesh on edges.png
Mesh runs but with bad mesh on edges.png (100.51 KiB) Viewed 2690 times
Bad mesh on edges.png
Bad mesh on edges.png (705.44 KiB) Viewed 2690 times
Any ideas of how can I use smaller relative length value to have better mesh close to the surfaces in this case?

Code: Select all

OS: Windows 10 (10.0)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.22894 (Git)
Build type: Release
Branch: master
Hash: 9eb080488d970d313c538473e7272117ea0a7cd1
Python version: 3.8.6
Qt version: 5.12.5
Coin version: 4.0.0
OCC version: 7.4.0
Locale: Portuguese/Brazil (pt_BR)
Attachments
CobAbastCarroVX-.FCStd
(62.93 KiB) Downloaded 85 times
thschrader
Veteran
Posts: 3158
Joined: Sat May 20, 2017 12:06 pm
Location: Germany

Re: Error with cfmesh

Post by thschrader »

You can use an additional volume (the pink cube) as volume refinement.
Surface refinement less than factor 0,3 works for me.
CobAbastCarroVX_ts.FCStd
(65.15 KiB) Downloaded 64 times
Done with:
OS: Windows 10 (10.0)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.22846 (Git)
Build type: Release
Branch: master
Hash: 1f46b72491a0008384a6db4f2615a656249f6f08
Python version: 3.6.8
Qt version: 5.12.1
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: German/Germany (de_DE)
mesh_refinement.JPG
mesh_refinement.JPG (73.31 KiB) Viewed 2615 times
thschrader
Veteran
Posts: 3158
Joined: Sat May 20, 2017 12:06 pm
Location: Germany

Re: Error with cfmesh

Post by thschrader »

model runs...
pressure.JPG
pressure.JPG (29.22 KiB) Viewed 2601 times
mikew
Posts: 6
Joined: Sat Oct 24, 2020 12:28 pm

Re: Error with cfmesh

Post by mikew »

thschrader wrote: Tue Nov 10, 2020 10:35 am You can use an additional volume (the pink cube) as volume refinement.
Surface refinement less than factor 0,3 works for me.
CobAbastCarroVX_ts.FCStd
Done with:
OS: Windows 10 (10.0)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.22846 (Git)
Build type: Release
Branch: master
Hash: 1f46b72491a0008384a6db4f2615a656249f6f08
Python version: 3.6.8
Qt version: 5.12.1
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: German/Germany (de_DE)
mesh_refinement.JPG
Thank you for the reply! I've tried generating the mesh with your model, and it worked. But when I try to run the solver, I get a similar error to the one I had before. I've even tried running on another PC, but got the same result.
Error.png
Error.png (68.04 KiB) Viewed 2572 times
I've also reduced and simplified the model, to see if I could get better results (like having the border of the roof divided by 5 at least), and also used a volume refinement like you suggested. After a few tries, mesh generated normally, but the solver got an error.
Error 2.png
Error 2.png (68.7 KiB) Viewed 2572 times
So, sometimes I get the error when generating the mesh, and even when I don't, the solver shows what seems to be the same error.

OS: Windows 10 (10.0)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.22846 (Git)
Build type: Release
Branch: master
Hash: 1f46b72491a0008384a6db4f2615a656249f6f08
Python version: 3.8.6
Qt version: 5.12.5
Coin version: 4.0.0
OCC version: 7.4.0
Locale: Portuguese/Brazil (pt_BR)
Attachments
Error 2.txt
(48.68 KiB) Downloaded 59 times
Error.txt
(75.3 KiB) Downloaded 62 times
CobAbastCarroVXneg.FCStd
(49.82 KiB) Downloaded 74 times
thschrader
Veteran
Posts: 3158
Joined: Sat May 20, 2017 12:06 pm
Location: Germany

Re: Error with cfmesh

Post by thschrader »

Sorry, I cant reproduce the error.
Which openFOAM version do you use?
I run on bluecfd.
Try to run a non-parallel simulation at first.
Sometimes the MPI stuck.
mikew
Posts: 6
Joined: Sat Oct 24, 2020 12:28 pm

Re: Error with cfmesh

Post by mikew »

thschrader wrote: Tue Nov 10, 2020 4:31 pm Sorry, I cant reproduce the error.
Which openFOAM version do you use?
I run on bluecfd.
Try to run a non-parallel simulation at first.
Sometimes the MPI stuck.
I'm using OpenFOAM-v2006 with Windows Docker (the default installation from CfdOf). I've tried running a non-parallel simulation, but got the same error.
thschrader
Veteran
Posts: 3158
Joined: Sat May 20, 2017 12:06 pm
Location: Germany

Re: Error with cfmesh

Post by thschrader »

mikew wrote: Tue Nov 10, 2020 5:35 pm ...
I've tried running a non-parallel simulation, but got the same error.
In my opinion this is still an MPI related error, even when runnung a non-parallel sim.
But I have no idea how to fix this...

EDIT: you could try bluecfd... ;)
https://bluecfd.github.io/Core/Downloads/
mpi_runtime_error.JPG
mpi_runtime_error.JPG (96.87 KiB) Viewed 2502 times
mikew
Posts: 6
Joined: Sat Oct 24, 2020 12:28 pm

Re: Error with cfmesh

Post by mikew »

thschrader wrote: Wed Nov 11, 2020 7:19 am
mikew wrote: Tue Nov 10, 2020 5:35 pm ...
I've tried running a non-parallel simulation, but got the same error.
In my opinion this is still an MPI related error, even when runnung a non-parallel sim.
But I have no idea how to fix this...

EDIT: you could try bluecfd... ;)
https://bluecfd.github.io/Core/Downloads/

mpi_runtime_error.JPG
I've just installed blueCFD-Core-2017-2, and also cfmesh and hisa from preferences, but it does not recognize it when I run the dependency check.
blueCFD_dependency.png
blueCFD_dependency.png (81.39 KiB) Viewed 2463 times
Tried to download the zip files for cfmesh and hisa, and installed by "choosing existing file", but got the same result, installation completed but dependency check fails, even though files are actually inside the blueCFD folder.
cfmesh_hisa.png
cfmesh_hisa.png (63.49 KiB) Viewed 2463 times
I've seen similar topics on the forum recently, so maybe it's not a problem just for me... Also noticed that blueCDF runs an older version of openfoam. Is there a way to use the most recent version on Windows 10 with blueCFD, or just with the Docker (wich was resulting the original error)?
julieng
Posts: 106
Joined: Sun Nov 25, 2018 8:57 pm

Re: Error with cfmesh

Post by julieng »

Hello,

I have an error with cfMesh. I can mesh solids with snappyHexMesh and GMSH and I have the following error with cfMesh

Code: Select all

20:58:06  App::DocumentObjectGroupPython / Pad_Mesh: Links go out of the allowed scope
20:58:55  Part to mesh:
  Name: Pad, Label: Pad, ShapeType: Solid
20:58:55    CharacteristicLengthMax: 50.0
20:58:55  Matching boundary patches
20:58:55  Matching boundary layer regions
20:58:55    ElementDimension: 3D
20:58:55  Populating mesh dictionaries in folder C:\Users\julien\AppData\Local\Temp\meshCase
20:58:55  Successfully wrote meshCase to folder C:\Users\julien\AppData\Local\Temp\meshCase
20:58:55  Triangulating part Pad, patch patch_1_0 ... writing to file
20:58:55  Triangulating part Pad, patch patch_2_0 ... writing to file
20:58:55  Triangulating part Pad, patch patch_3_0 ... writing to file
20:58:56  App::DocumentObjectGroupPython / Pad_Mesh: Links go out of the allowed scope
20:58:57  Part to mesh:
  Name: Pad, Label: Pad, ShapeType: Solid
20:58:57    CharacteristicLengthMax: 50.0
20:58:57  Matching boundary patches
20:58:57  Matching boundary layer regions
20:58:57    ElementDimension: 3D
20:58:57  Populating mesh dictionaries in folder C:\Users\julien\AppData\Local\Temp\meshCase
20:58:57  Successfully wrote meshCase to folder C:\Users\julien\AppData\Local\Temp\meshCase
20:58:57  Triangulating part Pad, patch patch_1_0 ... writing to file
20:58:57  Triangulating part Pad, patch patch_2_0 ... writing to file
20:58:57  Triangulating part Pad, patch patch_3_0 ... writing to file
20:58:58  Executing: C:\PROGRA~1\BLUECF~1\msys64\usr\bin\bash --login -O expand_aliases -c cd "/c/Users/julien/AppData/Local/Temp/meshCase" && ./Allmesh
20:58:58  Raw command:  ['C:/Program Files/FreeCAD_019/FreeCAD_0.19.22988_Win-LPv12.1.6_vc14.x-x86-64/bin\\python.exe', '-u', 'C:\\Users\\julien\\AppData\\Roaming\\FreeCAD\\Mod\\CfdOF\\WindowsRunWrapper.py', 'C:\\PROGRA~1\\BLUECF~1\\msys64\\usr\\bin\\bash', '--login', '-O', 'expand_aliases', '-c', 'cd "/c/Users/julien/AppData/Local/Temp/meshCase" && ./Allmesh']
20:59:00  Setting environment for OpenFOAM 5.x mingw-w64 Double Precision (of5-64), using MSMPI71 - please wait...
20:59:00  Environment is now ready. Notes:
   - You can change between installed versions by running: ofmenu
   - You can change to other predefined versions by running: ofmenuNew
20:59:03  /*---------------------------------------------------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  5.x                                   |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
/*   Windows 32 and 64 bit porting by blueCAPE: http://www.bluecape.com.pt   *\
|  Based on Windows porting (2.0.x v4) by Symscape: http://www.symscape.com   |
\*---------------------------------------------------------------------------*/
Build  : 5.x-963176928289
Exec   : C:/PROGRA~1/BLUECF~1/ofuser-of5/platforms/mingw_w64GccDPInt32Opt/bin/surfaceFeatureEdges.exe -angle 60 constant/triSurface/Pad_Geometry.stl Pad_Geometry.fms
Date   : Nov 18 2020
Time   : 20:59:03
Host   : "PC_JULIEN"
PID    : 71224
I/O    : uncollated
Case   : C:/Users/julien/AppData/Local/Temp/meshCase
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

20:59:03  // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Writing : "Pad_Geometry.fms"
End

20:59:03  /*---------------------------------------------------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  5.x                                   |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
/*   Windows 32 and 64 bit porting by blueCAPE: http://www.bluecape.com.pt   *\
|  Based on Windows porting (2.0.x v4) by Symscape: http://www.symscape.com   |
\*---------------------------------------------------------------------------*/
Build  : 5.x-963176928289
Exec   : C:/PROGRA~1/BLUECF~1/ofuser-of5/platforms/mingw_w64GccDPInt32Opt/bin/cartesianMesh.exe
Date   : Nov 18 2020
Time   : 20:59:04
Host   : "PC_JULIEN"
PID    : 64840
I/O    : uncollated
Case   : C:/Users/julien/AppData/Local/Temp/meshCase
nProcs : 1
20:59:04  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

20:59:04  Created 6 surface patches
Setting root cube size and refinement parameters
Root box (-3.2 -4.45 -3.2) (3.2 1.95 3.2)
Requested cell size corresponds to octree level 7
Requested boundary cell size corresponds to octree level 7
Refining boundary
Refining boundary boxes to the given size
20:59:04  Finished refining boundary boxes
Performing automatic refinement
Performing automatic refinement
Marking inside/outside.
20:59:04  Number of internal boxes is 0
Number of outside boxes is 1272
Number of data boxes is 416
Number of unknown boxes is 0
Refining boxes near DATA boxes
20:59:04  Marking inside/outside.
Number of internal boxes is 0
Number of outside boxes is 1272
Number of data boxes is 416
Number of unknown boxes is 0
Finished refining boxes near DATA boxes
Extracting polyMesh
Creating octree vertices
Octree nodes 0
Resizing points!
Finished creating octree vertices
Creating polyMesh from octree
Reordering boundary faces 
Finished reordering boundary faces
Finished creating polyMesh
Mesh has :
0 vertices 
0 faces
0 cells
20:59:04  

--> FOAM FATAL ERROR: 
There are no cells in the mesh!
The reasons for this can be fwofold:
1. Inadequate mesh resolution.
2. You maxCellSize is a multiplier of the domain length. This can be reolved by reducing the maxCellSize by a fraction.i.e. 2.49999 instead of 2.5.

    From function void cartesianMeshExtractor::createMesh()
    in file cartesianMesh/cartesianMeshExtractor/cartesianMeshExtractor.C at line 108.

FOAM exiting

20:59:04  App::DocumentObjectGroupPython / Pad_Mesh: Links go out of the allowed scope
*
Julien
julieng
Posts: 106
Joined: Sun Nov 25, 2018 8:57 pm

Re: Error with cfmesh

Post by julieng »

In modifying the max lengh cell it can works.
Post Reply