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

[mesh manipulation] DynamicMesh - Move internal points

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 4, 2014, 16:29
Default DynamicMesh - Move internal points
  #1
New Member
 
Join Date: Jan 2013
Posts: 10
Rep Power: 13
nucat is on a distinguished road
Hallo foamers,

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:
  • select all faces with y+>1
  • select all cells with that selected faces
  • select points of the selected cells (first boundary layer)
  • deselect points of the boundary face
The result is a selection of points of the first boundary cells, but not points directly of the boundary (they have to stay fixed). Now I want to move them down and want to do it with dynamicMesh library.


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,
Nucat
nucat is offline   Reply With Quote

Old   September 4, 2014, 19:35
Default
  #2
Senior Member
 
mturcios777's Avatar
 
Marco A. Turcios
Join Date: Mar 2009
Location: Vancouver, BC, Canada
Posts: 740
Rep Power: 28
mturcios777 will become famous soon enough
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.
mturcios777 is offline   Reply With Quote

Old   September 6, 2014, 09:54
Default
  #3
New Member
 
Join Date: Jan 2013
Posts: 10
Rep Power: 13
nucat is on a distinguished road
Hey,

thanks for reply. I think I will solve that problem by myself with toposet and python ))
nucat is offline   Reply With Quote

Reply

Tags
dynamic mesh

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
[snappyHexMesh] Layers not growing at all zonda OpenFOAM Meshing & Mesh Conversion 12 June 6, 2020 12:28
[snappyHexMesh] No layers in a small gap bobburnquist OpenFOAM Meshing & Mesh Conversion 6 August 26, 2015 10:38
PrimitivePatch movePoints() didnt move the points tiat OpenFOAM 0 July 21, 2015 10:57
dynamicMesh - move surface due to velocity/pressure Tobi OpenFOAM Running, Solving & CFD 5 November 1, 2014 15:18
Constraining internal points to be specific velocities choonhwai OpenFOAM Pre-Processing 0 August 12, 2013 05:58


All times are GMT -4. The time now is 04:44.