CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > FLOW-3D

About subroutine heatfl.F

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

Reply
 
LinkBack Thread Tools Display Modes
Old   March 18, 2009, 16:51
Question About subroutine heatfl.F
  #1
New Member
 
James Zhong
Join Date: Mar 2009
Posts: 25
Rep Power: 8
James is on a distinguished road
In subroutine heatfl.F, is heatfl1 an array with subscripts i,j,k or a variable? Besides cell index i,j,k, can I use other variables like t, xi(i),yj(j) and zk(k) in this subroutine?
James is offline   Reply With Quote

Old   March 18, 2009, 17:13
Default
  #2
H.C
Member
 
Join Date: Mar 2009
Posts: 40
Rep Power: 8
H.C is on a distinguished road
They are not arrays. When the subroutine is called, the solver will pass the i/j/k cell index and the subroutine will calculate the heat source per unit mass per unit time in that i/j/k cell, store the values in heatfl1/heatfl2 and then return heatfl1/heatfl2 to the solver.

You can use xi/yj/zk in the subroutine as it already include the meshcb module.
H.C is offline   Reply With Quote

Old   March 18, 2009, 17:24
Default Re: About subroutine heatfl.F
  #3
New Member
 
James Zhong
Join Date: Mar 2009
Posts: 25
Rep Power: 8
James is on a distinguished road
H.C, thank you for your reply! So since heatfl1 is not an array, if I want to define the heat flux for a specific cell at a specific moment, what I am to do is something like:
IF (t = xx AND i = xx AND j = xx AND k = xx) THEN
heatfl1= xx

Am I right? Thanks!
James is offline   Reply With Quote

Old   March 18, 2009, 19:05
Default
  #4
H.C
Member
 
Join Date: Mar 2009
Posts: 40
Rep Power: 8
H.C is on a distinguished road
Yes. I believe so.
H.C is offline   Reply With Quote

Old   March 18, 2009, 23:53
Default Re:About subroutine heafl.F
  #5
New Member
 
James Zhong
Join Date: Mar 2009
Posts: 25
Rep Power: 8
James is on a distinguished road
Thank you!
James is offline   Reply With Quote

Old   April 16, 2012, 23:11
Default flow3d input gaussion heat
  #6
New Member
 
huanglin
Join Date: Feb 2012
Posts: 24
Rep Power: 5
huanglin8545 is on a distinguished road
Quote:
Originally Posted by H.C View Post
Yes. I believe so.
Could you help me?I modified the FORTRAN routine HEATFL to define a spatially varying heat source.How can I set variables in prepin.inp to call this modified soubroutine ?Do I just set dum=xx or idum=xx ?Is it necessary to compile HEATFL.f to HEATFL.obj?If so,where should I save them?Thank you very much!
huanglin8545 is offline   Reply With Quote

Old   April 16, 2012, 23:12
Default flow3d input gaussion heat
  #7
New Member
 
huanglin
Join Date: Feb 2012
Posts: 24
Rep Power: 5
huanglin8545 is on a distinguished road
Quote:
Originally Posted by James View Post
Thank you!
Could you help me?I modified the FORTRAN routine HEATFL to define a spatially varying heat source.How can I set variables in prepin.inp to call this modified soubroutine ?Do I just set dum=xx or idum=xx ?Is it necessary to compile HEATFL.f to HEATFL.obj?If so,where should I save them?Thank you very much!
huanglin8545 is offline   Reply With Quote

Old   November 23, 2014, 21:38
Wink
  #8
boy
New Member
 
Guangxi Zhao
Join Date: Sep 2014
Location: China
Posts: 3
Rep Power: 2
boy is on a distinguished road
Quote:
Originally Posted by James View Post
H.C, thank you for your reply! So since heatfl1 is not an array, if I want to define the heat flux for a specific cell at a specific moment, what I am to do is something like:
IF (t = xx AND i = xx AND j = xx AND k = xx) THEN
heatfl1= xx

Am I right? Thanks!
Hi James,

I'm doing the same thing as you have done years ago, since heatfl is power source per unit mass,when I define a gauss plane heat source, how can I convert power rate (unit: W) to power source per unit mass? In other words, when the power rate equal 1w, then heatfl= ?, thank you~
boy 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
what subroutine is used? nut CD-adapco 1 December 8, 2006 14:56
subroutine Tipakorn CD-adapco 0 May 10, 2006 04:16
subroutine Juliet CD-adapco 2 November 27, 2003 19:52
Use subroutine Moon CD-adapco 1 March 13, 2003 08:49
Use Subroutine.. Moon CD-adapco 1 February 10, 2003 13:03


All times are GMT -4. The time now is 02:09.