CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Fluent UDF and Scheme Programming

Trigonometric functions in UDF

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

Reply
 
LinkBack Thread Tools Display Modes
Old   September 24, 2012, 07:48
Default Trigonometric functions in UDF
  #1
New Member
 
Mukesh
Join Date: Sep 2012
Posts: 28
Rep Power: 4
er.mkumar is on a distinguished road
Hello,

Is it that while using trigonometric functions like tan(arg) we should ensure 'arg' in degrees or radians too work.

kindly clarify as my UDF is not running (showing floating point error: invalid no) when I use 'arg' in radians while its not giving proper result while using 'arg' as degree.

Regards,
mukesh
er.mkumar is offline   Reply With Quote

Old   October 2, 2012, 12:39
Default
  #2
New Member
 
Mukesh
Join Date: Sep 2012
Posts: 28
Rep Power: 4
er.mkumar is on a distinguished road
Issue Resolved!

As we all know in 'C language' argument of Trigonometric functions shall be in radians, similarly while writing UDF the argument(if in DEGREE) must be multiplied by (M_PI/180) else not required if argument is in RADIANs.
er.mkumar 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
Plot UDF functions Mike Spears FLUENT 9 October 14, 2014 00:12
UDF Wall functions in Fluent syler3321 Fluent UDF and Scheme Programming 2 September 20, 2014 12:37
define wall functions (UDF) in Fluent 6.3 Alex FLUENT 3 September 20, 2014 12:37
Help! where to find full UDF Macros and functions kim FLUENT 6 March 5, 2014 10:01
functions in UDF Lucy FLUENT 4 April 14, 2011 16:41


All times are GMT -4. The time now is 11:38.