CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   New BC patch definition: typeInfo problem with refCast (https://www.cfd-online.com/Forums/openfoam/134207-new-bc-patch-definition-typeinfo-problem-refcast.html)

Matt_B April 25, 2014 17:40

New BC patch definition: typeInfo problem with refCast
 
Hi everybody,
it was a long time without posting anything, but I always followed the developments of the Forum ;)
Now I'm facing a problem for which I didn't find a soution up to now, by reading other posts on this forums: I hope someone of you can help me, because it is a matter quite annoying to me.
For the solver I'm modifing, I had the necessity to create a new BC, because I didn't find one to suit my needs. I modified the "compressible::turbulentHeatFluxTemperature" calling it "myGradientEnthalpy". Everything worked fine, I created a new library by means of the "make libso" command and I put the reference to it in 'controlDict' for my case.
The problem arised when I decided to fix this BC in the createFields.H header using the refCast word; compiling the solver comes an error message in which seems "myGradientEnthalpy" is not recognized as a type. The error is generated inside the typeInfo.H header at line 110.
As far as I understand, the problem could be solved with one of the macros listed in fvPatchField.H header and used to define a new type by means of typeDef and macro declarations, but I don't know how.; I didn't find yet a method to get the solver compiling process see my new BC even as a new recognized type to make refCast work.
Could someone please give me a clue about this issue?

Thank you in advance.

Matteo

Matt_B April 26, 2014 10:46

I'm continuing here below the thread if someone is interested to:

http://www.cfd-online.com/Forums/ope...tml#post488381


All times are GMT -4. The time now is 02:29.