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

custom transport properties

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 12, 2011, 11:08
Question custom transport properties
  #1
New Member
 
Peter Maday
Join Date: Aug 2011
Posts: 14
Rep Power: 15
mpeti is on a distinguished road
Dear forum members,

I am new to OpenFoam, and thus this question might be trivial. I have followed the tutorial slides http://cfd.iut.ac.ir/files/ProgrammingTraining.pdf to solve the advection diffusion equation for a field being carried along by a fluid using the intermediate velocity fields of the simulation. The problem is, that in the tutorial the same value is used as the diffusivity of the transport field as is the kinematic viscosity of the fluid. (nu in transportProperties)

What I would like to achieve is to have two distinct parameters, one for the kinematic viscosity (nu) of the fluid, and one for the diffusivity (kappa), so that they can be set independently. Could anyone please tell me how to achieve this? So how can I manage to get a variable available in the main solver code that corrsponds to the diffusivity parameter and is being loaded from one of the dictionary files (for example the transportProperties)?

Thanks,
Peter
mpeti is offline   Reply With Quote

Old   October 28, 2011, 19:12
Default
  #2
Member
 
Ivor Clifford
Join Date: Mar 2009
Location: Switzerland
Posts: 94
Rep Power: 17
cliffoi is on a distinguished road
It's straightforward, add as many variables as you like as follows...
Code:
dimensionedScalar nu(transportPropertiesDict.lookup("nu"));
dimensionedScalar kappa(transportPropertiesDict.lookup("kappa"));
dimensionedVector gravity(transportPropertiesDict.lookup("g"));
etc.
OpenFOAM will automatically scan the dictionary for all the keywords and assign them to the variables.
cliffoi is offline   Reply With Quote

Reply

Tags
property dictionary


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
ReactingFoam Laminar flame simulation transport properties gbansal OpenFOAM Running, Solving & CFD 3 November 23, 2012 17:03
CFX - how to define custom scalr transport equatio CFD user CFX 0 February 20, 2009 14:09
Transport properties with PPDF combustion Erik Siemens 0 February 18, 2009 06:18
Laminar diffusion flames and reactingFoam Transport properties jgaricano OpenFOAM Running, Solving & CFD 0 June 4, 2008 17:58


All times are GMT -4. The time now is 04:40.