Magnetodynamic Simulation Tutorials

Nonlinear Transient Rotational Test Rig (TEAM 24)

The problem 24 is for validating 3D nonlinear time transient codes. The user can read the document ’problem24_withResults.pdf’ to get further background information for this problem.

image

In this problem we switch on the Voltage in two coils to a value of 23.1 V. We calculate the time dependent current in the coils, the torque and flux density over time.

Estimated time: 1.5 h

Strategy

The task description does not give any information about the conductivity of the coil material. Instead it provides the ohm resistance: Both coils have 3.09 Ohm, so one will have the half of it. To account for this given resistance in our simulation there are two possibilities: We can either adjust the conductivity or the fill-factor of the coil to drive the resistance to the demanded value.

So our strategy will be building up the model using standard copper and first performing a fast static analysis to compute the ohm resistance of the coils. This first solution will be done without rotor and stator, just with the coils and air. Comparing this ohm value against the demanded one will give us a scale value. This scale value can be used to either scale the coil conductivity or the coil fill-factor. We will use the fill-factor. After this the transient run can be done.

Set up the Fem Model

  1. download the model files for this tutorial from the following link:
    https://www.magnetics.de/downloads/Tutorials/4.MagDyn/4.2Team24.zip

  2. unzip the archive. There will be one folder ’start’ and one ’complete’.

  3. Start the Program Simcenter 3D or NX. Use Version 12 or higher, preferably use the newest.

  4. In Simcenter, click Open image and navigate to folder ’start’. Select the file ’Team24.prt’ and click OK. (Maybe you must set the file filter to ’prt’)

  5. From toolbar Application click on ’Pre/Post’ image

  6. Create a ’New Fem and Simulation File’. Preferably, activate the ’Strategy’ ’Non-Manifold’. Otherwise Mesh-Mating-Conditons must be used.

  7. Create a first solution image of type ’Magnetostatics’. This will be the pre-solution.

  8. Create a second solution (in the Sim part, use button image) of type ’Magnetodynamic Transient’.
    image

  9. Set the Fem file to the displayed part.

  10. Edit the Fem file and activate ’Splines’ in Geometry Options.
    imageimage

  11. The Rotor

  12. The Stator

  13. The first Coil

  14. The second coil

  15. The Air:

  16. Switch to the Sim file.

  17. Create a constraint of type ’Flux tangent (zero a-Pot)’ on the sphere outside faces.
    image

  18. Create the voltage loads.

  19. Prior to solving the static solution we must avoid that the coils are influenced by the rotor and stator. Therefore,

    Find Coil Fillfactor, Rerun and Test

  20. Prior to solving the transient solution, move the two meshes of rotor and stator back into their origin mesh collectors. Then solve. The solution time will be about 3 minutes because of nonlinear iterations due to saturation effects.
    image

Post Processing

Check current and torque results over time.

  1. Open the graphical table results and display them as follows.

  2. Display z component of the torque on the rotor. The maximum value is 3.56 Nm. The reference result from measurements is 3.2 Nm. Smaller mesh sizes will drive the simulation result more and more against the measurement.
    image

  3. Display the current result for both coils. They show a good agreement and the maximum value is 7.45 A. The measured reference value for the current is 7.4 A at time 0.2 sec.
    image
    A manual verification of the time dependent current \(I(t)\) in a coil after switching on the voltage, is given by the formula: \[I(t) = (1-e^{\frac {R}{L} \cdot t}) \cdot \frac{U_{0}}{R}\]
    with \(R = 1.54 \Omega\), \(L = 0.03H\), \(U_{0} = 11.55V\) and \(t = 0.01s, ..., 0.2s\).
    L is precalculated by the formula: \[L \approx \mu_r \cdot \mu_0 \cdot N^2 \cdot \frac{A}{l} \approx 0.03H\]
    Following a table with a comparison of the simulation and analytic results:

    Time Simulation Result Analytic Result Deviation
    0.01s 2.65A 3.01A \(13.6\%\)
    0.05 6.2A 6.92A \(11.6\%\)
    0.1s 7.2A 7.45A \(3.5\%\)
    0.15s 7.38A 7.49A \(1.5\%\)
    0.2s 7.43A 7.4997A \(0.9\%\)


    The values match well at the end time. Deviations in the beginning are higher probably because of the unsecure inductivity value of the coils.

  4. The contour plot of the flux density at time 0.2 s (last time step) looks like this:
    image

The tutorial is finished.

Conductive Plate under Coil (TEAM 3)

The problem 3 of the Team Benchmarks (Testing Electromagnetic Analysis Methods) is one of the examples for testing eddy current effects. A conductive plate with two holes is placed under a coil. The coil is driven by alternating current of 50 Hz and 1260 ampere turns. The goal is to analyse for the magnetic flux density along a line that goes slightly over the plate. The user should read the documents ’problem3.pdf’ and ’Results_EddyCurrentProblems.pdf’ for more background understanding.
image
What you learn in this example:

Estimated time for the example: 1h.

Analysis of Complete Geometry

Follow these steps:

  1. download the model files for this tutorial from the following link:
    https://www.magnetics.de/downloads/Tutorials/4.MagDyn/4.3Team3.zip

  2. unzip the archive. There will be one folder ’start’ and one ’complete’.

  3. Start the Program Simcenter image (or NX). Use Version 12 or preferably newer.

  4. In Simcenter, click Open image and navigate to folder ’start’. Select the file ’Team3_full.prt’ and click OK. (Maybe you must set the file filter to ’prt’)

  5. From toolbar Application click on ’Pre/Post’ image

  6. Click on ’New FEM and Simulation’,

  7. Preferably, activate ’Strategy’ ’Non-Manifold’. If not, Mesh-Mating-Conditions must be used.

  8. Set the displayed part to the Fem-file.

  9. The Coil:

  10. The Plate:

  11. Mesh Control

  12. The Air

  13. The Air Infinity

  14. Switch to the Sim-file

Post Processing Complex Results

In all frequency domain solutions results are complex, that means they have a real (Re) and an imaginary (Im) part. One can imagine the corresponding time domain solution would alter between this real and imaginary part. From real and imaginary part other quantities like amplitude and phase angle can be extracted by complex number math operations.

image image

Hints for viewing frequency results in post processing:

  1. In the ’Post Processing Navigator’ double click on the ’Current Density’ result.

  2. Hide the 3D elements Coil, Air, AirInf and all 2D elements.

  3. Current Density Result:
    The picture shows the area where the eddy currents appear. It corresponds to the prior calculated skin depth.
    image
    The picture shows the area where the eddy currents appear.

  4. Flux density plot with arrows and the ’Complex Option’ is set to ’At Phase Angle’. Visible is the magnetic field, created by the coil and influenced by the plate.
    image

  5. EddyCurrentLossesDensity:
    This result is responsible for the heating of the plate.
    image
    This result is responsible for the heating of the plate.

Modeling the Plate by 2D Elements

In this second part of the exercise we will demonstrate how conducting sheets can be used. Therefore, the aluminum plate will be modeled by 2D elements which take into account thickness and magnetic/electric material properties. This assumption is valid and of good accuracy if thickness is small. The model is already set up, so in this tutorial we simply walk through the steps and check the new features.

  1. Open the part ’Team3_sim2.sim’ from the complete folder and change to the FEM file. The part already contains a coarse mesh, physical properties and boundary conditions for this exercise.
    image

  2. Set the Fem file to the displayed part.

  3. Change to the Sim file.

  4. Solve and post process the results.

Using Symmetry

In case the model and also the magnetic field are symmetric, the simulation can be simplified. We use a half model and apply a symmetry constraint on the symmetry plane.
imageimage
The condition ’Flux tangent (zero a-Pot)’ on the symmetry plane acts as a symmetry condition. Therefore, that condition has to be defined on all outside faces: The outside sphere faces and the symmetry plane.

Inductance, Phase Shift and Resistance of a Coil in 1D,2D,3D

In this example we show how to calculate inductance, ohm resistance, voltage, current and their phase shift in a simple coil. We start with a 1D simulation where we assign the values of current, inductivity and resistance. The simulation calculates the resulting voltage. In a similar way one could also set up much more complex electrical circuits and compute for such results. Following we simulate this in a 2D axisymmetric and also a 3D simulation. The advantage of 2D and 3D simulation is that the parameters of the coil are calculated with the given geometry by FEM. Another possibility is to combine 1D circuits with 2D and 3D models, what is not shown in this tutorial.
imageimageimage
Estimated time: 1 h.

1D Circuit Simulation

  1. Start the Program Simcenter 3D or NX. Use Version 12 or preferably newer.

  2. Create a new .prt file. Name it ’Coil1d.prt’

  3. Start the application Pre/Post and click ’Create New FEM and Simulation’

  4. Choose solver ’MAGNETICS’ and Analysis Type ’3D Electromagnetics’(’2D or axisym Electromagnetics’ is also possible). Click OK. Deactivate ’Create Idealized Part’, click ’Create Solution’.

  5. Switch to the Fem-file.

  6. From toolbar ’Home’ create a ’1D Connection’

  7. In the Simulation Navigator double click on the created mesh collector ’Inductor(1)’.

  8. Create again a 1D Connection.

  9. Edit the properties of the resistor. Type ’1’ \(\Omega\) in ’Electric Resistance per Element’.

  10. Switch to the Sim-file.

  11. Create a new Load. Use ’Current Harmonic’.

  12. Click RMB on the Solution, select ’Edit Solver Parameters’. In box ’General’ at ’Result Graphs (afu) switch to ’Create, keep txt Files’. Ok Solve the Solution.

Post-Processing

Post-processing is done by some text or afu files that contain the results.

  1. Open the file with extension *.VoltageCircuits.txt. The Solution is divided in the applied voltage, the ’Inductor Element’ and the ’Resistor Element’. Each has three parameters. The first is the frequency following the real part and last the imaginary part.
    image

Analytic Verification

For the calculation of the voltage in the coil we need the ’reactive’ resistance of the coil \(X_{L}\). This is calculated by: \[X_{L} = j \omega L = j \cdot 2 \pi \cdot f \cdot L = j100 \pi\] with \(f=50Hz\) forcing frequency, \(L=1H\) inductivity of coil.
To calculate the voltage we use \(U = X_{L} \cdot I = j100 \pi \cdot 3A = 942.478V\)

The resistance of the resistor was set to \(R = 1 \Omega\).
So the voltage in the resistor is \(U = R \cdot I = 1 \Omega \cdot 3A = 3V\)

These results match with the results of the simulation.

2D Axisymmetric Analysis

  1. download the model files for this tutorial from the following link:
    https://www.magnetics.de/downloads/Tutorials/4.MagDyn/4.4Coil.zip

  2. unzip the archive. There will be one folder ’start’ and one ’complete’.

  3. Start the Program Simcenter 3D or NX. Use Version 12 or preferably newer.

  4. In Simcenter, click Open image and navigate to folder ’start’. Select the file ’coil2D.prt’ and click OK. (Maybe you must set the file filter to ’prt’)

  5. Start the application Pre/Post.

  6. Create a New Fem and Sim. Set the solver to ’MAGNETICS’ and Analysis Type ’2D or axisym Electromagnetics’. Click OK.

  7. A new window appears asking for the solution type. See below.

  8. Switch to the FEM file.

  9. For easier post processing, click on the button ’Rename Meshes ...’ image from the Magnetics toolbar. That utility renames all meshes and therefore is a useful feature especially with larger models and many meshes.

  10. Switch to the Sim file.

  11. Under Solution, select ’Edit Solver Parameters’ and modify the field Result Graphs (afu) to ’Create, keep txt Files’.

  12. Solve the solution.

  13. Check the flux density result. (real part)
    image

Post Processing

Postprocessing is done by some text or afu files that contain the results.

  1. Ohm-Resistance Result

  2. Inductance Result

  3. Phase Shift Result

3D Analysis

  1. Open the part ’coil3d.prt’,

  2. Start Simcenter Pre/Post, Create New FEM and Sim,

  3. Choose solver ’MAGNETICS’ and Analysis Type ’3D Electromagnetics’.

  4. Switch to the Fem-file.

  5. Switch to the Sim-file

Post Processing

Postprocessing is done by some text files that contain the results.

  1. Voltage Result

  2. Current Result

  3. Ohm-Resistance Result

  4. Inductance Result

  5. Phase Shift Result

Result Comparison with Analytic

For approximate analytic calculation of the inductance \(L\) of an air-coil, we use the following formula (Source: G. Schenke, Bauelemente der Elektrotechnik 2008, S. 37.) \[L \approx \mu_0 N^2 0.51 D_{out} = 1.589 \cdot 10^{-8} H\] with \(D_{out}=0.0248 m\): Diameter of coil, \(N=1\) Number of turns, \(\mu_0=4 \pi 10^{-7}\) Magnetic constant

The active ohm resistance \(R\) (Re part) can be calculated from the length \(l\) and section area \(A\) of the wire and the electric conductivity \(\sigma\) as \[R = \frac{l}{\sigma A} = 2.62 \cdot 10^{-5} \Omega\] with \(\sigma=58 \cdot 10^6 S/m, l=0.058m, A=3.8438 \cdot 10^{-5} m^2\)

The reactive ohm resistance \(XL\) (Im part) can be calculated from the inductance \(L\) and the frequency \(f\) from \[XL = \omega L = 2 \pi \cdot f \cdot L = 4.99\cdot 10^{-6} \Omega\] with \(f=50Hz, L=1.589\cdot 10^{-8} H\).

The phase shift \(\varphi\) results from the two resistance values by \[\varphi = \arctan \frac{Im}{Re} = 10.7 deg\]

Finally, an overview of the calculated results in 2D and 3D and analytic is shown.

Ohm Resistance (active) Ohm Resistance (reactive) Inductance Phase Shift
Analytic \(2.62 \cdot 10^{-5} \Omega\) \(4.99 \cdot 10^{-6} \Omega\) \(1.589 \cdot 10^{-8} h\) \(10.7 \deg\)
2D \(2.614 \cdot 10^{-5} \Omega\) \(4.938 \cdot 10^{-6} \Omega\) \(1.572 \cdot 10^{-8} h\) \(10.698 \deg\)
3D \(2.581 \cdot 10^{-5} \Omega\) \(4.658 \cdot 10^{-6} \Omega\) \(1.483 \cdot 10^{-8} h\) \(10.23 \deg\)

As another reference, the benchmark example ’TEAM 15’ gives an inductance value for a similar coil with N=3790 windings as \(0.2218 h\). In our 2D example we calculated \(0.2258 h\). Thus, the deviation in 2D is 1.8% and in 3D 4%.

The exercise is done. Save your files and close them.

Magnetic Damping from Mechanical Vibration

When conductive solid objects move through a static magnetic field, eddy currents are induced according to Faraday’s law. The induced eddy current density interacts with the static magnetic field, resulting in a Lorentz force that acts on the solid and opposes its motion. Thus, a conducting solid vibrating in a static magnetic field experiences structural damping.

This example calculates the damping effect when a cantilever beam (an electric conductor) is subjected to harmonic excitation across a range of frequencies while placed in a strong magnetic field. The approach used here assumes that the shape of the conductor does not change, thus structural displacements remain small.


image
The above picture right shows a current-wire that creates a magnetic field around it. A conductor is placed near to it. With static current and without any conductor-motion there will be no eddy currents and forces. The below picture shows the magnetic field, eddy currents and forces if the conductor moves.
image
In electromagnetic simulations, such movements can be modeled in two ways: either by using step-by-step motion with moving meshes or by incorporating the motion directly into the equations, which is a much simpler approach. This is the method we want to use here. The feature to be used for that is "Conductor Motion - const Shape".

Theory - the Speed Term in the Equations

Neglecting the displacement currents, we have to solve Maxwell’s equations together with the following constitutive relations: \[\text{curl}\,h = j \quad \quad \text{curl}\,e = -\partial_{t} b \quad \quad \text{div}\,b = 0\] \[b = \mu \, h \quad \text{and} \quad j = \sigma \, e\]

\(h\): magnetic fieldstrength, \(b\): magnetic fluxdensity, \(j\): electric currentdensity, \(\mu\): magnetic permeability, \(e\): electric fieldstrength, \(a\): magnetic vectorpotential, \(v\): electric scalarpotential, \(\sigma\): electric conductivity

The weak a-v form becomes (with \(b = curl \,a\) and \(e = -\partial_{t} a - grad \,v\)) \[(1/\mu \,curl \,a, curl \,a^{‘}) + (\sigma \, \partial_{t} a, a^{‘}) + (\sigma \,grad \,v, a^{‘}) + (\sigma \,\partial_{t} a, grad \,v^{‘}) + (\sigma \,grad \,v, v^{‘}) = 0\]

The last two terms represent Ohm’s law. In the formulation of the physical master-library (file lib_Master.pro) each of such terms is written as a equation line as follows:

Equation{
Integral{ [ 1/mu[] * Dof{Curl a}, {Curl a} ]; ...};
Integral{ DtDof[ sigma[]* Dof{a} , {a} ]; ...};
Integral{ [ sigma[]* Dof{Grad v}, {a} ]; ...};
Integral{ DtDof[ sigma[]* Dof{a} , {Grad v} ]; ...};
Integral{ [ sigma[]* Dof{Grad v}, {Grad v} ]; ...};
... }

Ohm‘s law \(j = \sigma \,e\) is only valid for non-moving conductors. For a conductor moving at velocity \(vel\), ohm’s law becomes \[j = \sigma \,(e + vel \times b)\] Thus, the fourth and fifth equation terms are extended and (again with \(e = -\partial_{t} \,a - \text{grad} \,v\)) become the last three lines of the following set. Finally, we have one additional line to represent the speed term:

Equation{
Integral{ [ 1/mu[] * Dof{Curl a}, {Curl a} ]; ...};
Integral{ DtDof[ sigma[]* Dof{a} , {a} ]; ...};
Integral{ [ sigma[]* Dof{Grad v}, {a} ]; ...};
Integral{ DtDof[ sigma[]* Dof{a} , {Grad v} ]; ...};
Integral{ [ sigma[]* Dof{Grad v}, {Grad v} ]; ...};
Integral{ [-sigma[]* (vel[] *^ Dof{d a}), {a} ]; ...}; /*SpeedTerm*/
... }
The speed term \(vel[]\) is defined as a function. This allows to use either fixed velocity-values or spacial distributions or even flow fields resulting from CFD. Algorithms are implemented that allow reading such fields and also interpolating on new meshes. By this way each element’s velocity contributes to the electromagnetic solution.

Preparations

  1. Download the model files for this tutorial from the following link:
    https://www.magnetics.de/downloads/Tutorials/4.MagDyn/4.11MagneticDampingFromVibration.zip

  2. Unzip the archive. There will be one folder ’start’ and one ’complete’.

  3. Start the Program Simcenter or NX. Use Version 12 or preferably newer.

  4. In Simcenter, click ’Open’ and navigate to folder ’start’. Select the file ’MagneticDampingFromVibration.prt’ and click OK. (Maybe you must set the file filter to ’prt’)

  5. Start the Application Pre/Post.

  6. Click ’Create a New Fem and Sim’.

  7. Deactivate ’Create Idealized Part’

  8. Set the solver to ’MAGNETICS’ and Analysis Type to ’3D Electromagnetics’

  9. Hint: Leave the option ’Strategy to Use’ at the default ’Manifold’ (If working in a newer version of NX, in an older this does not exist). We will use this older process because it is compatible in all versions even if the newer ’Non Manifold’ would make the meshing simpler.

  10. Click Ok

  11. If a new window appears asking for the solution type, click ’Close’. We want to create the solution later.

Fem-Part Setup

There is nothing special in the Fem part. Just creating standard meshes, mesh-matings and assigning materials. If desired, the user can alternatively start with the existing Fem part from folder completed and create a Sim part from that.

  1. Create mesh-matings

  2. Create meshes

  3. Apply material to the Wire

  4. Apply material to the Vibrating Conductor

  5. Apply material to the Air

Simulate Constant Speed in a Transient EM Solution

Conductor motion or speed affects dynamics and thus the simulation must be done in one of the dynamic solution-types. That even applies if the conductor moves through a static magnetic field. Thus, in this first step we do a usual transient electromagnetic solution. The disadvantage is that in transient solutions there are some time steps necessary for the fields to become nearly static. So, lets try with a time of one second and 10 steps:

  1. Create the solution

  2. Create the speed:

  3. Apply constant current on the wire to get a rotating magnetic field.

  4. Apply a zero potential constraint at the outside

  5. Solve the solution. This will take about 1 minute.

  6. Open the results and display the ’LorentzForce’ at the last time step

  7. in the post-view, blank all meshes but the Vibrating_Conductor

  8. cycle through the time steps and verify that the result changes only during the first 4 time steps. After that the solution has become static.

  9. show the force as vectors (maybe increase the arrows-size) and verify that the direction points against the velocity direction. Thus, the calculated force has a damping effect on the motion.

  10. the picture below shows the magnetic fluxdensity (top), the induced current (middle) and the lorentz force (bottom)
    image

Simulate Constant Speed in a Frequency EM Solution

To avoid the extra time steps from the prior transient simulation we now do a frequency domain simulation. This will give the steady state result in only one step. But, as a trick, we will set the forcing frequency to nearly zero Hz. This will set the wire current to nearly static and only the velocity will contribute to the eddy current generation.

  1. Create the solution

  2. Create the speed:

  3. Apply constant current on the wire

  4. Use drag and drop to reuse the existing constraint ’Flux tangent (zero a-Pot)’ into the new solution

  5. Solve the solution. This will take only a few seconds

  6. Open the results and display the ’LorentzForce’. Verify that it is the same result (nearly) as it was in the transient simulation.

  7. check also the ’Current Density’ result. It is also the same as in the transient simulation.

  8. Optionally change the forcing frequency to something higher, for instance 1 Hz, and solve again. The results now should slightly change because now there additional induction effect from the AC wire on the conductor. Don’t forget to set the frequency back to the small value.

Set up a Nastran Dynamic Response Simulation

Following, we want to apply not only constant but real vibration velocity that results from an accurate response dynamics simulation.

  1. Set up the Fem file for Nastran

  2. Set up the Sim file for Nastran Dynamic Response Sol 111

Transfer the Nastran Velocity Results

Simulate with Speed-Results from Nastran Pre-Solution

Conductor Model by 1D-Line Elements

This chapter is optional. It shows how vibrating 1D lines can be handled additionally to the 3D solid. We start from an already completed model.
image image

  1. Open the part file ’MagneticDampingFromVibration_sim2.sim’

  2. Notice, all solutions are same as in the prior model. The Fem file contains now additionally 1D line elements having 30 mm diameter. These behave, in a very coarse way, similar to the solid conductor. In all solutions, motion features loads and constraints such line elements are now included.

  3. Solve the Nastran solution and display the displacement result (see picture below. Complex option in register ’Result’ and ’Deformation’ are set to ’Real’). Notice that the line geometry vibrates similar as the solid but in opposing direction.
    Hint: The re and im-part of these velocities are already in corresponding fields, as was demonstrated in the before chapter.
    image

  4. Solve the last solution ’Frequency 50Hz with Nastran PreSolution’ and display the force results as in the picture below. From the arrows we can see, they act against the velocity or displacement.
    image

  5. Thus, it is possible to also use 1D-lines for calculating conductor damping from mechanical vibrations.

The tutorial is finished.

Mutual Inductance of two Coils

In this tutorial, we will use the Magnetics solver to calculate the self-inductance and mutual inductance of two circular and closed coils in a 2D axisymmetric model. The below picture shows these two coils in a axisymmetric section and their magnetic fieldlines.
image

Understanding Self and Mutual Inductance

The calculation of mutual inductance is important for many practical applications.
For example:

Definition of the inductivities: Although induced currents exist only in AC, it is still possible to evaluate the inductance for this case from a DC analysis. Self-inductance \(L_{11}\) and mutual inductance \(L_{12}\) are defined as the total magnetic fluxdensity B passing through a surface, whose faces define the primary and secondary coils. These can be expressed as:

\[L_{11} = \frac{\int_{S_1} \mathbf{B} \cdot \mathbf{n}dS}{I_1}\]

\[L_{12} = \frac{\int_{S_2} \mathbf{B} \cdot \mathbf{n}S}{I_1}\]
where \(I_1\) is the current passing through the primary coil, \(\mathbf{n}\) is the vector normal to the surface, and the integrals are taken over the surfaces \(S_1\) and \(S_2\) defined by the primary and secondary coils.

Preparations

  1. Download the model files for this tutorial from the following link:
    https://www.magnetics.de/downloads/Tutorials/4.MagDyn/4.10MutualInductance.zip

  2. Unzip the archive. There will be one folder ’start’ and one ’complete’.

  3. Start the Program Simcenter image (or NX). Use Version 12 or preferably newer.

  4. In Simcenter, click Open image and navigate to folder ’start’. Select the file ’MutualInductance.prt’ and click OK. (Maybe you must set the file filter to ’prt’)

  5. Start the application Pre/Post.

  6. Create a New Fem and Sim. Set the solver to ’MAGNETICS’ and Analysis Type ’2D or axisym Electromagnetics’. Click OK.

  7. If a new window appears asking for the solution type, click ’Close’. We want to create the solution later.

Fem-Part Setup

  1. Start by meshing the the inner coil. Click ’2D Elements’, for ’Type’ use ’tri’. Select the inner coil and use half of the recommended element size.
    image

  2. Edit the mesh collector, change the name to ’Coil_Inner’. Click ’Edit’ and select ’Copper simple’ from the material library.
    image

  3. Create a second mesh for the outer coil. Select the outer coil and apply the same settings as used for the inner coil. For material, edit the mesh collector and choose ’Copper simple’.

  4. Next, create a mesh for the air. Again, use ’2D Mesh’ with the recommended element size divided by 2. Edit the mesh collector, choose ’FluidPhysical’ and ’air’ as material.

  5. The last mesh ist the infinity air. Click ’2D Mesh’, select the infinity air and use half of the recommended element size.

  6. In the mesh collector choose ’Infinity2D’ and click ’Create’. Set the settings as shown in the window below.
    image

Sim-Part Setup for DC

Since mutual inductance can be calculated in both DC and AC scenarios, we will compute two separate solutions and compare them.

  1. Create a solution of type ’Magnetostatic’
    image

  2. In ’Output Requests’, ’Plot’ activate ’Magnetic Fluxdensity’, ’MagneticPotential (a-Pot)’, ’Magnetic Fieldstrength’ and ’Current Density’. In ’Table’ activate ’Electrode Voltage’ and ’Fluxlinkage - Vectorpotential on Conductors’.
    Hint: The desired mutual and self inductance results from the last output request.

  3. In ’2D’ active the ’axisymmetric’ checkbox.

  4. Next, create a constrait of type ’Flux tangent (zero a-Pot). Select all 4 outside lines.
    image

  5. Now, create the loads. Click ’New Load’, ’Current 2D’. Accept type ’On Physical’, and select ’Coil_Inner’ from the selection list. In ’Electric Current’ type ’1’A. Then create a second load of type ’Voltage 2D’ for the second coil. Select ’Outer_Coil’ and type ’0’V in ’Electric Voltage’.
    imageimage

  6. Before solving, right click on the solution and click ’Edit Solution Parameters...’. Under ’General’, ’Result Graphs (afu)’, change to ’Create, keep txt File’.

  7. Now, solve the solution.

  8. Open the ’IntMagneticPotential.txt’ file in your work folder. Here we can see the mutual inductances of the coils. We will compare this value with the AC values later on.

    image

Sim-Part Setup for AC

  1. Next, we will simulate the mutual inductance in AC.

  2. Create a new solution of type ’Magnetodynamic Frequency’. In ’Output Requests’, ’Plot’ activate ’Magnetic Fluxdensity’, ’Magnetic Fieldstrength’, ’MagneticPotential (a-Pot)’, and ’Current Density’. In ’Table’, activate ’Electrode Voltage’ and ’Fluxlinkage - Vectorpotential on Conductors’.

  3. Create the loads: Click ’New Load’, ’Current Harmonic 2D’. Accept ’On Physical’ and select the inner coil. For ’Electric Current Amplitude’ type ’1’A and ’0’ phase shift.

  4. For the second coil create a second load of type ’Voltage Harmonic 2D’ and select the outer coil. Type ’0’V for ’Electric Voltage Amplitude’.
    imageimage

  5. Drag and drop the constaint from the first solution in the new soluten. Edit the solution solver parameters and change to ’Create, keep txt File’.

  6. Then solve the solution.

Post Processing

  1. Again, open the ’IntMagneticPotential.txt’ file in your work folder. The first value is the frequency, then the mutual inductance (realpart and imaginarypart) of the coils follow. Since the load is applied on the inner coil, the calculated inductance for the inner coil is the self inductance (See formula for \(L_{11}\) above). Current is induced on the outer coil, so the mutual inductance is 2.071 nH - j 1.28 nH.
    image

  2. The real part of the mutual inductance represents the effective coupling between the coils, while the imaginary part is related to losses such as eddy currents, resistive effects, or phase shifts between the coils due to reactive components.

  3. The mutual inductance of the DC solution was 2.862 nH while the AC amplitude value is 2.435 nH. Thus, the deviation is 15%.

  4. To conclude, a simulation for mutual inductance can be solved in both AC or DC. The AC solution contains losses and therefore is more accurate.

The tutorial is finished.

Resonant Circuit with 3D Coupling

In this tutorial we show how to create a Resonant Circuit in a 1D Simulation. We calculate the circuit current over time and verify the result with a analytic calculation. Later we replace the 1D resistance with a 3D geometry. This concept can be used to connect realistic 3D geometries with 1D circuits.
imageimage

1D Circuit Simulation

  1. Start the program Simcenter 3D or NX. Use version 12 or preferably newer.

  2. In Simcenter, create a new file. Key in for name ’ResonantCircuit1D’ and click OK.

  3. From toolbar Application click on ’Pre/Post’ image

  4. Click in toolbar ’Magnetics’ on ’New FEM and Simulation (Non-Manifold)’ image

  5. Create a Solution with type ’Magnetodynamic Frequency’. In ’Output Request’, ’Plot’, activate ’Electric Potential (phi-Pot). In ’Table’, activate ’Circuit Voltage’ and ’Circuit Current’. As Frequency use 50Hz.

  6. In ’Edit Solver Parameters’, select ’Create, keep txt Files’.

  7. Click ’Node Create’ from toolbar ’Nodes and Elements’. Create 4 nodes, approximatly in form of a rectangle. Use any positions.

  8. Create a ’1D Connection’ and select with ’Node to Node’ the first two nodes. Set the type to ’Resistor’. Create a second 1D Connection, select the next two nodes with type ’Inductor’. Create between the last two nodes another 1D Connection with type ’Conductor’.

  9. Edit the physicals of the resistor. Key in \(1\Omega\) for ’Electric Resistance per Element’. Do the same for the ’Inductor’ with 1H and 1(Farad) for the ’Capacitance’ of the ’Capacitor’.

  10. Switch to the Sim File and click ’Load Type’, ’Voltage Harmonic’. Switch to ’On Circuit’ and select the two open nodes as primary and secondary node. Key in 1V.

  11. Solve the Solution.

Post Processing

Open the file with the extension ’.CurrentCircuit.txt’.
image
Shown is the real and imaginary part of the circuit current at every component. Since we have a serial circuit, the current is always the same.

Analytic Verification

We set up a differential equation of the ’Serial Resonant Circuit’ to calculate the current over the time t. The differential equation results from the sum of the circuit voltages: \[U(t) = U_{R} + U_{L} + U_{C}\] \[U(t) = R \cdot I(t)+ L \cdot I^{'}(t) + \frac{1}{C} \cdot \int_{}^{}I(t) dt\] We derive the equation by time to avoid the calculation with an integral. \[U^{'}(t) = R \cdot I^{'}(t)+ L \cdot I^{''}(t) + \frac{1}{C} \cdot I(t)\] with \(R = 1\Omega\), \(L = 1H\), \(C = 1F\) and \(U(t) = cos(2 \cdot \pi \cdot 50Hz \cdot t)\), so \(U^{'}(t) = 100\pi \cdot cos(100\pi \cdot t)\).

We use the following mathematical approach: \[I_{p}(t) = D_{0} \cdot sin(bt) + E_{0} \cdot cos(bt)\] That approach and it’s derivations are inserted into the differential equation and after some simplifcations we get:

\(cos(b \cdot t) \cdot b + (sin(b \cdot t) \cdot 0) = cos(b t) \cdot (D_{0} \cdot b - E_{0} \cdot b^{2} + E_{0}) + sin(bt)\cdot(-E_{0} \cdot b - D_{0} \cdot b^{2} + D_{0})\)

with \(b = 100\pi\) and a coefficient comparision two equations with two variables result.
Solving the equation system gives \[D_{0} = 1.013 \cdot 10^{-5}, E_{0} = -3.18 \cdot 10^{-3}\] We lead this back to our approach and get a equation describing two oscillations: \[I(t) = 1.013 \cdot 10^{-5} \cdot sin(100\pi \cdot t) - (-3.18 \cdot 10^{-3}) \cdot cos(100\pi \cdot t)\]
The sum of the two oscillations finally results in \[I(t) = 3.18A \cdot 10^{-3} \cdot sin(100\pi \cdot t - 1.571)\] Converting this into a complex number gives \(I = 1.013 \cdot 10^{-5} -j3.18 \cdot 10^{-3}\). This is the settled result for the current behavior over time and matches precisely with the result of the simulation.

Circuit with 3D Resistance

image
We now replace the 1D Resistor with a 3D geometry. Because of the material properties and the geometry, there arises a resistance. Following we open an existing model and walk through some interesting features.

  1. Download the model for this tutorial from the following link:
    https://www.magnetics.de/downloads/Tutorials/4.MagDyn/4.8ResonantCircuit.zip

  2. Extract the zip-archive. In Simcenter, click Open image and navigate to the folder of the extracted archive. Select the file ’ResonantCircuit3D_sim1.sim’ and click OK.

  3. The meshes for the air and the resistor are already created. We use a self made material for the resistor and get a resistance of \(1.07\Omega\) which nearly corresponds to the prior 1D simulation.(\(1.0\Omega\))

  4. There are two 2D meshes of type ’ElectrodePhysical’. These are necessary to connect a 1D connection to a 3D geometry. They don’t contain any physical properties.
    imageimage

  5. To finally connect the 2D electrode with the outside circuit we need a 1D connection of type ’Connector’. Such a connector must be between a node of the electrode and another node in the circuit. See picture below.
    image

  6. Switch to the Sim File and solve the solution.

  7. Open the file with the extension ’.CircuitCurrent.txt’
    image

  8. Shown is the circuit current, which matches well with the 1D simulation. The small deviation results from the slight difference in the ohm resistance.

The tutorial is finished.

Finite Conductivity Boundary (Impedance Boundary Condition)

This tutorial introduces you to the ’Finite Conductivity Boundary’, also called ’Impedance Boundary Condition’ (IBC). The IBC is a powerful tool for defining boundary conditions on conductive or magnetic surfaces without the need to model their internal structure in detail. This approach is particularly beneficial in high-frequency applications, such as RF systems or eddy current simulations.
image
The image on the top left illustrates an AC electric conductor, surrounded by overlay arrows that represent the rotating magnetic field it generates. Nearby, a 3D conductor block demonstrates the eddy currents induced by this field. On the right side, the same setup is shown, but with a key difference: the conductor block is modeled as a thin shell using the Impedance Boundary Condition. Remarkably, the eddy currents on this modeled skin closely resemble those within the full 3D conductor. This highlights the effectiveness and purpose of the Impedance Boundary Condition. The below picture shows the same but with field lines.
image

The Demo Model

  1. The model files can be opened in NX/Simcenter version 2306 or later.

  2. Download and extract the model for this tutorial from the following link:
    https://www.magnetics.de/downloads/Tutorials/4.MagDyn/4.9ImpedanceBC.zip

  3. In Simcenter, open from ’complete’ folder the file ’ImpedanceBoundaryCondition_sim1.sim’.

  4. There is a reference solution using the 3D conductor block and a second solution called ’IBC’ which uses a ’Deactivation Set’ to exclude the 3D conductor.

  5. the ’IBC’ instead uses a constraint ’Finite Conductivity Boundary’ (IBC). In the feature menu (shown below), you can specify the electrical conductivity and permeability for the geometry that was replaced.
    image

The tutorial is finished.

Shielding in Time Dependent Magnetic Field (TEAM 1a)

In this example an aluminum tube (depicted blue in the figure) will be considered that is loaded by a time dependent magnetic field in vertical direction. We will compute the time dependent induced current (eddy current) within the tube. Such eddy current losses can then be used to calculate temperatures on the tube (not shown in this tutorial). Reference results are available from the TEAM benchmark. Additionally, the reader may also read the attached document for the TEAM 1a task to find further information.

According to the TEAM 1a description, the applied magnetic field strength in the y direction decays exponentially with time as \[B_{y} = B_{0} \space e^{\frac{-t}{\tau}}\] where \(B_{0} = 0.1 T\) and \(\tau = 0.0397\).

For this example we will apply the demanded magnetic field in two different ways: first, we will apply said field via a difference of a magnetic potential on the two opposing boundaries; and second, we will apply an electric current on the coil face. In both cases the result shall be very similar. In order to start from a steady state solution we will first analyse for statics and then restart from this solution.

image

Estimated time for this example: 0.5 h
Exercises are:

  1. Analysis of Eddy Currents, conductive and hysteresis Losses,

  2. Symmetry constraints,

  3. Applying given potentials as math function,

  4. Using a steady state solution as initial condition.

Solution with Potential Condition

  1. download the model files for this tutorial from the following link:
    https://www.magnetics.de/downloads/Tutorials/4.MagDyn/4.1Team1a.zip

  2. unzip the archive. There will be one folder ’start’ and one ’complete’.

  3. Start the Program Simcenter 3D or NX. Use Version 12 or preferably newer.

  4. In Simcenter, click Open image and navigate to folder ’start’. Select the file ’Team1a.prt’ and click OK. (Maybe you must set the file filter to ’prt’)

  5. Start application Pre/Post and create a ’New Fem and Sim’ File.

  6. Set off the creation of an Idealized Part.

  7. Choose the Solver ’MAGNETICS’, ’2D or axisym Electromagnetics’.

  8. Create a Solution of type ’Magnetostatic’.
    Hint: This will be the steady state solution that we will later use to restart from.

  9. Create a second solution of type ’Magnetodynamic Transient’. Name it ’MagDynTran’. Hint: This will be the main solution
    image

  10. Optionally step: This problem can also be solved in frequency domain. The excitation has a frequency of about 4 Hz. So, if desired, create another 2D solution of type ’Magnetodynamic Frequency’. Name the solution ’MagDynFreq’ and set the forcing frequency to 4 Hz. Constraints and loads can be made very similar to the transient one for this solution.
    image image

  11. Switch to the Fem file.

  12. Create a tri mesh on the faces of the aluminum tube. Use the suggested mesh size value divided by 2. The system automatically creates a ’PlanePhysical’ which you can modify now.

  13. Assign material ’Aluminum_Sample1’ from the library ’Magnetics_Materials.xml’. Name the Physical and mesh collector ’Alu’.
    imageimage

  14. Create a tri mesh on the other faces (see picture, use suggested element size /2) for the air. Assign a physical of type ’FluidPhysical’ and ’Air’ as material.
    Hint: Do NOT mesh the coil face. This will be used later. For this part of the tutorial the coil face stays unmeshed.
    image image

  15. For easier post processing, click on the button ’Rename Meshes ...’ image from the Magnetics toolbar. That utility renames all meshes and therefore is a useful feature especially with larger models and many meshes.

  16. Switch to the Sim file.

  17. Create a first constraint of type ’Flux tangent (zero a-Pot)’ for the symmetry at plane x=0.
    imageimage

  18. At plane Y=0 (and at the top edge) we need normal flux lines. So create a constraint of type ’Flux normal (free a-Pot)’ on these 6 edges.
    Background: These two conditions define the symmetric situation. Notice that the normal condition could also be left, because normal flux lines is the default behaviour of this magnetic vectorpotential formulation at boundaries.
    imageimage

  19. Define a time dependent flux density in the air.

  20. Create a zero voltage load with type ’On Physical’ on the alu tube. This is necessary to fix the z direction degree of freedom for the electric current in this conductor. Such a condition must always exist on electric conductors in dynamic simulations. In case the optional frequency solution is there, this voltage load must be created for this solution additionally.
    imageimage

  21. Put all constraints and the load into all solutions. The solutions, two or three - depending on the optional frequency solution - in the navigator should look like in the picture.
    image image image

  22. First solve the ’SteadyState’ solution. Then solve solution ’MagDynTran’ that restarts from the previous one.

  23. Check the SteadyState result:

  24. Check that at the beginning of the time period flux density is exactly 0.1 Tesla in the whole area. The directions are all vertically.
    image image

  25. Then check the transient result:

  26. Check how magnetic flux density varies with time. The following pictures show magnetic flux density at the beginning, in the middle and at the end of the time period.
    image
    image

  27. Check the induced current density in the aluminum-tube at increments 1, 2, 5 and 25.
    image
    image

  28. In the following picture, we see two different graphs which plot the current in the Alu over time. The graphs in the left picture result from several benchmark teams using different numerical codes, whereas the right one shows the simulated solution in our code NX-Magnetics. Since the left approaches are all centered around our simulation, we can say that our simulation has a derivation of about 10%.
    imageimage

Solution with Electric Current Load

As an alternative to the first part of the example we want to realize the flux density condition now by giving a time dependent current on the right face. The resulting magnetic field leads to the same flux density.

  1. Open the previously created Sim file.

  2. Clone all solutions (2 or 3, in case the frequency solution is also there). Rename the new ones with extension ’_coil’.
    image

  3. in the transient one, change the ’Initial Condition - Restart Solution Name’ to the new one: ’SteadyState_coil’.

  4. Change to the Fem part and mesh the face right in the picture. Assign material copper and stranded properties with 1 turn. Using this stranded method you will get a homogeneous distribution of the current over the face.
    imageimage

  5. Change to the Sim file and

  6. In all new solutions (_coil), remove the previously used potential constraint.

  7. Create a load of type ’Current 2D’, with type ’On Physical’.

  8. Solve the two (or three) solutions in the same order as before.

  9. Post-processing.
    All results should be very near to those we have analysed in part one of this exercise. (Blank the copper mesh in the post view to compare the results to the first exercise.)

  10. The tutorial is complete. Save your parts and close them.

1D, 2D, 3D Connector

In this example there is a network defined connecting different electrodes of several conductors. The conductors are of 3D, 2D and 1D type. The example shows how to set up these features. A harmonic current load is applied on the left and right points of the network (see picture). So the electric current flows through all conductors.
Download the model files for this tutorial from the following link:
https://www.magnetics.de/downloads/Tutorials/4.MagDyn/4.5Network.zip
image
image

Isolating Layer

In this example there is a core in a coil running in a magnetodynamic simulation. The core has two isolating layers which avoid eddy currents to cross those layers. The example shows how to set up these features.

Download the model files for this tutorial from the following link:
https://www.magnetics.de/downloads/Tutorials/4.MagDyn/4.6Laminate.zip

The following figure shows the meshed core and the coil. Two orange sheets (highlighted) are the isolating layers. These are meshed in 2D and assigned to a physical of type IsolatingLayer.
image

Next figure demonstrates the eddy currents in the core and how they are hindered from crossing the isolating layers.
image