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

Mesh refinement with the help of a value

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

Reply
 
LinkBack Thread Tools 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: 4
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: 156
Rep Power: 8
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.
__________________
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
 
afrotimy's Avatar
 
Francis
Join Date: Jan 2014
Location: Toronto
Posts: 40
Rep Power: 3
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

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
SnappyHexMesh for internal Flow vishwa OpenFOAM Native Meshers: snappyHexMesh and Others 23 August 6, 2014 03:50
Unwanted mesh created by snappyHexMesh--baffle bieshuxuhe OpenFOAM Native Meshers: snappyHexMesh and Others 2 April 23, 2014 01:59
snappyHexMesh sticking point natty_king OpenFOAM Native Meshers: snappyHexMesh and Others 2 April 17, 2014 01:24
snapEdge - failure Tobi OpenFOAM Native Meshers: snappyHexMesh and Others 33 March 18, 2014 04: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 21:14.