int mean

Post processing utility for Elmer
Post Reply
roberto
Posts: 5
Joined: 22 Nov 2010, 18:35

int mean

Post by roberto »

Hello,

I'm trying to obtain the temperature average on the first of 2 bodyes, reading manuals I tryed to do as follow

Solver 4
Exec Solver = String "after timestep"
Equation = String SaveScalars
Procedure = File "SaveData" "SaveScalars"
Filename = File "T.dat"
Variable 1 = Temperature
Operator 1 = String int mean
End

I put
Save Scalars = Logical True
under Body 1

I obtained results with no errors.
The problem is that if I remove "Save Scalars = Logical True" steatment, or I put it under Body 2, I heve EXACTLY the same results.
I read about a "volume" parameter to set, but I don't know where...

Thanks for evaluating my problem!
Roberto
raback
Site Admin
Posts: 4812
Joined: 22 Aug 2009, 11:57
Antispam: Yes
Location: Espoo, Finland
Contact:

Re: int mean

Post by raback »

Hi Roberto

The 'save scalars' flag applies only to bounaries and operations therein. Of course it could apply to bodies, but currently it doesn't.

-Peter
roberto
Posts: 5
Joined: 22 Nov 2010, 18:35

Re: int mean

Post by roberto »

Hi Peter,

thanks for reply!
So by the moment "int mean" works only on the whole geometry?
If it's so I can turn around the problem and calculate the heat flow entering the water each time step.
Anyway i'm deeply impressed by the power and versatility of this software!

Thanks again, Regards
Roberto
raback
Site Admin
Posts: 4812
Joined: 22 Aug 2009, 11:57
Antispam: Yes
Location: Espoo, Finland
Contact:

Re: int mean

Post by raback »

Hi

You might use the operator "potential energy" which needs also a coefficient which refers to a name of a material parameter, say "Coefficient 1 = String MaterialActive". And the in the Material sections say "MaterialActive = Real 1.0" where you want to integrate and zero where not. Not pretty, but might do the trick.

-Peter
roberto
Posts: 5
Joined: 22 Nov 2010, 18:35

Re: int mean

Post by roberto »

Hi Peter,

I'm almost there...

I did
Solver 3
Exec Solver = String "after timestep"
Equation = String SaveScalars
Procedure = File "SaveData" "SaveScalars"
Filename = File "T2.dat"
Variable 1 = Temperature
Coefficient 1 = String MaterialActive
Operator 1 = String potential energy
End

with the string
MaterialActive = Real 1.0
on materials, now I can control where to integrate.
At this point how can I get the average temperature?

Thanks again
Regards
Roberto
raback
Site Admin
Posts: 4812
Joined: 22 Aug 2009, 11:57
Antispam: Yes
Location: Espoo, Finland
Contact:

Re: int mean

Post by raback »

Hi

Luckily the operator 'volume' eats the same coefficient so you can say

Code: Select all

Variable 2 = Temperature
Coefficient 2 = String MaterialActive
Operator 2 = String volume
And the computation of the mean is then easily done manually.

-Peter
Post Reply