|
[Sponsors] | |||||
return a normal number to solver in double precision mode in udfs |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|
|
#1 |
|
New Member
Payan
Join Date: Oct 2009
Posts: 21
Rep Power: 18 ![]() |
Hi
when we run fluent in double precision mode,how we can return a normal number to solver in double precision mode in udfs?when I return a normal number in udf in double precision mode fllowing error in reported : original udf : #include "udf.h" #include "dpm.h" DEFINE_DPM_TIMESTEP(payam,p,dt) { return 0.01; } Error: "function returning double returns float"
|
|
|
|
|
|
|
|
|
#2 |
|
New Member
Join Date: Feb 2012
Posts: 1
Rep Power: 0 ![]() |
Maybe this works:
#include "udf.h" #include "dpm.h" DEFINE_DPM_TIMESTEP(payam,p,dt) { real X = 0.01; return X; } |
|
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Single or double precision | Jonas Larsson | Main CFD Forum | 16 | June 20, 2017 07:53 |
| Single v.s. double precision | Confused | CFX | 15 | November 10, 2016 05:42 |
| compressible two phase flow in CFX4.4 | youngan | CFX | 0 | July 2, 2003 00:32 |
| Double Precision? | Novak Elliott | CFX | 1 | June 6, 2003 02:45 |
| CFX 5.5 | Roued | CFX | 1 | October 2, 2001 17:49 |