CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM Running, Solving & CFD

How to access custom Scalar Field in viscosity model

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

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

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


tmp<volscalarfield> MyViscModel::calcNu() const

That does the trick.

caw is offline   Reply With Quote


Thread Tools
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 On
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 09: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 16:23.