CFD Online Logo CFD Online URL
Home > Forums > FLUENT

UDF & Double precision; Please help??

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Display Modes
Old   January 31, 2007, 14:14
Default UDF & Double precision; Please help??
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


Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
New densitybased solver AeroFoam giulio_romanelli OpenFOAM Running, Solving & CFD 47 October 31, 2015 07:35
Parallel User Defined Real Gas Model aeroman FLUENT 4 July 1, 2015 06:09
Continuing User Defined Real Gas Model issues aeroman FLUENT 5 May 1, 2015 02:57
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 10:38

All times are GMT -4. The time now is 04:22.