Guest User

Untitled

a guest
Jun 12th, 2025
24
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.10 KB | None | 0 0
  1.  
  2. Header
  3. CHECK KEYWORDS Warn
  4. Mesh DB "elmer_mesh" "."
  5. Include Path ""
  6. Results Directory "."
  7. End
  8.  
  9. Simulation
  10. Use Mesh Names = Logical True
  11. Max Output Level = 5
  12. Coordinate System = Cartesian
  13. Coordinate Mapping(3) = 1 2 3
  14. Simulation Type = Steady state
  15. Steady State Max Iterations = 1
  16. Output Intervals = 1
  17. Coordinate Scaling = 1e-3
  18. End
  19.  
  20. Constants
  21. Stefan Boltzmann = 5.670374419e-08
  22. Permittivity of Vacuum = 8.85418781e-12
  23. Permeability of Vacuum = 1.25663706e-6
  24. Boltzmann Constant = 1.380649e-23
  25. End
  26.  
  27. Body 1
  28. Name = air
  29. Equation = 1
  30. Material = 1
  31. End
  32.  
  33. Body 2
  34. Name = magnet-N
  35. Equation = 1
  36. Material = 2
  37. End
  38.  
  39. Body 3
  40. Name = magnet-S
  41. Equation = 1
  42. Material = 3
  43. End
  44.  
  45. Body 4
  46. Name = iron
  47. Equation = 1
  48. Material = 4
  49. End
  50.  
  51. Solver 1
  52. Equation = MgDyn
  53. Procedure = "MagnetoDynamics" "WhitneyAVSolver"
  54. Optimize Bandwidth = True
  55.  
  56. Nonlinear System Convergence Tolerance = 1.0e-10
  57. Nonlinear System Max Iterations = 50
  58. Nonlinear System Newton After Iterations = 3
  59. Nonlinear System Newton After Tolerance = 1.0e-3
  60. Nonlinear System Relaxation Factor = 1
  61.  
  62. Linear System Solver = Iterative
  63. ! Bicgstabl is usually performing well for AV solver
  64. Linear System Iterative Method = BiCGStabl
  65. Linear System Max Iterations = 500
  66. Linear System Convergence Tolerance = 1.0e-8
  67. BiCGstabl polynomial degree = 4
  68. ! We cannot use ILU since vector potential is not uniquely defined
  69. Linear System Preconditioning = none
  70. Linear System ILUT Tolerance = 1.0e-3
  71. Linear System Abort Not Converged = False
  72. Linear System Residual Output = 10
  73. Linear System Precondition Recompute = 1
  74. End
  75.  
  76. Solver 2
  77. Equation = MgDynPost
  78. Procedure = "MagnetoDynamics" "MagnetoDynamicsCalcFields"
  79. Optimize Bandwidth = True
  80.  
  81. Calculate Nodal Fields = False
  82. Calculate Elemental Fields = True
  83.  
  84. Calculate Magnetic Field Strength = True
  85.  
  86. ! Perform the averaging within this solver
  87. Average Within Materials = Logical True
  88. End
  89.  
  90. Solver 3
  91. Exec Solver = After Timestep
  92. Equation = "VtuOutput"
  93. Procedure = "ResultOutputSolve" "ResultOutputSolver"
  94. Output File Name = static_mover
  95. Vtu Format = True
  96. Binary Output = True
  97. Single Precision = True
  98. Save Geometry Ids = True
  99. Show Variables = True
  100. ! This looks much better!
  101. Discontinuous Bodies = True
  102. End
  103.  
  104. Equation 1
  105. Name = "Equation 1"
  106. Active Solvers(3) = 1 2 3
  107. End
  108.  
  109. Material 1
  110. Name = "Air"
  111. Relative Permeability = Real 1
  112. Relative Permittivity = Real 1
  113.  
  114. End
  115.  
  116. Material 2
  117. Name = "Neodymium"
  118. Relative Permeability = Real 1.05
  119. Relative Permittivity = Real 1
  120. Magnetization 3 = Real 1178e3
  121. End
  122.  
  123. Material 3
  124. Name = "Neodymium"
  125. Relative Permeability = Real 1.05
  126. Relative Permittivity = Real 1
  127. Magnetization 3 = Real -1178e3
  128. End
  129.  
  130. Material 4
  131. Name = "Iron"
  132. Relative Permeability = Real 4000
  133. Relative Permittivity = Real 1
  134. End
  135.  
  136.  
  137. Boundary Condition 1
  138. Name = Farfield
  139. AV {e} = 0.0
  140. End
Advertisement
Add Comment
Please, Sign In to add comment