CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Meshing & Mesh Conversion

[Other] Creating mesh from equation of surface

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 22, 2019, 23:44
Default Creating mesh from equation of surface
  #1
New Member
 
Join Date: Jul 2019
Posts: 2
Rep Power: 0
finn is on a distinguished road
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.
finn is offline   Reply With Quote

Old   August 7, 2019, 06:04
Default
  #2
Senior Member
 
Carlo_P
Join Date: May 2019
Location: Italy
Posts: 176
Rep Power: 7
Carlo_P is on a distinguished road
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
Carlo_P is offline   Reply With Quote

Old   August 15, 2019, 13:16
Default
  #3
New Member
 
Join Date: Jul 2019
Posts: 2
Rep Power: 0
finn is on a distinguished road
Thanks Carlo, I ended up getting it working with blockMesh by using two blocks and defining their edges with splines.
finn is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Gmsh] Error : Self intersecting surface mesh, computing intersections & Error : Impossible velan OpenFOAM Meshing & Mesh Conversion 3 October 22, 2015 11:05
[snappyHexMesh] snappyHexMesh & Mesh around a missile sasanghomi OpenFOAM Meshing & Mesh Conversion 2 October 15, 2014 19:54
Moving mesh Niklas Wikstrom (Wikstrom) OpenFOAM Running, Solving & CFD 122 June 15, 2014 06:20
Cluster ID's not contiguous in compute-nodes domain. ??? Shogan FLUENT 1 May 28, 2014 15:03
[ICEM] Generating Mesh for STL Car in Windtunnel Simulation tommymoose ANSYS Meshing & Geometry 48 April 15, 2013 04:24


All times are GMT -4. The time now is 23:51.