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

udf

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 15, 2011, 04:22
Default udf
  #1
Senior Member
 
hamid
Join Date: Nov 2010
Posts: 185
Rep Power: 15
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, 18:16
Default
  #2
Member
 
Join Date: Nov 2011
Location: Czech Republic
Posts: 97
Rep Power: 14
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, 08:32
Default
  #3
Senior Member
 
hamid
Join Date: Nov 2010
Posts: 185
Rep Power: 15
hamid1 is on a distinguished road
that was so helpful, many thanks..
hamid1 is offline   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
Dynamic Mesh UDF Qureshi FLUENT 7 March 23, 2017 07:37
UDF parallel error: chip-exec: function not found????? shankara.2 Fluent UDF and Scheme Programming 1 January 16, 2012 22:14
How to add a UDF to a compiled UDF library kim FLUENT 3 October 26, 2011 21:38
UDF...UDF...UDF...UDF Luc SEMINEL FLUENT 0 November 25, 2002 04:03
UDF, UDF, UDF, UDF Luc SEMINEL Main CFD Forum 0 November 25, 2002 04:01


All times are GMT -4. The time now is 23:27.