No success in writing a OF case

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
Siltti
Posts: 39
Joined: Tue Apr 19, 2016 6:27 am

No success in writing a OF case

Post by Siltti »

Hello again,

Since I had no success in using compound for combining bodies into one model for sliding mesh model, I try now to write own cases for the parts and combine them by adding other mesh definitions to first one. However I can't understand the workflow for writing out even one complete part case:

First I have written out meshCase from CFD Mesh tab->Write mesh case and then ->Run mesher. This produces beautiful mesh with necessary refinements with all boundary grouped as I have given them. Paraview can present them OK.

Then I have written out case from Analysis control tab->Write. Something goes wrong and Paraview can't show anything.

I tried to understand how to combine the model's folders "meshCase" and "case" together to form a complete model, but things got a bit confusing. Both have polyMesh directories, both including boundary definitions, both have also system directories with some duplicates. I tried to combine them manually with no success.

I assume there is a method how to do this and make choices creating output later needed for manual AMI definition, but currently I am totally stuck and ask for instructions to get forward. Any guidance is most appreciated. I wouldn't like to take another jump to deep end with Salome, if only it is possible to avoid.
Siltti
Posts: 39
Joined: Tue Apr 19, 2016 6:27 am

Re: No success in writing a OF case

Post by Siltti »

Ok, I answer this myself. I managed to write the caseMeshes and cases for two bodies. It was mainly my own fault, I didn't understand to take all necessary actions for this.

However I didn't manage to combine them properly to one mesh with mergeMeshes command. Something is always missing. Looks like FreeCAD writes the meshes a bit special way, and OpenFOAM does not understand what there is. I tried with OF 2212, some other version might work better. What's always seem to be missing is some of the patch definitions for AMI boundaries. I try to figure out how to get them. Any ideas are most welcome!
thschrader
Veteran
Posts: 3129
Joined: Sat May 20, 2017 12:06 pm
Location: Germany

Re: No success in writing a OF case

Post by thschrader »

Maybe you can use this as a start:
https://www.openfoam.com//documentation ... g-fan.html
https://www.youtube.com/watch?v=qtN256WJ-5I

I will try to rebuilt this in FC, but I can promise nothing.
At the moment I am drowning in work...
fan_in_room.JPG
fan_in_room.JPG (33.39 KiB) Viewed 475 times
Post Reply