CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > ANSYS > FLUENT

UDS-UDF problem

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

LinkBack Thread Tools Display Modes
Old   November 22, 2002, 10:23
Default UDS-UDF problem
Daniel Persson
Posts: n/a

I'm solving a problem involving magnetic fields and magnetic forces. Now I've gotten a data file containing the volume forces in a number of points. What I'd like to do is read these data into Fluent so that I can use them as a momentum source term. One solution I've been recommended to use the Interpolating function to read the data to a UDS but I'm having problems understanding the syntax for the interpolation file.

This is what I've understod so far (written line by line):

2 ( version for Interpolation file-func )

2 ( Dimensions ,2D in my case )

34800 ( Number of points )

2 ( Number of fields, I guess two in my case. Force in x-direction and force in y-direction )

UDS1?? ( The field names should be written here, but how do I write this?? )


-0.068062?? ( Here are the coordinates of the points, but is it first x-coord then y-coord or is it alternating x and y?? )

after this the field values should be specified but is it in alternating or consecutive order??

And after I've used this Interpolating function how do I get it to be a Momentum source term?? I assume that I hav'to write a UDF file but what commands should I use to get the interpolated values from the UDSs??

Greetful for all answers or suggestions.
  Reply With Quote

Old   November 23, 2002, 14:24
Default Re: UDS-UDF problem
ravi varma
Posts: n/a
one thing you can do after the interpolation function is defined is to store the values as "extern" variables. store all your "extern" variables in a seperate file - say udf_extern.h then define a source macro for momentum whereby you can recall the extern variables "#include udf_extern.h" this example on using this method is shown in UDF manual 2.5.4
  Reply With Quote

Old   November 24, 2002, 01:44
Default Re: UDS-UDF problem
mahdi saniee nezhad
Posts: n/a
Dear sir I have a problem with this title. If it's possible for you please send me your received responses. Very thanks for your attention to my request. With the best regards. Mahdi saniee nezhad

  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
ATTN ALL: SOLUTON TO UDF COMPILE PROBLEM Rizwan Fluent UDF and Scheme Programming 40 October 18, 2017 07:17
UDF compiling problem in Flient 6.3 jeevan kumar FLUENT 3 June 29, 2017 19:00
UDF PROBLEM anant FLUENT 2 January 17, 2007 01:15
a problem about DEFINE_GEOM in dynamic mesh UDF speedcat FLUENT 1 May 16, 2005 03:09
I have problem of UDF with turbulent premx source. Z FLUENT 0 February 16, 2005 04:34

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