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

transportProperties as a distribution instead of a scalar

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 7, 2022, 12:11
Default transportProperties as a distribution instead of a scalar
  #1
New Member
 
Aniruddha Saha
Join Date: Mar 2022
Posts: 9
Rep Power: 4
saurcerer is on a distinguished road
Hi all,

I want to use heat conductivity as a user input distribution (instead of a scalar) in transportProperties on a node by node basis. Is there a way out to handle this elegantly? setFields sets initial fields as a distribution very nicely, I want to do something like that.
saurcerer is offline   Reply With Quote

Old   June 9, 2022, 09:30
Default
  #2
Senior Member
 
Join Date: Apr 2020
Location: UK
Posts: 668
Rep Power: 14
Tobermory will become famous soon enough
That's a pretty open question I think - presumably you are interested in a RAS model turbulece closure? The effective thermal diffusivity is calculated as the sum of the laminar and thermal diffusivities, with the former being related to the thermal conductivity, and the latter being calcuilated from the eddy viscosity using the turbulent Prandtl number.

If you want to override all or part of this relationship, then I imagine that you'll need to write your own version of the eddyDiffusivity class and read in the thermal conductivity & Prandtl # as fields ...

Try track down the class logic, starting with the divergence term in the energy equation for the solver that you are working on, and you'll begin to see what you need to duplicate/change.

PS - let us know how you get on!
Tobermory is offline   Reply With Quote

Reply

Tags
transport coefficient, transport properties


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
codeFixedValue - define and use function in code block? GregNordin OpenFOAM Running, Solving & CFD 6 November 9, 2023 17:43
[Solved] Passive Scalar Source Term "Bug" taalf OpenFOAM Running, Solving & CFD 1 July 13, 2016 08:29
using a Fortran library of thermodynamics inside sutherland transport model Mehdi3031 OpenFOAM Programming & Development 0 April 7, 2016 09:34
access to member function variable Rahand OpenFOAM Programming & Development 3 March 29, 2016 15:46
Specifying nonuniform boundary condition maka OpenFOAM Running, Solving & CFD 59 October 22, 2014 14:52


All times are GMT -4. The time now is 13:37.