|August 11, 2011, 10:02||
Problem with TypeName in Boundary Condition
Join Date: Dec 2010
Posts: 60Rep Power: 7
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 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
|August 11, 2011, 11:38||
Join Date: Apr 2009
Location: Winnipeg, Canada
Posts: 397Rep Power: 12
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.
|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|