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

udf

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

Reply
 
LinkBack Thread Tools Display Modes
Old   December 15, 2011, 05:22
Default udf
  #1
Senior Member
 
hamid
Join Date: Nov 2010
Posts: 185
Rep Power: 6
hamid1 is on a distinguished road
Hi Guys

In my UDF i want to write some data in a file after some calculation in the macro DEFINE_EXECUTE_AT_END and then i want to read in the next step from this file in my macro DEFINE_EXECUTE_AT_END,
the problem is the data for writing is with long decimal, so for example the amount 0.00000000000015 is written as 0.0000000 in the .txt file, i am wondering that in the next step how does fluent read it ?
if treads it as zero how can i fix it?

thank you
Hamid
hamid1 is offline   Reply With Quote

Old   December 15, 2011, 19:16
Default
  #2
Member
 
Join Date: Nov 2011
Location: Czech Republic
Posts: 95
Rep Power: 5
Sixkillers is on a distinguished road
You can try to write your data into a file by using scientific notation for double data type. Here you can find more information about output format for printf/sprintf method.
Sixkillers is offline   Reply With Quote

Old   December 16, 2011, 09:32
Default
  #3
Senior Member
 
hamid
Join Date: Nov 2010
Posts: 185
Rep Power: 6
hamid1 is on a distinguished road
that was so helpful, many thanks..
hamid1 is offline   Reply With Quote

Reply

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
UDF parallel error: chip-exec: function not found????? shankara.2 Fluent UDF and Scheme Programming 1 January 16, 2012 23:14
How to add a UDF to a compiled UDF library kim FLUENT 3 October 26, 2011 21:38
Dynamic Mesh UDF Qureshi FLUENT 1 December 2, 2009 01:27
UDF...UDF...UDF...UDF Luc SEMINEL FLUENT 0 November 25, 2002 05:03
UDF, UDF, UDF, UDF Luc SEMINEL Main CFD Forum 0 November 25, 2002 05:01


All times are GMT -4. The time now is 05:48.