|
[Sponsors] |
![]() |
![]() |
#1 |
New Member
Mukesh
Join Date: Sep 2012
Posts: 28
Rep Power: 14 ![]() |
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 |
|
![]() |
![]() |
![]() |
![]() |
#2 |
New Member
Mukesh
Join Date: Sep 2012
Posts: 28
Rep Power: 14 ![]() |
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. |
|
![]() |
![]() |
![]() |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
define wall functions (UDF) in Fluent 6.3 | Alex | FLUENT | 6 | August 3, 2017 08:45 |
Plot UDF functions | Mike Spears | FLUENT | 9 | October 14, 2014 01:12 |
UDF Wall functions in Fluent | syler3321 | Fluent UDF and Scheme Programming | 2 | September 20, 2014 13: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 17:41 |