Output Heat Source Value

Numerical methods and mathematical models of Elmer
Post Reply
MrChips
Posts: 33
Joined: 12 Jul 2016, 00:16
Antispam: Yes
Location: Canada

Output Heat Source Value

Post by MrChips »

I am using the 'Smart Heater Control' in a transient simulation to keep the temperature of a body at a constant temperature. I would like to output the heat source (W/kg) of that body. I went through the forums and I think it was Peter that suggested using the SaveData module using the 'Body Force Parameters' subroutine. I am having trouble getting it to work and cannot find a working example of it.

I am sure this is a mess:

Code: Select all

Solver 4
  Procedure = "SaveData" "SaveBoundaryValues"
  Variable = -nooutput dummyvar
  Variable DOFs = 1
  Parameter 1 = Heat Source
  Body Force Parameters = 1
End
With this I keep getting:

Code: Select all

ERROR:: LoadInputFile:
ERROR:: LoadInputFile:  Unknown specifier: [1]
ERROR:: LoadInputFile:  In section: [solver 4]
ERROR:: LoadInputFile:  For property name:[body force parameters]
STOP 1
Is there any other way to output the heat source value for each time step?

Thanks,
Chips
kevinarden
Posts: 2237
Joined: 25 Jan 2019, 01:28
Antispam: Yes

Re: Output Heat Source Value

Post by kevinarden »

For some variables you have to declare the type

try

Body Force Parameters = Integer 1
MrChips
Posts: 33
Joined: 12 Jul 2016, 00:16
Antispam: Yes
Location: Canada

Re: Output Heat Source Value

Post by MrChips »

Thanks Kevin! It runs now at least!

Code: Select all

Solver 4
  Equation = SaveData
  Procedure = "SaveData" "SaveBoundaryValues"
  Variable = -nooutput dummyvar
  Variable DOFs = 1
  Parameter 1 = Heat Source
  Body Force Parameters = Integer 1
End
Any idea how to get this to output? When I run SaveScalars I put in Filename to output the variables I want, but there's nothing about that in this solver.
kevinarden
Posts: 2237
Joined: 25 Jan 2019, 01:28
Antispam: Yes

Re: Output Heat Source Value

Post by kevinarden »

Would need to see the whole sif file.
MrChips
Posts: 33
Joined: 12 Jul 2016, 00:16
Antispam: Yes
Location: Canada

Re: Output Heat Source Value

Post by MrChips »

Okay, so I got it all to work (mostly). Turns out that heater power density (W/kg) is a res: variable and will get saved by savescalars by default.
Post Reply