Field function cannot be evaluated on region
I'm trying to implement a user field function which is supposed to return the viscosity of a non-Newtonian fluid given the strain rate magnitude and other threshold parameters. I'm aware of the solver parameter "Temporary Storage Retained" which is set to true.
When trying to run the simulation, I'm receiving the message "Field function "SMD Viscosity" cannot be evaluated on region cell-2", where "SMD Viscosity" and "cell-2" are particular to my simulation.
Has someone faced this issue?
Thank you all,
There's an error in the definition of the field function "SMD Viscosity".
Check whether all field functions referenced in "SMD Viscosity" are existing, no mistypings occured and you have put in the right names.
Thank you Abdul099. I've found the problem to be a variable name ill defined. The correct function definition, as a sample to others in need of help, looks like the following one:
($Iteration<1) ? $eta0 : (1-exp((-$eta0*$StrainRate)/$tau0))*(($tau0/$StrainRate)+$KConsistency*pow($StrainRate,$nBehav ior-1))+$etaInf*(1-exp(-$etaInf/($KConsistency*pow($StrainRate,$nBehavior-1))))
The $StrainRate variable is available only if the "Temporary Storage Retained" solver property is set to true. $StrainRate is the modulus of the mean strain rate tensor (Eq. 450 from the User's Manual).
|All times are GMT -4. The time now is 03:52.|