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. For checking purposes we first create a static solution and compare the Lorentz forces against theory.

In a time domain 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 the solver is internally this process is very easy. Alternatively to the internal elasticity solver we also want to solve 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:

Analysis of Magnetic Forces

  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’, use Solver MAGNETICS and Analysis Type ’3D Electromagnetics’. Switch off the ’Create Idealized Part’.
    Hint: We don’t use the ’Non-Manifold’ feature because of the simple geometry and because it is possible also in the older NX versions.

  4. Switch to the Fem file

  5. Switch to the Sim file.

  6. Solve both solutions

  7. Notice that after the dynamic solution has completed, there is a new text file ’DeformingConductor1_sim1-MagDyn1.NodeIdForceVirt.txt’ in the working folder. This file contains the force that will later be transferred to NX Nastran elasticity analysis. Notice also there is a batch file in the same folder, named ’DeformingConductor_sim1-MagDyn1.CreateNastranInc.bat’. This batch must be executed to convert the text file into the format that can be included into Nastran.

  8. In the working folder, double click that batch file (’*.CreateNastranInc.bat’). There will be a file ’.inc’ created. This inc file contains in Nastran syntax FORCE entries assigned to nodes and to time steps. The DLOAD ID is set to 3000. We will later include this file in the Nastran input file.
    image image

  9. Postprocess the static force results.

  10. 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\)
    Though, the result from our simulation is close to this value.

  11. Post process the dynamic solution as you like.

  12. 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 the element edges and faces, so result quality is high and similar to NX Nastran second order hexa and tetra elements. Also pyramids and wedges are possible, but in first order only, so be aware that these elements are not very accurate. Also there are 1D rod elements available. The solver can be used for static and transient dynamic solutions. There is no nonlinear capability available. 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 ’Active in Solution’ activate ’Elasticity’ (this is already activated by default).

  3. Also verify that the used material of the conductor has ’Mass Density’, ’Young’s Modulus’ and ’Poisson Ratio’ assigned.
    image image

  4. Check all other bodies for their setting ’Active in Solution’. This button must be deactivated. Otherwise we would have to assign materials and constraints to those bodies also and of course, the simulation would require much more time, memory and disk space.
    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.

  7. Edit the transient solution, in register ’Coupled Elasticity’ set the ’Elasticity Solution’ to ’Transient’. Activate the settings as in the below picture.
    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’ and press 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 deformation over time (blue) and the force (red) from the transient solution are shown in the picture below. Both curves are in the AFU file, because they have been requested in the tabular output requests of the dynamic solution.
    image

Transfer Magnetic Nodal Forces to Nastran Solver

We will now create a copy of the Fem and Sim files for the following Nastran elasticity analysis. Notice that in this analysis it is necessary to use the same node ID numbers as in the electromagnetic analysis. 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 or elements. In this case we will use a Nastran solution 109 to include transient dynamical effects. Other Nastran solution types would also work corresponding to their capabilities. The results will match with those from the previous section where the internal elasticity solver of Magnetics was used. The advantage of using Nastran is in many additional functions (contact, nonlinear materials, ...) that Nastran can handle.

  1. Make a copy of the Fem and Sim files. Therefore, first save the files,

  2. then set the Fem file to the displayed part,

  3. Do a ’Save As’ and assign the name ’DeformingConductor_fem2.fem’

  4. The system also asks for a new Sim file. Key in ’DeformingConductor_sim2.sim’.

  5. A ’Save As’ window appears. Press ’Yes’.

  6. In the Fem file:

  7. Switch to the Sim file.

  8. Optionally delete the two existing solutions ’MagSta1’ and ’MagDyn1’ and also the old loads. Keep the constraints because we can use them here.

  9. Create a new solution of type 109 with solver Simcenter Nastran and name it ’StrDyn1’, (other transient NX Nastran solution types are also possible) Click ’Create’ then OK. Click ’Create’ again.
    image

  10. In the following dialogue ’Solution Step’ click ’Create’ image for ’Time Step Interval’. In the ’Modeling Solution Manager’ click ’create’ again and set the ’Number of Time Steps’ to 50 and the ’Time Increment’ to 0.0001 s. Click OK. Add the newly created Time Step object to the list image. Click Close and OK.
    imageimageimage

  11. To add the magnetic forces, witch reside in the text file with extension ’inc’, proceed as follows:

  12. Because the force units in the include file are written in mN we have to check that these units are used by the Nastran solution also. Edit the Advanced Solver Options (RMB on solution) of this solution and switch to register General. Ensure that the Output File Units are set to (mN)(mm)(Kg).
    image

  13. Reuse the two constraints that were used for the electromagnetic analysis with deformation.
    image

  14. Solve the solution and postprocess the results.

  15. 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. RMB on solution ’MagDyn1’, select ’Edit Solver Parameters’ and in box ’General’, set the option ’Result Graphs (afu)’ back to the default ’Create, delete txt files’.

  4. Solve the solution and open the results and in Post-Processing-Navigator

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

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

  7. In any Simcenter Nastran solution (this can also be a different Sim file or model), create a load of type ’Force’ (picture below),

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

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

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

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

  12. 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 Sol., 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. RMB on solution ’MagDyn1’, select ’Edit Solver Parameters’ and in box ’General’, set the option ’Result Graphs (afu)’ back to the default ’Create, delete txt files’.

  4. Solve the solution

  5. Click Menu, Analysis, ’Afu-Forces to Nastran’
    imageimage

  6. the tool now asks for an afu file containing the forces. Select the one from the electromagnetic solution. Ok.

  7. Hints: the tool 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

  8. all newly created forces are stored in a dummy solution called ’tmp1’. From there they can be taken into the correct solution via ’drag and drop’.
    image

The tutorial is finished.