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

CEL function tan, atan, asin, acos

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   May 16, 2013, 16:28
Default CEL function tan, atan, asin, acos
  #1
New Member
 
Mickael
Join Date: Apr 2013
Posts: 7
Rep Power: 3
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: 9,376
Rep Power: 74
ghorrocks has a spectacular aura aboutghorrocks has a spectacular aura aboutghorrocks has a spectacular aura about
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: 7
Rep Power: 3
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: 9,376
Rep Power: 74
ghorrocks has a spectacular aura aboutghorrocks has a spectacular aura aboutghorrocks has a spectacular aura about
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: 7
Rep Power: 3
Leackim is on a distinguished road
Thanks a lot

I didn't know it


Regards
Leackim is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
swak4Foam installation problem Claudio87 OpenFOAM 9 May 8, 2013 10:20
non-orthogonal faces and incorrect orientation? nennbs OpenFOAM Native Meshers: blockMesh 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 22:06


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