|
[Sponsors] |
November 27, 2006, 09:02 |
Surface aligned mesh
|
#1 |
New Member
Radoslaw Pasiok
Join Date: Mar 2009
Location: Poznan, Poland
Posts: 6
Rep Power: 17 |
Hello FOAMers,
inspired by hftga2foam I thought about an utility for stretching a mesh or align it with a surface. I use OpenFOAM to simulate flows around various hydraulic structures with scoured irregular bed and the bottom mesh always cause my headakes. I tried to code such an utility and here is what it does:
http://openfoamwiki.net/index.php/Contrib_AlignMeshSurf Shortcomings of the code:
If you use or know about such tool, please, let me know. Regards, Radoslaw Pasiok |
|
November 27, 2006, 11:22 |
Why don't you just use the aut
|
#2 |
Senior Member
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,907
Rep Power: 33 |
Why don't you just use the automatic mesh motion solver - that will allow you to move all boundaries in any way you like and allow you to control the mesh grading etc.
Hrv
__________________
Hrvoje Jasak Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk |
|
November 28, 2006, 05:55 |
Thank you Hrvoje for suggestio
|
#3 |
New Member
Radoslaw Pasiok
Join Date: Mar 2009
Location: Poznan, Poland
Posts: 6
Rep Power: 17 |
Thank you Hrvoje for suggestion!
I would love to use the solver and I will in the future. Meanwhile I didn't want to jump into the dynamic mesh stuff as I regarded it to much complicated for my static problem. Maybe that was wrong impression... I should know already that in the OpenFOAM I should check twice for ready to use solutions before I try to do something myself :-/ Radoslaw Pasiok |
|
November 28, 2006, 06:33 |
Have a look at the moveMesh ap
|
#4 |
Senior Member
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,907
Rep Power: 33 |
Have a look at the moveMesh application: there is a field called motionU, you specify the motion of the boundary, run moveMesh and... you're done!
Hrv
__________________
Hrvoje Jasak Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk |
|
November 29, 2006, 12:01 |
Thank you Hrvoje once again, I
|
#5 |
New Member
Radoslaw Pasiok
Join Date: Mar 2009
Location: Poznan, Poland
Posts: 6
Rep Power: 17 |
Thank you Hrvoje once again, I had a look at the moveMesh & friends and it looks really great.
But still the main problem is to specify motionU. Please keep in mind that, in general, my surface is irregular. What is the most elegant way of finding motionU if a patch is going to change its shape? More precisely, I want all patch points to move in a common direction but various distances. In the alignMeshSurf the direction is assumed and the hitPoint of triSurfaceSearch is used to find the distance at each mesh point. Here I would need hitPoint only for patch points to know their distance to the surface. Then I would write the distances to motionU in similiar manner as it is done with motionDiff in setMotionMovingCone (newMovingCone case of icoDyMFoam). Or is there something better? Thank you in advance for any suggestions. Radoslaw Pasiok |
|
November 29, 2006, 13:58 |
Have a look at the PrimitivePa
|
#6 |
Senior Member
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,907
Rep Power: 33 |
Have a look at the PrimitivePatch class and projectPoints:
//- Project vertices of patch onto another patch template <class> List<objecthit> projectPoints ( const ToPatch& targetPatch, const vectorField& projectionDirection, const intersection::algorithm alg = intersection::FULL_RAY, const intersection::direction dir = intersection::VECTOR ) const; objectHit gives you both the distance and location of projected point. Enjoy, Hrv
__________________
Hrvoje Jasak Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk |
|
|
|
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 12:05 |
[snappyHexMesh] No layers in a small gap | bobburnquist | OpenFOAM Meshing & Mesh Conversion | 6 | August 26, 2015 10:38 |
Cluster ID's not contiguous in compute-nodes domain. ??? | Shogan | FLUENT | 1 | May 28, 2014 16:03 |
[snappyHexMesh] Layers:problem with curvature | giulio.topazio | OpenFOAM Meshing & Mesh Conversion | 10 | August 22, 2012 10:03 |
[snappyHexMesh] snappyHexMesh won't work - zeros everywhere! | sc298 | OpenFOAM Meshing & Mesh Conversion | 2 | March 27, 2011 22:11 |