CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM Pre-Processing

Question about Accessing a field in time directory

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

LinkBack Thread Tools Display Modes
Old   December 6, 2016, 09:15
Default Question about Accessing a field in time directory
Lee Jung Hoo
Join Date: Dec 2015
Posts: 37
Rep Power: 4
Jung hoo is on a distinguished road
Hi, foamers. I'm modifying the source code of InterFoam for my study.

In the process, I have to access the 'nut', which is the field name in the time directory, and extract the values at a boundary.
So, I used this code.

const volScalarField& nut = db().lookupObject<volScalarField>("nut");
But When I tried to compile the code, I got the following error message.

‘db’ was not declared in this scope
In case of modifying a boundary condition, the code didn't make any problem.

I'm wondering if there is another way to access a Field in time directory.

Thank you in advance.
Jung hoo 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
Compile OF 2.3 on Mac OS X .... the patch gschaider OpenFOAM Installation on Windows, Mac and other Unsupported Platforms 225 August 25, 2015 19:43
dynamicTopoFVMesh and pointDisplacement RandomUser OpenFOAM Meshing & Mesh Conversion 5 March 2, 2015 18:19
dynamic Mesh is faster than MRF???? sharonyue OpenFOAM Running, Solving & CFD 14 August 26, 2013 07:47
Upgraded from Karmic Koala 9.10 to Lucid Lynx10.04.3 bookie56 OpenFOAM Installation 8 August 13, 2011 04:03
Convergence moving mesh lr103476 OpenFOAM Running, Solving & CFD 30 November 19, 2007 15:09

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