CAE Archives - Engineers Rule https://www.engineersrule.com/tag/cae/ Engineering News Articles Fri, 23 Feb 2024 15:40:47 +0000 en-US hourly 1 https://wordpress.org/?v=6.4.3 Bringing Thermal Simulations into Early Development Through SOLIDWORKS https://www.engineersrule.com/bringing-thermal-simulations-early-development-solidworks/ Thu, 01 Sep 2016 07:36:09 +0000 http://www.engineersrule.com/?p=1203 Until the inevitable heat death of the universe, thermal energy will invariably transfer along temperature gradients and bleed off as electrical or mechanical work. As a result, engineers from various industries will need to perform thermal simulations early in the development cycle to ensure that their products will not overheat.

Engineers need to remember to perform thermal analysis on industrial equipment like the shredder pictured above. Otherwise, the equipment can overheat during use, damaging the equipment. (Image courtesy of Dassault Systèmes.)

Take an industrial shredder. At first glance, a thermal analysis might not seem necessary when designing the equipment, but any mechanical engineer worth their salt will know that when metal shreds, heat will be generated, resulting in thermal stresses on the equipment. If this heat isn’t accounted for in the design phases, then production processes can suffer from a lot of downtime while waiting for material cool-downs.

As for consumer products, they are becoming more complex, smarter and smaller. “This is a very common challenge in electronic devices,” said Lotfi Derbal, senior product portfolio manager at SOLIDWORKS. “Electronic devices have less and less space to provide airflow as they get smaller and smaller, so it is an ongoing issue that needs to be examined to keep the equipment in good health. Finding effective solutions to heat transfer problems has become an increasingly important part of new product development.”

By simulating the heat transfer of a product, engineers will be better informed through the development of the product. Prototypes are costly to work with and it is quite difficult to map out heat flux when dealing with prototypes. As a result, simulation is a much faster and affordable option when looking to optimize a product’s thermal flow.

“While designing your product, you can compare temperature distribution, heat flux and air circulation,” noted Derbal. “With this type of insight and knowledge, you will be able to analyze innovative new concepts more cost-effectively. It doesn’t matter if you’re designing high-tech electronic gadgets, consumer products, medical devices, HVAC systems or industrial heaters/coolers.”

Simulation in CAD Brings Thermal Analysis Early into the Development Cycle

A great way to bring thermal assessments into the early design cycle is to use simulation-in-CAD tools. This particular breed of computer-aided engineering (CAE) software integrates the simulation tools into the CAD environment.

Simulation in CAD democratizes the workflow by packaging it into a familiar user interface (UI). This will reduce the amount of training engineers will need as they will be using a tool that is already familiar to them. SOLIDWORKS offers a series of simulation-in-CAD tools that incorporate thermal analysis.

“With SOLIDWORKS Simulation and/or Flow Simulation, you can simulate structural thermal and fluid flow as well as coupling it with heat transfer, such as convection, conduction or radiation,” said Derbal. “Designers can apply heat sources, thermal properties on components, and define fan position. [Users also] get the resultant temperature distribution for both the fluid and the product itself.”

SOLIDWORKS Simulation and Flow Simulation have the capability to assess numerous heat transfer problems. And as it is incorporated into the CAD environment, an engineering team can save time—and often money—using the simulation-in-CAD option.

How Thermal Simulations Differ from Structural Simulations

Engineers familiar with simulation in CAD have likely spent much of their time with the structural finite element analysis (FEA) capabilities. Though much of the workflow will transfer over, thermal assessments are not as easy as modeling a structural simulation.

Natural and forced convection problems, like the ones pictured above, have heat transfer coefficients that are hard to pinpoint without computational fluid dynamic studies. (Image courtesy of Dassault Systèmes.)

Derbal explained that, “thermal analysis is not as intuitive as structural analysis because of the complexity of combining heat transfer laws like conduction, radiation and convection.”

Much of this difficulty comes from determining the convective heat transfer coefficients needed to create an accurate assessment. Engineers can make an educated guess or model the fluid flow within Flow Simulation to determine a more accurate coefficient value.

“Conduction is easy; it’s based on material properties,” explained Derbal. “But for forced or natural convection, you have to deal with known or estimated heat transfer coefficients for wall conditions as well as for emissivity and thermal resistance.”

“Using SOLIDWORKS Flow Simulation,” he added, “you may take into account the real environment. Engineers can couple the fluid flow, both internal and/or external, and heat transfer analysis. Then most of the coefficients will be calculated by the software.”

Engineers who are having difficulty setting up their thermal simulations can gain access to online learning material, such as tutorials and manuals, on MySolidWorks.

Versatility of SOLIDWORKS’ Thermal Simulation Offerings

The thermal simulation tools available in the SOLIDWORKS Simulation portfolio offer design engineers a lot of the versatility that they will need for their early development cycle assessments. However, like many other simulation-in-CAD options, an analyst might find the UI too restrictive for their advanced CAE needs.

Simulation is targeting engineering designers who are trying to give themselves direction when producing their designs early in the development cycle. It isn’t meant to be used for the advanced product verification stages.

In this respect, the simulation-in-CAD tool should be considered for its numerous thermal assessments and multiphysics simulation options such as:

  • Coupling thermal and static loadings to assess thermal stresses
  • Thermal contractions and expansions
  • Fully coupled computational fluid dynamics (CFD) and thermal conjugate heat transfer when using Flow Simulation

“Most of thermal analysis can be simulated as steady state at least for predesign,” recommended Derbal. “However, transient thermal analysis can be necessary for strongly nonlinear and time-dependent problems, which need computer resources and large solver times.”

Performing a transient simulation will, of course, require more computational power than the steady-state analysis. This might be a lot of work for a computer optimized to work with CAD but not CAE.

To combat this, Simulation allows for a few tricks to keep the computation analysis down when working with transient simulations. Derbal suggested the following processes:

  • Increase the time step if there is little risk of missing transient detail
  • Use a function to govern the time step based on manual and automatic intervals
  • Assess the flow field using time-averaged results

As for engineers working with heating, ventilation and air conditioning (HVAC) or electronics cooling, Derbal suggested that there are SOLIDWORKS modules with thermal analysis tools specifically tailored to these disciplines. For instance, HVAC engineers can access tools like human comfort factors, while electronics design engineers can perform Joule heating calculations that assess the heat released from a direct electrical current.

To find out more about the capabilities of SOLIDWORKS Simulation, read: SOLIDWORKS 2016 Adds Tools to Help Simulations and Validation.


About the Author

shawn-wasserman-100

Shawn Wasserman (@ShawnWasserman) is the Internet of Things (IoT) and Simulation Editor at ENGINEERING.com. He is passionate about ensuring engineers make the right decisions when using computer-aided engineering (CAE) software and IoT development tools. Shawn has a Masters in Bio-Engineering from the University of Guelph and a BASc in Chemical Engineering from the University of Waterloo.

]]>
Shawn Wasserman
How to Think Like a Simulation Engineer https://www.engineersrule.com/think-like-simulation-engineer/ Thu, 28 Apr 2016 13:59:45 +0000 http://www.engineersrule.com/?p=537 I like to talk about six tools of the trade when I talk about setting up simulation models that I have affectionately named: the Chainsaw, Virtual Reality, the Transmogrifier, the Reverse-3D Glasses, the Doctor and the Jedi Mind Trick. Knowing what these methods are, what they do and why and when you would use them will allow you to think like a simulation engineer. Seasoned simulation engineers (people who run simulations almost 24/7) are constantly thinking about how to go about setting up, troubleshooting and post-processing models. Let’s talk about these tools in detail.*

(*Most simulation engineers don’t work 24/7.)

The Chainsaw is the tool you use to cut models in half and then only solve that half. This is applicable whenever parts have symmetry, which they usually do, sometimes even two points or axis symmetry. I know people tend to think of cutting models in half as extra work, but it really isn’t. Consider this: Imagine a model of symmetrical shape, like a rectangle, that has 50,000 nodes. If all loads and fixtures are the same, then the displacements and reactions on the 25,000 nodes on one side will be identical to the other. However, the solver doesn’t know that, so it will assume you need all nodes solved. This means while the program is crunching through the last half of the nodes it actually already has that data solved! Imagine applying that to anything else. I’m asking you, would you like more solve time, or less? Pick less! As for setup, making an assembly cut could not be simpler, and then you just apply a symmetry condition as a fixture on the cut face. Done.

Virtual Reality is the tool you use to simplify difficult-to-mesh connecting hardware such as bolts, bearings, springs or any parts you are not interested in but need the mass effect (remote mass). Virtualizing parts has many benefits. Firstly, you don’t have to mesh them, so that saves time. Secondly, virtualization removes interferences. It is common for things like bolts, pins, bearings and other connectors to interfere due to being modeled larger than the holes they fit into. This makes simulation difficult, as meshing with interference is not possible. Also of benefit is the ability to add in virtual loads, such as a bolt preload or a spring K factor. Lastly, bolts and pins are actually nonlinear in their factors of safety, and thus the most accurate way to calculate them is with the polynomial equation inherent in the virtual connector.

The Transmogrifier is the tool you use to make a model work for finite element analysis (FEA). This means making modifications, configurations and simplifications in order to make simulation feasible. The motto is, “If a simulation model doesn’t work . . . MAKE it work!” For many users, this appears to be a huge obstacle. However, simplification is your friend and is actually quite easy. The trick is mastering the use of configurations, as it will make less of a headache for you, the user. Remember that configurations of parts can be used in a configuration of an assembly, so an FEA configuration of an assembly, referencing FEA versions of parts with modified dimensions, is really all you need. As for the modifications themselves, they usually involve eliminating interference that is created as a result of stacking tolerance in virtual parts, or the opposite (gap). While gaps can be handled easily, interference cannot. Other things include simplifying unnecessary features, such as cosmetic features, or features that serve a purpose other than what is currently being simulated (for example, heatsinks don’t serve any purpose structurally, just suppress them for your strength test and deal with them at a later time).

The Doctor is the tool you use to check on the health of your study. The Doctor comes in many forms, but mostly when simulation engineers talk about health, they mean mesh health. This can easily be determined with the mesh aspect ratio plot, found in the mesh tools. An ideal aspect ratio is 1, which means all sides are equal. Stretched elements, such as tall, skinny ones or short, wide ones, lead to inaccurate force calculations. However, no simulation can have a uniform aspect ratio of 1 or it would be too mathematically complicated to run; instead, we look for ratios ranging between 1 and 10 for good accuracy, 1 and 5 for great accuracy and 1 and 3 for near-perfect accuracy. Another tool you can use is the Energy Norm Error plot, which is a standard stress plot. This result shows where probable errors in the iterations are accumulating and usually coincide with poor mesh; the difference is that this also shows you how the forces are reacting, even in areas with mesh that looks good but is still not refined enough for the amount of energy transfer. The Doctor should realistically always be utilized.

The Reverse-3D Glasses is the tool you use to simplify 3D models into a 2D or even a 1D version that retains their accuracy, while making meshing much, much simpler. Many elements of designs, such as sheet metal, have very thin cross-sections over large spans. Since we have to mesh by the lowest common denominator, making meshes for sheet metal in solid is overly complex. To solve this unnecessary complexity, we have the option to remove a dimension from constant cross-section models and solve only their spans. We also have the option to turn things like beams into 1D models, only solving for length. These assumptions are almost always valid; sheet metal and beams are very often constant cross-sections, and as long as we virtualize it properly, the results will be the same as if it was solid. Also, we have in Sim Pro and above the 2D Simplification tool, which allows us to analyze an entire 3D model as only a 2D cross-section and extrapolate the results; this has the obvious advantage of minimizing mesh complexity. The idea behind it is very similar to the mentality of the Chainsaw, in that if the cross-section is constant, and one slice of it is solved, they really all are solved and you are just repeating the same number crunches over and over.

The Jedi Mind Trick is the tool you use to remove unnecessary parts and replace them with virtual forces. This is different than virtual reality, which deals with things like bolts and other connectors; instead, this is a question of how deep down the rabbit hole do you want to go? For example, we could analyze a design on a laptop satchel to make sure it has a good factor of safety. To do this, we could model the entire satchel, with the laptop, and the person’s shoulder as the strap hangs from it, apply gravity and let it run, but that would take forever to set up and get parameters for. Instead, we can simply run a simulation on one connector, with a fixture, and a force that is close to the force from the scenario above. The cascade model can also be used here. The idea behind the Jedi Mind Trick is to use, for lack of a better term, telekinesis — invisible forces as opposed to complicated contacts and assembly interactions, which will result in the same boundary conditions. Also, I’m aware this is not technically a Jedi Mind Trick (it’s actually Force Move Object or Force Push), but this was a better name. I’m willing to bet you’ll remember it now.

Let’s see some examples of these tools:

Bolted plate

Here we have a simple bolted plate test. We want to know how much force can be applied to that single plate as it is put into tension by a fixture on one side and the plates on the other side tearing it apart. We are assuming the bolts, which are grossly oversized, are not of interest. Having said that, we can use a number of tools on this: the Chainsaw, the Doctor, the Reverse-3D Glasses and the Jedi Mind Trick. The Chainsaw is obvious. We can just cut it in half lengthwise and save on simulation time. We can also take away the thickness of the plate using the Reverse-3D Glasses so we do not have to mesh across the thin cross-section. Lastly, we can eliminate the bolts entirely and just replace them with a force via the Jedi Mind Trick.

Mesh of the bolted plate

You can see how simple this model turns out to be. Notice the symmetry fixture on the edge that is cut; this will make it so results can be extrapolated later and also prevent the model from violating that line of symmetry. Another thing to be wary of when using the Chainsaw is using forces; you have to cut forces in half, as the program will not automatically update like a pressure load would. This is not the case if you use the “Force per Item” option, however, because you’ll have fewer items and thus the same amount less force. As for the Doctor, let’s see a comparison of health versus error.

Checking aspect ratio on a low-quality mesh

Following is a low-quality mesh, with some high aspect ratios. Compare it to the percent error.

High error induced by poor aspect ratios in the mesh elements.

The error plot shows a lot of elements with large errors near that hole. For comparison, our high-quality error looks like the following. Note that the scales are the same, 0 to 15 percent.

Error plot for a higher quality mesh with more appropriate aspect ratio.

Much better. We can trust these stress results because of the low error. As a bonus, the high number of nodes allows us lots of probe points, and thanks to our tricks, the solve time is still only four seconds (the high-quality solid, with mesh one-quarter of this density, took 30 seconds).

Let’s look at a more complicated example.

Thread pull test

In this case, we are interested in seeing if these threads will survive a pull out test. However, this model is not fit for simulation as of now. The threads don’t actually touch each other, and the inside of the female thread has fillets whereas the stud does not, which will cause interference. Let’s use the Transmogrifier tool to help that. It’s not so complicated, really. Just make an FEA configuration.

Adding an FEA configuration

Then change the features and dimensions in any parts you need. In this case, we only need to change one.

Focusing on the right features

Simplifying the threads to 2D

Now that we have our model correctly made for FEA, we will use our Reverse-3D Glasses to make a 2D model, as 3D threads are a real nightmare.

Using the 2D simplification

We use the 2D simplification tool with axi-symmetric selected. This will give us an infinitely thin slice to work with. Now we need to assign no penetration contacts between the teeth; bonded will result in too strong a part to accurately compare it to real life.

Configuring connections

Since the parts are directly touching, we can just set component contacts to global. Let’s see the results from this test.

Results from the 2D simplified mesh

This test looks good. No tooth is at or above yield. However, let’s use our Doctor tool to verify.

Error on the simplified 2D thread mesh

The error in the top and bottom tooth sections is very high, over 25 percent. Clearly, we need more mesh. Let’s look at it again with a fine mesh.

Thread results with a more appropriate mesh

Using this fine mesh, we can see the tip of the bottom tooth is above yield, and the majority of its body is without a good factor of safety. It is very likely this tooth will break, leading to the second tooth becoming the next in line (minus the strength of one tooth), which will also break, and so on. This bolted connection is not safe and is subject to cascade failure. This is a result we did not see in the original and illustrates the importance of a health check in a study.

Error map for the final results

The errors on the tip of the thread are removed (errors on the fixed body and underneath the threaded connection are unimportant).

Now, let’s see an example using all these tools at once.

Reflex engine

This model has a number of built-in interferences due to the hardware. Eventually, we will have to get rid of them, but remember that the Chainsaw should always be your first tool. Reason being . . .

Going to town with the Chainsaw

Now we only have two pins, one bolt and a limited number of interferences to deal with, in addition to the fact that we have less to mesh and define. The interferences are still an issue, and while we could eliminate all of them, we should try to virtualize using Virtual Reality as much as possible. Let’s start with those bolts.

Replacing bolts with a virtual connector

This bolt is now suppressed and replaced with a virtual connector. In SOLIDWORKS Simulation 2015 and above, this can be done automatically by right-clicking the Connections folder and selecting Toolbox Fasteners to Bolts. This eliminates all the interferences the bolt was causing, as well as includes the ability to add preload (something not possible in static analysis without virtualization).

Setting up virtual fasteners

The pins are defined in a similar fashion. Here, I virtualized their stiffness and resistance to movement (they have infinite translation resistance but 50 N*m/rad rotation). That takes care of the fasteners. Now let’s fix the body. Just like before, we’ll make a configuration and adjust dimensions.

Configuration for the body

More configuration setup

This also applies to subassemblies.

Taking care of the shaft

 

Interferences eliminated

Transmogrification complete. Now to reduce as many thicknesses as possible, use Reverse-3D Glasses.

Mesh of the reflex engine

Notice we did not make one of the blocks a shell. That’s because if you check the above screenshot, you will see the plug part fits into a recess. That recess can’t be modeled with shells (everything has to be constant, remember), so we bite the bullet and run it as a solid. As opposed to putting in complicated pressure loads from flow on the inside of the pipe, instead, we will use thermal expansion to control the displacements from a worst-case scenario.

Calculated deformations for the reflex engine

Here’s our super-deformed model with displacements. Let’s do a health check using the Doctor.The Doctor visits the reflex engine mesh

Our shell mesh looks mostly good, but some elements in that plug are very bad. However, this is acceptable. The reason why is that plug is significantly far away from the areas of large displacement, and in reality, we could probably get rid of it entirely. (It does have heat load applied to it; switch the heat load instead to the faces it directly touches — there’s our example of the Jedi Mind Trick.) We kept it in this case because it has the other hole for the bolt and thus is necessary for our pre-load.

Losing what’s not critical to the analysis

Our error is low. Lastly, thanks to virtualization, we can get results from those pins.Final results on the reflex engine

This is a result that is not easy to get from other studies. It can even predict failure from a factor of safety criteria. This type of operation we just performed is typical for simulation engineers, and these tools along with practice will help you think just like they do about how a problem should be handled in FEA. These are the tools you’re looking for.


About the Author

Michael Kalin has been teaching simulation since 2012. He regularly does presentations for simulation at conventions such as SOLIDWORKS World and SOLIDWORKS User Groups. In his off time, he enjoys building his own 3D printers, playing Shogi, traditional archery and Ghostbusting.

]]>
Michael Kalin
Topology Optimization Add-in for SOLIDWORKS https://www.engineersrule.com/topology-optimization-add-solidworks/ Wed, 30 Mar 2016 15:11:10 +0000 http://www.engineersrule.com/?p=423

How to Add Topology Optimization to SOLIDWORKS?

ParetoWorks is a SOLIDWORKS add-in that allows engineers to perform topology optimizations on their parts based on stiffness or strength. This software uses simulation and optimization algorithms to lightweight parts without sacrificing the structural integrity of the parts.

ParetoWorks can automate the lightweighting optimization of a part based on stiffness and strength. (All images courtesy of SOLIDWORKS and SciArt.)

ParetoWorks can automate the lightweighting optimization of a part based on stiffness and strength. (All images courtesy of SOLIDWORKS and SciArt.)

The software imports the SOLIDWORKS geometry as an STL file. The program then runs a finite element analysis (FEA) solver and a design optimization engine to give engineers an idea of how to reduce the weight of a part. Though ParetoWorks operates within the SOLIDWORKS framework, it is also a cloud technology available through a browser.

“Design optimization lies at the heart of modern engineering,” said Krishnan Suresh, mechanical engineering professor and CTO of SciArt, makers of ParetoWorks. “It is critical in reducing cost, reducing material, reducing weight and increasing quality, and is a driving force behind innovation. [However], design optimization can be very tricky and difficult for humans to carry out manually.”

To set up the problem, the user needs to input the units of the system, any boundary conditions, the limiting variable for optimization (stiffness or strength) and the forces the part will experience. All of these inputs are made in a simplified field of entry.

“[ParetoWorks’] focus is to make sure these structural loads are done right,” said Praveen Yadav, director of engineering at SciArt, makers of ParetoWorks. “We have the capability of handling thermomechanical loading, transient loading, modal analysis and buckling analysis. We include all of these analyses in the optimization for multi-constrained, multi-material and multi-load optimizations.”

The optimizations can also take constraints into consideration when assessing the part. Some of these constraints include:

  • Maximum volume fraction
  • Stiffness and displacement constraints
  • Manufacturing constraints like casting draw direction
  • Assembly constraints like which surfaces to maintain

The Benefits of Subtractive Topology Optimization to Additive Topology Optimization

ParetoWorks isn’t the only topology optimization software out there. However, many of them are based on additive optimization of the part as opposed to subtractive optimizations.

Though additive can give engineers a good starting point for a part based on a design space and loads, it does take a lot of data to perform this optimization. Subtractive optimization, however, requires less data but it will need to start with a part before the optimization can be performed.

Instead of mapping the whole design space, ParetoWorks uses subtractive optimization to modify the geometry, saving data costs.

Instead of mapping the whole design space, ParetoWorks uses subtractive optimization to modify the geometry, saving data costs.

“[Additive optimizations] try to map out the entire design space, this requires the storage of a lot of data, which gets expensive as you get new designs and you compare to the existing stored variable,” said Yadav. “ParetoWorks, on the other hand, attempts to stay as close as possible to the optimality front. This reduces the requirement of storing data.”

“All we care about is where we are right now and where we are headed,” Yadav clarified. “Based on that, we can choose a suitable search direction and make small increments to update the geometry. Once the geometry is updated we also perform fixed-point filtration to make sure it is robust and stable in that region.”

Since the entire design space isn’t mapped out, engineers might wonder how ParetoWorks handles the constraints. When performing this optimization, if the part hits a constraint made by the engineer, the software will reassess the step size for subsequent iterations in the optimization. This will slow down the changes made to the part and allow for a more detailed localized search for the best design in that region.

For more on ParetoWorks, read this ENGINEERING.com article. To learn more about structural optimizations using simulation, follow this link.


About the Author

shawn-wasserman-100

Shawn Wasserman (@ShawnWasserman) is the Internet of Things (IoT) and Simulation Editor at ENGINEERING.com. He is passionate about ensuring engineers make the right decisions when using computer-aided engineering (CAE) software and IoT development tools. Shawn has a Masters in Bio-Engineering from the University of Guelph and a BASc in Chemical Engineering from the University of Waterloo.

]]>
Shawn Wasserman