|
[Sponsors] |
May 16, 2013, 17:28 |
CEL function tan, atan, asin, acos
|
#1 |
New Member
Mickael
Join Date: Apr 2013
Posts: 9
Rep Power: 13 |
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 |
|
May 16, 2013, 19:48 |
|
#2 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,852
Rep Power: 144 |
This is a perl error, not a CEL error. So check your perl syntax.
|
|
May 17, 2013, 09:08 |
|
#3 |
New Member
Mickael
Join Date: Apr 2013
Posts: 9
Rep Power: 13 |
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 |
|
May 17, 2013, 10:18 |
|
#4 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,852
Rep Power: 144 |
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.
|
|
May 17, 2013, 11:30 |
|
#5 |
New Member
Mickael
Join Date: Apr 2013
Posts: 9
Rep Power: 13 |
Thanks a lot
I didn't know it Regards |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[swak4Foam] installation problem with version 0.2.3 | Claudio87 | OpenFOAM Community Contributions | 9 | May 8, 2013 11:20 |
[blockMesh] non-orthogonal faces and incorrect orientation? | nennbs | OpenFOAM Meshing & Mesh Conversion | 7 | April 17, 2013 06:42 |
Droplet Evaporation | Christian | Main CFD Forum | 2 | February 27, 2007 07:27 |
inlet CEL function k and epsilon | Nico | CFX | 1 | April 26, 2005 17:20 |
How does STEP function work in CEL setup in CFX5.5 | joseph | CFX | 1 | April 6, 2002 00:06 |