CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Phoenics (https://www.cfd-online.com/Forums/phoenics/)
-   -   How to implement LOG function with PLANT (https://www.cfd-online.com/Forums/phoenics/51325-how-implement-log-function-plant.html)

Cheng-Hu Hu January 8, 2002 17:08

How to implement LOG function with PLANT
 
Hi,

Could anyone tell me how to input a formula like U1(z)=UTAU/K*LOG(Z/Z0). I tried to input this formula with the PLANT menu, but I got some error message telling me that the LOG is not a stored variable when compiling the GROUND. Is it not a built-in mathematical operator in PLANT? If LOG cannot be recognised by PLANT, what should I do? Please help!

Hu

Sergei Zhubrin January 10, 2002 10:47

Re: How to implement LOG function with PLANT
 
The FORTRAN intrinsic functions, such as natural logarithms, should be referenced, in PLANT expressions, by using their specific rather than generic names: ALOG for natural logarithms, ALOG10 for common logarithm, AMAX1 for choosing largest values etc.

Sergei Zhubrin


Cheng-Hu Hu January 10, 2002 11:53

Re: How to implement LOG function with PLANT
 
Thank you very much! BTW, is there any on-line documents about the allowable mathematical functions to be used in PLANT? I've got some documents at http://213.210.25.174/phoenics/d_pol...nc/in-form.htm but there are some things contradictory to what can be used. For example, '^' is not accepted by PLANT, and '**' should be used instead for power. Also, there is no explaination about using ALOG instead of LOG. Could you please give me a more comprehensive reference about standard PLANT expressions so that I can follow?

Cheers,

Hu


All times are GMT -4. The time now is 06:12.