CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Pre-Processing

Mesh refinement with the help of a value

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By jhoepken

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 30, 2014, 07:42
Default Mesh refinement with the help of a value
  #1
New Member
 
Join Date: Jan 2013
Posts: 10
Rep Power: 13
nucat is on a distinguished road
Hello,

I want to refine a shock wave in super sonic flow. So I setup a case file, it running well. I coded a postprocess tool, which writes a value of the shockwave

shockwave = (1-vorticity/vorticity_max)* mag(grad(Ma))/max(mag(grad(Ma)))

so this value is anywhere between zero and one. You can determinate the shock wave with the help of the gradient of mach number. With the help of vorticity you can eliminate the high values in boundary layer (because there you have also high gradients of mach number but no shock wave).

Now comes the question: After the running of the case I want to refine the mesh where the value of shockwave - let's say - between 0.15 and 1. Are there standart tool, which will write you a cellset file for refineMesh with the help of this shockwave value?

Thank you for help,
Nucat ))
nucat is offline   Reply With Quote

Old   July 31, 2014, 04:57
Default
  #2
Senior Member
 
Jens Höpken
Join Date: Apr 2009
Location: Duisburg, Germany
Posts: 159
Rep Power: 17
jhoepken is on a distinguished road
Send a message via Skype™ to jhoepken
You can use topoSet to generate a cellSet, that suffices the criterion you specify. Then you use refineHexMesh or refineMesh (I'm currently unsure of which is the one to go with) and use the cellSet for refinement.

Alternatively you could use a solver with dynamic mesh capabilities and refine dynamically at run time.
bennn likes this.
__________________
Blog: sourceflux.de/blog
"The OpenFOAM Technology Primer": sourceflux.de/book
Twitter: @sourceflux_de
Interested in courses on OpenFOAM?
jhoepken is offline   Reply With Quote

Old   April 3, 2015, 00:04
Default
  #3
Member
 
Francis
Join Date: Jan 2014
Location: Toronto
Posts: 50
Rep Power: 12
afrotimy is on a distinguished road
I am also interested in this area, but with improved vorticity visualization around a pitching airfoil. Can anyone provide more insight in this regard please?
afrotimy 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
[snappyHexMesh] snappyHexMesh sticking point natty_king OpenFOAM Meshing & Mesh Conversion 11 February 20, 2024 09:12
[snappyHexMesh] SnappyHexMesh for internal Flow vishwa OpenFOAM Meshing & Mesh Conversion 24 June 27, 2016 08:54
[snappyHexMesh] Unwanted mesh created by snappyHexMesh--baffle bieshuxuhe OpenFOAM Meshing & Mesh Conversion 2 April 23, 2014 01:59
[snappyHexMesh] snapEdge - failure Tobi OpenFOAM Meshing & Mesh Conversion 33 March 18, 2014 03:58
Icemcfd 11: Loss of mesh from surface mesh option? Joe CFX 2 March 26, 2007 18:10


All times are GMT -4. The time now is 20:07.