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

Velocity Gradients or Pressure Gradients?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 14, 2011, 15:59
Default Velocity Gradients or Pressure Gradients?
  #1
Senior Member
 
Awais Ali
Join Date: Feb 2010
Location: Germany
Posts: 128
Rep Power: 17
owayz is on a distinguished road
Send a message via MSN to owayz
Hallo Foamers,
I have a small problem. I want to calculate the gradients of Velocity in a 2D simulation.
The idea is to calculate the velocity/pressure gradients in the whole mesh and mark the cells with a specified threshold value for the gradient and then refining those cells.
Why I want to do that?
Because I really tried hard to find some automatic mesh refinement strategy in openfoam but I failed.
Thats why I want to perform the refinement in this way. If some one has suggestions regarding my problem I would be really grateful for any help that I shall receive from the big hearted openfoam family.
Regards,
Awais Ali
owayz is offline   Reply With Quote

Old   October 15, 2011, 05:18
Default
  #2
Senior Member
 
akidess's Avatar
 
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 30
akidess will become famous soon enough
InterDyMFoam does not work for you (see damBreakWithObstacle tutorial) ?
akidess is offline   Reply With Quote

Old   October 15, 2011, 12:43
Default
  #3
Senior Member
 
Awais Ali
Join Date: Feb 2010
Location: Germany
Posts: 128
Rep Power: 17
owayz is on a distinguished road
Send a message via MSN to owayz
Thanks Anton,
I have tried the interDyMFoam tutorial. But before going further into detail I would like to ask whether these dynamic Mesh capabilities are avalable for 2D meshes in openFoam. Because for some solver of the same capability (i think it was dieselDyMFoam) I read that the dynamics mesh capabilities are not available for 2D meshes.
Thanks for you quick reply again.
owayz is offline   Reply With Quote

Old   October 17, 2011, 03:40
Default
  #4
Senior Member
 
akidess's Avatar
 
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 30
akidess will become famous soon enough
Ah you are right, that tutorial is 3D indeed. Well, either way, all that code should be re-usable, and you should just try to implement a flag like "restrict2D" that turns of refinement in one direction.

Before you do that, have you tried this:

http://www.cfd-online.com/Forums/ope...fvmesh-2d.html
akidess is offline   Reply With Quote

Old   October 18, 2011, 11:25
Default
  #5
Senior Member
 
Awais Ali
Join Date: Feb 2010
Location: Germany
Posts: 128
Rep Power: 17
owayz is on a distinguished road
Send a message via MSN to owayz
Thanks again for your reply Anton.
I have one other issue. interDyMFOMA is not the answer to my problem. I want to use rhoCentralDyMfoam. Do you know any place where I could find some tutorials which could help me use this solver with refinement capabilities.
Regards,
Awais
owayz is offline   Reply With Quote

Old   October 18, 2011, 17:42
Default
  #6
Senior Member
 
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,267
Blog Entries: 1
Rep Power: 25
nimasam is on a distinguished road
a simple approach but not totally sure!
compare interFoam and interDyMFoam together, then you will find extra code lines! then use the same method and lines for ur solver!
nimasam is offline   Reply With Quote

Old   October 19, 2011, 03:34
Default
  #7
Senior Member
 
akidess's Avatar
 
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 30
akidess will become famous soon enough
I'm not aware of any such tutorial, sorry. As Nima pointed out, try to use a diff-tool (e.g. meld or kompare) to check for differences between interFoam and interDyMFoam, or rhoCentralFoam and compressibleInterDyMFoam and try to isolate what code you need to add for the moving mesh capabilities. Test your new solver on a simple 3D case, and then see if you can reduce it to 2D.
akidess is offline   Reply With Quote

Old   October 19, 2011, 07:30
Default
  #8
Senior Member
 
Awais Ali
Join Date: Feb 2010
Location: Germany
Posts: 128
Rep Power: 17
owayz is on a distinguished road
Send a message via MSN to owayz
Well the suggestions are very nice. I would definitely do that. But if you have understood me correctly I want to refine the mesh for smooth distribution of gradients. But if I use dynamic mesh capabilities I am only stuck with using the velocity or pressure values as the refinement criteria (thats what I have understod from dambreaking tutorial, the refinement is done on basis of a parameter alpha, which actually helps identifies the surface for free surface flows).
I am not sure whether it would a good idea to give a min and max velocity value and refine on the basis of that value. Anyways I will try that and will post the results and observations.
Regards and thanks for your help,
Awais
owayz is offline   Reply With Quote

Old   June 13, 2012, 06:52
Default
  #9
Senior Member
 
Samuele Z
Join Date: Oct 2009
Location: Mozzate - Co - Italy
Posts: 520
Rep Power: 19
samiam1000 is on a distinguished road
Hi All,

have you found a tutorial for rhoCentralPimpleDyMFoam??

Thanks a lot.

Samuele
samiam1000 is offline   Reply With Quote

Old   August 14, 2012, 14:09
Default
  #10
Senior Member
 
Awais Ali
Join Date: Feb 2010
Location: Germany
Posts: 128
Rep Power: 17
owayz is on a distinguished road
Send a message via MSN to owayz
Hallo Samuele,
No actually I stopped looking for dynamic mesh capabilities to refine my mesh. But actually I modified my approach and calculated the Velocity Gradients in the flow field and used them as a criteria to refine my mesh. I adopted this method to refine the mesh in shear layers.
And this thread helped me doing what I did, here is the link may be you can have y look.
http://www.cfd-online.com/Forums/ope...gradients.html
If you are trying to do the same thing I would be happy to help you.
Regards,
Awais
owayz 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
Boundary Conditions : Total Pressure or Velocity Gearb0x OpenFOAM Running, Solving & CFD 2 February 28, 2011 22:18
Channel flow: Inlet pressure AND uniform velocity? frmap1 Main CFD Forum 0 April 15, 2010 11:32
Large pressure gradients = anisotropy??? cfd_enthusiast Main CFD Forum 0 February 9, 2010 12:09
Does star cd takes reference pressure? monica Siemens 1 April 19, 2007 12:26
How to set pressure BC with mass Velocity Magnitud arwang FLUENT 2 March 12, 2007 21:04


All times are GMT -4. The time now is 10:06.