CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM Programming & Development

Problem with TypeName in Boundary Condition

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

LinkBack Thread Tools Display Modes
Old   August 11, 2011, 10:02
Default Problem with TypeName in Boundary Condition
Jim Knopf
Join Date: Dec 2010
Posts: 60
Rep Power: 6
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:

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

JimKnopf is offline   Reply With Quote

Old   August 11, 2011, 11:38
Senior Member
David Gaden
Join Date: Apr 2009
Location: Winnipeg, Canada
Posts: 397
Rep Power: 12
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.

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

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