Problem with TypeName in Boundary Condition
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:
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
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.
|All times are GMT -4. The time now is 08:08.|