|
[Sponsors] | |||||
|
|
|
#1 |
|
Member
Ken Darcovich
Join Date: Mar 2009
Location: Ottawa, Canada
Posts: 30
Rep Power: 6 ![]() |
Hi, I'm trying to get a really simple thing to compile,
pow(a,b) where the exponent b is real. Open Foam does not seem to want to compile this. It works fine if b is an integer. Surely there has to be a way to use real exponents. Help? thanks! |
|
|
|
|
|
|
|
|
#2 |
|
Senior Member
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,695
Rep Power: 17 ![]() |
Should work. Try Foam::pow(a, b); if it does not work, could you please post the error message.
Hrv
__________________
Hrvoje Jasak |
|
|
|
|
|
|
|
|
#3 |
|
Senior Member
Philippose Rajan
Join Date: Mar 2009
Location: Germany
Posts: 509
Rep Power: 13 ![]() |
Hello,
Did you try defining the variables as OpenFOAM datatype "scalar" rather than the normal "float" or "double" datatype ? Philippose |
|
|
|
|
|
|
|
|
#4 |
|
Member
Ken Darcovich
Join Date: Mar 2009
Location: Ottawa, Canada
Posts: 30
Rep Power: 6 ![]() |
the Foam::pow(a,b) works as suggested!
that's it, that's all I need, I'm back on the rails. thanks! |
|
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| i need your real help | sihat | FLUENT | 3 | August 8, 2007 15:00 |
| [Fortran] (-real number)**(- or + real number) | jinwon | Main CFD Forum | 3 | June 14, 2007 14:50 |
| REAL GAS UDF | brian | FLUENT | 6 | September 11, 2006 08:23 |
| Real Gas | Alireza Zarif | FLUENT | 0 | October 30, 2005 09:53 |
| What is real? | - | Main CFD Forum | 0 | December 26, 2004 11:28 |