Videos > Visualizing Magnetic Fields in Ansys Maxwell
Nov 8, 2023

Visualizing Magnetic Fields in ANSYS Maxwell

Hello everyone, this is Ian from Ozen Engineering, Inc. Welcome to this video where we'll cover some basic techniques you can use to visualize magnetic fields in ANSYS Maxwell. For this demonstration, we will be using one of the built-in examples in the ANSYS Electronics Desktop.

Opening and Saving Example Projects

Since today's topic is about visualizing magnetic fields, let's open an example project that models a Hall effect sensor, one of the most common devices used to measure magnetic fields. The first thing to do after opening an example project is to save it in another location. This allows you to manipulate the file and save any changes you make to it.

Running Simulations

Next, let's run one of these simulations. I'm going to run the second design in this project. This 3D magnetostatic simulation features a parametric setup that sweeps the variable angle from 0 to 30 degrees. This rotation provides field information every two and a half degrees. For this demonstration, I'm only interested in one of those angle values, so I'll disable this setup and run the analysis.

Post-Processing and Creating Non-Model Objects

With the simulation complete, let's check out our fields. A great way to do this is by creating non-model objects, which are regions of interest used in post-processing. They can be points, lines, planes, or 3D objects.

  1. To make a non-model object, click "Yes" in the dialog box that appears when you try to create an object after the simulation has already run.
  2. You can select any object and turn it into a non-model object, a powerful debug tool for identifying simulation issues.

Let's start by drawing a point. Click on the drop, and place it in the center of this permanent magnet. As soon as you click, it populates in the model tree. It's good practice to name these points as you create them. I'll name one point p.hallwheel and the other p.pm for the permanent magnet.

Creating Field Reports and Plots

Next, right-click on "Results" and under "Create Fields Report," make a data table. This will generate the magnitude of the B field at that point for us.

Plotting B Field on a Line

  1. Orient the view top-down to create a line centered with the y and z coordinates at zero.
  2. Click on the first point, then the second point, right-click, and select "Done."
  3. Right-click "Results" again, choose "Fields Report," and create a rectangular plot using the line's geometry.

When plotting fields over lines, the x-axis ranges from zero to a number determined by the line's length. You can add markers to extract data points from these curves and export the resulting marker table as a CSV or TAB file.

Creating Delta Markers

By creating delta markers, each pair of markers adds a row to the table, providing information on delta x, delta y, and the slope of the line intersecting these points. A regular marker table is also generated for all points.

Plotting B Field on Planes

We'll create a couple of planes to plot our B field on:

  1. Switch to a top-down view and create a new relative coordinate system in the center of the Hall Effect sensor.
  2. Create a rectangle, right-click the object under "Fields," select "B," click on "Mag B," and select "Done" to plot the magnitude of the B field in that plane.
  3. Repeat the process for a rectangle in the XZ plane.

Double-clicking the color key provides options for scale customization. Experiment with a decibel or logarithmic scale for better visualization.

Using Markers on 2D and 3D Plots

  • Right-click "Field Overlays," select "Fields," then "Marker," and click "Add Marker" to start clicking around and generate the marker table.
  • Export the marker table as a CSV or TAB file.

Plotting on Non-Model Objects

To plot on non-model objects:

  1. Select the object of interest, right-click, choose "Fields," and select the desired quantity.
  2. Choose to plot on the surface or the volume.

For 3D objects, create a mostly transparent box, select it, click "Field Overlays," "Fields," "B," and choose "B Vector." A vector plot is created within the selected volume. Adjust the scale and spacing of vectors for clarity.

If vectors inside a volume are too noisy, consider plotting them on a plane instead.

Conclusion

I hope you found this video on the basics of visualizing magnetic fields in Maxwell helpful. In the next video, we'll explore the field calculator and learn how to plot individual components of our fields. See you then!

[This was auto-generated. There may be mispellings.]

Hello everyone, this is Ian from Ozen Engineering and welcome to this video where we'll cover some basic techniques that you can use to visualize magnetic fields in ANSYS Maxwell. For this demonstration we will be using one of the built-in examples in the ANSYS electronics desktop.

Because the topic of today's video is about visualizing magnetic fields, let's open up an example project that models one of the most common devices used to measure magnetic fields, a Hall effect sensor. The first thing to do after opening an example project is save it in another location.

This will allow you to manipulate the file and save the changes you make to it. Next up let's run one of these simulations. I'm going to run the second design in this project, the third design in this project, the third design. As you can see, 3D magnetostatic simulation.

This features a parametric setup that sweeps the variable angle from 0 to 30 degrees. What that'll do is rotate this wheel and give me field information every two and a half degrees.

For this part of the demonstration, I'm only interested in one of those angle values, so I'm going to disable this setup and go ahead and run the analysis. With the simulation complete, let's check out our fields. A great way to do this is by creating non-model objects.

Non-model objects are regions of interest that we can use in our post-processing. They can be points, lines, planes, 3D objects, it's your choice. To make a non-model object, click "yes" in the dialog box that appears when you try to create an object. After simulation has already run.

And as a quick aside, you have the ability to select any object and turn it into a non-model object.

This is an incredibly powerful debug tool because if your simulation is failing and you don't know why, you can go object by object, removing them from the model until you find the one that has caused your issue. Let's start by drawing a point. Click on the drop-down menu.

And now I'm going to place this in the center of this permanent magnet over here. As soon as you click, it's going to populate in the model tree. Now you'll notice point1 and point2, very nondescript. I think it's good to get in the habit of naming these as you create them.

This point1 is in the hall wheel, so I'm just going to rename it in the properties box. Our point1 is now named "p\_hallwheel". I'll go ahead and name the other one "p\_pm" for permanent magnet. That is what this object here is. Next up, let's right-click on results.

Under create fields report, let's make a data table. This tells you how we get a merged element for each network'. If you look at the file, you will see this dot tripüd engageère is where the course has taken place 2013 for node eighty-eight, zero degrees.

While this value tells you how this particular machine is oriented p,address, and the line type use town. This is the base ethos value of this search term PHAIR point. The table is going to remain in this dashed once now. The 128 layer here gives you a picture you made before.

He stranger簡單 z der Zimentsfeld viktig von der Guur � Persian undelovinguger, which means the arguments are실히 awaited in the field display line. Remember there is no Tária value. I'm going to inv Natürlich wieder here in order that it's the inch value. Let's clear the internet tab.

Here you'll notice that everything I have already created field. New report and it has generated the magnitude of the B field at that point for us. Next up we'll plot the B field on a line that goes through our objects here. To make it a little bit easier on myself I'm going to orient top down.

This will allow me to create a line that is centered with my y coordinate and my z coordinate at zero. I'll click on my first point and the second point, right-click, press "done", and your line has been created.

Right-click results again, fields report, and this time we're going to create a rectangular plot. Make sure that your geometry this time is the line that you've created, magnitude of the B field, and new report.

Whenever you plot fields over lines in this way, your x-axis will range from zero to some number determined by the length of your line. If you want to start getting data points out of these curves, right-click under marker, start adding a couple markers.

I'm interested in a point here, here, here, and here. If you want, you can export the resulting marker tape. If you want, you can export the resulting marker tape. If you want, you can export the resulting marker tape. If you want, you can export the resulting marker tape.

If you want, you can export the resulting marker tape. Marker, Export Marker Table, and you can choose between a CSV or a TAB file. Additionally, if you right-click under markers, you can create delta markers. This time, every time you click on pairs of markers, a row is added to this table.

This row will give you information on your delta x, your delta y, and the slope of the line that intersects these two points. It also generates a regular marker table for all of those points as well. Next up, we'll create a couple planes to plot our B field on.

I'll change again to a top-down view and make a new relative coordinate system in the center of my Hall Effect sensor over here that I'll then use to create a rectangle.

With the rectangle created, all I have to do is right-click the object under Fields, B, click on Mag B, and done to plot the magnitude of my B field in that plane. Let's do the same thing for a rectangle in the XZ plane.

Double-clicking on the Color key will give you a lot of options on your scale and different customization for your plots. If you really want to see what the action is, experiment with a decibel scale or a logarithmic one.

Just like with the 2D rectangular plot, we can use markers here to get this field at various points. Right-click Field Overlays, Fields, Marker, and click on Add Marker. Now you can start clicking around, and as before, it generates the marker table for you.

And similarly, you can also use the Marker table to generate a marker table. You can also use the Marker table to generate a marker table. Right-click on Field Overlays, Marker, and you can export this marker table again as a CSV or a tab file.

And finally, let's look at plotting on things that are not non-model objects. Simply choose whatever you're interested in, right-click, Fields, and choose the quantity that you're interested in.

A lot of times, you're going to want to plot on just the surface only, but you can also choose to plot on just the surface only. But there are plenty of times that you're going to plot the volume as well. So let's go ahead and demonstrate this. I'm going to delete this for now.

And I'm going to create a 3D object. I like to make these boxes mostly transparent. So with this created, I'm going to select it, click Field Overlays, Fields, B, and this time, B Vector. I'll select Done, and a vector plot is created within the volume that I've selected.

You can go ahead and come through here and start messing with this to make it a little bit more easy to understand. Alter the scale, the spacing of the vectors, etc., until it's something a little bit closer to what you're interested in it looking like.

If the vectors inside of a volume are a little bit too noisy for your tastes, you can also plot those on a plane. I hope you found this video on the basics of visualizing magnetic fields in Maxwell to be helpful.

In the next video, we'll open up our field calculator and look at how to plot individual components of our fields rather than just the only one. I'll see you then.