I am a newbie and i am trying the following example
https://github.com/ElmerCSC/elmer-elmag ... /transient
I can run it successfully but now i want to compute the total current in each of the two terminals. Since i am using the circuits i can lookup the currents in the scalers files however, I wanted to learn how to use integrals in savescalers to compute the currents as an exercise to understand it in a simple use case. So, the following is my failed attempt.
Code: Select all
Solver 6
Exec Solver = After Timestep
Procedure = "SaveData" "SaveScalars"
Filename = res/f1.dat
Variable 1 = String "current density e 3"
Mask Name 1 = String "Terminal1"
Operator 1 = String "body int"
Variable 2 = current density
Mask Name 2 = Terminal2
Operator 2 = body int
End
I have looked at some of the forum posts like viewtopic.php?t=7521&hilit=boundary+integrals&start=10 which mentions using boundary integral so i tried that but the following gave an error and the solver stopped.
Code: Select all
Solver 6
Exec Solver = After Timestep
Procedure = "SaveData" "SaveScalars"
Filename = res/f1.dat
Variable 1 = current density
Mask Name 1 = "Terminal1"
Operator 1 = boundary int
Variable 2 = current density
Mask Name 2 = Terminal2
Operator 2 = boundary int
End
Code: Select all
Variable 1 = current density
Mask Name 1 = "Terminal1"
Operator 1 = convective flux
Finally i saw this post https://www.elmerfem.org/forum/viewtopi ... int#p25457 and there also it seems some confusion over trying to calculate the current using the body int resulted in zeros. So is this a known bug with no solutions ? or i have done some mistake in my sif file. ?
I wanted to also know which variables are valid names for MagnetoDynamics2D, for example if i put in Variable1 = current density re e 3 as suggested in viewtopic.php?t=7521&hilit=boundary+integrals&start=10, elmer solver throws an error.
Any help, pointers are appreciated.