CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   Fluent UDF and Scheme Programming (http://www.cfd-online.com/Forums/fluent-udf/)
-   -   User Defined Function (http://www.cfd-online.com/Forums/fluent-udf/101620-user-defined-function.html)

Vicky123 May 9, 2012 05:18

User Defined Function
 
Hello,

I am writing a udf on C.. for change in material property using command
DEFINE_PROPERTY

can i also use the command DEFINE_SOURCE for change in momentum equation in the same program?:confused:

Patrick1 May 10, 2012 00:43

Quote:

Originally Posted by Vicky123 (Post 360062)
Hello,

I am writing a udf on C.. for change in material property using command
DEFINE_PROPERTY

can i also use the command DEFINE_SOURCE for change in momentum equation in the same program?:confused:

I've never used these macros but don't see why not, have you tried it to find out?

fevi84 May 11, 2012 16:53

you can use DEFINE_PROPERTIY and DEFINE_SOURCE, for change a material property and the source term of the momentum equation respectively. for do this, you have write both UDF in the same archive c.


All times are GMT -4. The time now is 12:18.