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, 16:28
Default CEL function tan, atan, asin, acos
  #1
New Member
 
Mickael
Join Date: Apr 2013
Posts: 9
Rep Power: 12
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, 18:48
Default
  #2
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,703
Rep Power: 143
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, 08:08
Default
  #3
New Member
 
Mickael
Join Date: Apr 2013
Posts: 9
Rep Power: 12
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, 09:18
Default
  #4
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,703
Rep Power: 143
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, 10:30
Default
  #5
New Member
 
Mickael
Join Date: Apr 2013
Posts: 9
Rep Power: 12
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 10:20
[blockMesh] non-orthogonal faces and incorrect orientation? nennbs OpenFOAM Meshing & Mesh Conversion 7 April 17, 2013 05:42
Droplet Evaporation Christian Main CFD Forum 2 February 27, 2007 06:27
inlet CEL function k and epsilon Nico CFX 1 April 26, 2005 16:20
How does STEP function work in CEL setup in CFX5.5 joseph CFX 1 April 5, 2002 23:06


All times are GMT -4. The time now is 07:17.