Simulation exited with error: CfdOF Solver in FreeCAD Windows Version

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

Post Reply
adani100
Posts: 4
Joined: Mon Oct 24, 2022 1:51 pm

Simulation exited with error: CfdOF Solver in FreeCAD Windows Version

Post by adani100 »

Hi,

Without using Linux, I installed OpenFOAM for Windows and am using FreeCAD to execute it. I verified that all of the dependencies were installed and suitable for CfdOF. However, the solver keeps crashing while attempting to run a basic air flow example in a pipe like follows:

Writing case to folder C:\Users\Nabil\AppData\Local\Temp
08:34:28 Matching boundary conditions ...
08:34:29 Populating createPatchDict to update BC names
08:34:29 Successfully wrote case to folder C:\Users\Nabil\AppData\Local\Temp
08:34:30 Executing: ./Allrun in C:\Users\Nabil\AppData\Local\Temp\case
08:34:30 Sourcing OpenFOAM environment...
08:34:30 openfoam: windows support (mingw64) is runtime only
08:34:37 /*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2206 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Build : 34e226dfe3-20211220 OPENFOAM=2206 version=v2206
Arch : "LSB;label=32;scalar=64"
Exec : E:\OpenFoam\v2206\msys64\home\ofuser\OpenFOAM\OpenFOAM-v2206\platforms\win64MingwDPInt32Opt\bin\createPatch.exe -overwrite
Date : Oct 30 2022
Time : 08:34:53
Host : NABIL-LAPTOP
PID : 12324
I/O : uncollated
08:34:53 Case : C:/Users/Nabil/AppData/Local/Temp/case
nProcs : 1
trapFpe: Floating point exception trapping enabled (FOAM_SIGFPE).
08:34:53 fileModificationChecking : Monitoring run-time modified files using timeStampMaster (fileModificationSkew 5, maxFileModificationPolls 20)
allowSystemOperations : Allowing user-supplied system call operations

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

08:34:53 Create mesh for time = 0

Reading "system/createPatchDict"

08:34:53 --> FOAM Warning :
From Foam::labelHashSet Foam::polyBoundaryMesh::patchSet(const Foam::UList<Foam::wordRe>&, bool, bool) const
in file meshes/polyMesh/polyBoundaryMesh/polyBoundaryMesh.C at line 899
Cannot find any patch names matching patch_0_0


Adding patches to mesh region0

Adding new patch inlet from
{
type patch;
nFaces 0;
startFace 0;
}

Adding new patch outlet from
{
type patch;
nFaces 0;
startFace 0;
}

Adding new patch wall from
{
type wall;
nFaces 0;
startFace 0;
}

Adding new patch defaultFaces from
{
type patch;
nFaces 0;
startFace 0;
}

08:34:53


Repatching mesh region0

Moving faces from patch patch_1_0 to patch 3
Moving faces from patch patch_2_0 to patch 4
Moving faces from patch patch_3_0 to patch 5
08:34:53 --> FOAM Warning :
From void Foam::polyBoundaryMesh::calcGroupIDs() const
in file meshes/polyMesh/polyBoundaryMesh/polyBoundaryMesh.C at line 100
Removed group 'wall' which clashes with patch 5 of the same name.
--> FOAM Warning :
From Foam::labelHashSet Foam::polyBoundaryMesh::patchSet(const Foam::UList<Foam::wordRe>&, bool, bool) const
in file meshes/polyMesh/polyBoundaryMesh/polyBoundaryMesh.C at line 893
Cannot find any patch or group names matching patch_0_0
Doing topology modification to order faces.

08:34:53 Not synchronising points.

Removing patches with no faces in them.

08:34:53 Removed zero-sized patch patch_1_0 type patch at position 0
Removed zero-sized patch patch_3_0 type patch at position 1
Removed zero-sized patch patch_2_0 type patch at position 2
Removed zero-sized patch defaultFaces type patch at position 6


Writing repatched mesh region0 to 0

08:34:53 End

08:34:54 /*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2206 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Build : 34e226dfe3-20211220 OPENFOAM=2206 version=v2206
Arch : "LSB;label=32;scalar=64"
Exec : E:\OpenFoam\v2206\msys64\home\ofuser\OpenFOAM\OpenFOAM-v2206\platforms\win64MingwDPInt32Opt\bin\decomposePar.exe -force
Date : Oct 30 2022
Time : 08:34:54
Host : NABIL-LAPTOP
PID : 19516
I/O : uncollated
08:34:54 Case : C:/Users/Nabil/AppData/Local/Temp/case
nProcs : 1
trapFpe: Floating point exception trapping enabled (FOAM_SIGFPE).
08:34:54 fileModificationChecking : Monitoring run-time modified files using timeStampMaster (fileModificationSkew 5, maxFileModificationPolls 20)
allowSystemOperations : Allowing user-supplied system call operations

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

08:34:54

Decomposing mesh

Create mesh
08:34:54
Calculating distribution of cells
Decomposition method scotch [4] (region region0)
08:34:54
Finished decomposition in 0.048 s

Calculating original mesh data

Distributing cells to processors

Distributing faces to processors
08:34:54
Distributing points to processors

Constructing processor meshes
08:34:54
Processor 0
Number of cells = 4323
Number of points = 1295
Number of faces shared with processor 1 = 22
Number of processor patches = 1
Number of processor faces = 22
Number of boundary faces = 2020

Processor 1
Number of cells = 4304
Number of points = 1295
Number of faces shared with processor 0 = 22
Number of faces shared with processor 2 = 26
Number of processor patches = 2
Number of processor faces = 48
Number of boundary faces = 2010

Processor 2
Number of cells = 4369
Number of points = 1311
Number of faces shared with processor 1 = 26
Number of faces shared with processor 3 = 26
Number of processor patches = 2
Number of processor faces = 52
Number of boundary faces = 2012

Processor 3
Number of cells = 4370
Number of points = 1324
Number of faces shared with processor 2 = 26
Number of processor patches = 1
Number of processor faces = 26
Number of boundary faces = 2096

Number of processor faces = 74
Max number of cells = 4370 (0.65645514% above average 4341.5)
Max number of processor patches = 2 (33.333333% above average 1.5)
Max number of faces between processors = 52 (40.540541% above average 37)

08:34:54 Time = 0
08:34:54
Processor 0: field transfer
08:34:54 Processor 1: field transfer
08:34:54 Processor 2: field transfer
08:34:55 Processor 3: field transfer
08:34:55
End

08:34:55

Note:
- I have tried different base element size using gmsh.
- The residual plot is not showing up at all.

Could anyone please help? What am I missing. ;)
Attachments
FluidFlow.FCStd
(23.93 KiB) Downloaded 30 times
adani100
Posts: 4
Joined: Mon Oct 24, 2022 1:51 pm

Re: Simulation exited with error: CfdOF Solver in FreeCAD Windows Version

Post by adani100 »

Hi,

Sorry Folks. I have restarted my computer and now it is working. It seems that I had to restart the FreeCad after installing HiSA and cFMesh. I also fixed the inlet pressure to a lower reasonable value.

Thank you all,
User avatar
NewJoker
Veteran
Posts: 3089
Joined: Sun Oct 11, 2020 7:49 pm

Re: Simulation exited with error: CfdOF Solver in FreeCAD Windows Version

Post by NewJoker »

Next time please ask here: https://forum.freecadweb.org/viewforum.php?f=37

That subforum is meant for questions related to CfdOF workbench.
User avatar
Shalmeneser
Veteran
Posts: 9580
Joined: Wed Dec 23, 2020 12:04 am
Location: Fr

Re: Simulation exited with error: CfdOF Solver in FreeCAD Windows Version

Post by Shalmeneser »

Code: Select all

Please use code tags to better readibility
Post Reply