# Custom Field Functions

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

 November 19, 2005, 20:28 Custom Field Functions #1 bov Guest   Posts: n/a Does anyone know about any peculiarities of the LOG function under the CFF menu? I try to define the function cf = 0.08/log(0.06*Rex*F) where F is a constant and Rex is a linear non-zero function of x. When I try to plot the function I get a division by zero error. But I am able to export it. Any suggestions?

 November 20, 2005, 11:52 Re: Custom Field Functions #2 lcw Guest   Posts: n/a have a try! cf = 0.08/(log(0.06*F)+logRex)

 November 21, 2005, 02:36 Re: Custom Field Functions #3 RoM Guest   Posts: n/a For (0.06*Rex*F)=1 you will get a division by zero. RoM

 November 21, 2005, 09:13 Re: Custom Field Functions #4 bov Guest   Posts: n/a Icw, thank you for your reply. I appreciate your help. I tried entring the formula in the form you specified, but I am getting the same error.

 November 21, 2005, 09:15 Re: Custom Field Functions #5 bov Guest   Posts: n/a RoM, thank you for your reply. Could you please explain why that makes sense that this function produces a division by zero error? How do I fix it? The formulation 0.08/(log(ReX)+log(0.06*Fre)) does not resolve the division by zero error. Thanks again.

 November 21, 2005, 09:31 Re: Custom Field Functions #6 RoM Guest   Posts: n/a I just wanted to point out that log 1 = 0. I dont know what physical meaning stands behind this singularity in your function. You could use Icw's formulation and define 2 cffs, one for log(ReX) and the other log(0.06*Fre). Plot them and look in which regions of your domain log(ReX)+log(0.06*Fre)=1. Maybe this will help to judge whats going on and if there is any physical meaning behind. Good Luck, RoM

 Thread Tools Display Modes Linear Mode

 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 OffTrackbacks are On Pingbacks are On Refbacks are On Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post Niklas Wikstrom (Wikstrom) OpenFOAM Running, Solving & CFD 122 June 15, 2014 06:20 tsagaro FLUENT 6 April 13, 2011 04:03 matteo_gautero OpenFOAM Running, Solving & CFD 0 February 28, 2008 07:51 Nuray FLUENT 0 May 31, 2006 14:34 sivakumar FLUENT 1 October 12, 2001 06:36

All times are GMT -4. The time now is 22:05.