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

Adding new temperature dependent viscosity model

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By vabishek

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   May 15, 2015, 10:34
Default Adding new temperature dependent viscosity model
  #1
Member
 
VA
Join Date: Mar 2015
Location: ON, Canada
Posts: 30
Rep Power: 11
vabishek is on a distinguished road
Hello FOAMers,

I am trying to add a new viscosity model that is dependent on temperature. I was able to successfully compile the model. It works fine with geometries that have just one domain/region. However, when I try extending it to multi-regions, the model fails. In this case, the viscosity gets updated before the first step (based on my model) but it doesn't get updated after that i.e. during each time-step in the simulation.

I have a fluid region surrounded by four solid regions. I have attached a pdf to illustrate this.

I ran a test problem with just one region and printed the viscosity values at each time-step, and it does get updated correctly. I am struggling to see what needs to be modified in order to get this model working with multi-region geometry.

I have attached the code for the viscosity model.

Thanks!
Attached Files
File Type: c ManningViscosityModel.C (3.6 KB, 99 views)
File Type: h ManningViscosityModel.H (3.4 KB, 55 views)
File Type: pdf Original_geo.pdf (10.3 KB, 82 views)
Prosper likes this.

Last edited by vabishek; May 15, 2015 at 10:36. Reason: Forgot to attach a file
vabishek is offline   Reply With Quote

 


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
[openSmoke] libOpenSMOKE Tobi OpenFOAM Community Contributions 562 January 25, 2023 09:21
whats the cause of error? immortality OpenFOAM Running, Solving & CFD 13 March 24, 2021 07:15
Time and temperature dependent viscosity sur4j OpenFOAM 16 January 12, 2015 00:56
Herschel-Bulkley non-Newtonian viscosity model has term with sign error pbryant OpenFOAM Bugs 5 June 18, 2013 23:53
Regarding Implementation of Hershel Bulkley Model in Viscosity correlation Pathak FLOW-3D 0 August 24, 2009 06:34


All times are GMT -4. The time now is 23:17.