OpenFOAM ERROR with CfdOF Solver

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
cfdee
Posts: 7
Joined: Thu Sep 05, 2019 9:13 am

OpenFOAM ERROR with CfdOF Solver

Post by cfdee »

Hi everybody

I want to simulate a laval-nozzle with the CfdOF addon.

In a first step I prefer a 2D simulation to save calculation time and get a first impression of the behaviour. Now I'm at the point where I could make a mesh which looks not too bad in my opinion (2D, cfMesh, 0.8mm base size, Surface Mesh refinement, rel. element size 0.1, 3 boundary layers with expansion ratio 1.2). Two pitcures can be found in the attachement just to get an impression of the model (attached files for more detailes):

After defining the boundary conditions (Inlet on the left--> Uniform Velocity, Outlet on the right --> Static pressure, Symmetry condition at the bottom, Rest of faces as walls, please see attached files) i try to solve the Problem. Now I have the problem that I get the following error:

Code: Select all

-> FOAM FATAL IO ERROR: 
Cannot find patchField entry for cyclic _master
Is your field uptodate with split cyclics?
Run foamUpgradeCyclics to convert mesh and fields to split cyclics.

file: C:/Users/SIMON~1.MUE/AppData/Local/Temp/casexy/0/p.boundaryField from line 26 to line 58.

    From function void Foam::GeometricField<Type, PatchField, GeoMesh>::Boundary::readField(const Foam::DimensionedField<TypeR, GeoMesh>&, const Foam::dictionary&) [with Type = double; PatchField = Foam::fvPatchField; GeoMesh = Foam::volMesh]
    in file X:/OpenFOAM-5.x/src/OpenFOAM/fields/GeometricFields/GeometricField/GeometricBoundaryField.C at line 180.

FOAM exiting
I found that when I delete the following part from the file "C:\Users\cfdee.cfdee\AppData\Local\Temp\casexy\system\createPatchDict" the error does not occur anymore but a different error occurs.

deleted part:

Code: Select all

    {
        name _master;
        patchInfo
        {
            type cyclic;
            matchTolerance 1e-04;
            neighbourPatch _slave;
        }

        constructFrom patches;
        patches (None);
    }

    {
        name _slave;
        patchInfo
        {
            type cyclic;
            matchTolerance 1e-04;
            neighbourPatch _master;
        }

        constructFrom patches;
        patches ( None);
    }


Next error:

Code: Select all

smoothSolver:  Solving for Uy, Initial residual = 1, Final residual = 0.0035343493, No Iterations 2
[2] Generating stack trace...
[2] 

Backtrace:
	ZN10StackTraceC1Ev [0x705c1465+0x25]
		 module: C:\BLUECF~1\ThirdParty-5.x\platforms\mingw_w64GccDPInt32\lib\libstack_trace.dll
	ZN4Foam5error10printStackERNS_7OstreamE [0x1051c88+0x218]
		 module: C:\BLUECF~1\OpenFOAM-5.x\platforms\mingw_w64GccDPInt32Opt\lib\libOpenFOAM.dll
	ZN4Foam6sigFpe13sigFpeHandlerEi [0x1052af3+0x33]
		 module: C:\BLUECF~1\OpenFOAM-5.x\platforms\mingw_w64GccDPInt32Opt\lib\libOpenFOAM.dll
	(No symbol) [0x403cad]
		 module: C:\BLUECF~1\OpenFOAM-5.x\platforms\mingw_w64GccDPInt32Opt\bin\simpleFoam.exe
	_C_specific_handler [0x7fff63cc8068+0x98]
		 module: C:\WINDOWS\System32\msvcrt.dll
	0_chkstk [0x7fff6688477f+0x11f]
		 module: C:\WINDOWS\SYSTEM32\ntdll.dll
	RtlWalkFrameChain [0x7fff667e4bef+0x14bf]
		 module: C:\WINDOWS\SYSTEM32\ntdll.dll
	KiUserExceptionDispatcher [0x7fff668834ee+0x2e]
		 module: C:\WINDOWS\SYSTEM32\ntdll.dll
	ZN4Foam22symGaussSeidelSmoother6smoothERKNS_4wordERNS_5FieldIdEERKNS_9lduMatrixERKS5_RKNS_10FieldFieldIS4_dEERKNS_8UPtrListIKNS_17lduInterfaceFieldEEEhi [0xef88fc+0x3ac]
		 module: C:\BLUECF~1\OpenFOAM-5.x\platforms\mingw_w64GccDPInt32Opt\lib\libOpenFOAM.dll
	ZNK4Foam22symGaussSeidelSmoother6smoothERNS_5FieldIdEERKS2_hi [0xef8d2f+0x3f]
		 module: C:\BLUECF~1\OpenFOAM-5.x\platforms\mingw_w64GccDPInt32Opt\lib\libOpenFOAM.dll
	ZNK4Foam12smoothSolver5solveERNS_5FieldIdEERKS2_h [0xef35ea+0x2da]
		 module: C:\BLUECF~1\OpenFOAM-5.x\platforms\mingw_w64GccDPInt32Opt\lib\libOpenFOAM.dll
	(No symbol) [0x42b02e]
		 module: C:\BLUECF~1\OpenFOAM-5.x\platforms\mingw_w64GccDPInt32Opt\bin\simpleFoam.exe
	(No symbol) [0x42c235]
		 module: C:\BLUECF~1\OpenFOAM-5.x\platforms\mingw_w64GccDPInt32Opt\bin\simpleFoam.exe
	(No symbol) [0x42c535]
		 module: C:\BLUECF~1\OpenFOAM-5.x\platforms\mingw_w64GccDPInt32Opt\bin\simpleFoam.exe
	(No symbol) [0x44e045]
		 module: C:\BLUECF~1\OpenFOAM-5.x\platforms\mingw_w64GccDPInt32Opt\bin\simpleFoam.exe
	(No symbol) [0x4013f7]
		 module: C:\BLUECF~1\OpenFOAM-5.x\platforms\mingw_w64GccDPInt32Opt\bin\simpleFoam.exe
	(No symbol) [0x40152b]
		 module: C:\BLUECF~1\OpenFOAM-5.x\platforms\mingw_w64GccDPInt32Opt\bin\simpleFoam.exe
	BaseThreadInitThunk [0x7fff64037974+0x14]
		 module: C:\WINDOWS\System32\KERNEL32.DLL
	RtlUserThreadStart [0x7fff6684a271+0x21]
		 module: C:\WINDOWS\SYSTEM32\ntdll.dll

job aborted:
[ranks] message

[0-1] terminated

[2] process exited without calling finalize

[3] terminated

---- error analysis -----

[2] on WSBOX16
simpleFoam ended prematurely and may have crashed. exit code 3

---- error analysis -----
C:\Program Files\FreeCAD 0.18\bin\lib\site-packages\matplotlib\axes\_base.py:3443: UserWarning: Attempting to set identical bottom==top results
in singular transformations; automatically expanding.
bottom=1.0, top=1.0
  'bottom=%s, top=%s') % (bottom, top))
I have no idea what the problem is. I would really appreciate if someone could help me. Thank you

OS: Windows 10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.16131 (Git)
Build type: Release
Branch: releases/FreeCAD-0-18
Hash: 3129ae4296e40ed20e7b3d460b86e6969acbe1c3
Python version: 3.6.6
Qt version: 5.6.2
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: German/Switzerland (de_CH)
Attachments
Netz_kpl.JPG
Netz_kpl.JPG (77.69 KiB) Viewed 3442 times
Netz_Detail.JPG
Netz_Detail.JPG (61.18 KiB) Viewed 3442 times
Lavalduese_Test_.FCStd
(481.16 KiB) Downloaded 69 times
casexy.zip
(8.68 KiB) Downloaded 65 times
meshCase.zip
(649.09 KiB) Downloaded 70 times
User avatar
oliveroxtoby
Posts: 840
Joined: Fri Dec 23, 2016 9:43 am
Location: South Africa

Re: OpenFOAM ERROR with CfdOF Solver

Post by oliveroxtoby »

cfdee wrote: Mon Sep 09, 2019 7:21 am Hi everybody

I want to simulate a laval-nozzle with the CfdOF addon.

In a first step I prefer a 2D simulation to save calculation time and get a first impression of the behaviour. Now I'm at the point where I could make a mesh which looks not too bad in my opinion (2D, cfMesh, 0.8mm base size, Surface Mesh refinement, rel. element size 0.1, 3 boundary layers with expansion ratio 1.2). Two pitcures can be found in the attachement just to get an impression of the model (attached files for more detailes):

After defining the boundary conditions (Inlet on the left--> Uniform Velocity, Outlet on the right --> Static pressure, Symmetry condition at the bottom, Rest of faces as walls, please see attached files) i try to solve the Problem. Now I have the problem that I get the following error:

Code: Select all

-> FOAM FATAL IO ERROR: 
Cannot find patchField entry for cyclic _master
Is your field uptodate with split cyclics?
Run foamUpgradeCyclics to convert mesh and fields to split cyclics.

Bug fixed - thank you.

Fixed direction of inlet velocity and pressure initialisation value to get the case to run.
Attachments
Lavalduese_Test_.FCStd
(27.5 KiB) Downloaded 195 times
cfdee
Posts: 7
Joined: Thu Sep 05, 2019 9:13 am

Re: OpenFOAM ERROR with CfdOF Solver

Post by cfdee »

Thank you for the quick response oliveroxtoby. :D :D . Simulatin is running 8-)
Post Reply