Deforming Conductor

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 Lorentz forces that result. The Lorentz forces on the conductor are computed for every time step and can be post processed as graph or plot.

There follows a transient dynamic elasticity analysis to find the conductors deformations, stresses and reaction forces. First we use the internal elasticity solver that is delivered with Simcenter/NX Magnetics. Because the solver is internally this process is very easy. Alternatively to the internal elasticity solver we also want to solve by Simcenter/NX 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 image 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: Because of the simple geometry, we don’t use the ’Non-Manifold’ method, so that we can take advatage of the hex elements, which enable precise results.

  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 Solver

Another possibility to transfer magnetic forces to Nastran uses the total forces that are computed on each physical body. This allows the force transfer between different models: Meshes can be different and even 2D and 3D types can be mixed. This method has been designed to work best with large assemblies and transient solutions in which the nastran model contains 2D meshes while in electromagnetic 3D are present. The process runs in the following steps:

  1. Initial situation: The electromagnetic solution is solved with one or more bodies. The tabular forces are requested, computed and written into the afu graph file. The graph names always show the force-direction and the physical body on which it is applied. Such names are typically as ’ForceX_Conductor1’.

  2. The user now creates a Sim and Fem file for the nastran solution. All meshes, properties can be different. Only the names of the polygon bodies in that new model must match with those names from the electromagnetic solution. In the simplest case that new model is a copy of the electromagnetic model or we simply stay in that.

  3. The user executes the feature ’Afu-Forces to Nastran’ (found in Menu, Analyses) and will be asked for an Afu file. He assigns the one from the electromagnetic solution.

  4. the program cycles through all graphs in that file

  5. it checks graph names: If either ’Force’ or ’LorentzForce’ is found it extracts the force direction and the physical body name from it.

  6. for each force, the program creates

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

The tutorial is finished.