|September 22, 2010, 01:44||
calculate averaged Temperature
Join Date: Sep 2009
Posts: 5Rep Power: 8
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.
> 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.
|January 14, 2011, 01:36||
Join Date: Mar 2009
Posts: 16Rep Power: 8
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.
|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||CD-adapco||9||October 30, 2007 06: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|