CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Phoenics (https://www.cfd-online.com/Forums/phoenics/)
-   -   How to use LN or LOG functions in PLANT command? (https://www.cfd-online.com/Forums/phoenics/51598-how-use-ln-log-functions-plant-command.html)

Bryan Lam May 8, 2003 04:25

How to use LN or LOG functions in PLANT command?
 
Hi, all,

Anyone knows how to use the mathmatical functions of LN or LOG in plant menu? It seems that PLANT can't identify these commands from my experiences.

And another question is, can i define the K /e value of the inlet boundary conditions in PLANT menu? And should i use ONLYMS(i think we should use this) or FIXFLU as the third arguement of COVAL?

Thanks.

Bryan

John Ludwig, CHAM May 9, 2003 12:30

Re: How to use LN or LOG functions in PLANT comman
 
PLANT turns the expressions into FORTRAN, so if you use the FORTRAN functions ALOG10 for LOG and ALOG for LN it will understand. For example, the following lines added to a Q1:

STORE(LOGP, LNP) PLANTBEGIN NAMSAT=MOSG <SC0601> LOGP=ALOG10(P1) <SC0602> LNP=ALOG(P1) PLANTEND

will cause PLANT to put LOG(P1) into LOGP and LN(P1) into LNP.

PLANT can be used to set inlet values of any solved variables, including KE and EP. The third argument of COVAL should definitely be ONLYMS.


All times are GMT -4. The time now is 09:19.