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

Defining a polynomial viscosity depending on temperature

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 28, 2020, 04:28
Default Defining a polynomial viscosity depending on temperature
  #1
mep
New Member
 
Muhammed Emin POLAT
Join Date: Sep 2020
Posts: 7
Rep Power: 5
mep is on a distinguished road
Hello all,

I'm currently trying to run an analysis using temperature integrated simpleFoam. As of my observations, temperature range for the fluid is between 20-50 C and due to this large range, viscosity changes in a wide range which leads my computation into a big error, at about 50%.

So here is my question. I would like to apply a curve-fitting to viscosity of my fluid flowing through and integrate it in the OpenFOAM by NOT using a non-Newtonian approach. Because fluid is definetely Newtonian.

How can I achieve it?
mep is offline   Reply With Quote

Old   September 29, 2020, 05:30
Default
  #2
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Tussenhausen
Posts: 2,708
Blog Entries: 6
Rep Power: 51
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
There are more options. Either you switch to, e.g., rhoSimpleFoam and use a polynomial approach or you derive your current solver (simpleFoam) and implement new volScalarFieldīs which relates to temperature and viscosity. Then you have to solve an appropriate temperature/energy equation and calculate the viscosity based on your temperature field.

Probably, the rhoSimpleFoam solver fits better as you donīt have to program anything yourself. An example:

Code:
thermoType
{
    type            heRhoThermo;
    mixture         pureMixture;
    transport       polynomial;
    thermo          hPolynomialt;
    equationOfState polynomial;
    specie          specie;
    energy          sensibleEnthalpy;
}
The thermo and equation of state polynomials might be just set-up with the first coefficient (its the constant). The transport polynomial is related to the viscosity.
__________________
Keep foaming,
Tobias Holzmann
Tobi is offline   Reply With Quote

Old   September 30, 2020, 02:30
Default
  #3
mep
New Member
 
Muhammed Emin POLAT
Join Date: Sep 2020
Posts: 7
Rep Power: 5
mep is on a distinguished road
Thank you for your reply Tobi,


The thing is I would like to compute the viscosity for each cell using its temperature and have this value used in governing equations. I don't want any contour for viscosity, to say. Do you have any recommendation for this goal?



Quote:
Originally Posted by Tobi View Post
There are more options. Either you switch to, e.g., rhoSimpleFoam and use a polynomial approach or you derive your current solver (simpleFoam) and implement new volScalarFieldīs which relates to temperature and viscosity. Then you have to solve an appropriate temperature/energy equation and calculate the viscosity based on your temperature field.

Probably, the rhoSimpleFoam solver fits better as you donīt have to program anything yourself. An example:

Code:
thermoType
{
    type            heRhoThermo;
    mixture         pureMixture;
    transport       polynomial;
    thermo          hPolynomialt;
    equationOfState polynomial;
    specie          specie;
    energy          sensibleEnthalpy;
}
The thermo and equation of state polynomials might be just set-up with the first coefficient (its the constant). The transport polynomial is related to the viscosity.
mep is offline   Reply With Quote

Old   September 30, 2020, 02:36
Default
  #4
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Tussenhausen
Posts: 2,708
Blog Entries: 6
Rep Power: 51
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Well, I am not sure if you read my reply or not because I wrote the stuff you need. Hence, I don't get your statement.
__________________
Keep foaming,
Tobias Holzmann
Tobi is offline   Reply With Quote

Old   September 30, 2020, 04:06
Default
  #5
mep
New Member
 
Muhammed Emin POLAT
Join Date: Sep 2020
Posts: 7
Rep Power: 5
mep is on a distinguished road
Thank you for your help and kindness.
mep is offline   Reply With Quote

Old   September 30, 2020, 04:52
Default
  #6
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Tussenhausen
Posts: 2,708
Blog Entries: 6
Rep Power: 51
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Just a quick question. Is it clear to you now or not? I don't have the feeling that my statement is sufficient for you or maybe I misunderstood your inquiry!?
__________________
Keep foaming,
Tobias Holzmann
Tobi is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Boussinesq equation of state combined with polynomial viscosity TomasDenk OpenFOAM Programming & Development 3 October 30, 2020 03:16
Multiphase flow - incorrect velocity on inlet Mike_Tom CFX 6 September 29, 2016 01:27
Calculation of the Governing Equations Mihail CFX 7 September 7, 2014 06:27
UDF for Back-flow Temperature G340 Fluent UDF and Scheme Programming 3 August 21, 2013 04:56
Problem with transport properties depending on Temperature galaad OpenFOAM Running, Solving & CFD 5 December 6, 2005 12:51


All times are GMT -4. The time now is 16:42.