|September 4, 2014, 15:29||
DynamicMesh - Move internal points
Join Date: Jan 2013
Posts: 10Rep Power: 5
actually I am programming an y+ adaption for OpenFoam. I need a tool, which manipulates the mesh by making the thickness of the first boundary layer smaller if there is detected y+>1.
I am able to detect that vertices with toposet:
Problem: I didn't find in the web a tutorial, how to move internal points (not boundary points) of the mesh. Do anybody knows how it works?
Thanks for help,
|September 4, 2014, 18:35||
Marco A. Turcios
Join Date: Mar 2009
Location: Vancouver, BC, Canada
Posts: 727Rep Power: 20
If you look at the layeredEngineMesh code, you can see there is code that moves certain mesh points to a new position based on the calculated crank angle. You will need to do something similar, although I don't quite know how you would determine the new position.
It would have to be some kind of function that finds distance to the nearest point on a boundary patch, then takes a fraction of the distance along the vector to the nearest point on the patch and moves the new point to that position (like half the distance?). Or just a set distance along that line. There are some built in functions like that in meshTools and other libraries. Its been a while since I've had to do anything with them.
|Thread||Thread Starter||Forum||Replies||Last Post|
|No layers in a small gap||bobburnquist||OpenFOAM Native Meshers: snappyHexMesh and Others||6||August 26, 2015 09:38|
|error 262144 and unexpected disconnect when run on 2 nodes||Emily1412||SU2 Installation||1||April 10, 2014 17:08|
|Constraining internal points to be specific velocities||choonhwai||OpenFOAM Pre-Processing||0||August 12, 2013 04:58|
|Access patch points (on different processor) in parallel||Arnoldinho||OpenFOAM Programming & Development||7||September 11, 2012 05:55|
|extreme points problem||Lipo Wang||Main CFD Forum||2||August 18, 2004 03:15|