CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

How to do : DNS simulatin of compressible flow with acounting bulk-viscosity effects

Register Blogs Community New Posts Updated Threads Search

Like Tree4Likes
  • 1 Post By FMDenaro
  • 1 Post By LuckyTran
  • 1 Post By FMDenaro
  • 1 Post By LuckyTran

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 6, 2019, 07:35
Default How to do : DNS simulatin of compressible flow with acounting bulk-viscosity effects
  #1
New Member
 
Bhanuday Sharma
Join Date: Jun 2015
Posts: 18
Rep Power: 10
bhanuday.sharma is on a distinguished road
In the N-S equation, we have two viscosities, viz., shear and bulk viscosity. However, in almost every CFD software, e.g., Fluent, OpenFOAM, the bulk viscosity is assumed to be zero. I wish to carry out DNS simulation where I can specify a nonzero bulk viscosity. My question is -- How can I implement it? Right now, I am open to any software. So you can answer this question in reference to the software of your expertise.

Thank you very much in advance.
bhanuday.sharma is offline   Reply With Quote

Old   May 6, 2019, 08:44
Default
  #2
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,768
Rep Power: 71
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by bhanuday.sharma View Post
In the N-S equation, we have two viscosities, viz., shear and bulk viscosity. However, in almost every CFD software, e.g., Fluent, OpenFOAM, the bulk viscosity is assumed to be zero. I wish to carry out DNS simulation where I can specify a nonzero bulk viscosity. My question is -- How can I implement it? Right now, I am open to any software. So you can answer this question in reference to the software of your expertise.

Thank you very much in advance.

Well, the implementation via UDF in Fluent can be done, as well as you can write a subroutine in OF.

What is exactly your problem in the implementation?
bhanuday.sharma likes this.
FMDenaro is offline   Reply With Quote

Old   May 6, 2019, 13:07
Default
  #3
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,674
Rep Power: 65
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
In OpenFOAM, you pop open your favorite compressible flow solver and go to UEqn.H and add the term with the second viscosity. Recompile your new solver and voila.

Alternatively you can just add a source term to the momentum equation using an fvOptions.

That's the gist of it. It easily gets more complicated depending on what exactly you are trying to implement.
bhanuday.sharma likes this.
LuckyTran is online now   Reply With Quote

Old   May 7, 2019, 04:49
Default Thank you for the answer. One more query.
  #4
New Member
 
Bhanuday Sharma
Join Date: Jun 2015
Posts: 18
Rep Power: 10
bhanuday.sharma is on a distinguished road
Thank you Prof. Denaro and Dr. Tran for your quick response. I have checked both the options -- UDF in Fluent and UEqn.H in OpenFOAM. Adding source term in momentum and energy equations using DEFINE_SOURCE macro of UDF seems good to me. Thank you very much again.

Now, I have another query that - to carry out a DNS simulation, can I use the Laminar model along with sufficiently fine grid and small timestep? Because, as far as I can see, in both the cases, i.e., laminar model and DNS, set of equations being solved are same.
bhanuday.sharma is offline   Reply With Quote

Old   May 7, 2019, 04:54
Default
  #5
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,768
Rep Power: 71
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by bhanuday.sharma View Post
Thank you Prof. Denaro and Dr. Tran for your quick response. I have checked both the options -- UDF in Fluent and UEqn.H in OpenFOAM. Adding source term in momentum and energy equations using DEFINE_SOURCE macro of UDF seems good to me. Thank you very much again.

Now, I have another query that - to carry out a DNS simulation, can I use the Laminar model along with sufficiently fine grid and small timestep? Because, as far as I can see, in both the cases, i.e., laminar model and DNS, set of equations being solved are same.
Yes, set laminar model, all the DNS requirement is in the grid resolution
bhanuday.sharma likes this.
FMDenaro is offline   Reply With Quote

Old   May 8, 2019, 10:12
Default
  #6
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,674
Rep Power: 65
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
Yes, use an unsteady laminar model and respect the grid resolution requirements for DNS (and the discretization options you use). You will be stuck with the discretization options available in whatever software you decide to use, but you have to live with it. You can make up for it using finer grids (which makes your DNS even more like a true DNS).


In Fluent you may/may not need to type something into the TUI to activate the bounded central differencing schemes for the laminar case. I can't remember off the top of my head.
thedal likes this.
LuckyTran is online now   Reply With Quote

Reply

Tags
bulk viscosity


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
Keeping intermediate files OVS SU2 5 December 5, 2021 11:41
mass flow in is not equal to mass flow out saii CFX 12 March 19, 2018 05:21
Compressible flow in vacuum condition aerocfd FLUENT 0 December 2, 2015 19:48
Newbie to compressible, viscous flow. Advice on approach to problem? bzz77 Main CFD Forum 4 December 4, 2012 07:59
fluid flow fundas ram Main CFD Forum 5 June 17, 2000 21:31


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