CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT

Custom Field Functions

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 19, 2005, 20:28
Default 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?
  Reply With Quote

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

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

RoM
  Reply With Quote

Old   November 21, 2005, 09:13
Default 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.
  Reply With Quote

Old   November 21, 2005, 09:15
Default 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.
  Reply With Quote

Old   November 21, 2005, 09:31
Default 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
  Reply With Quote

Reply


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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to calculate pressure forces using custom field functions? tsagaro FLUENT 7 June 23, 2017 16:45
Moving mesh Niklas Wikstrom (Wikstrom) OpenFOAM Running, Solving & CFD 122 June 15, 2014 07:20
Problem with rhoSimpleFoam matteo_gautero OpenFOAM Running, Solving & CFD 0 February 28, 2008 07:51
custom field functions Nuray FLUENT 0 May 31, 2006 15:34
Custom field functions sivakumar FLUENT 1 October 12, 2001 07:36


All times are GMT -4. The time now is 03:18.