CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   FLUENT (http://www.cfd-online.com/Forums/fluent/)
-   -   How to use user defined Subroutine (http://www.cfd-online.com/Forums/fluent/28010-how-use-user-defined-subroutine.html)

Ning Yang November 11, 2000 03:35

How to use user defined Subroutine
 
I want to know how to use "user defined Subroutines" in fluent. Can I program my codes in the surface of Fluent directly?

Harry November 12, 2000 05:17

Re: How to use user defined Subroutine
 
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


Rüdiger Schwarze November 13, 2000 04:14

Re: How to use user defined Subroutine
 
No, check the manuals, there's an overview on how tu use udf's in the solver.

yang November 13, 2000 08:04

Re: How to use user defined Subroutine
 
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.

Rüdiger Schwarze November 13, 2000 08:16

Re: How to use user defined Subroutine
 
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.

Greg Perkins November 13, 2000 23:44

Re: How to use user defined Subroutine
 
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

yang November 14, 2000 07:32

Re: How to use user defined Subroutine
 
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.


All times are GMT -4. The time now is 22:28.