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

How to use user defined Subroutine

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 11, 2000, 03:35
Default How to use user defined Subroutine
  #1
Ning Yang
Guest
 
Posts: n/a
I want to know how to use "user defined Subroutines" in fluent. Can I program my codes in the surface of Fluent directly?
  Reply With Quote

Old   November 12, 2000, 05:17
Default Re: How to use user defined Subroutine
  #2
Harry
Guest
 
Posts: n/a
if you understand programming in C, it's possible. for a better look, please try this website

for Dos/Windows: www.perkins-software.com.au/Fluent/udf_scalar_dos.c for Unix: www.perkins-software.com.au/Fluent/udf_scalar_unix.c

  Reply With Quote

Old   November 13, 2000, 04:14
Default Re: How to use user defined Subroutine
  #3
Rüdiger Schwarze
Guest
 
Posts: n/a
No, check the manuals, there's an overview on how tu use udf's in the solver.
  Reply With Quote

Old   November 13, 2000, 08:04
Default Re: How to use user defined Subroutine
  #4
yang
Guest
 
Posts: n/a
Thanks for your answer on fluent forum. I am using fluent4.5 now while I can only find the simple explaination about "user defined subroutine" in Chapter20 "fluent user's guide". I want to know more information about the structure of subroutine and how to connect it with fluent.
  Reply With Quote

Old   November 13, 2000, 08:16
Default Re: How to use user defined Subroutine
  #5
Rüdiger Schwarze
Guest
 
Posts: n/a
You should check the files "uds_..._flu45.pdf" in the directory ".../Fluent.Inc/fluent4.5/info/". There You will find more information about the uds in fluent4.5.
  Reply With Quote

Old   November 13, 2000, 23:44
Default Re: How to use user defined Subroutine
  #6
Greg Perkins
Guest
 
Posts: n/a
After reading the manuals, also look in the srcu folder under your Fluent.Inc/fluent4.5 installation - here you will find two folders - user and include. In the user one are the fortran templates of all user defined subroutines available in 4.5. In these you simply add your equations to calculate sources of momentum, energy, species etc. etc. and user properties for viscosity, thermal conductivity etc. etc. You can also check out the include files in the include folder, from which its possible to determine other internal variables which are useful but which aren't documented in ch20 of the manual.

Also see many previous posts on this forum.

Greg
  Reply With Quote

Old   November 14, 2000, 07:32
Default Re: How to use user defined Subroutine
  #7
yang
Guest
 
Posts: n/a
Thanks very much for your answers.I have read the pdf file and checked the file under user directory.But I have not the absoft Fortran compiler.
  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
OpenFOAM static build on Cray XT5 asaijo OpenFOAM Installation 9 April 6, 2011 13:21
Gradient of a User defined Variable Ramadas CFX 2 August 21, 2007 10:19
User defined subroutine in Ground Sanjay Phoenics 2 February 23, 2006 07:40
User Subroutine Garryx Siemens 1 June 25, 2005 01:13
User Defined Subroutine Denpong Soodphakdee FLUENT 0 April 13, 2000 04:53


All times are GMT -4. The time now is 02:40.