I am trying to write a UDF for the Carreau-Yasuda viscosity model according to the following equation.
Everything in the equation is a parameter which I can define apart from the shear rate term. I believe in fluent I can call this value using;
C_STRAIN_RATE_MAG(c,t), but when I try and raise this to a power as in the equation, I get an error saying "invalid binary expression, double ^ float), implying that the magnitude isn't an integer? Any help is appreciated, and my UDF is below.
/* Carreau-Yasuda Viscosity Model */