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

UDF & Double precision; Please help??

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 31, 2007, 14:14
Default UDF & Double precision; Please help??
  #1
Asghari
Guest
 
Posts: n/a
Hi all;

I wrote a udf for a 2ddp(i.e 2 dimensional double precision) case file.UDF is very simple as follows:

DEFINE_ADJUST(my_define_adjust, domain)

{ cell_t c;

Thread *t;

if(!Data_Valid_P()) return;

thread_loop_c (t,domain) {

begin_c_loop (c,t) {

C_UDMI(c,t,0)=1.0 ;

} end_c_loop (c,t) } } Also I do this process for similar 2d(single precision) case file (same geometry and grid).

Then , in display-->Contours-->User Defined Memory and selecting UDM'0 I obtained output results.But results were very different. for 2d(single precision) case file , I obtained UDM'0 is equal to 1.0 in the everywhere,But for double precision version (2ddp) UDM'0 was in a zone equal .007 and in another domain was 0.0 that is clearly wrong.

Why it happended for 2ddp case file?

How to solve this problem?

I am appreciated for everybody answer me.

Best regards;
  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
Continuing User Defined Real Gas Model issues aeroman FLUENT 6 April 8, 2016 04:34
New densitybased solver AeroFoam giulio_romanelli OpenFOAM Running, Solving & CFD 48 January 15, 2016 09:20
Parallel User Defined Real Gas Model aeroman FLUENT 4 July 1, 2015 07:09
Missing math.h header Travis FLUENT 4 January 15, 2009 12:48
what's wrong about my code for 2d burgers equation morxio Main CFD Forum 3 April 27, 2007 11:38


All times are GMT -4. The time now is 03:47.