CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM Pre-Processing

Mesh refinement with the help of a value

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

Like Tree1Likes
  • 1 Post By jhoepken

LinkBack Thread Tools Display Modes
Old   July 30, 2014, 07:42
Default Mesh refinement with the help of a value
New Member
Join Date: Jan 2013
Posts: 10
Rep Power: 6
nucat is on a distinguished road
Sponsored Links

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
Sponsored Links

Old   July 31, 2014, 04:57
Senior Member
Jens Höpken
Join Date: Apr 2009
Location: Duisburg, Germany
Posts: 157
Rep Power: 10
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.
"The OpenFOAM Technology Primer":
Twitter: @sourceflux_de
Interested in courses on OpenFOAM?
jhoepken is offline   Reply With Quote

Old   April 3, 2015, 00:04
Join Date: Jan 2014
Location: Toronto
Posts: 50
Rep Power: 5
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


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 24 June 27, 2016 08:54
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

Sponsored Links

All times are GMT -4. The time now is 14:43.