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

Solver with variable viscosity

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By decah
  • 1 Post By LuckyTran

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 18, 2018, 14:43
Default Solver with variable viscosity
  #1
Senior Member
 
Join Date: Jul 2013
Posts: 124
Rep Power: 12
wildfire230 is on a distinguished road
Hi all,


I am using a custom solver based on the simpleFoam and scalarTransportFoam solvers. Essentially, I use simpleFoam to calculate the steady state velocity/pressure, and then I use scalarTransportFoam to update a transported quantity, in my case a concentration. I update the concentration for several time steps and then once again calculate the pseudo-steady-state velocity/pressure and repeat. The issue I am having is that my viscosity is a field variable that is a function of the concentration. I have implemented this successfully using a new viscosityModel, but now I am a little concerned about the solver itself. For example, in the Navier-Stokes equations, there are extra terms that are needed in the case of variable viscosity. For example, gradients in viscosity can potentially drive fluid motions on their own. Does simpleFoam already consider these terms in the way it is implemented, or do I need to modify the equations being solved in order to account for the possibility of variable viscosity?


Thanks so much
wildfire230 is offline   Reply With Quote

Old   May 21, 2018, 16:15
Default
  #2
Member
 
Declan
Join Date: Oct 2016
Location: Ireland
Posts: 40
Rep Power: 9
decah is on a distinguished road
Sounds to me like you need a transient solver? Is the concentration is changing the viscosity in certain regions only or is it something continuous?

I work with the drift flux solver which uses user-defined viscosity models with the PISO solver, maybe that could work for you if you are working with concentrations of dispersed particles
wildfire230 likes this.
decah is offline   Reply With Quote

Old   May 22, 2018, 01:26
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
Variable viscosity is already handled. That's because all the solvers that use turbulence models already implement it as muEff/nuEff and it's quite obvious that the eddy viscosity is not spatially uniform. Even if it were not due to nuEff...

There are no extra terms in the Navier-Stokes if you are familiar with how transport equations look like in FVM. The viscosity sits inside the divergence, there is no gradient of viscosity.
wildfire230 likes this.
LuckyTran is offline   Reply With Quote

Old   May 22, 2018, 08:09
Default
  #4
Senior Member
 
Join Date: Jul 2013
Posts: 124
Rep Power: 12
wildfire230 is on a distinguished road
Ok great, thanks! I was thinking in terms of expanding out the equations and not in terms of FVM. That is helpful. That's what I was hoping for.
wildfire230 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
UDF code for variable viscosity in y-direction shayan_mv Fluent UDF and Scheme Programming 2 August 23, 2016 06:17
LES solver with variable density for incompressible liquids matthias OpenFOAM Running, Solving & CFD 1 April 26, 2010 05:46
error in COMSOL:'ERROR:6164 Duplicate Variable' bhushas COMSOL 1 May 30, 2008 04:35
Env variable not set gruber2 OpenFOAM Installation 5 December 30, 2005 04:27
Variable value with time - from SOLVER FILE Tuks CFX 4 July 11, 2005 05:49


All times are GMT -4. The time now is 03:07.