How to define Inlet and Outlet for a pipe before meshing and simulating in OpenFOAM?

Hi everyone,

I've been trying to run a laminar flow case in a pipe consisting of cylindrical particles. I use blender to create my geometry and export the .stl files to my OpenFOAM case. I define inlet and outlet faces before exporting the stl files in blender. But OpenFOAM doesn't seem to recognize that. Kindly help me on what to do about this. Thank you.



OpenFOAM 22-06-22, 12:52 p.m. LakshmiIC35134
Export the boundaries as separate stlfiles. Correlate the stl with the boundary name of choice in openFoam through snappyHexMeshDict. Example:
pipeWall.stl //name of the stl
type triSurfaceMesh;
name pipeWall; //name you have picked to be used in openfoam
type triSurfaceMesh;
name outlet;
type triSurfaceMesh;
name inlet;

More information can be found here: https://cfd.direct/openfoam/user-guide/v8-snappyhexmesh/ Regards Ashuthosh CFD-Team, FOSSEE
22-06-22, 1:40 p.m. Ashuthosh

Thank you for the reply. Any idea on how to export vertices as separate .stl files in blender? Kindly let know. 

29-06-22, 7:45 p.m. LakshmiIC35134

You need to export the faces here.

In order to export them as separate .stlfiles, you need to declare them as individual objects. To do so:

  • go to edit mode
  • enable theface-select option
  • select the face(s) you want to export separately
  • Right-click on the face > separate > selection
  • repeat as required

To export into separate STLs:

  • File > export > STL(.stl)
  • In drop down menu batch,select object
  • checkASCII box
  • Export STL

Please make sure to remove the first line inside the.stl (solid exported from Blender*) file to prevent possible errors.




18-07-22, 11:21 a.m. Ashuthosh

Login to add comment

Very informative article! There's a lot of information here on poppy playtime that can help anyone get started with a successful social media campaign.
27-06-22, 9:29 a.m. boardgamesaz

Log-in to answer to this question.