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

UDS-UDF problem

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

Reply
 
LinkBack Thread Tools Display Modes
Old   November 22, 2002, 10: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, 14: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, 01: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

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 32 May 8, 2015 06:05
UDF compiling problem in Flient 6.3 jeevan kumar FLUENT 2 February 25, 2009 01:43
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 16:30.