userdefined functions with strain rate
I am trying to model a nonnewtonian fluid (blood) that depends on shear rate. I used the equation:
0.026314*pow($StrainRate,(0.472341)) + 3.117316 but I get an error that $StrainRate is not recognized. Is this not the correct term for strain rate, or am I using it incorrectly? I haven't been able to find the correct usage in the help or anywhere else. Any help or advice would be appreciated. Thanks, Eric 
Go into Tools > Field Functions and check the format for Strain Rate. I do not have experience in nonNewtonian fluids, but if the Strain Rate exists it should be listed in the Field Functions. The Function Name should give you the syntax when you use the function.

After talking to support, I understand what I was doing wrong. If anyone has the same problem in the future, you have to check the box for "Temporary Storage Retained" under Solvers>"solver_used," then strain rate appears in the field function list. Thanks for your help.

Quote:
Hi, how can I use the function Strain Rate magnitude what is the syntax to follow thanks 
As I had mentioned, you will have to check the box for "Temporary Storage Retained" in the solvers section. On my particular simulation, I had it checked for Lagrangian Multiphase, Segregated Flow, and Kepsilon Turbulence. Then, in your userdefined field function, call strain rate magnitude using the handle $StrainRate
As a note, there is no strain rate for the first iteration. So, you should let your simulation run one or two iterations without calling the $StrainRate function and then stop it and apply the field function. As an example, my program used a strainrate dependent viscosity. So for the first couple iterations I used a constant viscosity, then paused and changed my viscosity definition to my field function that included $StrainRate. If I had tried to use that field function from the beginning, I would have gotten an error. Let me know if you are still having trouble. Eric 
All times are GMT 4. The time now is 17:47. 