Computational Fluid Dynamics (CFD) workbench using OpenFOAM

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

Mx74
Posts: 23
Joined: Fri Dec 08, 2017 12:39 pm

Re: Computational Fluid Dynamics (CFD) workbench using OpenFOAM

Post by Mx74 »

Hello Thomas,

Thanks a lot for your help.
I got my mistake. I was trying to mesh two different objects, the computational domain and the object to analyse.
I didn't realized I had to make only one object by soustracting both.

Again, many thanx !
thschrader
Veteran
Posts: 3156
Joined: Sat May 20, 2017 12:06 pm
Location: Germany

Re: Computational Fluid Dynamics (CFD) workbench using OpenFOAM

Post by thschrader »

open FC, activate cfd-wb ==> error
error.JPG
error.JPG (26.81 KiB) Viewed 2287 times
OS: Windows 10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.12847 (Git)
Build type: Release
Branch: master
Hash: 4034851a5d2ed5c93a8ebedbf0ef40dab8700d94
Python version: 2.7.8
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.1.0
Locale: German/Germany (de_DE)
User avatar
bernd
Veteran
Posts: 12851
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: Computational Fluid Dynamics (CFD) workbench using OpenFOAM

Post by bernd »

@oliver:
I made some module moving to get a simpler module stucture. This will be stay in 0.17 release! FemCommands is femcommands.manager now. Just have a look at up to date master. It will be easy to fix for you.
KDL
Posts: 1
Joined: Tue Dec 19, 2017 7:32 am

Re: Computational Fluid Dynamics (CFD) workbench using OpenFOAM

Post by KDL »

Is the dependency checker in the windows version working currently? Running into a couple errors and I'm not sure if it is my system that is the issue or what:

Image

When I try to go into the workbench (I know it isn't properly installed yet, obviously) I get a warning about a workbench failure which is not surprising but the reason is "No module FemCommands".

Not sure what exactly the issue is but I am assuming I am doing something wrong if the problem is not with the dependency checker.
thschrader
Veteran
Posts: 3156
Joined: Sat May 20, 2017 12:06 pm
Location: Germany

Re: Computational Fluid Dynamics (CFD) workbench using OpenFOAM

Post by thschrader »

Hi KDL,
welcome to the freecad-forum.
For cfd I use an older Version, the FC0.17.12772_x64 (before bernd moved the FEM-modules... :) )
You can download the version from my dropbox:
https://www.dropbox.com/s/tjd1ldxxqu4ic ... in.7z?dl=0

Setting up the cfd-workbench:
At first I separetly installed the bluecfdcore 2016_1 version including MPI7.1, paraview and notepad.
Then I installed gnuplot / cfmesh (in this order) via preferences-cfd. Everthing works.
Last weekend I tried an installation of the new bluecfdcore 2017 version. When installing cfmesh
via preferences, after 2 min the process stopps with error. No idea why...
Needed some hours and a sixpack beer.
Cheers Thomas
User avatar
bernd
Veteran
Posts: 12851
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: Computational Fluid Dynamics (CFD) workbench using OpenFOAM

Post by bernd »

thschrader wrote: Tue Dec 19, 2017 4:46 pm Last weekend I tried an installation of the new bluecfdcore 2017 version. When installing cfmesh
via preferences, after 2 min the process stopps with error. No idea why...
Needed some hours and a sixpack beer.
drinking a sixpack beer and afterwards give the new installed CFD a try ... no wonder you have such very cool modell ideas. https://forum.freecadweb.org/viewtopic. ... 02#p204663 :lol:
User avatar
bernd
Veteran
Posts: 12851
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: Computational Fluid Dynamics (CFD) workbench using OpenFOAM

Post by bernd »

bernd wrote: Mon Dec 18, 2017 7:47 pm @oliver:
I made some module moving to get a simpler module stucture. This will be stay in 0.17 release! FemCommands is femcommands.manager now. Just have a look at up to date master. It will be easy to fix for you.
https://github.com/jaheyns/CfdOF/blob/1 ... sis.py#L32
is:

Code: Select all

from PyGui.FemCommands import FemCommands
should be:

Code: Select all

 from femcommands.manager import CommandManager


https://github.com/jaheyns/CfdOF/blob/1 ... sis.py#L41
is:

Code: Select all

class _CommandCfdAnalysis(FemCommands)
should be:

Code: Select all

class _CommandCfdAnalysis(CommandManager)
this change should be made in all modules starting with _CommandFollowedBySomeName in https://github.com/jaheyns/CfdOF/tree/1 ... 056b938143
User avatar
oliveroxtoby
Posts: 837
Joined: Fri Dec 23, 2016 9:43 am
Location: South Africa

Re: Computational Fluid Dynamics (CFD) workbench using OpenFOAM

Post by oliveroxtoby »

ickby wrote: Mon Dec 04, 2017 6:59 am Hello Oliver,

On twitter I saw a post stating you calculated the drag coefficient of the Millennium Falcon:
https://twitter.com/ex_mente/status/936562984914210816

could you write a little something about that with a few pictures in the user showcase? I would love to use this on our Facebook site with the release of the new star wars film :)
Sorry for the delay - I'll try to put a few pictures together if it's not too late.
Please provide all the information requested in this post before reporting problems with CfdOF.
User avatar
oliveroxtoby
Posts: 837
Joined: Fri Dec 23, 2016 9:43 am
Location: South Africa

Re: Computational Fluid Dynamics (CFD) workbench using OpenFOAM

Post by oliveroxtoby »

thschrader wrote: Mon Dec 18, 2017 2:46 pm open FC, activate cfd-wb ==> error
Thanks for reporting - should be fixed now. Sorry for the delay!
Please provide all the information requested in this post before reporting problems with CfdOF.
User avatar
oliveroxtoby
Posts: 837
Joined: Fri Dec 23, 2016 9:43 am
Location: South Africa

Re: Computational Fluid Dynamics (CFD) workbench using OpenFOAM

Post by oliveroxtoby »

bernd wrote: Mon Dec 18, 2017 7:47 pm @oliver:
I made some module moving to get a simpler module stucture. This will be stay in 0.17 release! FemCommands is femcommands.manager now. Just have a look at up to date master. It will be easy to fix for you.
Thanks Bernd, have done.
Please provide all the information requested in this post before reporting problems with CfdOF.
Post Reply