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

Problem with TypeName in Boundary Condition

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 2 Post By marupio

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 11, 2011, 10:02
Default Problem with TypeName in Boundary Condition
  #1
Member
 
Jim Knopf
Join Date: Dec 2010
Posts: 60
Rep Power: 15
JimKnopf is on a distinguished road
Hi Everybody!

I tried to implement a new BC. It inherits from fixedValueFvPatchField<scalar> and is called wallFilmFvPatchField

wenn I try to compile it i get the following error:

Code:
Make/linux64GccDPOpt/wallFilmFvPatchField.o: In function `Foam::wallFilmFvPatchField::type() const':
wallFilmFvPatchField.C:(.gnu.linkonce.t._ZNK4Foam20wallFilmFvPatchField4typeEv+0x3): undefined reference to `Foam::wallFilmFvPatchField::typeName'
I havn't defined a member type(), but it got a TypeName("wallFilm");

I tried to define a memberfunction type() which returns a word but that wasn't a solution.

Actually I don't even know what the exact problem is and where it got that type() thing from.

Hope anybody can help

Greetz
Jim
JimKnopf is offline   Reply With Quote

Old   August 11, 2011, 11:38
Default
  #2
Senior Member
 
David Gaden
Join Date: Apr 2009
Location: Winnipeg, Canada
Posts: 437
Rep Power: 22
marupio is on a distinguished road
OpenFOAM has a bunch of hidden type-naming macros that are handy for the underlying machinery. Look at className.H and typeInfo.H in src/OpenFOAM/db/typeInfo for their definitions. fvPatchFields usually call these macros through their own macros... eg: "makePatchTypeField" - see the bottom of fvPatchField.H. You should look at an example fvPatchField that is similar, and see what they are doing. It is important to distinguish between a templated fvPatchField (e.g. fixedInternalValueFvPatchField) and a non-templated one (e.g. fixedFluxPressure) because they have different requirements.

-Dave
Brandon233 and dasa like this.
marupio 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
inlet velocity boundary condition murali CFX 5 August 3, 2012 08:56
Transient Simulation: Boundary Condition Problem Shafiul CFX 7 January 11, 2011 16:40
boundary condition problem shahab.ehsanfar CFX 2 December 31, 2010 08:32
problem about periodic boundary condition in Fluent winnawinna FLUENT 0 December 28, 2010 23:32
RPM in Wind Turbine Pankaj CFX 9 November 23, 2009 04:05


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