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

DNS simulation (of anything)

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By ShantanuSG
  • 1 Post By Santiago

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 1, 2017, 17:12
Default DNS simulation (of anything)
  #1
Senior Member
 
kandelabr's Avatar
 
Nejc
Join Date: Feb 2017
Location: Slovenia
Posts: 196
Rep Power: 9
kandelabr is on a distinguished road
I tried to run a DNS case (i managed to get cell size small enough and geometry is fairly simple) only to find out dnsFoam only solves 'box' geometry.

I guess there's a reason for this?
kandelabr is offline   Reply With Quote

Old   March 2, 2017, 07:15
Default
  #2
Senior Member
 
piu58's Avatar
 
Uwe Pilz
Join Date: Feb 2017
Location: Leipzig, Germany
Posts: 744
Rep Power: 15
piu58 is on a distinguished road
dnsFoam uses a spectral method for solving the case. This requires a rectangular mesh, all cell sizes equal and the cell count a power of 2.

You may use paraFoam instead and make the spatial and time resolution as small as the Kolmogorov scale requires. The dissipation rate eps disappears in this case (= gets very small).
__________________
Uwe Pilz
--
Die der Hauptbewegung überlagerte Schwankungsbewegung ist in ihren Einzelheiten so hoffnungslos kompliziert, daß ihre theoretische Berechnung aussichtslos erscheint. (Hermann Schlichting, 1950)
piu58 is offline   Reply With Quote

Old   March 2, 2017, 07:24
Default
  #3
Senior Member
 
kandelabr's Avatar
 
Nejc
Join Date: Feb 2017
Location: Slovenia
Posts: 196
Rep Power: 9
kandelabr is on a distinguished road
Oh I see.
Thanks for the tip - but are you sure you meant paraFoam?

Could that be the reason that simpleFoam with k-Epsilon model blows up with very small cell sizes? I'm not really sure what's going on because everything was fine with triangular mesh with slightly bigger cells (just above Kolmogorov scale).
Now I used blockMesh with sizes around 0.1x Kolmogorov scale and strange anomalies in pressure and velocity occur in one spot.
kandelabr is offline   Reply With Quote

Old   March 2, 2017, 13:04
Default
  #4
Senior Member
 
piu58's Avatar
 
Uwe Pilz
Join Date: Feb 2017
Location: Leipzig, Germany
Posts: 744
Rep Power: 15
piu58 is on a distinguished road
simple Foam is not suited for transient cases. icoFoma doesn't have turbulence at all. pimpleFoam makes large time steps and corrects afterwards.

From the standard incompressible solvers only pisoFoam remains.
__________________
Uwe Pilz
--
Die der Hauptbewegung überlagerte Schwankungsbewegung ist in ihren Einzelheiten so hoffnungslos kompliziert, daß ihre theoretische Berechnung aussichtslos erscheint. (Hermann Schlichting, 1950)
piu58 is offline   Reply With Quote

Old   March 3, 2017, 03:25
Default
  #5
Senior Member
 
kandelabr's Avatar
 
Nejc
Join Date: Feb 2017
Location: Slovenia
Posts: 196
Rep Power: 9
kandelabr is on a distinguished road
pisoFoam it is then.
I guess I can't use simpleFoam even though it is a steady-state case (a gap in plain bearings)?

Thanks for your help.
kandelabr is offline   Reply With Quote

Old   August 15, 2018, 08:50
Default
  #6
New Member
 
Shantanu S Gulawani
Join Date: Aug 2018
Posts: 1
Rep Power: 0
ShantanuSG is on a distinguished road
Quote:
Originally Posted by piu58 View Post
dnsFoam uses a spectral method for solving the case. This requires a rectangular mesh, all cell sizes equal and the cell count a power of 2.

You may use paraFoam instead and make the spatial and time resolution as small as the Kolmogorov scale requires. The dissipation rate eps disappears in this case (= gets very small).
Greetings Sir,

How do you find that it is a spectral code? or that it uses spectral method?
I also want to know what is time discretization scheme in this solver?
Santiago likes this.
ShantanuSG is offline   Reply With Quote

Old   August 16, 2018, 03:37
Default
  #7
Senior Member
 
Robert
Join Date: May 2015
Location: Bremen, GER
Posts: 292
Rep Power: 12
RobertHB is on a distinguished road
Quote:
Originally Posted by ShantanuSG View Post
I also want to know what is time discretization scheme in this solver?
The time discretization schemes are chosen in the fvOptions dictionary. An overview can be found here.
__________________
If you liked my answer to your question, please consider leaving a "Like" in return
RobertHB is offline   Reply With Quote

Old   August 16, 2018, 05:27
Default
  #8
Senior Member
 
Santiago Lopez Castano
Join Date: Nov 2012
Posts: 354
Rep Power: 15
Santiago is on a distinguished road
Quote:
Originally Posted by piu58 View Post
dnsFoam uses a spectral method for solving the case. This requires a rectangular mesh, all cell sizes equal and the cell count a power of 2.
The statement is partially true, in the sense that the second phrase is true: an inverse FFT is done, so the properties on the mesh described by @piu58 are needed. On the other hand, dnsFoam IS NOT A SPECTRAL CODE. Is just a variant of icoFoam. Still 2nd order FVM, using PISO for integrating the flow field.

The requirements on the mesh come from the Kmesh class, that is used to generate the K field, which is used to generate a pseudo-random force.
FlameSlave likes this.
Santiago 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
Simulation FPEs - turbulence for transient and steady-state? DaveR OpenFOAM Running, Solving & CFD 5 March 5, 2017 15:06
Filtering DNS solutions Vs projecting filtered DNS solution juliom Main CFD Forum 5 May 19, 2016 16:06
Simulation of a complex wing in solidworks flow simulation niels1900 FloEFD, FloWorks & FloTHERM 6 April 20, 2011 10:44
finding noise of flow by dns simulation m2montazari OpenFOAM Running, Solving & CFD 0 October 22, 2010 11:54
FSI TWO-WAY SIMULATION Smagmon CFX 1 March 6, 2009 13:24


All times are GMT -4. The time now is 21:57.