Deforming Conductor, Simulation Tutorial

In this example we want to analyse for the elastic deformations that result from magnetic forces. A conductor is positioned in a magnetic field resulting from two permanent magnets. In the first step, for checking purposes we use a static magnetic solution and compare the resulting Lorentz forces against theory.

Then, in a time domain magnetic analysis, we assign a half sinus current running through the conductor and solve for the resulting Lorentz forces. Such Lorentz forces on the conductor are computed for every time step and can be post processed as graph or plot.

It follows a transient dynamic elasticity analysis to find the conductor deformations, stresses and reaction forces. First we use the internal elasticity solver that is delivered with MAGNETICS. Because this solver is internally the process is very easy and fast.

Alternatively to the internal elasticity solver, we finally solve the elasticity part by Simcenter Nastran. We apply fixed boundary conditions and import a file that contains the Lorentz forces. As result we get deformations and stresses.

imageimage

Estimated time: 1.5 h.

Follow the steps:

Lorentz Forces on Electric Conductor

  1. download and unzip the model files for this tutorial from the following link:
    https://www.magnetics.de/downloads/Tutorials/8.CouplStructural/8.1DeformingConductor.zip

  2. Start Simcenter, click ’Open’ and navigate to folder ’start’. Select the file ’DeformingConductor.prt’ and click Ok.

  3. Start application Pre/Post, create a ’New Fem and Simulation’, switch off the ’Create Idealized Part’, set the ’Strategy’ to ’Non-Manifold’, use ’Solver’ ’MAGNETICS’ and for ’Analysis Type’ use ’3D Electromagnetics’. Click Ok.
    imageimage

  4. For checking purposes, create a first Solution of Type ’Magnetostatics’ and name it ’MagSta1’.

  5. Create a second Solution of Type ’Magnetodynamic Transient’. Name it ’MagDyn1’.

  6. Switch to the Fem file

  7. Optionally: Because we have used the strategy ’Non Manifold’, check the group ’non-manifold face’ by selecting it. All faces that belong to both air and the conductor and magnets should highlight.
    image

  8. Work on the conductor

  9. Work on the magnets

  10. Optionally: Boundary layer for a perfect transition between hexa and tetra elements

  11. Work on the air

  12. Switch to the Sim file.

  13. Create loads and constraints:

  14. Solve both solutions

  15. Postprocess the static force results.

  16. The analytical solution for the lorentz force on the conductor can be found as follows:
    \(\overrightarrow{F_{\mathrm{L}}}=q(\vec{v} \times \vec{B})=I(\vec{\ell} \times \vec{B})\)
    with
    \(I = 100 A, B = 0.03 T, \ell = 0.1 m\)
    the lorentz force results to
    \(F_{L} = 0.3 N\)
    Thus, the result from our simulation is close to this value.

  17. Post process the dynamic solution as you like.

  18. Save your parts. Don’t close them.

Internal Elasticity Solver Usage

The internal elasticity solver can handle 3D and 1D elements. Tetra and hexa elements are by default solved by second order nodal shape functions. Instead of mid nodes the elasticity solver uses so called hierarchical shape-functions that work on the element edges and faces. With these, result quality is high and very similar to Simcenter Nastran’s second order hexa and tetra elements. Also pyramids and wedges are possible. Also, there are 1D rod and beam elements available. The solver can be used for static and transient dynamic solutions. Non-linear contacts are possible and glue conditions. Large displacement is possible as well as a strong coupling feature to electromagnetics. Currently, there is no material plasticity capability and no shell elements support. Following we set up the deforming conductor model to use this internal elasticity solver.

  1. Set the Fem file to the displayed part.

  2. Edit the conductor physical. In box ’Elasticity Solution’, verify that ’Active’ is selected. Thus, the conductor will be solved for elasticity.

  3. Also verify that the used material has correct values for ’Mass Density’, ’Young’s Modulus’ and ’Poisson Ratio’: Click ’Manage Materials’, clone the library material, rename the new one to ’Copper EM/Mec’. In ’View’, select ’All Proporties’ and insert the ’Mechanical’ values (see picture) and use the new material for the conductor.
    image image

  4. Check all other bodies for their setting in box ’Elasticity Solution’. The button ’Active’ should be deactivated.
    image image

  5. Make the Sim file to the displayed part.

  6. Edit the static solution, in register ’Coupled Elasticity’, set the ’Elasticity Solution’ to ’Steady State’. Activate the settings as in the below picture left.

  7. Edit the transient solution, in register ’Coupled Elasticity’, set the ’Elasticity Solution’ to ’Transient’. Activate the settings as in the below picture right.
    image image

  8. Create a constraint of type ’EM Elasticity Constraint’, set the type to ’On Edges’ and select the two edges of the conductor as shown below. These edges will allow the conductor to deform easily because rotation is allowed. Set all degrees of freedom to ’Fixed’, OK.
    image image

  9. Create a second ’EM Elasticity Constraint’ on on edge of the other side of the conductor. Fix only the x and y directions here.
    image image

  10. Assign these two constraints to both solutions. Later we will also assign these constraints to the Nastran solution.

  11. Solve both solutions

  12. Post processing: The deformation (left) and von Mises stress (right) result of the static solution are shown in the below picture.
    image

  13. The maximum displacement x over time (red) and the force x (blue) of the transient solution are shown in the below picture.
    image

Transfer Magnetic Nodal Forces to Nastran Solver

We will now extend the model for an additional Nastran transient structural (elasticity) solution. The results will match with those from the previous section. The key here is a file containing the node-ID forces that will be exported from electromagnetics and inserted into Nastran. Notice that for this method it is necessary to use the same node-IDs in both solutions. It is possible to add meshes. It is also possible to add mid nodes to the existing mesh for better stress results (we will do this here). Only it is not allowed to remove nodes from the conductor. In this case we will use a Nastran solution 402 to include transient dynamical effects. Other Nastran solution types would also work corresponding to their capabilities.
Advantages of using Nastran are it’s many additional capabilities (e.g. nonlinear materials, shell elements, ...). On the other side, the internal Magnetics elasticity solver also has advantages: the strong coupling, large displacements and fast solutions.

  1. Work in the Fem file:

  2. Switch to the Sim file.

  3. Generate the force exchange file:

  4. Create a usual Nastran solution:

  5. Add the force exchange file to the Nastran solution:

  6. Prepare the Nastran solution

  7. Post-processing.

  8. Save your parts and close them.

Transfer Magnetic Total Forces to Nastran Solution, Manually

The following method transfers transient magnetic total forces (computed on a physical body) to Nastran solutions. Special is the force transfer between different models: Meshes can be different and even 2D and 3D types can be mixed. To test this, do the following:

  1. download and unzip the model files from the following link:
    https://www.magnetics.de/downloads/Tutorials/8.CouplStructural/8.1DeformingConductor.zip

  2. from the ’complete’ folder, open the ’DeformingConductor_sim1.sim’

  3. Optionally, verify in solution ’MagDyn1’, ’Output Requests’, ’Table’ that total force results are active (either ’Total Lorentz Force’ or ’Total Force - entire (virtual)’)

  4. Optionally, in register ’Coupled Elasticity’, switch off the elasticity solution.
    imageimage

  5. Solve solution ’MagDyn1’

  6. Open the results in Post-Processing-Navigator

  7. RMB on graph ’ForceX’ (or the corresponding name), click ’Create Table Field’ (see picture below). Repeat this for the other directions.

  8. Check in Simulation-Navigator, Fields: A new field is created containing time steps with force values.
    imageimage

  9. In any Simcenter Nastran solution (this can also be a different Sim file or model if the fields are transferred to that), create a load of type ’Force’ (picture below),

  10. select the whole polygon body or all his faces to apply the new force on.

  11. at ’Force’, click the ’equal’ symbol (right in the menu) and choose ’Select Existing Field’. Then, select the newly created field.Ok

  12. at ’Direction’, specify the corresponding direction.

  13. repeat the load creation for the directions Y and Z.

  14. these loads can now be used in any of the Nastran transient (or static) solutions, for instance Sol 401/402.
    imageimage

Transfer Magnetic Total Forces to Nastran, Automatically

The above method has been coded and extended to comfortably work on large assemblies and transient solutions. The electromagnetic model may have 3D meshes while the Nastran model may have 3D or 2D meshes. As a requirement for this transfer, all names of corresponding polygon bodies in the two models must match. This feature is available in versions NX 2306 and later. To test this, do the following:

  1. download and unzip the model files from the following link:
    https://www.magnetics.de/downloads/Tutorials/8.CouplStructural/8.1DeformingConductor.zip

  2. from the ’complete’ folder, open the ’DeformingConductor_sim1.sim’

  3. Optionally, verify in solution ’MagDyn1’, ’Output Requests’, ’Table’ that total force results are active (either ’Total Lorentz Force’ or ’Total Force - entire (virtual)’)

  4. Optionally, in register ’Coupled Elasticity’, switch off the elasticity solution.

  5. Solve solution ’MagDyn1’.

  6. Click ’File’, ’Execute’, ’NX Open...’

  7. Browse to the Magnetics installation folder and there into the folder ’application’. Select the file ’EMForces2Nastran.dll’. Click Ok.
    image

  8. the program now asks for an ’.afu’ file containing the forces. Select the one from the electromagnetic solution (DeformingConductor_sim1-MagDyn1__PostGraphs.afu). This file is in your working folder. Click Ok.

  9. Hints: the program now cycles through all graphs in that file. It checks graph names: If either ’Force’ or ’LorentzForce’ is found, it extracts the force direction and the physical body name from it. For each force, the program creates

  10. All newly created forces are stored in a dummy solution called ’tmp1’. From there, ’drag and drop’ them into the correct solution.
    image

  11. Save your parts and close them.

The tutorial is finished.