At PVEng we use SolidWorks Simulation (formerly known as Cosmos Designer) for multiple uses. This is a collection of tips and tricks we use to get the most out of Simulation. Enjoy:
Disclaimer: This page is the OPINION of Pressure Vessel Engineering Ltd and is provided for educational purposes only. The practices discussed on this page are always being updated. We cannot guarantee that the methods presented here are accurate or current. This information is presented for educational purposes only.
Reduce your Mesh Time...
Tolerance for Solid Meshing...
Mesh Refinements at Discontinuities...
Mesh Refinements Near Discontinuities...
Why Use 2nd Order Integration Elements?
Surface Mesh Problems...
Easier Surfaces...
Solid Model Mesh Challenges...
Solution for Long Mesh Time of Shells...
Sometimes mesh times can be much longer than solve times. Why?
Inside view of a storage sphere |
Front view of the storage sphere. |
This 25ft diameter storage sphere with unusual legs is solid meshed. At a 5" element size (the largest size that will mesh), it takes 172 seconds to mesh. The bad news is that a smaller mesh is require in a number of locations. When the overall element sizeis reduced to 3", it takes 1002 seconds to mesh.
Front view - Nodes = 123,000, Elements = 61,000, 172 seconds to mesh |
Detail meshed at 3" size - Nodes = 318,000, Elements = 158,000, 1002 seconds to mesh |
The solution? Splitting large objects into smaller items can reduce the mesh time. Here the sphere is split into 6 and 12 pieces.
The sphere split into 6 bodies |
The sphere split into 12 bodies |
The mesh times go down significantly as the sphere is split into smaller bodies.
![]() 6 body sphere at 5 inch mesh - mesh time is 46 seconds (127,000 nodes, 63,000 elements) |
12 body sphere at 3 inch mesh - mesh time is 161 seconds (326,000 nodes, 163,000 elements) |
Reducing the body sizes can have a huge impact as the number of elements exceeds 1 million...
What impact does the mesh tolerance option have on the mesh?
Caution: every time the mesh size is changed, the tolerance is adjusted to 5% of the mesh size. This is a very nasty feature! Keep your eye on the tolerance and set it back the to value you require after each mesh size change
![]() |
As the mesh tolerance increases, exterior model details disappear from the mesh. This block is 5 x 5 x 1 inch high. Each feature is 1 x 1 inch. Feature height changes as shown.
![]() |
Cosmos can mesh the object with very coarse mesh sizes, as long as the tolerance is fine enough:
![]() Run #1, the mesh size is at 1 inch and the tolerance at the cosmos default 0.05 inch (5% of mesh size). When the tolerance is increased to or above the size of a feature, it disappears from the mesh. |
![]() Run #2, the mesh size is still at 1 inch, but the tolerance is increased to 0.125 inch (the height of the first feature). The first feature disappears. |
|
![]() Run #4, the tolerance is at 0.26 inch, the second feature disappears (the center of it still exists, but the edges are gone). |
![]() Run #8, the mesh size is 1.125 inch and the tolerance 1 inch, all features and much of the base disappears. The mesh does not have to be smaller than the feature size modeled. |
|
![]() Run #9, The mesh size is 2.5 inch, but the small features are still modeled because the tolerance is set to 0.05 inch. |
![]() Slightly different results are achieved with internal cut features. |
Here the extruded bosses are replaced with cut slots: 1, 0.5, 0.25 and 0.125" wide all the way through the same 5 x 5 x 1" block. When the tolerance is too coarse, the mesh fails:
Watch for this reason for mesh failure. If the cut features are not desired in the mesh, they have to be removed from the model.
Error plots show how well the complexity of a mesh matches the complexity of the model. Once the mesh matches the complexity of the model, the reported error is low. We use 5% error as an acceptance criterion. This method checks the whole model at once, and is much less work than mesh refinement.
This study compares mesh refinement at a node with error plot methods to estimate the convergence of FEA results. CosmosDesigner 2708 SP5.0 FEA software is used for this report.
Stress results and stress results graph. For this study, the results from 0.125 and 0.063" mesh size meet the 5% acceptance criteria.
An ultimate stress value is extrapolated using linear regression on the above stresses and extrapolating to a theoretical zero mesh size (the 1" mesh size data point for stress 1 is ignored).
In general, when the reported error is less than the 5% acceptance criteria, the actual error is much less. Even when the acceptance criteria is met, some elements will have higher error levels (Point 1 at 0.063" mesh).
Mesh refinement by measuring the stress at individual locations and extrapolating to a theoretical zero mesh size can be used to validate individual areas on a model. However, many FEA runs are required, and in this case, only 3 points on the model were proven. There is no guarantee that the most important points have been studied. The Error plots prove every element in the model. If the first mesh chosen is acceptable, no additional work is required to prove the model.
SummaryError plots show how well the complexity of a mesh matches the complexity of the model. Once the mesh matches the complexity of the model, the reported error is low. As a guideline, Pressure Vessel Engineering uses 5% error as an acceptance criterion.
This report examines the accuracy of stress results near an area of discontinuity as the mesh is refined. The 5% error criteria estimates the errors in the mesh except in areas of very low stress located near high stress areas. These areas are not usually of interest in a pressure vessel study.
![]() |
SummaryThis is part of a series of articles that examines the ABSA (Alberta Boilers Safety Association) requirements on writing FEA reports. These guidelines can be found at: ABSA Requirements. The use of 2nd or higher order elements is one of the requirements. Pressure Vessel Engineering uses CosmosWorks for Finite Element Analysis. It is expected that these results would also be applicable to other FEA programs. |
Surface models can be challenging to mesh. Parts that touch might not share nodes preventing the correct transfer of loads. The resulting calculated stresses and displacements can be wrong.
![]() A segment of the bottom half of storage sphere - here 1/2 of 1 leg is being analyzed. |
![]() The sphere and legs are shell modeled. |
The stresses in this leg are wrong:
![]() Calculated stress values |
![]() Close up of the leg to skirt attachment |
The stress distribution in the leg to skirt attachment is uneven. Turning on the mesh shows the uneven mesh that is supposed to be connecting these two parts.
The problem does not go away with mesh refinement or tolerance adjustments. The problem is intermittent - some parts will join, some not. A recent update to SolidWorks Simulation can fix this problem:
![]() Standard mesh fails |
![]() Curvature based meshing works |
Curvature based meshing was not include in SolidWorks Simulation 2008. This example was run in SolidWorks Simulation 2010.
Here the standard mesher was used with the leg surface knit to the skirt. The standard mesher produces a better looking mesh.
Surfaces can be challenging to create, but solids are easy to convert into surfaces. Surfaces originally created as solids do not have the problem of nodes not joining at edges (previous topic)...
Sometimes a multibody model refuses to mesh with the standard mesher. Regardless of the element size and tolerances used, some parts refuse to bond.
![]() A large propane storage sphere |
![]() Meshed with the standard mesher - 802,000 elements - 12" large and 4" small element sizes |
The standard mesher has run, but when the analysis is performed, some of the bodies are not joined.
![]() Stress results - a surface has not joined (Displacements magnified 100x) |
![]() A close up of the area that did not bond (Displacement magnified 20x) The 4" elements at the leg and the 12" general shell elements can be seen. |
The curvature based mesher produces a less uniform looking mesh, and in this case the produced mesh has more elements.
![]() Curvature based mesher settings used. A mesh refinement of 4" size is set for the legs. |
![]() A detail of the mesh created with the curvature based mesher, 925,000 elements are produced. |
|
![]() Correct results from the curvature based mesh run |
![]() Close up of the results |
In theory it should be possible to alter any model to make it meshable by the standard mesher. Here the panel that will not mesh into the leg is split in half.
![]() Alternate solution - a panel where the mesh does not work has been split in half. |
![]() The model has successfully meshed and run. The split panel is shown. |
Note: this model run is used to determine the frequency of vibration of a sphere with a 1g sideways load. The stresses and deflections do not represent real world seismic conditions.
When meshing shells, the mesh gets up to 99% and then hangs for a very long time sometimes for hours depending on the mesh size. The mesher is going through some type of crazy routine trying to orient all of the shell faces in the same direction. We can do this manually in a few seconds by picking the face and then right clicking mesh and "Flip Shell Elements".
Go to Simulation options and un-check the "Automatic re-alignment for non-composite shells":
In the example model, doing this reduced the mesh time from 8 min 21 seconds down to 20 seconds.
Adjusting the mesh size after setting the face orientation causes some of the faces to be re-oriented. Manually flipping the faces is still much quicker than waiting for the automatic re-alignment.