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

UDS-UDF problem

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 22, 2002, 09:23
Default UDS-UDF problem
  #1
Daniel Persson
Guest
 
Posts: n/a
Hi,

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?? )

UDS2??

-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, 13:24
Default Re: UDS-UDF problem
  #2
ravi varma
Guest
 
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, 00:44
Default Re: UDS-UDF problem
  #3
mahdi saniee nezhad
Guest
 
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

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
ATTN ALL: SOLUTON TO UDF COMPILE PROBLEM Rizwan Fluent UDF and Scheme Programming 40 March 18, 2018 06:05
UDF compiling problem in Flient 6.3 jeevan kumar FLUENT 2 February 25, 2009 00:43
UDF PROBLEM anant FLUENT 2 January 17, 2007 00: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 03:34


All times are GMT -4. The time now is 15:41.