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

[UDF] Relative coordinates in logarithmic velocity profile

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 14, 2014, 21:47
Default hi
  #21
Member
 
Qureshi M Z I
Join Date: Sep 2013
Posts: 81
Rep Power: 13
m zahid is on a distinguished road
hi, anybody know the difference between log and natural log in Fluent UDF. i go through many UDF , every one used log, instead of natural log (ln). if anybody know the answer please share.

thanks
m zahid is offline   Reply With Quote

Old   November 16, 2014, 11:32
Default
  #22
Senior Member
 
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27
pakk will become famous soon enough
The difference is a factor 2.30258509299.
Can you be more specific with your question? If I google for "difference between log and natural log", I get many many websites which explain this difference. Doesn't that help you?
pakk is offline   Reply With Quote

Old   November 16, 2014, 11:45
Default hi
  #23
Member
 
Qureshi M Z I
Join Date: Sep 2013
Posts: 81
Rep Power: 13
m zahid is on a distinguished road
hi pakk, thanks for the answer. actually i want to know the difference with respect to the Fluent UDF. because i feel that,in fluent UDF, every where "log" is used instead of "ln". actually i want to make a UDF of "law of wall" given in this link below
http://en.wikipedia.org/wiki/Law_of_the_wall

that's why i was thinking that may be in fluent both are similar.
regards.
m zahid is offline   Reply With Quote

Old   November 17, 2014, 04:14
Default
  #24
Senior Member
 
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27
pakk will become famous soon enough
UDFs in Fluent are written in the "c" programming language.

If you want to know what a function does in "c", you can look for example here.

From that website:
Quote:
log
double log (double x);
Compute natural logarithm
Returns the natural logarithm of x.

The natural logarithm is the base-e logarithm: the inverse of the natural exponential function (exp). For common (base-10) logarithms, see log10.
pakk is offline   Reply With Quote

Old   February 23, 2015, 05:33
Default
  #25
New Member
 
achilles
Join Date: Feb 2015
Location: paris
Posts: 3
Rep Power: 11
ashkan39t323 is on a distinguished road
Send a message via Skype™ to ashkan39t323
Hello,
I wonder if you find a solution for your work cause i have the same problem. architect and want to assign a velocity profile into the inlet.
help me please!!

tnx a lot
ashkan39t323 is offline   Reply With Quote

Old   July 13, 2017, 04:44
Default
  #26
Member
 
Fabio Malizia
Join Date: May 2010
Location: Leuven (Belgium)
Posts: 51
Rep Power: 16
Fabio88 is on a distinguished road
Hello,

I need to use a relative height for my velocity profile and I need to give this as input in my UDF. Does someone have experienced the same need and would like to share how he/she managed?

My domain is split in several sub-domains and therefore there are several face zones (patches) for inlet, ground etc..

Thanks,

Fabio
Fabio88 is offline   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
3D UDF Paraboilc Velocity Profile (Can't Maintain) Sing FLUENT 12 August 7, 2017 07:25
[boundary condition] logarithmic velocity profile cfdworker FLUENT 2 April 18, 2009 00:36
maintaining a logarithmic velocity distribution Morten Andersen CFX 1 January 8, 2007 12:37
Variables Definition in CFX Solver 5.6 R P CFX 2 October 26, 2004 03:13
Terrible Mistake In Fluid Dynamics History Abhi Main CFD Forum 12 July 8, 2002 10:11


All times are GMT -4. The time now is 14:50.