# Example input file # Define the magnets you want # allowed kinds: # 2D: `rectangle`, `circle`, `polygon` [[magnet]] kind = "polygon" numSides = 6 size = 1.0 sizeType = "apothem" center = [-2.0, 2.0] magnetisation = [1.0, 90.0] magAngle = "degrees" alpha = 0.0 alphaAngle = "degrees" [[magnet]] kind = "polygon" numSides = 6 size = 1.0 sizeType = "radius" center = [-2.5, -2.5] magnetisation = [1.0, 90.0] magAngle = "degrees" alpha = 0.0 alphaAngle = "degrees" [[magnet]] kind = "rectangle" size = [1.0, 1.0] center = [-1.0, -0.5] magnetisation = [1.0, 90.0] magAngle = "degrees" alpha = 0.0 alphaAngle = "degrees" [[magnet]] kind = "rectangle" size = [1.0, 1.0] center = [1.0, -2.0] magnetisation = [-1.0, 0.0] magAngle = "degrees" alpha = 0.0 alphaAngle = "degrees" [[magnet]] kind = "circle" size = 1.0 center = [2.0, 2.0] magnetisation = [0.5, 90.0] alpha = 0.0 # Then define the type of grid for calculating over [grid] kind = "grid" start = [-4.0, -4.0] stop = [4.0, 4.0] numPoints = 101 units = "mm" # [grid] # kind = "line" # start = [0.0, -1.01] # stop = [0.0, 0.01] # numPoints = 100 # # Units are not yet implemented # units = "mm" # [grid] # kind = "point" # point = [0.0, 1.1] # [grid] # kind = "custom" # x = [0.0, 0.0] # y = [3.3, 4.4]