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. |
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 |
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. |