CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Meshing & Mesh Conversion (https://www.cfd-online.com/Forums/openfoam-meshing/)
-   -   [Other] Creating mesh from equation of surface (https://www.cfd-online.com/Forums/openfoam-meshing/219298-creating-mesh-equation-surface.html)

finn July 22, 2019 23:44

Creating mesh from equation of surface
 
Hi all,

I'm attempting to run a simulation with OpenFoam for a geometry bounded by a surface (with equation z=1+k1*tan(k2)*y*cos(z)) and the xy plane with constraints on x, y. I've spent hours looking for a solution, and the only way forward I've been able to find is to write my own Python code to discretize the entire volume, which would be time consuming to say the least. Does anyone have any suggestions? Cheers.

Carlo_P August 7, 2019 06:04

Hey Finn,
I think taht you can try with BlockMesh.
You have to write down the equation and then you will have the mesh.


Otherwise, why don't try to design the geoemtry in a CAD file, maybe also in Salome, where you can put your Python file?
Cheers,
Carlo

finn August 15, 2019 13:16

Thanks Carlo, I ended up getting it working with blockMesh by using two blocks and defining their edges with splines.


All times are GMT -4. The time now is 21:09.