CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   Convection Terms in UDF (https://www.cfd-online.com/Forums/fluent/27832-convection-terms-udf.html)

Jon Thorpe August 12, 2000 12:58

Convection Terms in UDF
 
I am trying to set up a UDF to solve for a scalar.

I want to set the convective flux term to be V.A (i.e. the dot product of the Velocity and the Area).

The default options in Fluent 5.1 (on an SGI) are 'none' and 'mass-flow rate' for the convective fluxes.

I cannot see how I can write a UDF (interpreted is fine) the takes the dot product of the velocity field and the area vectors. I assume that it is simple (one line), but I cannot see how to do it......

Thanks

Jon

Rüdiger Schwarze August 14, 2000 09:41

Re: Convection Terms in UDF
 
First You have to write and to compile the udf. When You open the udf library, You can use the udf as flux function!


All times are GMT -4. The time now is 01:25.