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

New BC patch definition: typeInfo problem with refCast

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 25, 2014, 17:40
Default New BC patch definition: typeInfo problem with refCast
  #1
Member
 
Join Date: Feb 2012
Posts: 35
Rep Power: 14
Matt_B is on a distinguished road
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

Last edited by Matt_B; April 26, 2014 at 10:14. Reason: wrong reference to fvPatchFields.H
Matt_B is offline   Reply With Quote

Old   April 26, 2014, 10:46
Default
  #2
Member
 
Join Date: Feb 2012
Posts: 35
Rep Power: 14
Matt_B is on a distinguished road
I'm continuing here below the thread if someone is interested to:

http://www.cfd-online.com/Forums/ope...tml#post488381
Matt_B is offline   Reply With Quote

Reply

Tags
fvpatchfields.h, patch type, type, typedef


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
[Commercial meshers] Mesh conversion problem (fluent3DMeshToFoam) Aadhavan OpenFOAM Meshing & Mesh Conversion 2 March 8, 2018 01:47
[OpenFOAM.org] Compile OF 2.3 on Mac OS X .... the patch gschaider OpenFOAM Installation 225 August 25, 2015 19:43
[GAMBIT] periodic faces not matching Aadhavan ANSYS Meshing & Geometry 6 August 31, 2013 11:25
CheckMeshbs errors ivanyao OpenFOAM Running, Solving & CFD 2 March 11, 2009 02:34
Multicomponent fluid Andrea CFX 2 October 11, 2004 05:12


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