Update on the development of the OpenFOAM CFD workbench (CFDOF)
Moderator: oliveroxtoby
Forum rules
and Helpful information for the FEM forum
and Helpful information for the FEM forum
-
- Veteran
- Posts: 3156
- Joined: Sat May 20, 2017 12:06 pm
- Location: Germany
Re: Update on the development of the OpenFOAM CFD workbench (CFDOF)
Hello Oliver,
I tried to do the same simulation like the "flooding-tank" tutorial from Jozsef Nagy on YT.
(The tank is flooded with water against gravity, like a fountain. The result should look like
the picture below). The calculation allways stops after 30s with openFOAM fatal error.
Probably I do something wrong with the field initialization or my workflow is garbage.
Please have a look at the FC-file. After writing the case you will see in the alpha.water-dict,
that the inlet/outlet values are not assigned (like in the alpha.water from tutorial), there
is a "TODO" entry. The blue cube is the initialization-zone for water.
regards Thomas
(the error "out of scope" on the mesh in tree has no effect...)
I tried to do the same simulation like the "flooding-tank" tutorial from Jozsef Nagy on YT.
(The tank is flooded with water against gravity, like a fountain. The result should look like
the picture below). The calculation allways stops after 30s with openFOAM fatal error.
Probably I do something wrong with the field initialization or my workflow is garbage.
Please have a look at the FC-file. After writing the case you will see in the alpha.water-dict,
that the inlet/outlet values are not assigned (like in the alpha.water from tutorial), there
is a "TODO" entry. The blue cube is the initialization-zone for water.
regards Thomas
(the error "out of scope" on the mesh in tree has no effect...)
- oliveroxtoby
- Posts: 837
- Joined: Fri Dec 23, 2016 9:43 am
- Location: South Africa
Re: Update on the development of the OpenFOAM CFD workbench (CFDOF)
thschrader wrote: ↑Mon Oct 02, 2017 9:03 pm I tried to do the same simulation like the "flooding-tank" tutorial from Jozsef Nagy on YT.
(The tank is flooded with water against gravity, like a fountain. The result should look like
the picture below). The calculation allways stops after 30s with openFOAM fatal error.
Probably I do something wrong with the field initialization or my workflow is garbage.
Please have a look at the FC-file. After writing the case you will see in the alpha.water-dict,
that the inlet/outlet values are not assigned (like in the alpha.water from tutorial), there
is a "TODO" entry. The blue cube is the initialization-zone for water.
I thought that the alpha initialisation zone would cause the inlet alpha value to be set to 1, but I see that it doesn't work out like that.
The alpha inflow value can now be set in the boundary condition, and a couple of bugs are fixed. Should work now.
- Attachments
-
- testCFD.FCStd
- (182.02 KiB) Downloaded 139 times
Please provide all the information requested in this post before reporting problems with CfdOF.
-
- Veteran
- Posts: 3156
- Joined: Sat May 20, 2017 12:06 pm
- Location: Germany
Re: Update on the development of the OpenFOAM CFD workbench (CFDOF)
@Oliver, short info
after updating CFDOF via addon-manager, close/restart FC:
try to mesh a cube. snappyhexMesh breaks,
gmsh/cfmesh works. system:
OS: Windows 10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.12284 (Git)
Build type: Release
Branch: master
Hash: 2244292552c004e6b506af9e1e98d3423e524ee7
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)
after updating CFDOF via addon-manager, close/restart FC:
try to mesh a cube. snappyhexMesh breaks,
gmsh/cfmesh works. system:
OS: Windows 10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.12284 (Git)
Build type: Release
Branch: master
Hash: 2244292552c004e6b506af9e1e98d3423e524ee7
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)
- oliveroxtoby
- Posts: 837
- Joined: Fri Dec 23, 2016 9:43 am
- Location: South Africa
Re: Update on the development of the OpenFOAM CFD workbench (CFDOF)
Thanks - fixed.thschrader wrote: ↑Wed Oct 04, 2017 1:36 pm @Oliver, short info
after updating CFDOF via addon-manager, close/restart FC:
try to mesh a cube. snappyhexMesh breaks,
gmsh/cfmesh works. system:
Please provide all the information requested in this post before reporting problems with CfdOF.
Re: Update on the development of the OpenFOAM CFD workbench (CFDOF)
Is it possibile to have the "volumetric flow rate" and "mass flow rate" also in outlet as in inlet?
- oliveroxtoby
- Posts: 837
- Joined: Fri Dec 23, 2016 9:43 am
- Location: South Africa
Re: Update on the development of the OpenFOAM CFD workbench (CFDOF)
At present the OpenFOAM boundary condition is only designed as an inlet (all three components of velocity are constrained); of course you can achieve much the same effect with the 'uniform velocity' outlet. If you would be interested, you could code up a new BC which allows users to specify mass flow rate and divides this by density and area to get the normal component of velocity.
Please provide all the information requested in this post before reporting problems with CfdOF.
Re: Update on the development of the OpenFOAM CFD workbench (CFDOF)
Thank for the information. It can be a good start to put me on coding in freecad. In your opinion is it possible to code all through python?oliveroxtoby wrote: ↑Mon Oct 09, 2017 7:48 amAt present the OpenFOAM boundary condition is only designed as an inlet (all three components of velocity are constrained); of course you can achieve much the same effect with the 'uniform velocity' outlet. If you would be interested, you could code up a new BC which allows users to specify mass flow rate and divides this by density and area to get the normal component of velocity.
Re: Update on the development of the OpenFOAM CFD workbench (CFDOF)
believe this post is actually part of this thread
https://forum.freecadweb.org/viewtopic.php?f=18&t=24857
https://forum.freecadweb.org/viewtopic.php?f=18&t=24857
- oliveroxtoby
- Posts: 837
- Joined: Fri Dec 23, 2016 9:43 am
- Location: South Africa
Re: Update on the development of the OpenFOAM CFD workbench (CFDOF)
Great! Yes, definitely possible in python.Worufu wrote: ↑Tue Oct 10, 2017 3:38 pmThank for the information. It can be a good start to put me on coding in freecad. In your opinion is it possible to code all through python?oliveroxtoby wrote: ↑Mon Oct 09, 2017 7:48 amAt present the OpenFOAM boundary condition is only designed as an inlet (all three components of velocity are constrained); of course you can achieve much the same effect with the 'uniform velocity' outlet. If you would be interested, you could code up a new BC which allows users to specify mass flow rate and divides this by density and area to get the normal component of velocity.
Please provide all the information requested in this post before reporting problems with CfdOF.
- oliveroxtoby
- Posts: 837
- Joined: Fri Dec 23, 2016 9:43 am
- Location: South Africa
Re: Update on the development of the OpenFOAM CFD workbench (CFDOF)
Thanks for the notification.makkemal wrote: ↑Wed Oct 11, 2017 4:43 pm believe this post is actually part of this thread
https://forum.freecadweb.org/viewtopic.php?f=18&t=24857
Please provide all the information requested in this post before reporting problems with CfdOF.