Flow through Cone with pressure drop

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
User avatar
r.tec
Posts: 533
Joined: Thu Oct 23, 2014 4:06 pm
Location: Bad Münstereifel, NRW, Germany
Contact:

Flow through Cone with pressure drop

Post by r.tec »

Hello,
I need some help as it seem that I cannot come any further myself.

Task is that I have a cone with a pressure of air of 100 kPa on the inlet (large area of the cone); 95 kPa on the small area of the cone.

In real life a pressure drop like this would let the fluid flow from the high-pressure-area to the low-pressure area.
Pressure drop 001.png
Pressure drop 001.png (389.3 KiB) Viewed 1205 times
Meshing went okay.

First question: is it altogether possible to simulate this pressure drop situation?

I have tried many different adjustments in the parameters but all to no avail.

Writing the case is okay:
0.0: Checking dependencies...
0.0: Case writer called
0.2: Matching boundary conditions ...
0.4: Case written successfully

Running the solver gives an error code:
17:52:31 Time = 0
17:52:31
Processor 0: field transfer
17:52:31 Processor 1: field transfer
17:52:31 Processor 2: field transfer
17:52:31 Processor 3: field transfer
17:52:31
End

17:52:31 ERROR: Failed to post close command error 1726
ERROR: unable to tear down the job tree. exiting...

17:52:32

My FC Information:
OS: Windows 10 Version 2009
Word size of FreeCAD: 64-bit
Version: 0.20.2.29177 +426 (Git)
Build type: Release
Branch: (HEAD detached from 0.20.2)
Hash: 930dd9a76203a3260b1e6256c70c1c3cad8c5cb8
Python 3.8.10, Qt 5.15.2, Coin 4.0.1, Vtk 8.2.0, OCC 7.6.3
Locale: German/Germany (de_DE)
Installed mods:
* Cfd
* CfdOF 1.21.6
* CfdOF.bak 1.21.4
* Curves 1.21.6
* Curves.bak 0.6.6
* dodo 1.0.0
* fasteners 0.4.54
* freecad.gears 1.0.0
* Plot 2022.4.17
* sheetmetal 0.2.61

The file:
CFD Kegel_hs.FCStd
(146.77 KiB) Downloaded 55 times
Thank you for any advice.
Kind regards,
Helmut
User avatar
NewJoker
Veteran
Posts: 3084
Joined: Sun Oct 11, 2020 7:49 pm

Re: Flow through Cone with pressure drop

Post by NewJoker »

r.tec wrote: Tue Feb 28, 2023 9:34 am First question: is it altogether possible to simulate this pressure drop situation?
Yes, of course. Pressure difference between inlet and outlet is commonly used in CFD.

I don't get any errors when I submit the analysis from the attached file. Check your CfdOF installation and try submitting some test analysis (something really basic like a pipe).
User avatar
Raedchen_im_System
Posts: 95
Joined: Sun Oct 27, 2019 5:22 pm
Location: In der Nähe von Stuttgart
Contact:

Re: Flow through Cone with pressure drop

Post by Raedchen_im_System »

Hello @r.tec ,

on my computer, your simulation model runs without errors. After 173 iterations, the solution converged. I used the CfdOf-workbench 1.21.4 and ESI-OpenCFD v2206.

When I look on your screenshot, it looks like you have an issue with a phyton-file. The next message tells you to look into your log-file. You can find the logfiles from ESI-OpenFoam pressing the "edit"-button in the Cfd-Solver-Menue:
logfile.jpg
logfile.jpg (32.16 KiB) Viewed 1118 times
Your message refers to the directory C:\Users\Helmut\AppData\Roaming\FreeCAD\Mod\Cfd. Did you use the Cfd-Workbench or the CfdOf-Workbench?
User avatar
oliveroxtoby
Posts: 837
Joined: Fri Dec 23, 2016 9:43 am
Location: South Africa

Re: Flow through Cone with pressure drop

Post by oliveroxtoby »

r.tec wrote: Tue Feb 28, 2023 9:34 am
17:52:31 ERROR: Failed to post close command error 1726
ERROR: unable to tear down the job tree. exiting...

17:52:32
From the below post:
oliveroxtoby wrote: Tue Jan 15, 2019 8:51 pm
[*] On Windows, there can be issues with conflicting MSMPI versions. This is usually indicated by the following error:

Code: Select all

ERROR: Failed to post close command error 1726
ERROR: unable to tear down the job tree. exiting...
The best remedy is usually to uninstall and reinstall the OpenFOAM (or BlueCFD) package, making sure to run the installer with administrator privileges if possible. If asked, answer 'yes' to reinstalling MSMPI.
Please provide all the information requested in this post before reporting problems with CfdOF.
User avatar
r.tec
Posts: 533
Joined: Thu Oct 23, 2014 4:06 pm
Location: Bad Münstereifel, NRW, Germany
Contact:

Re: Flow through Cone with pressure drop

Post by r.tec »

...yes, reinstalled MS MPI: FreeCAD runs through. Fine!

Now I get an error-message from Paraview:

Traceback (most recent call last):
File "<string>", line 53, in <module>
File "C:/Program Files/blueCFD-Core-2020/AddOns/ParaView/bin\Lib/site-packages\paraview\servermanager.py", line 424, in __ConvertArgumentsAndCall
retVal = func(*newArgs)
TypeError: ResetCamera argument 1: expected a sequence of 6 values, got bool


Do not know how to remedy it but it seems not to hinder further work with Paraview.

Thanks a lot!
User avatar
oliveroxtoby
Posts: 837
Joined: Fri Dec 23, 2016 9:43 am
Location: South Africa

Re: Flow through Cone with pressure drop

Post by oliveroxtoby »

r.tec wrote: Sat Mar 04, 2023 4:55 pm ...yes, reinstalled MS MPI: FreeCAD runs through. Fine!

Now I get an error-message from Paraview:

Traceback (most recent call last):
File "<string>", line 53, in <module>
File "C:/Program Files/blueCFD-Core-2020/AddOns/ParaView/bin\Lib/site-packages\paraview\servermanager.py", line 424, in __ConvertArgumentsAndCall
retVal = func(*newArgs)
TypeError: ResetCamera argument 1: expected a sequence of 6 values, got bool


Do not know how to remedy it but it seems not to hinder further work with Paraview.

Thanks a lot!
Which version of Paraview is this?
User avatar
r.tec
Posts: 533
Joined: Thu Oct 23, 2014 4:06 pm
Location: Bad Münstereifel, NRW, Germany
Contact:

Re: Flow through Cone with pressure drop

Post by r.tec »

Version 5.6.2 64-bit
Qt Version 5.12.3
Post Reply