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

Recycled inflow using directMappedFixedValue

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 22, 2010, 16:30
Exclamation Recycled inflow using directMappedFixedValue
  #1
Senior Member
 
Francois
Join Date: Jun 2010
Posts: 107
Rep Power: 21
Fransje will become famous soon enough
Dear Foamers,

I'm trying to implement a recycling inflow somewhat similar to that of Lund, Wu and Squires.

OpenFOAM has two pre-programmed boundary conditions allowing a one-to-one remapping of a velocity field taken from a plane in the domain to the inflow, through directMappedFixedValueFvPatchField and through directMappedVelocityFluxFixedValueFvPatchField. My idea was to take the directMappedFixedValue boundary condition and start from there.

Soon enough I encountered my first problem when trying to access the "nu" value read in during the initialization of pisoFoam.
I'm using the following code:
Code:
const dimensionedScalar& readNu = db().lookupObject<IOdictionary>("transportProperties").lookup("nu");
and get the following error from the compiler:
Quote:
/directMappedFixedValueFvPatchField.C: In member function ‘virtual void Foam::directMappedFixedValueFvPatchField<Type>::up dateCoeffs()’:
/directMappedFixedValueFvPatchField.C:186: error: there are no arguments to ‘db’ that depend on a template parameter, so a declaration of ‘db’ must be available
The point is, when I try to use the same code in the directMappedVelocityFluxFixedPatch BC which is not a template class, but is for the rest very similar to directMappedFixedValue, it does work..

Would somebody have an insight on what I might be doing wrong?

Thank you in advance!

Francois.
Fransje is offline   Reply With Quote

Reply

Tags
directmappedfixedvalue, recycled inflow


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
Turbulence inflow generation - recycling method panda60 OpenFOAM Running, Solving & CFD 15 April 25, 2013 02:34
Turbulent Inflow Conditions ali OpenFOAM Running, Solving & CFD 2 July 9, 2009 10:55
inflow condition Feitoudaer Main CFD Forum 7 March 25, 2007 17:09
Prescribed inflow velocity profile - how to? Alan Main CFD Forum 10 October 28, 2005 13:14
Inflow condition for the liquid fuel pool fire Jianping Zhang Main CFD Forum 0 May 1, 2003 08:24


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