|
[Sponsors] |
September 24, 2012, 07:48 |
Trigonometric functions in UDF
|
#1 |
New Member
Mukesh
Join Date: Sep 2012
Posts: 28
Rep Power: 13 |
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 |
|
October 2, 2012, 12:39 |
|
#2 |
New Member
Mukesh
Join Date: Sep 2012
Posts: 28
Rep Power: 13 |
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. |
|
|
|
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 |