CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   Stain Rate UDF (https://www.cfd-online.com/Forums/fluent/68228-stain-rate-udf.html)

esinticik September 10, 2009 15:04

Stain Rate UDF
 
Hello Everyone,

In Euler-Euler two-fluid model,

My viscosity model is hooked for secondary phase viscosity, and i need THREAD_SUPER_THREAD(t) strain rate,

This usage (for mixed thread) gives no error when compiling but gives an error when initializing

DEFINE_PROPERTY(secondary_viscosity,c,t)
{
Thread *tm = THREAD_SUPER_THREAD(t);
/*thread tm will be a superthread, i.e., mixture*/

s_mag=C_STRAIN_RATE_MAG(c,tm);

vis=function of "s_mag"

However, below usage (for secondary phase thread) gives no error when initializing


DEFINE_PROPERTY(secondary_viscosity,c,t)
{

s_mag=C_STRAIN_RATE_MAG(c,t);

what is the problem for mixed thread strain rate?

and

Is strain rate data for each thread (such as mixture, primary and secondary phase ) same for fluent euler-euler model?


Thanks everyone...


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