CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > CFX

CEL function tan, atan, asin, acos

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 16, 2013, 17:28
Default CEL function tan, atan, asin, acos
  #1
New Member
 
Mickael
Join Date: Apr 2013
Posts: 9
Rep Power: 13
Leackim is on a distinguished road
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
Leackim is offline   Reply With Quote

Old   May 16, 2013, 19:48
Default
  #2
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,852
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
This is a perl error, not a CEL error. So check your perl syntax.
ghorrocks is offline   Reply With Quote

Old   May 17, 2013, 09:08
Default
  #3
New Member
 
Mickael
Join Date: Apr 2013
Posts: 9
Rep Power: 13
Leackim is on a distinguished road
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
Leackim is offline   Reply With Quote

Old   May 17, 2013, 10:18
Default
  #4
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,852
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
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.
ghorrocks is offline   Reply With Quote

Old   May 17, 2013, 11:30
Default
  #5
New Member
 
Mickael
Join Date: Apr 2013
Posts: 9
Rep Power: 13
Leackim is on a distinguished road
Thanks a lot

I didn't know it


Regards
Leackim is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 21:22.