|
[Sponsors] |
May 18, 2018, 15:43 |
Solver with variable viscosity
|
#1 |
Senior Member
Join Date: Jul 2013
Posts: 124
Rep Power: 13 |
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 |
|
May 21, 2018, 17:15 |
|
#2 |
Member
Declan
Join Date: Oct 2016
Location: Ireland
Posts: 40
Rep Power: 10 |
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 |
|
May 22, 2018, 02:26 |
|
#3 |
Senior Member
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,761
Rep Power: 66 |
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. |
|
May 22, 2018, 09:09 |
|
#4 |
Senior Member
Join Date: Jul 2013
Posts: 124
Rep Power: 13 |
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.
|
|
|
|
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 07:17 |
LES solver with variable density for incompressible liquids | matthias | OpenFOAM Running, Solving & CFD | 1 | April 26, 2010 06:46 |
error in COMSOL:'ERROR:6164 Duplicate Variable' | bhushas | COMSOL | 1 | May 30, 2008 05:35 |
Env variable not set | gruber2 | OpenFOAM Installation | 5 | December 30, 2005 05:27 |
Variable value with time - from SOLVER FILE | Tuks | CFX | 4 | July 11, 2005 06:49 |