CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   CFX (https://www.cfd-online.com/Forums/cfx/)
-   -   CEL function tan, atan, asin, acos (https://www.cfd-online.com/Forums/cfx/117886-cel-function-tan-atan-asin-acos.html)

Leackim May 16, 2013 17:28

CEL function tan, atan, asin, acos
 
Hi,

I am a bit suprised, someone know how to use tan or atan function in CFD POST.

"ERROR
CCL parser failed with message:
Perl Syntax errors detected:
Undefined subroutine &CUEPost::asin called at (eval 1528) line 387."

Why coudln't we use those functions ?


Thanks


Mickael

ghorrocks May 16, 2013 19:48

This is a perl error, not a CEL error. So check your perl syntax.

Leackim May 17, 2013 09:08

Thanks for your answer but i didn't know where i could make a mistake in my perl,

! $TEST=atan($RATIO);

In fact, if i remove atan by sin or cos it works so it's kind of strange.

I succed in my task though by using an expression defined as atan...

Regards

Mickael

ghorrocks May 17, 2013 10:18

The perl documentation (http://perldoc.perl.org/Math/Trig.html) states you have to have "use Math::Trig;" in your program to load the maths libraries to have the atan function available. The default perl gizmo only supports sin and cos.

Leackim May 17, 2013 11:30

Thanks a lot

I didn't know it


Regards


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