|
[Sponsors] |
February 20, 2012, 20:25 |
error: 'Foam::T' does not have class type
|
#1 |
Member
Join Date: Feb 2012
Posts: 59
Rep Power: 14 |
double ptr_temp[OF_nCells];
for (int i=0; i<OF_nCells; i++) ptr_temp[i] = T.field()[i]; The above is working well in OpenFOAM 1.5. But it doesn't work in OF 1.7 and an error occurs as, solver_data.H:8:18: error: 'Foam::T' does not have class type any idea about this problem? |
|
February 21, 2012, 03:36 |
|
#2 |
Senior Member
Kathrin Kissling
Join Date: Mar 2009
Location: Besigheim, Germany
Posts: 134
Rep Power: 17 |
Hi,
can you give us a hint on how T is defined? Thanks Kathrin |
|
February 21, 2012, 16:32 |
|
#3 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Greetings to all!
Indeed, more information would clearly make it easier to help! Usually there are two kinds of "T" on OpenFOAM applications:
Best regards, Bruno
__________________
|
|
February 22, 2012, 03:22 |
|
#4 |
Senior Member
Kathrin Kissling
Join Date: Mar 2009
Location: Besigheim, Germany
Posts: 134
Rep Power: 17 |
Hi Bruno,
do you think it got mixed up? T.field() instead of field.T() possible.... Best Kathrin |
|
February 22, 2012, 04:36 |
|
#5 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi Kathrin,
I'm almost betting on it being that issue. I saw this problem a week or so ago, where we were basing ourselves on the discontinued Programmers Guide and came to the conclusion that "Foam::T" was a must on an equation, because the "T" field already existed. Actually, I'm not even sure if "field.T()" still exists... Best regards, Bruno
__________________
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
boundary conditions for simpleFoam calculation | foam_noob | OpenFOAM Running, Solving & CFD | 8 | July 1, 2015 09:07 |
Pressure instability with rhoSimpleFoam | daniel_mills | OpenFOAM Running, Solving & CFD | 44 | February 17, 2011 18:08 |
Flow Around a Cylinder | ronaldo | OpenFOAM | 5 | September 18, 2009 09:13 |
Problem with compile the setParabolicInlet | ivanyao | OpenFOAM Running, Solving & CFD | 6 | September 5, 2008 21:50 |
Errors running allwmake in OpenFOAM141dev with WM_COMPILE_OPTION%3ddebug | unoder | OpenFOAM Installation | 11 | January 30, 2008 21:30 |