my function of viscosity is
mu=((0.3839*(p)/spf.sr)*(1-exp(-m*spf.sr))+((0.241*0.0001*(p))/(spf.sr*0.001+0.3*((p)/2600)^0.5)))
where p=pressure, m=parameter and spf.sr=shear rate
Gives an error of non-integral power of negative number which is of Pressure in this case.
I have also tried with (p+eps) but it won't work.
So how to solve it?
mu=((0.3839*(p)/spf.sr)*(1-exp(-m*spf.sr))+((0.241*0.0001*(p))/(spf.sr*0.001+0.3*((p)/2600)^0.5)))
where p=pressure, m=parameter and spf.sr=shear rate
Gives an error of non-integral power of negative number which is of Pressure in this case.
I have also tried with (p+eps) but it won't work.
So how to solve it?