CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Community Contributions (https://www.cfd-online.com/Forums/openfoam-community-contributions/)
-   -   [ImmersedBoundary] Immersed Boundary Mesh Problem (https://www.cfd-online.com/Forums/openfoam-community-contributions/180282-immersed-boundary-mesh-problem.html)

ordinary November 20, 2016 16:05

Immersed Boundary Mesh Problem
 
Hello,

I did cylinderInChannelIcoIbFoam and movingCylinderInChannelIco tutorials succesfully. (https://github.com/wyldckat/Immersed...annelicoIbFoam and https://github.com/Unofficial-Extend...erInChannelIco)

I want to define new cylinders instead of tutorials' cylinders. I created it in ANSYS DesignModeller and made it as surface body, then meshed. At this point I have cylinder.msh

Now I want to change this .msh file to .stl in order to use it in immersed boundary tutorials. I typed fluentMeshToFoam cylinder.msh. I get fatal error.
cannot find a single face in the mesh which uses vertices 3(1 0 2)
From function findFace(const primitiveMesh&, const face&) in file fluentMeshToFoam.L at line 856.

Then I typed fluent3DMeshToFoam cylinder.msh. It worked.

After this I tried this method to create cylinder.stl :
Quote:

Originally Posted by olesen (Post 245556)
A "foamToSurface" doesn't seem to exist yet, but you can try the following:
  • foamToStarMesh -surface [-latestTime | -constant]
This should create surfExport.{cel,vrt} files
  • touch surfExport.inp
This creates a dummy file that identifies the grouping of files as proSTAR files.
  • surfaceMeshConvert surfExport.inp surfExport.stl
Convert to STL (or other) surface format.

At the end I open my geometry with paraView but I see nothing. So embarrassing.

Any idea?

akidess November 21, 2016 04:47

If all you need is a cylinder, make it in Paraview, triangulate the geometry (filter) and save data to STL. Apart from that Ansys DM cannot export STL? Really surprises me.

ordinary November 21, 2016 05:23

Even if Ansys Design Modeler could export STL, I wouldn't need it. I need a mesh file because I want to set the delS (I mean delta S in immersed boundary and it has to be equal to delta X in blockmesh) and to convert it STL.


All times are GMT -4. The time now is 19:50.