Thursday, 6 November 2014

Generating tapped holes on non-planar (cylindrical) faces.

As a SOLIDWORKS Elite Applications Engineer, I like to keep my eye on the SOLIDWORKS Forum so that I can pass on advice when questions are asked. Occasionally, I’ll find a question that has been asked that is best answered with a step by step guide rather than a one line answer.
One such case is a question that was posed recently by a SOLIDWORKS forum member who asked “how to make a threaded hole using holewizard on non-planar surface (cylindrical surface)?”
There are a few replies on similar questions on the SOLIDWORKS Forum which indicates that this user is not the only user with this question. Below is the process that I have used many times for adding hole wizard holes onto cylindrical faces that hopefully you may find useful.
This example is based on a cylindrical tube that I would like to add a tapped hole to.
I find that the easiest starting point is to generate a reference plane for positioning the hole, as often the standard planes are not suitable for positioning.
Step 1: To generate the positioning plane (Insert > Reference Geometry > Plane), select the cylindrical face so that the plane is tangential to the face. Then select another piece of geometry (in this case the Top Plane) so that you can choose the angle of the new reference plane.

 Step 2: Once the plane is in place, select start the Hole Wizard tool (Insert > Features> Hole > Wizard), and select the type of hole that you would like. Then click on the Positions tab. At this stage, you can now select the new reference plane to generate a 2D sketch. But for this example, I have chosen the 3D Sketch button to demonstrate how to use this option. When using this option, SOLIDWORKS allows you to sketch directly onto the cylindrical face and will dynamically preview the hole location before you click to place the hole.

Step 3: Whilst adding locations for the Hole Wizard, SOLIDWORKS used standard sketch tools. Once you have clicked to place a hole, you can then switch between the sketch tools in the Command Manager Sketch tab. To allow me to add the required relations and dimensions to the 3D sketch that will locate the hole, I first added a construction line that was Coincident with the centre of the hole, and also with the circular end edge of the cylindrical face.
To define the geometry, I then added in an On Plane relation between the between both ends of the line and the plane that was created in step 1. Finally, I added a dimension to the line to specify the distance of the hole centre from the end of the cylinder.

One of the main reasons that I use this method for applying Hole Wizard Holes to cylindrical faces is that it gives me the best editing capability. Due to the creation of the reference plane tangential to the cylindrical face, if the diameter of the cylindrical face changes, the plane and all associated geometry will update automatically. As well as this, the angle of the reference plane can be changed to modify the angle of the threaded hole. Also, the hole position along the cylinder is controlled by a single dimension from the end of the cylinder.

Wednesday, 1 October 2014

Design Checks for SOLIDWORKS Electrical

SOLIDWORKS Electrical Design Check #1 - Duct Filling Ratio (%)

SOLIDWORKS Electrical Schematic is a powerful 2D software to produce electrical wiring and cabinet designs. However, with just 2D there are limits on how you can visualise and verify your design. This is where 3D modelling comes in to play. With the additional Electrical 3D, you’ll be able to see a detailed finished product before it reaches the manufacturing stage. Also, within the 3D environment, there are tools which can help to aid in your design. For example, when it comes to choosing what size of ducts to use in your design, it usually involves manual calculations or guess work and sometimes it will be at the stage where the cabinet is built before knowing what size to use. With SOLIDWORKS Electrical 3D you can calculate the Duct Filling Ratio very easily.

After routing the wires, select Calculate Cable Duct Filling Ratio under SOLIDWORKS Electrical pull-down menu. Then click on the Calculation of cable duct filling ratio in the Command complete dialog.
To display the duct filling ratio, right-click the on the duct component and select Properties. Within the Part Properties dialog you’ll be able to see the duct filling ratio in the list.



SOLIDWORKS Electrical Design Check #2 – Voltage Drop Calculation for Cable/Harness
How do we calculate the voltage drop?
A simple answer to this question is to use Ohms Law. For most cables the resistance of the cable per meter will be defined by the manufacturer and we can multiply this by the length of the cable. Then apply ohms law Vdrop=IR to give us the voltage drop across the cable.
With SOLIDWORKS Electrical Schematic we can easily generate reports to display voltage drop and power loss across a length of cable or cables in a harness.

The information needed for the voltage drop and power lost calculation:
·         Voltage drop (V/A/km)
·         Length of cable (m)
·         Full Load current (A)
·         Applied voltage (V)
·         Inrush factor
This information will be added to the cable properties.
Important note: For SOLIDWORKS Electrical to generate a report the “Do calculation” box must be checked.
To generate the report go to Design rule check under Project tab. Within the Design rules manager you can add the voltage drop template that you wish to use, it would be a choice for cables or cables in harness. Once the appropriate template has been selected you will be to see the populated columns. To produce a report, select Generate Drawings and within your project documents you’ll be able to see a new report drawing is added.  

Thursday, 4 September 2014

Resetting the SOLIDWORKS registry

Over time within SOLIDWORKS it is possible to make a wide array of customisations to your user settings and also your user interface. It can be hard to keep track of these changes if you are editing them on a daily basis like I do. Also, we all know that system updates have been known to damage registry files that SOLIDWORKS needs to be able to function correctly.
So if you would like to fully reset all of your SOLIDWORKS preferences, or if you have noticed strange behaviour or missing icons since a recent Windows update. One option to resolve your issues it to reset the registry entry for SOLIDWORKS.
Firstly, be very careful when making modifications to the registry as this may cause serious instability on your system. As such, you will need full administrative permissions on your computer to be able to edit them.
The following guide illustrates how to create a fresh copy of the SOLIDWORKS registry for the current user of the machine in a Windows environment. This registry includes the system options and customisations that a particular user has set up. Examples of the types of elements that this controls are file locations, custom toolbars and system options. By creating a fresh copy of this registry, you will revert SOLIDWORKS for the current user back to default settings as if SOLIDWORKS is a new installation.
This process will not work correctly if SOLIDWORKS is currently running, so the first step is to save all relevant work and exit SOLIDWORKS.

The registry is controlled by your operating system and in Windows the process for   accessing the registry is as follows;

Click on the Start button in the bottom left of the desktop and in the search dialogue type ‘regedit’
This should find the regedit.exe program and if you click it from the list, the program will open.

In the Registry Editor window that is opened, expand the folder for HKEY_CURRENT_USER to find the subfolder for Software.

Within the Software folder, scroll down to find the folder called ‘SolidWorks’ and expand it. This folder contains multiple folders that control different aspects of SOLIDWORKS on your machine. There are separate folders listed here for each different version of SOLIDWORKS that is installed on the machine. In the imager to the right, you may see that I have multiple versions (2012,2013, and 2014).

It is always advisable not to make permanent changes to the registry without first checking that they will not damage your system. As such, at this point you can right-click the folder that represents the version of SOLIDWORKS that you want to reset (in this case 2012), and select to Rename the folder.

Rename the folder to something recognisable as shown in the image to the right by adding a suffix to the name. This ensures that the folder will not move when the folders are next sorted alphabetically.

Now that the Registry folder for that version of SOLIDWORKS has been renamed, when the software is next started and attempts to read the registry it will be unable to locate it. This forces SOLIDWORKS to create a new registry folder with a fresh set of the default registry keys in it, essentially resetting the software options to what they were when SOLIDWORKS was first installed. When launching SOLIDWORKS for the first time after renaming this registry folder, you will be asked to agree to the end user license agreement and treated like a new user.

If you would like to check the Registry Editor again at this point, either by opening a new session (as per step 1), or by selecting View – Refresh (f5) in the menus of the Registry Editor, you will see that a new folder has been created with the same name as the original folder that you renamed.

This is an important point to make because having the new copy and the original renamed folder allows you to revert back to the previous settings should the generation of a new registry folder fail to solve any issues, or if you would like to revert back to your previous settings. The process for reverting back is very simple. Ensure SOLIDWORKS is closed, delete the ‘new’ registry folder created in the above steps, and then rename the original folder back to its original name.

Wednesday, 6 August 2014

How effective is your insulation?

As an applications engineer, I’m often asked by customers to give advice on how to test designs using SOLIDWORKS. One of the most recent examples that demonstrates how quick and easy SOLIDWORKS makes this process related to testing how effective a layer of insulating material for an oven was.

The customer designs and manufactures insulation components to be used in industrial ovens and wanted to assess how effective those components were ate shielding the outer surfaces of the oven from the temperatures achieved within.

SOLIDWORKS Simulation Professional gives you the ability to run a Thermal analysis which can be carried out under a large range of conditions and on complex model geometry. But without the lengthy operation of setting up and running an analysis on a complex fully accurate model, here’s a tip on running that all important first test to see if the components and the material properties meet some basic criteria.
Firstly, simplify the study by only including what you have to for the moment.

I have done this by only including what I am interested in with regards to heat transferring from the inside of the oven to the outside face. This leaves me with as sandwich of materials representing the internal wall of the oven, the layer of insulating material and then the outside skin of the oven.

By reducing the information that you are including in any simulation study, you will in turn reduce the complexity of the study and therefore the time taken to mesh and run the study. Also, with less geometry to consider, the mesh used to describe your study can be made from smaller elements.

The next step after generating a suitable model for your study is to create the study (or mathematical model) itself.

If you haven’t already, make sure that your SOLIDWORKS Simulation add-in is turned on by going to Tools – Add-ins.

SOLIDWORKS Simulation is fully integrated into the user interface enabling you to dynamically move between modelling and simulation without skipping a beat.

On the Simulation tab on the command manager simply choose to create a new study and select the type of study that you would like to perform. Depending on the level of Simulation package that you have, only the study types available to you will be shown at this point. For this example, I would like to perform a Thermal study.

 A study tree is generated in the feature tree / property manager area of the user interface and this allows you to keep track of and modify your study. To speed things up even further, most functionality for controlling and running your study can now be accessed by right-clicking the relevant item in the study tree.

 All of my materials have been transferred over from my SOLIDWORKS model including the customer material properties that I have added for my insulation material. Also because my basic layers of material are all coincident, they will automatically have a bonded connection defined in the study.

For this particular study, I would like to test the oven when it is running at a temperature of 210 degrees Celsius over the period of an hour and it will probably take a few minutes to heat up. SOLIDWORKS Simulation Professional gives you the option to change the properties of the study to make it transient and to specify both the overall time and the increments to be tested by right clicking the study and choosing properties.

I've chosen to run the study for 3600 seconds at 60 second increments.
Now what I need to do is apply the variables to my study. By right-clicking the Thermal Loads section of the study tree, I get the options to add Temperature, Convection, Heat Flux & Power, or Radiation values.

To start, I would like to define what temperature the components are at the moment. To do this, I’ll create a temperature load as an initial value for all solid bodies of 25 degrees Celsius.

 I’ll then represent the heat on the inside of the oven by adding a Temperature load to the face that represents the inside of the oven and setting it at 210 degrees Celsius. But as I said, it will take time for the oven to achieve this, so I’ll click the edit button in the Variation with Time section of the properties.

Here I can set the time that the temperature source takes to reach particular values. I’ll set this to reach full temperature at 300 seconds (5 minutes).

One last thing before I run the study, I’ll specify that the outer face of the oven is subject to convection into the surrounding atmosphere. This is applied as a Thermal Load onto the outside face.

I’ll select the correct face and then add my Convection Coefficient and Bulk Ambient Temperature. A Coefficient of 5-25 W/m^2.K will represent natural convection into the surrounding atmosphere (i.e. no assistance). So a value of 20 should represent a well-ventilated area. You can also switch unit settings if it is easier for you, but 298.15 Kelvin works out at 25 degrees Celsius.
At this point you can specify any mesh size that you would like. But for this study I will simply use the default mesh size that SOLIDWORKS Simulation generates based upon the physical geometry. To save myself a couple of clicks, I can use the default mesh and run the study at the same time by right clicking the top of the study tree and selecting Run.

Due to the simplified model geometry and using lightning fast solvers, this study takes no time at all to solve.

I can analyse these results using a range of tools including Probe which is accessed through right-clicking the result plot. This enables me to analyse the results on just the face representing the outside of the oven and I can see that the temperature is reasonably low compared to the inside of the oven and I can check this information against my design requirements.