CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   FLUENT (http://www.cfd-online.com/Forums/fluent/)
-   -   Define source in UDS (http://www.cfd-online.com/Forums/fluent/41635-define-source-uds.html)

summer July 7, 2006 17:14

Define source in UDS
 
Hello, everyone. Now I want to define the source of user defined scalar which includes the effect of the scalar itself. In numerical method, I know that we could use the value from last time step to calculate the value of this time step and iterate. Is it possible for me to write a UDF to carry out this process in FLUENT of UDS? If you could give me a similar example, I would be appreciated it very much. Thanks in advance.

hirokata July 8, 2006 14:42

Re: Define source in UDS
 
Hi summer-

Yes, it can be done using UDF. I suggest you read the UDF manual on the chapter "User-Defined Scalar Transport Modeling". You'll also need to read sections for DEFINE_SOURCE and DEFINE_UDS_UNSTEADY macros.

summer July 10, 2006 19:40

Re: Define source in UDS
 
Thanks! I am looking at these documents. Now, I would like to get the value of void fraction in the previous step, but I could not find the macros for it. Is there any other way I could get it? Thanks very much.


All times are GMT -4. The time now is 05:27.