i am trying to understand how the "r outer" and "r inner" radii are connected with the SaveScalars solver (Solver 5 in the code) used in the PMSM machine of tutorial from Pavel. Also how does the solver knows it should calculate the Torque?
Code: Select all
Body 16
Target Bodies(1) = 16
Name = "rotor airgap"
Equation = 1
Material = 1
Body Force = 1
r outer = Real 0.0406
r inner = Real 0.040
End
Code: Select all
!save scalar variables - torque T [Nm]
Solver 5
Exec Solver = After Timestep
Filename = "scalars.dat"
Procedure = "SaveData" "SaveScalars"
Show Norm Index = 1
End
Code: Select all
Solver n
Equation = "SaveLine"
Procedure = File "SaveData" "SaveLine"
Filename = "g.dat"
File Append = Logical True
Polyline Coordinates(2,2) = Real 0.0 1.0 0.0 2.0
End
Code: Select all
Solver n
Exec Solver = after timestep
Equation = String SaveScalars
Procedure = File "SaveData" "SaveScalars"
Filename = File "f.dat"
Variable 1 = String Temperature
Operator 1 = String max
Variable 2 = String Temperature
Operator 2 = String min
Variable 3 = String Temperature
Operator 3 = String mean
End
Boundary Condition m
Save Scalars = Logical True
End