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

udf for kasuda equation

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By pakk

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 17, 2014, 09:31
Default udf for kasuda equation
  #1
Member
 
Join Date: May 2014
Posts: 31
Rep Power: 11
reza67 is on a distinguished road
hi everyone

the kasuda equation shown below :




where Z is the ground depth (in meter) and Ƭ is the time ( in day)
other parameters is given

does anyone write this udf before in fluent or can help me to define it in fluent ?



reza67 is offline   Reply With Quote

Old   November 17, 2014, 09:43
Default
  #2
Senior Member
 
Join Date: Nov 2013
Posts: 1,965
Rep Power: 26
pakk will become famous soon enough
Steps to do this:

1. Find out how to set a simple temperature profile, such as T(Z,tau)=Z+tau. It does not have to make physical sense, but just to make sure you understand how to put this in Fluent. For this, look in the Fluent help, there must be examples.

2. Change Z+tau to the Kasuda equation. That would look like: (typo's might still be present)
Code:
T_g+A_Gs*exp(-Z*sqrt(M_PI/365/alpha_s))*cos(2*M_PI/365*(tau-tau_0-Z/2*sqrt(365/M_PI/alpha_s)))
Good luck!
reza67 likes this.
pakk is offline   Reply With Quote

Old   November 18, 2014, 01:24
Default
  #3
Member
 
Join Date: May 2014
Posts: 31
Rep Power: 11
reza67 is on a distinguished road
Quote:
Originally Posted by pakk View Post
Steps to do this:

1. Find out how to set a simple temperature profile, such as T(Z,tau)=Z+tau. It does not have to make physical sense, but just to make sure you understand how to put this in Fluent. For this, look in the Fluent help, there must be examples.

2. Change Z+tau to the Kasuda equation. That would look like: (typo's might still be present)
Code:
T_g+A_Gs*exp(-Z*sqrt(M_PI/365/alpha_s))*cos(2*M_PI/365*(tau-tau_0-Z/2*sqrt(365/M_PI/alpha_s)))
Good luck!
thanks pakk
i never work with fluent's udf before
do you have any examples like T(Z,tau)=Z+tau to learn how to write it ?
reza67 is offline   Reply With Quote

Old   November 18, 2014, 02:54
Default
  #4
Senior Member
 
Join Date: Nov 2013
Posts: 1,965
Rep Power: 26
pakk will become famous soon enough
Did you already look for it in the Fluent help?
pakk is offline   Reply With Quote

Old   November 19, 2014, 03:41
Default
  #5
Member
 
Join Date: May 2014
Posts: 31
Rep Power: 11
reza67 is on a distinguished road
Quote:
Originally Posted by pakk View Post
Did you already look for it in the Fluent help?
i looked but i dont know how should i start to learning udf
reza67 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
Transport equation using UDF wassim FLUENT 6 March 22, 2018 13:39
add source term to energy equation by udf tomas Fluent UDF and Scheme Programming 7 September 10, 2013 02:08
How to write UDF to add a source term to the new transport equation ? 89566008 Fluent UDF and Scheme Programming 2 October 22, 2012 07:23
Viscosity and the Energy Equation Rich Main CFD Forum 0 December 16, 2009 14:01
udf for claussius claypereon equation. Anbazhagan R FLUENT 0 February 21, 2007 06:19


All times are GMT -4. The time now is 04:00.