Expressing magnetostatic equation as a partial differential equation

In summary: Your Name]In summary, the conversation centers around a person seeking help with modeling a magnetic field using Matlab. They have successfully modeled it using other software and are now trying to express their equation in the standard PDE format required by Matlab. They are looking for advice and guidance on how to do so, and the suggested approach is to break down the equation into smaller parts and consult with experts or the Matlab support team for further assistance.
  • #1
stephenx_86
15
0
Hi,

I am trying to model the magnetic field from two permanent magnets using Matlab, although my particular problem here relates to the physics/maths involved (though if someone could also give me advice on how to implement this particular problem in Matlab that would be awesome!). My system consists of two square magnetic regions (each of side length 5mm and gap between magnets of 1mm - although this is variable), which I have successfully modeled (although at a too low mesh density) using other PDE/FEM software using the equation:

curl(curl(A)-Br)/mu[0]) + J = 0

Where Br is the remnant magnetisation, mu[0] is the permeability of free space and J is the free charge density, which is zero in this case. I know Br is 1.24T and is parallel to the axis that runs through both magnet centres.

However, I really want to be able to use Matlab, but this requires that I express the equation above in what I presume is the standard PDE format. This is something like:

-div(c*grad(u))+ a*u = f

Where u is the variable to be solved and a and f are constants. (There are other types of PDE, but they all seem to be of the same general form)

Does anyone know how I can express my equation, in which 'A' is the thing to be solved for in the form of the second equation. I've spent absolutely hours on this and have no idea how to do it, so any help would be greatly appreciated.

Thanks in advance
Stephen
 
Physics news on Phys.org
  • #2


Hi Stephen,

Thank you for reaching out for help with your problem. It sounds like you have a good understanding of the physics behind your system and have already successfully modeled it using other software. As for implementing it in Matlab, I would suggest breaking down your equation into smaller parts and then writing a script to solve for each part individually.

For example, you could start by defining your constants (mu[0], Br, and J) and then writing a script to solve for the curl of A. From there, you could solve for the curl of the curl of A and then add in the other terms (mu[0] and J) as needed. This approach may take some trial and error, but breaking it down into smaller steps can help make the problem more manageable.

Additionally, you may find it helpful to consult with other experts in the Matlab community or reach out to the Matlab support team for guidance on how to express your equation in the standard PDE format. They may have suggestions or resources that can help you better understand the format and how to apply it to your specific problem.

I hope this helps and good luck with your modeling! Don't hesitate to reach out for further assistance if needed.


 

1. What is the magnetostatic equation?

The magnetostatic equation is a fundamental equation in electromagnetism that describes the relationship between the magnetic field and the sources of the field, such as electric currents and magnetic materials.

2. How is the magnetostatic equation expressed as a partial differential equation?

The magnetostatic equation is expressed as a partial differential equation by incorporating the Maxwell's equations, specifically the Ampere's law, into the magnetostatic equation. This results in the formation of the magnetic vector potential, which is then used to express the magnetostatic equation in terms of partial derivatives.

3. What are the advantages of expressing the magnetostatic equation as a partial differential equation?

Expressing the magnetostatic equation as a partial differential equation allows for a more concise and elegant representation of the relationship between the magnetic field and its sources. It also allows for easier manipulation and calculation of solutions using mathematical techniques.

4. Are there any limitations to expressing the magnetostatic equation as a partial differential equation?

One limitation of expressing the magnetostatic equation as a partial differential equation is that it is only applicable to systems that are in a steady-state, meaning that the magnetic field and its sources are not changing over time. It also assumes certain simplifications, such as neglecting displacement currents.

5. How is the magnetostatic equation used in practical applications?

The magnetostatic equation has many practical applications, such as in designing electromagnets, motors, and generators. It is also used in the analysis and design of magnetic materials, such as in magnetic storage devices and medical imaging equipment.

Similar threads

Replies
4
Views
863
Replies
1
Views
2K
Replies
6
Views
3K
Replies
2
Views
239
Replies
2
Views
1K
  • Electromagnetism
Replies
2
Views
938
Replies
2
Views
285
  • Calculus and Beyond Homework Help
Replies
5
Views
265
Replies
3
Views
1K
  • Calculus and Beyond Homework Help
Replies
10
Views
909
Back
Top