simphony / simphony-openfoam

The implementation of the SimPhoNy OpenFOAM -wrappers.
GNU General Public License v2.0
2 stars 0 forks source link

Modifications for droplet/particle example #87

Open TobiasRasp opened 7 years ago

TobiasRasp commented 7 years ago

Hi Kai,

two slight modifications to the master version of the OpenFoam wrapper are necessary to get the "falling droplet/particle" coupling example running, which I showed on the SimPhoNy meeting just before Christmas. This one is important for the nano-printing application in Task 5.5.

The first modification is about the geometry I used in this example. It was no longer a channel-type geometry as provided by the template in the create_quad_mesh method of blockmesh_util.py (foam_controlwrapper), but a bin geometry. I created a simple new template similar to the other one for that purpose that can be found in the blockmesh_util.py-file attached to this post (lines 120-160). Probably there is a better way to deal with the two different geometry types but since time was short before the meeting, this workaround did worked fine for me. An better way that is easy to realise is very welcome!

The second one was an extra BC (totalPressure) required for the specific case with open boundaries. As usual, I just added them to the list of provided BCs in foam_dicts.py (lines 1146-1154 of file attached).

droplet_OF.py is a test example equivalent to the OpenFoam case used in the actual coupling example, which should run with these modifications.

If it doesn't, feel free to ask for more support!

Best regards, Tobias

[Uploading droplet_OF.txt…]() [Uploading blockmesh_utils.txt…]() [Uploading foam_dicts.txt…]()