Permanent Magnets
Model definition
Components | Geometric info |
---|---|
Magnet 1 | Cylinder of 2mm radius and 2mm height centered at (0, 0.0016, 0) |
Magnet 2 | Cylinder of 2mm radius and 2mm height centered at (0, -0.0016, 0) |
Force domain 1 | Cylinder of 3mm radius and 3mm height centered at (0, 0.0016, 0) |
Force domain 2 | Cylinder of 2mm radius and 2mm height centered at (0, -0.0016, 0) |
Air box | Box of size 50mm x 50mm x 50 mm |
Output Results:
- Magnetic field distribution.
- Magnetic forces between the magnets.
Material Data
- Air
Property | Value |
---|---|
Magnetic permeability | H/m |
Boundary conditions
Type | Value | Target 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
-
Start with a new project:
-
Click on cylinder icon (< May be add the icon?? >) under Create a geometry:
-
In the
GEOMETRIES SETTINGS
, rename the cylinder asmagnet 1
and set the corresponding values as in the image below. Click onApply
to confirm the settings and then click onNot built
to build the cylinder. -
Click on
Reset view
to fit the geometry to the visualization window. -
Click on the copy (< replace the word with icon >) icon to copy the shape and properties of
magnet 1
. -
Rename the copied geometry as
magnet 2
and modify the Y-centerpoint as shown in the below image. -
Click on
Apply
to confirm the settings and then click onNot built
to build the geometry. Click onReset view
to fit the geometry to the visualization window. -
Make a copy of
magnet 1
again. Rename the copied geometry asforce domain 1
. Increase the radius and height by1mm
. -
Click on
Apply
to confirm the settings and then click onNot built
to build the geometry. -
Now make a copy of
magnet 2
. Rename the copied geometry asforce domain 2
. Increase the radius and height by1mm
. -
Click on
Apply
to confirm the settings and then click onNot built
to build the geometry. -
Click on the
+
icon next toGeoemtry elements
and selectBox
. -
In the
GEOMETRIES SETTINGS
, provide the size of the box:X=0.05; Y=0.05; Z=0.05
. Click onApply
to confirm the settings and then click onNot built
to build the box. -
Click on
Confirm model changes
to finish model creation process.
Step 2 - Define material
-
Proceed to the
Properties
tab to define regions and materials. -
Click on the
+
icon next toMaterials
and selectAir
from the list and clickConfirm
. -
Click on
Add volume
followed by+
icon next to it. This opens a list of all the volumes in the model. Click onSelect all
and then onApply
. This applies theAir
material to all the selected volumes.
Step 3 - Define the physics and apply boundary conditions
-
Proceed to the
Physics
tab to define physics and interactions. -
Click on the
+
icon to add a new physics. SelectMagnetism
. -
Click on the
+
icon next toMagnetism
to add interactions. SelectRemanence
to introduce a B-field in a volume. -
Rename the interaction as
Remanence left
. Click onAdd Volume
and select volume4
as target volume. Set the remanence value to(0, 1.35, 0)
. Click onApply
to confirm the settings. -
Add another
Remanence
interaction. Rename it asRemanence right
. Click onAdd Volume
and select volume1
as target volume. Set the remanence value to(0, -1.35, 0)
. Click onApply
to confirm the settings.
Step 4 - Meshing the geometry
-
Proceed to the
Simulations
tab and add click on+
icon next to theMeshes
to add mesh. -
Under the
MESH SETTINGS
, click onMesh quality
to view the dropdown menu and selectExpert Settings
. -
Keep
Mesh Refiner
as theUsed mesher
. Set theMax size = 0.05
. -
Scroll down to the
Mesh Refinement
. Click onAdd mesh refinement
and then onVolume
. -
Select all the cylindrical volumes as shown below and set the
Max size = 0.0001
. -
Click on
Apply
to confirm the mesh settings and then onNot run
to run the mesh generation process. The status changes fromNot run
toRunning
. -
Once the mesh status changes to
Success
scroll down toMesh results
underMESH SETTINGS
and click onShow preview
.
Step 5 - Apply simulation settings
-
Click on
+
icon next to theSimulations
to add a simulation. -
Under the
SIMULATIONS SETTINGS
, in theAnalysis Type
selectSteady state
and inConcurrency
set theNode Count = 5
andNode Type = 1 CPU, 16GB
. Click onApply
button to confirm the settings. -
Click on
Mesh
underSimulation 1
and selectMesh 1
to set this mesh for the current simulation. -
Click on
+
icon next toOutputs
underSimulation 1
. Now selectMagnetic flux density
underField outputs
. -
Provide the following
OUTPUTS SETTINGS
as in the image below and click onApply
. -
Similarly, create another
Magnetic flux density
field output with the following settings as in the image. -
Click on
+
icon next toOutputs
underSimulation 1
. Now selectMagnetic force
underValue outputs
. -
Provide the following
OUTPUTS SETTINGS
as in the image below and click onApply
. -
Similarly, create another
Magnetic force
value output with the following settings as in the image. -
Now click on
Simulation 1
and then onRun Simulation
button. The simulation status changes fromNot run
toRunning
and after completion toSuccess
.
Step 5 - Visualizing the simulation results
-
Once the simulation status changes to
Success
, click onSummary
underResults
. -
Clicking on
Summary
opens a new dialog box containing the magnetic force output. -
Close the summary dialog box and click on
+
icon next toVisualizations
to add a visualization. -
Click on
+
icon next toVisualization 1
and selectB magnets
. -
Now click on
Activate current visualization
button in the visualization window. -
Change the
Translucent Model
toOpaque Model
and click onReset View
to fit the visible model to the visualization window. -
Add a new visualization by clicking
+
icon next toVisualization 1
and selectB air
. -
To add a glyph filter to
B air
, click on+
icon next to it and selectGlyph
. -
In the
GLYPH SETTINGS
, setMax sample points = 50000
andScale factor = 0.001
and click onApply
to confirm the settings. Finally, click on theRender
button above the visualization window to view the magnetic fields as glyph vectors.