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

Read txt file and import values to source term.

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

Like Tree3Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 21, 2016, 17:20
Default
  #41
New Member
 
Sagar
Join Date: Apr 2016
Posts: 23
Rep Power: 7
ksgr is on a distinguished road
Hello Micael!
I don't know what was the problem. I was able to find the solution when I started writing the code bit by bit and checking whether that code would compile in fluent. I reached a stage where whole code could compile with the proper messages of file read and closed. Thank you.

Now I have one doubt, currently DEFINE_ON_DEMAND, for which I have to manually assign the values read in from the file to arrays. Is there a macro which does this automatically as soon as the loading of the library is over?
ksgr is offline   Reply With Quote

Reply

Tags
array, file, source, txt, udf

Thread Tools Search this Thread
Search this Thread:

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I import a momentum source term from a dat May Huang FLUENT 1 September 5, 2011 05:50
help: How can I import a source? May Huang FLUENT 1 September 5, 2011 05:49
how do I import tecplot file to fluent Kangello FLUENT 0 December 2, 2009 08:28
Errors running allwmake in OpenFOAM141dev with WM_COMPILE_OPTION%3ddebug unoder OpenFOAM Installation 11 January 30, 2008 20:30
Importing I-DEAS unv file hbetb FLUENT 1 August 10, 2001 13:22


All times are GMT -4. The time now is 21:44.