CFD Online Discussion Forums

CFD Online Discussion Forums (
-   FLUENT (
-   -   powers and roots (

Andrew Garrard July 31, 2003 11:09

powers and roots
Also, another little problem I am having is that I am trying to get the unit vector of the F_AREA function. This involves using pythagarus to work out the length of (A[0]^2 + A[1]^2)^0.5. When I use the ^ symbol the code will not compile and when I use _power((A[0]), 2) it produces an error EOF on stderr. The fluent Process could not be started.

Any suggestions anyone

alex July 31, 2003 12:57

Re: powers and roots

C rule

pow(10.0, 2.0)

do not forget to use (.)



All times are GMT -4. The time now is 16:46.