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

How to access custom Scalar Field in viscosity model

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 26, 2008, 11:11
Default Ok, I added the following line
  #1
caw
Member
 
Christian Winkler
Join Date: Mar 2009
Location: Mannheim, Germany
Posts: 63
Rep Power: 17
caw is on a distinguished road
Ok, I added the following line:

const volScalarField& XXX = U_.mesh().lookupObject<volscalarfield>("XXX");

to

tmp<volscalarfield> MyViscModel::calcNu() const
{
...
}

That does the trick.

regards
Christian
caw is offline   Reply With Quote

Reply


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
UDF vs Custom field function andrew FLUENT 5 June 24, 2011 10:53
Custom Field function...>>>Please HELP..! sushii FLUENT 2 October 11, 2007 01:04
Custom Field Functions bov FLUENT 5 November 21, 2005 08:31
Custom field functions sivakumar FLUENT 1 October 12, 2001 06:36
Custom Field Functions ak FLUENT 2 October 8, 2001 10:23


All times are GMT -4. The time now is 22:32.