I try to calculate the flux linkage in an electrical machine in every stator slot. That means, I need to integrate the magnetic vector potential in every slot.

My idea was, to use the scalar solver, which already writes out the torque etc. However, I realized, that in the moment, I have more than 20 variables in the scalar solver, I get an error, complaining about the 21th variable.

Here is an example of the scalar solver:

Code: Select all

```
! scalar_solver
Solver 6
Equation = SaveScalars
Procedure = "SaveData" "SaveScalars"
Filename = scalars.dat
Exec Solver = After Timestep
Variable 1 = Time
Variable 2 = Position
Operator 3 = cpu time
Variable 4 = Magnetic Vector Potential 3
Mask Name 4 = phase_A+_14.0
Operator 4 = Body Int
Variable 5 = Magnetic Vector Potential 3
Mask Name 5 = phase_B-_14.0
Operator 5 = Body Int
Variable 6 = Magnetic Vector Potential 3
Mask Name 6 = phase_C-_14.0
Operator 6 = Body Int
Variable 7 = Magnetic Vector Potential 3
Mask Name 7 = phase_B+_14.0
Operator 7 = Body Int
Variable 8 = Magnetic Vector Potential 3
Mask Name 8 = phase_A-_14.0
Operator 8 = Body Int
Variable 9 = Magnetic Vector Potential 3
Mask Name 9 = phase_C+_14.0
Operator 9 = Body Int
End
```

Code: Select all

```
ERROR:: LoadInputFile:
ERROR:: LoadInputFile: Unknown specifier: [magnetic vector potential 3]
ERROR:: LoadInputFile: In section: [solver 6]
ERROR:: LoadInputFile: For property name:[variable 21]
STOP 1
```

So, now I think about creating multiple scalar solver sections to not exceed 20 variables per section. However, perhaps I am just totally wrong on how I try to get my integration results. Does anyone have a better idea?

Thx!