CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > Siemens > STAR-CD

calculate averaged Temperature

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 22, 2010, 01:44
Default calculate averaged Temperature
  #1
New Member
 
goran
Join Date: Sep 2009
Posts: 5
Rep Power: 16
moro is on a distinguished road
Hi everybody,

I use the star-cd version 4.12.033. I investigate a combustion problem with the LES. Unfortunately I have to calculate the averaged temperature with the user subroutine posdat.f, yet I'm not really a fortran90 specialist...

My Problem now is to save an array (T_mean(NCELL)), the size of the array is NCELL...-> I want to calculate the temperature in every cell and for the next time step I must save the temperature of the previous time step.
But if I do this, the following error will appear:

PNP: posdat.f(132): error #6754: An automatic object must
> not appear in a SAVE statement or be declared with the SAVE attribute.
> [TMEAN]
> PNP: real :: Tmean(NCELL)
> PNP: ----------------^
> PNP: compilation aborted for posdat.f (code 1)
> PNP: ***ERROR*** Compilation error in user file "ufile/posdat.f".
> PNP: ==> Please check the compilation error messages.



My declaration is this:
real :: Tmean(NCELL)

save :: Tmean


Have everyone a idea what else can I do. I have also tried to declare an allocation but without success.

Thank you for every help.
moro is offline   Reply With Quote

Old   January 14, 2011, 00:36
Default
  #2
New Member
 
hwangkl
Join Date: Mar 2009
Location: taiwan
Posts: 17
Rep Power: 17
hwangkl is on a distinguished road
u can use the COMMON

COMMON /aaa/ Tmean

once u calculate the Tmean and leave posdat.f, the Tmean will be kept.

i dont know other method, but this method works.
hwangkl 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
Calculation of the Governing Equations Mihail CFX 7 September 7, 2014 06:27
How to calculate the the volume averaged density Padian FLUENT 2 May 20, 2008 04:31
How does StarCD calculate the Temperature? Pete Siemens 9 October 30, 2007 05:59
Calculate incoming temperature to a wall Javier PĂ©rez FLUENT 0 April 25, 2006 08:30
calculate the temperature gradient on a profile arther FLUENT 0 April 19, 2006 23:12


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