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

udf for kasuda equation

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

Like Tree1Likes
  • 1 Post By pakk

Reply
 
LinkBack Thread Tools Display Modes
Old   November 17, 2014, 10:31
Default udf for kasuda equation
  #1
Member
 
Join Date: May 2014
Posts: 31
Rep Power: 3
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, 10:43
Default
  #2
Senior Member
 
Join Date: Nov 2013
Posts: 670
Rep Power: 9
pakk is on a distinguished road
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, 02:24
Default
  #3
Member
 
Join Date: May 2014
Posts: 31
Rep Power: 3
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, 03:54
Default
  #4
Senior Member
 
Join Date: Nov 2013
Posts: 670
Rep Power: 9
pakk is on a distinguished road
Did you already look for it in the Fluent help?
pakk is offline   Reply With Quote

Old   November 19, 2014, 04:41
Default
  #5
Member
 
Join Date: May 2014
Posts: 31
Rep Power: 3
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

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
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 15:01
udf for claussius claypereon equation. Anbazhagan R FLUENT 0 February 21, 2007 07:19
Transport equation using UDF wassim FLUENT 5 February 14, 2007 23:56


All times are GMT -4. The time now is 19:51.