resistance and power dissipation from StatCurrentSolver

Numerical methods and mathematical models of Elmer
Post Reply
lazyTom
Posts: 43
Joined: 05 Jun 2013, 01:32
Antispam: Yes

resistance and power dissipation from StatCurrentSolver

Post by lazyTom »

Hi all,

Recently I've been working with the StatCurrentSolver and I've found that when you use "Current Control" (current fixed at Ic) the solver outputs the dissipated power as a function of the potential inposed on BC insead of power dissipated by Ic.

In my simulation (see results below) I've set Ic=10A but the "Total Heating Power" is referred to "Total Current" (2715A) which is a consequence of the BC set in the sif file. Of course, you can use the control scaling to obtain the righ amount of power but still, I would have though I would be getting a straight answer.

Code: Select all

Elmer solver output:
StatCurrentSolve:  Total Heating Power   :   149.31834149734826
StatCurrentSolve:  Effective Resistance  :   2.0258730238131670E-005
StatCurrentSolve:  Total Volume          :   2.0165367700452461E-004
StatCurrentSolve:  Total Current         :   2714.8789363154228
StatCurrentSolve:  Control Scaling       :   3.6834054978421220E-003
Can I access and manipulate those variables ("Total Heating Power", "Total Current", ....) via sif file? Can I save them in a file?

Any help would be much appreciated,

Best regards,

Marco
mzenker
Posts: 1997
Joined: 07 Dec 2009, 11:49
Location: Germany

Re: resistance and power dissipation from StatCurrentSolver

Post by mzenker »

Hi,

you should be able to access and save them using the SaveScalars solver under the names

TotalCurrent
Effective Resistance
Total Joule Heating

What do you mean by manipulating?

HTH,

Matthias
lazyTom
Posts: 43
Joined: 05 Jun 2013, 01:32
Antispam: Yes

Re: resistance and power dissipation from StatCurrentSolver

Post by lazyTom »

Hi Matthias,

thanks a lot, the solver works ^^

Code: Select all

Solver 3
!Exec Solver = After Timestep
Equation = SaveScalars
Procedure = "SaveData" "SaveScalars"
Filename = "coil characteristics.dat"
End
If anybody is intereseted, the solver produces two files:

1. coil characteristics.dat.names (this is the file that contains the saved variables' names)
2. coil characteristics.dat (this is the file that contains the saved variables' values)

below is the content of "coil characteristics.dat.names"

Code: Select all

Elmer version: 8.2
Elmer revision: 4b428c1
Elmer compilation date: 2017-01-20
File started at: 2017/05/08 19:48:23
 
Variables in columns of matrix: ./coil characteristics.dat
   1: res: total joule heating
   2: res: effective resistance
   3: res: totalcurrent
   4: res: currentsolver scaling
About the meaning of manipule, it means exactly that, manipulate :)

However, in this context, I have used it inproperly. The right word should have been "use". Hope this clarifies your question.

Best regards,

Marco
mzenker
Posts: 1997
Joined: 07 Dec 2009, 11:49
Location: Germany

Re: resistance and power dissipation from StatCurrentSolver

Post by mzenker »

Hi,

glad to hear that the variable saving works for you.
My question was too short. ;) I wanted to know if you want to manipulate (i.e. change) those variables during the simulation run or just save them and have them available in the postprocessing. The latter is done, the former would probably necessitate some FORTRAN programming, depending on what exactly should be done...

Matthias
lazyTom
Posts: 43
Joined: 05 Jun 2013, 01:32
Antispam: Yes

Re: resistance and power dissipation from StatCurrentSolver

Post by lazyTom »

I suspected that :).

I believe this explains all the possible options available for working with these variables.

Cheers,

Marco
Post Reply