Skip to content

Permanent Magnets

Model definition

INTRO_permanent-magnets

ComponentsGeometric info
Magnet 1Cylinder of 2mm radius and 2mm height centered at (0, 0.0016, 0)
Magnet 2Cylinder of 2mm radius and 2mm height centered at (0, -0.0016, 0)
Force domain 1Cylinder of 3mm radius and 3mm height centered at (0, 0.0016, 0)
Force domain 2Cylinder of 2mm radius and 2mm height centered at (0, -0.0016, 0)
Air boxBox of size 50mm x 50mm x 50 mm

Output Results:

  1. Magnetic field distribution.
  2. Magnetic forces between the magnets.

Material Data

  • Air
PropertyValue
Magnetic permeabilityμ0=4π×107\mu_0 = 4 \pi \times 10^{-7} H/m

Boundary conditions

TypeValueTarget volume
Remanence[0, 1.35, 0]Magnet 1
Remanence[0,-1.35, 0]Magnet 2

Step-by-step guide

Here you’ll find a step-by-step tutorial on how to simulate this in Quanscient Allsolve

Step 1 - Create geometry

  1. Start with a new project: Example image  

  2. Click on cylinder icon (< May be add the icon?? >) under Create a geometry: Example image  

  3. In the GEOMETRIES SETTINGS, rename the cylinder as magnet 1 and set the corresponding values as in the image below. Click on Apply to confirm the settings and then click on Not built to build the cylinder. Example image  

  4. Click on Reset view to fit the geometry to the visualization window. Example image  

  5. Click on the copy (< replace the word with icon >) icon to copy the shape and properties of magnet 1. Example image  

  6. Rename the copied geometry as magnet 2 and modify the Y-centerpoint as shown in the below image. Example image  

  7. Click on Apply to confirm the settings and then click on Not built to build the geometry. Click on Reset view to fit the geometry to the visualization window. Example image  

  8. Make a copy of magnet 1 again. Rename the copied geometry as force domain 1. Increase the radius and height by 1mm. Example image  

  9. Click on Apply to confirm the settings and then click on Not built to build the geometry. Example image  

  10. Now make a copy of magnet 2. Rename the copied geometry as force domain 2. Increase the radius and height by 1mm. Example image  

  11. Click on Apply to confirm the settings and then click on Not built to build the geometry. Example image  

  12. Click on the + icon next to Geoemtry elements and select Box. Example image  

  13. In the GEOMETRIES SETTINGS, provide the size of the box: X=0.05; Y=0.05; Z=0.05. Click on Apply to confirm the settings and then click on Not built to build the box. Example image  

  14. Click on Confirm model changes to finish model creation process.

Step 2 - Define material

  1. Proceed to the Properties tab to define regions and materials.  

  2. Click on the + icon next to Materials and select Air from the list and click Confirm. Example image  

  3. Click on Add volume followed by + icon next to it. This opens a list of all the volumes in the model. Click on Select all and then on Apply. This applies the Air material to all the selected volumes. Example image  

Step 3 - Define the physics and apply boundary conditions

  1. Proceed to the Physics tab to define physics and interactions.  

  2. Click on the + icon to add a new physics. Select Magnetism ϕ\phi. Example image  

  3. Click on the + icon next to Magnetism ϕ\phi to add interactions. Select Remanence to introduce a B-field in a volume. Example image  

  4. Rename the interaction as Remanence left. Click on Add Volume and select volume 4 as target volume. Set the remanence value to (0, 1.35, 0). Click on Apply to confirm the settings. Example image  

  5. Add another Remanence interaction. Rename it as Remanence right. Click on Add Volume and select volume 1 as target volume. Set the remanence value to (0, -1.35, 0). Click on Apply to confirm the settings. Example image  

Step 4 - Meshing the geometry

  1. Proceed to the Simulations tab and add click on + icon next to the Meshes to add mesh. Example image  

  2. Under the MESH SETTINGS, click on Mesh quality to view the dropdown menu and select Expert Settings. Example image  

  3. Keep Mesh Refiner as the Used mesher. Set the Max size = 0.05. Example image  

  4. Scroll down to the Mesh Refinement. Click on Add mesh refinement and then on Volume. Example image  

  5. Select all the cylindrical volumes as shown below and set the Max size = 0.0001. Example image  

  6. Click on Apply to confirm the mesh settings and then on Not run to run the mesh generation process. The status changes from Not run to Running. Example image  

  7. Once the mesh status changes to Success scroll down to Mesh results under MESH SETTINGS and click on Show preview. Example image  

Step 5 - Apply simulation settings

  1. Click on + icon next to the Simulations to add a simulation. Example image  

  2. Under the SIMULATIONS SETTINGS, in the Analysis Type select Steady state and in Concurrency set the Node Count = 5 and Node Type = 1 CPU, 16GB. Click on Apply button to confirm the settings. Example image  

  3. Click on Mesh under Simulation 1 and select Mesh 1 to set this mesh for the current simulation. Example image  

  4. Click on + icon next to Outputs under Simulation 1. Now select Magnetic flux density under Field outputs. Example image  

  5. Provide the following OUTPUTS SETTINGS as in the image below and click on Apply. Example image  

  6. Similarly, create another Magnetic flux density field output with the following settings as in the image. Example image  

  7. Click on + icon next to Outputs under Simulation 1. Now select Magnetic force under Value outputs. Example image  

  8. Provide the following OUTPUTS SETTINGS as in the image below and click on Apply. Example image  

  9. Similarly, create another Magnetic force value output with the following settings as in the image. Example image  

  10. Now click on Simulation 1 and then on Run Simulation button. The simulation status changes from Not run to Running and after completion to Success. Example image  

Step 5 - Visualizing the simulation results

  1. Once the simulation status changes to Success, click on Summary under Results. Example image  

  2. Clicking on Summary opens a new dialog box containing the magnetic force output. Example image  

  3. Close the summary dialog box and click on + icon next to Visualizations to add a visualization. Example image  

  4. Click on + icon next to Visualization 1 and select B magnets. Example image  

  5. Now click on Activate current visualization button in the visualization window. Example image  

  6. Change the Translucent Model to Opaque Model and click on Reset View to fit the visible model to the visualization window. Example image  

  7. Add a new visualization by clicking + icon next to Visualization 1 and select B air. Example image  

  8. To add a glyph filter to B air, click on + icon next to it and select Glyph. Example image  

  9. In the GLYPH SETTINGS, set Max sample points = 50000 and Scale factor = 0.001 and click on Apply to confirm the settings. Finally, click on the Render button above the visualization window to view the magnetic fields as glyph vectors. Example image