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

Trigonometric functions in UDF

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By er.mkumar

Reply
 
LinkBack Thread Tools Search this Thread 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: 13
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: 13
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.
Lucrecio likes this.
er.mkumar 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
define wall functions (UDF) in Fluent 6.3 Alex FLUENT 6 August 3, 2017 07:45
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
Help! where to find full UDF Macros and functions kim FLUENT 6 March 5, 2014 09:01
functions in UDF Lucy FLUENT 4 April 14, 2011 16:41


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