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

read parameters into UDF

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By coglione

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 17, 2013, 10:38
Default read parameters into UDF
  #1
New Member
 
Michal Vonka
Join Date: Apr 2013
Posts: 5
Rep Power: 13
vonkam is on a distinguished road
Hello everybody,

does anybody has ideas about filling a UDF at start of simulation with parameters, so I don't have to rebuild the library when I change a parameter in UDF?

Thanks
Michal
vonkam is offline   Reply With Quote

Old   April 18, 2013, 02:38
Default
  #2
Senior Member
 
Paritosh Vasava
Join Date: Oct 2012
Location: Lappeenranta, Finland
Posts: 732
Rep Power: 22
vasava will become famous soon enough
Questions:
1. Do you mean that you want to write a UDF that modifies by itself?
2. Are you writing these UDF(s) for transient or steady-state simulations?
vasava is offline   Reply With Quote

Old   April 18, 2013, 03:20
Default
  #3
New Member
 
Michal Vonka
Join Date: Apr 2013
Posts: 5
Rep Power: 13
vonkam is on a distinguished road
ad 1) My original idea was to load a file of parameters into UDMemories, that would be used by all cells or any other way to stuff the UDF without need to changing it. That would require a new compilation, i guess.
ad 2) Ideally both, but that also depends on the demands on memory. I think I can live with steady state simulation only.
Thanks for any help.
vonkam is offline   Reply With Quote

Old   April 19, 2013, 03:26
Default
  #4
Senior Member
 
Max
Join Date: Mar 2009
Posts: 133
Rep Power: 17
coglione is on a distinguished road
Have a look at the UDF-Manual ->Scheme Macros. I think that's what you need.

cheers
vonkam likes this.
coglione is offline   Reply With Quote

Old   April 19, 2013, 16:00
Default UDF Parameters
  #5
New Member
 
Bill Wangard
Join Date: Jan 2011
Posts: 21
Rep Power: 0
billwangard is on a distinguished road
The way to do this is to define an rpvar. Once created in the CASE, rpvars are saved with the case file.

Rpvars are variables that can be passed to the UDF routines. Thus, you can easily modify the UDF without recompiling. Rpvars can be changed from the FLUENT GUI panel using simple scheme commands.

Look in the UDF manual on how to do this. If you need an example, please contact me directly:

bill.wangard@engrana.com

Regards,
Bill Wangard
Engrana LLC
billwangard 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
How to Read a "Profile" format file in UDF? gary7 Fluent UDF and Scheme Programming 32 July 12, 2022 01:17
UDF Compiling - can't read ..\..\src\xxx_udf.c: No such file or directory willy Fluent UDF and Scheme Programming 0 March 28, 2013 11:22
How to add a UDF to a compiled UDF library kim FLUENT 3 October 26, 2011 21:38
Read wall profile in UDF linhtst FLUENT 0 May 12, 2011 10:09
UDF - Read from files sega Fluent UDF and Scheme Programming 4 March 31, 2010 06:50


All times are GMT -4. The time now is 11:35.