CAD Basics

3D Solenoid (Beginner)

Goal of this tutorial is to learn some basics of CAD modeling in NX or Simcenter starting from scratch. This tutorial shows very typical CAD techniques: sketching, extruding and subtracting. If the user is familiar with these he will be able to model much more complex geometry in a very similar way too.
For those who directly want to see the result: The completed CAD file for the Solenoid example can be found in this folder:
’Your Installation’/MAGNETICS/docu/Tutorials/0.CADbasics/0.1Team20/complete If desired, the CAD file resulting from this tutorial can be used for starting the simulation tutorial 3D Simulation: ’Static Force on Solenoid’

image

Estimated time: 45 min. Follow the steps in Simcenter:

Preparations

  1. Start the Program Simcenter image (or NX). Use Version 10 or higher.

  2. In Simcenter click ’New’ image,

Sketch the Core

The core is a simple block positioned in the middle. We could use the ’Block’ feature for that. But we want to use a more general way: First sketching a rectangle and then extruding it to a block. Sketching means we create curves on a two dimensional plane. Following such curves are extruded or revolved and thus 3D geometry results from the sketch curves. Such features ’Sketch’ and ’Extrude’ are very comfortably and powerful. Many geometry types can be created by this way. Following we start CAD features by using the ’Menu’ command (see picture below). By doing so such features are found always at the same location. Of course most feature buttons can also be found somewhere in the toolbar where is may be faster to click. But we prefer the ’Menu’ command for this tutorial because the toolbar locations may change from user to user.

  1. Click on ’Menu’ \(\rightarrow\) Insert \(\rightarrow\) ’Sketch’ image

  2. A window ’Create Sketch’ appears asking for a plane to sketch on. Select the Y-Z (in absolute coordinates) plane as shown in the picture below right and click OK. The sketch environment is started.
    imageimage

  3. Click on ’Rectangle’ image or simply key in ’r’ to use the shortcut. A window ’Rectangle’ appears asking for the definition of the rectangle.

Extrude the Core

  1. Click on ’Menu’ \(\rightarrow\) Insert \(\rightarrow\) Design Feature \(\rightarrow\) ’Extrude’ image or simply key in ’X’ to use the shortcut. The ’Extrude’ dialog appears.

  2. Set the selection type to ’Infer’ and select the sketch.
    imageimageimage

  3. Key in the two Distance values (-5 and 5 mm) and click on OK. The block is created.

Zoom, Rotate and Pan

Of course it is necessary to know how to use zoom, rotate and other display options. Following is a list of useful options. Feel free testing them now:

Sketch the Iron

Again sketching is a convenient way for modeling the iron.

  1. Start the sketcher by clicking on ’Menu’ \(\rightarrow\) Insert \(\rightarrow\) ’Sketch’ image

  2. The window ’Create Sketch’ appears asking for the plane to sketch on. Select the same plane as already for the core. Click OK.
    imageimage

  3. Following we are creating several line segments. Therefore the simplest way is to use the ’Profile’ method. Click on the ’Profile’ image button or simply key in ’Z’ to use the shortcut. A window asking for coordinates appears.
    image.

  4. Key in the following x,y coordinates into the little entry field. To begin a new x,y entry click image. Press ’Tab’ to switch between x and y and press ’Return’ after each coordinate pair. Use these x,y value pairs:

Extrude the Iron

The following extrude feature is a little special because we use it with an ’Offset’ option. This option allows creating a solid body from a (non closed) profile. In many cases this is a convenient way to create geometry.

  1. Click on ’Menu’ \(\rightarrow\) Insert \(\rightarrow\) Design Feature \(\rightarrow\) ’Extrude’ image. The ’Extrude’ dialog appears.

  2. Set the selection type to ’Infer’ and select the new sketch.

  3. Key in the two Distance values (-12.5 and 12.5 mm) and check the direction of the specified blue vector (your iron geometry should look like the one in the picture below).

  4. Click on the box ’Offset’ to make such options visible.

  5. Set the ’Offset’ to ’Two Sided’ and key in 0 and -25 mm in the field. (Attention: Sometimes you may need the opposite: 25 instead of -25. Please check your iron geometry against the one in the below picture)

  6. Click on OK. The iron geometry is created.
    imageimage

Sketch the Coil

For the coil we also use the sketch/extrude method and we also exploit the ’Offset’ option. It can be seen that these features are really useful for many types of geometry.

  1. Start the sketcher by clicking on ’Menu’ \(\rightarrow\) Insert \(\rightarrow\) ’Sketch’ image

  2. The window ’Create Sketch’ appears. Now for the coil, select the plane (X-Y) that is perpendicular to the core and iron plane.
    imageimage

  3. Following we are sketching a rectangle first and then use the fillet function to create circles at the four corners.

  4. Click on ’Rectangle’ image or simply key in ’R’ to use the shortcut. The window ’Rectangle’ appears asking for the definition of the rectangle.

  5. Key in the first coordinate (37.5 37.5 mm) into the little entry field and press ’Return’.

  6. Key in the second coordinate (-37.5 -37.5 mm) into the entry field and press ’Return’. The rectangle is created. See picture below left. Press ’Escape’ to cancel the dialog.

  7. Click on ’Fillet’ image or simply key in ’F’ to use the shortcut. A window ’Fillet’ appears asking for line pairs.

  8. Select the two lines of a corner and key in the radius 23 mm. Press ’Enter’ and the fillet is created.
    image imageimageimage

  9. Repeat the fillet creation for all four corners of the rectangle. The result is shown in the below picture right.
    imageimage

  10. Finish the sketch image

Extrude the Coil

For extruding the coil we again use the ’Offset’ option.

  1. Click on ’Menu’\(\rightarrow\)Insert\(\rightarrow\)Design Feature\(\rightarrow\)’Extrude’ image. The ’Extrude’ dialog appears.
    imageimage

  2. Set the selection type to ’Infer’ and select the coil sketch.

  3. Key in the two Distance values (-48.3 and 48.3 mm).

  4. Click on the box ’Offset’ to make such options visible.

  5. Set the ’Offset’ to ’Two Sided’ and key in 0 and -18 mm in the field. (Hint: In some cases you will need 18 instead of -18.)

  6. Click on OK. The coil geometry is created.

  7. Later in the simulation we will define winding directions for this coil. There it is necessary having one joined curve instead of several pieces. Therefore proceed as follows: Click on Menu\(\rightarrow\)Insert\(\rightarrow\)Associative Copy\(\rightarrow\)’Extract Geometry’. The ’Extract Geometry’ dialog appears. Check the type is set to ’Composite Curve’. Select the 8 sketch curves and click OK. The new curve is created.

Create a Spherical Air Volume

In Electromagnetics and also in Flow simulations it is necessary to model the air or fluid volume. In many cases this can be a simple sphere or a box. The detailed air volume for later meshing results from a subtraction of all solenoid volumes from that air volume. For easier meshing we will finally subdivide the face of the sphere. We model such a sphere in the following.

  1. Click on ’Menu’ \(\rightarrow\) Insert \(\rightarrow\) Design Feature \(\rightarrow\) ’Sphere’ image. The ’Sphere’ dialog appears.

  2. Click on the ’Point Dialog’ and key in the center point coordinate (0 0 0).

  3. Key in 220 mm at ’Diameter’ and click OK. The sphere is created.
    imageimage

  4. Click on ’Menu’ \(\rightarrow\) Insert \(\rightarrow\) Combine \(\rightarrow\) ’Subtract’ image. The ’Subtract’ dialog appears.

  5. Click on ’Target - Select Body’ and select the sphere volume.

  6. Click on ’Tool - Select Body’ and drag a window over everything. The three solenoid bodies are selected.

  7. Activate the button ’Keep Tool’ and click OK. The operation is performed.
    imageimage

  8. Click on ’Menu’ \(\rightarrow\) Insert \(\rightarrow\) Trim \(\rightarrow\) ’Divide Face’ image. The ’Divide Face’ dialog appears.

  9. Click on ’Faces to Divide - Select Face’, set the selection filter to ’Single Face’ and select the spherical face.

  10. Click on ’Dividing Objects - Select Object’ and select the three planes of the datum coordinate system.

  11. Click OK and the face subdivisions are performed.
    imageimage

Assign Names to the Bodies

Later in the simulation working with speaking names is quite helpful. Therefore we want to assign names to the bodies. Such bodies will result in so called ’Polygon Bodies’ later and these will be used for creating finite element meshes.

  1. In the ’Part Navigator’ right click on the grey border (see picture below) and deactivate ’Time Stamp Order’. Now bodies are shown in the navigator instead of the creation order of CAD features.

  2. Use RMB on each of them, chose ’Rename’ and assign speaking names.
    image image

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