CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > STAR-CCM+

Field function cannot be evaluated on region

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   April 26, 2011, 16:48
Default Field function cannot be evaluated on region
  #1
New Member
 
Paulo Arthur Beck
Join Date: Apr 2011
Posts: 2
Rep Power: 0
pauloabeck is on a distinguished road
Hello All,

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,
pauloabeck is offline   Reply With Quote

Old   April 28, 2011, 17:33
Default
  #2
Senior Member
 
Join Date: Oct 2009
Location: Germany
Posts: 637
Rep Power: 12
abdul099 is on a distinguished road
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.
abdul099 is offline   Reply With Quote

Old   April 28, 2011, 18:40
Default
  #3
New Member
 
Paulo Arthur Beck
Join Date: Apr 2011
Posts: 2
Rep Power: 0
pauloabeck is on a distinguished road
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).

Last edited by pauloabeck; April 28, 2011 at 18:41. Reason: mispelling
pauloabeck is offline   Reply With Quote

Reply

Tags
field function, star ccm+

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
channelFoam for a 3D pipe AlmostSurelyRob OpenFOAM 3 June 24, 2011 13:06
UDF vs Custom field function andrew FLUENT 5 June 24, 2011 10:53
StarToFoam error Kart OpenFOAM Meshing & Mesh Conversion 1 February 4, 2010 05:38
field function in STAR-CCM+ stu CD-adapco 1 May 9, 2008 11:11
Custom Field function...>>>Please HELP..! sushii FLUENT 2 October 11, 2007 01:04


All times are GMT -4. The time now is 13:12.