Introduction To Structural Mechanics Module
Introduction To Structural Mechanics Module
Contact Information
Visit the Contact COMSOL page at www.comsol.com/contact to submit general inquiries or
search for an address and phone number. You can also visit the Worldwide Sales Offices page at
www.comsol.com/contact/offices for address and contact information.
If you need to contact Support, an online request form is located at the COMSOL Access page at
www.comsol.com/support/case. Other useful links include:
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
Structural Mechanics Simulations . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
The Structural Mechanics Module Physics Interfaces. . . . . . . . . . 9
Physics Interface Guide by Space Dimension and Study Type . . . 15
The Fundamentals: A Static Linear Analysis . . . . . . . . . . . . . . . . 22
Parametric Study . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
Modeling Techniques for Structural Mechanics. . . . . . . . . . . . . . . . 60
Including Initial Strain . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
Modeling Thermal Expansion . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
Examples in the Application Library . . . . . . . . . . . . . . . . . . . . . . . . . 73
|3
4|
Introduction
Figure 1: Von Mises stresses caused by thermal expansion in a turbine stator model. From the Structural
Mechanics Module application library: Thermal Stress Analysis of a Turbine Stator Blade (turbine_stator).
This model uses both the Structural Mechanics and Heat Transfer Modules.
The Structural Mechanics physics interfaces are the backbone of the module.
These have predefined formulations for the capabilities described above. This
guide gives an overview of these physics interfaces as well as examples of the
modeling procedures used in them.
|5
engineering. These types of simulations are also frequently used to study the
behavior of existing structures, from microscopic biostructures to glaciers.
Structural mechanics was the first engineering field to use the concept of finite
elements as a standard tool. Over time, these verifiable and validated formulations
have been developed and are applicable to a wide range of materials. Simulations
can often replace experimental measurements. For example, finite element
simulations are used extensively in safety-critical applications within the aerospace
and nuclear industries.
A traditional use of structural analysis tools is depicted below. The device being
studied is a pipe with a bolted flange, and the purpose of the study is two-fold: to
estimate the stress in the pipe and to evaluate the performance of the bolted joint.
Figure 2 shows the deformation (exaggerated) and the von Mises stresses in the
pipe.
Figure 2: The deformation (exaggerated) and the von Mises stress in the pipe. From the Structural
Mechanics Module application library: Prestressed Bolts in a Tube Connection (tube_connection).
6|
simulation also reveals the limitations of the design, because the device will not
work properly if the legs of the actuator make contact along the free faces.
Figure 3: The total displacement in a MEMS device. From the MEMS Module application library: Thermal
Actuator (thermal_actuator_tem).
|7
The Structural Mechanics Module includes several types of couplings for
fluid-structure interaction.
Figure 4: Displacements in the blood vessel. From the Structural Mechanics Module application library:
Fluid-Structure Interaction in a Network of Blood Vessels (blood_vessel).
8|
The Structural Mechanics Module Physics Interfaces
The figures below show the physics interfaces that are in the COMSOL Model
Wizard and included with the Structural Mechanics Module and its related
products. In addition to the structural mechanics capabilities, the module also has
substantial multiphysics capabilities, including AC/DC, acoustics, CFD, heat
transfer, Joule heating, piezoelectricity, and magnetostriction.
Figure 5: The 3D component physics interfaces available with the Structural Mechanics Module. Several
of the physics interfaces require additional licenses.
|9
Figure 6: The 2D component physics interfaces.
S OLID MECHANICS
The Solid Mechanics interface ( ) defines the quantities and features for stress
analysis and general linear and nonlinear solid mechanics. In 2D, plane stress,
plane strain, and generalized plane strain formulations are available. In 2D
axisymmetry, there are formulations with and without twist.
10 |
The Linear Elastic Material node is the default material model. The elastic material
model can be expanded with features for thermal expansion, hygroscopic swelling,
viscoelasticity, damping, and initial stress and strain. The description of elastic
materials in the module includes isotropic, orthotropic, and fully anisotropic
materials. The material can be activated or deactivated based on for example time
or temperature. A number of preset study types are available for solid mechanics
(shown below). Also, see Physics Interface Guide by Space Dimension and Study Type.
| 11
• With the Nonlinear Structural Materials Module, hyperelasticity, nonlinear
elasticity, plasticity, porous plasticity, creep, viscoplasticity, brittle damage,
and shape memory alloys can be modeled.
• With the Composite Material Module, you get the possibility to model
layered shells, either using the Layered Shell interface, or through a special
material model in the Shell and Membrane interfaces.
• With the Rotordynamics module you can study the dynamics of rotors,
including advanced bearing models and gears. The rotor can be modeled
either as beams, or using 3D solids. The module also includes sophisticated
bearing models. The hydrodynamic bearings can also be used in solid
mechanics and multibody dynamics models.
• Using the Fatigue Module, you can augment your stress analysis with low or
high cycle fatigue evaluation, including random vibration fatigue.
The Multibody Dynamics Module is a related product, which does not require the
Structural Mechanics Module. Here, you can study rigid and flexible bodies
connected by different types of mechanical joints, gears, cam-follower
mechanisms, springs, and dampers. You can also model lumped mechanical
systems, defined by components like mass, spring, damper, or impedance.
You will also find a subset of the structural mechanics capabilities in the MEMS
Module and the Acoustics Module.
The exact contents of the menus and windows shown in this document may vary
depending on the license or licenses you have. All illustrations assume the presence
of these additional modules, even though the examples given only require the
Structural Mechanics Module.
12 |
loads. The formulation and features for this physics interface are similar to those
for the Shell interface.
M EMBRANE
The Membrane interface ( ) is used for thin membranes, which can be
considered as curved plane stress elements in 3D, having in-plane as well as
out-of-plane deformation. The difference between a shell and a membrane is that
a membrane does not possess any bending stiffness. Thin films and fabric are
structures suited for modeling with the Membrane interface. In order to be stable,
a membrane must be in tension; if not, it will wrinkle. A special formulation in the
Membrane interface makes it possible to handle also wrinkling.With the Nonlinear
Structural Materials Module, hyperelasticity, nonlinear elasticity, plasticity, creep,
and viscoplasticity can be modeled in addition to the default linear elastic material.
With the Composite Materials Module, it is also possible to analyze layered
membranes.
B EAM
The Beam interface ( ) is intended for the modeling of slender structures
(beams) that can be fully described by their cross-section properties, such as area
and moment of inertia. The Beam interface defines stresses and strains using
Hermitian elements and Euler-Bernoulli or Timoshenko theory. Beam elements
are used to model both planar and three-dimensional frame structures. This
physics interface is also suitable for modeling reinforcements of solid and shell
structures. It includes a library for rectangular, box, circular, pipe, hat, H-profile,
U-profile, C-profile, and T-profile beam sections. Additional features include
damping, thermal expansion, and initial stresses and strains.
T RUSS
The Truss interface ( ) can be used to model slender structures that can only
sustain axial forces. Trusses are modeled using Lagrange shape functions, which
allow the specification of small strains as well as Green-Lagrange strains for large
deformations. In addition to classical truss structures, the interface can be used for
| 13
modeling cables exposed to gravity forces (sagging cables). Additional features
include damping, thermal expansion, and initial stresses and strains. The default
material model is linear elastic, and together with the Nonlinear Structural
Materials Module, it is possible to also model plasticity and shape memory alloys.
P IPE M ECHANICS
The Pipe Mechanics interface ( ) is intended for stress and deformation analysis
in pipe systems, either standalone, or together with the Pipe Flow interface. Pipes
are similar to beams, but stresses from internal pressure and temperature gradients
through the pipe wall are part of the formulation.
14 |
A similar multiphysics interface, Magnetomechanics ( ), combines Solid
Mechanics and Magnetic Fields interfaces together with a moving mesh
functionality to model the deformation of magnetically actuated structures.
F LUID F LOW
There are several Fluid-Structure Interaction (FSI) multiphysics interfaces. These
interfaces combine fluid flow with structural mechanics to capture the interactions
between fluids and structures. In the Fluid-Solid Interaction ( ) interface, a
Solid Mechanics interface and a Single Phase Flow interface model the solid and
the fluid, respectively. Together with CFD Module, also turbulent flow and
two-phase flow can be studied. The FSI couplings appear on the boundaries
between the fluid and the solid. The Fluid-Structure Interaction interface uses an
arbitrary Lagrangian-Eulerian (ALE) method; it combines the fluid flow
formulated by an Eulerian description and a spatial frame with solid mechanics
formulated by a Lagrangian description and a material (reference) frame.
The Fluid-Solid Interaction, Fixed Geometry ( ) interface can be used to model
phenomena where a fluid and a deformable solid structure affect each other. Both
the fluid loading on the structure and the structural velocity transmission to the
fluid can be taken into account. The interface models situations where the
displacements of the solid are assumed to be small enough for the geometry of the
fluid domain to be considered as fixed during the simulation.
There are also similar interfaces for coupling shells and membranes to fluid flow,
as well as a special interface coupling the Pipe Flow interface to the Pipe Mechanics
interface.
The Fluid-Solid Interaction, Conjugate Heat Transfer interface ( ), combines
the FSI functionality with heat transfer in the fluid and solid domains.
There are also multiphysics interfaces targeted at porous flow, such as the
Poroelasticity, Solid ( ) interface. It combines Solid Mechanics with Darcy’s
Law, to provide a bidirectional coupling between the flow through an elastic
matrix and the deformation of the matrix.
| 15
PHYSICS INTERFACE ICON TAG SPACE AVAILABLE STUDY TYPE
DIMENSION
Acoustics
Elastic Waves
Fluid-Structure Interaction
16 |
PHYSICS INTERFACE ICON TAG SPACE AVAILABLE STUDY TYPE
DIMENSION
Structural Mechanics
| 17
PHYSICS INTERFACE ICON TAG SPACE AVAILABLE STUDY TYPE
DIMENSION
18 |
PHYSICS INTERFACE ICON TAG SPACE AVAILABLE STUDY TYPE
DIMENSION
| 19
PHYSICS INTERFACE ICON TAG SPACE AVAILABLE STUDY TYPE
DIMENSION
20 |
PHYSICS INTERFACE ICON TAG SPACE AVAILABLE STUDY TYPE
DIMENSION
6 Requires
the addition of the CFD Module or the Microfluidics Module.
8 Requires
the addition of the Porous Media Flow Module.
9
Requires the addition of the AC/DC Module or the MEMS Module.
| 21
The Fundamentals: A Static Linear Analysis
Figure 7: The geometry of the bracket together with the load distribution.
In this initial analysis, the mounting bolts are assumed to be fixed and securely
bonded to the bracket, so they will be replaced by boundary conditions at the bolt
holes. To model the external load from the pin, specify a surface pressure p with a
trigonometric distribution on the inner surfaces of the two holes, given by
π π
p = P 0 cos ( α ) - --- < α < ---
2 2
where P0 is the peak load intensity, and α is the angle from the direction of the
load resultant. One of the arms is loaded upward, and the other downward.
22 |
Model Wizard
The first step to build a model is to open COMSOL and then specify the type of
analysis you want to do — in this case, a stationary, solid mechanics analysis.
Note: These instructions are for Windows users but apply with minor differences
to Linux and Mac.
1 To start the software, double-click the COMSOL icon on the desktop. When
the software opens, you can choose to use the Model Wizard to create a new
COMSOL model or Blank Model to create one manually.
For this tutorial, click the Model Wizard button.
If COMSOL is already open, you can start the Model Wizard by selecting
New from the File menu and then click Model Wizard .
The Model Wizard guides you through the first steps of setting up a model. The
next window lets you select the dimension of the modeling space.
2 On the Select Space Dimension page click 3D .
3 In the Select Physics tree under Structural Mechanics, click Solid Mechanics
(solid) .
4 Click Add, then click Study .
5 In the Select Study tree under General Studies, click Stationary .
6 Click Done .
| 23
3 In the table, enter the following settings:
The third column in the table is filled out automatically. Note that you can enter
data any unit, it will automatically be converted to the base units of your model.
You can choose unit system under the top level node in the model tree.
I m p o r t i n g t h e G eo m e t r y
The next step is to create your geometry, which also can be imported from an
external program. COMSOL Multiphysics supports a multitude of CAD
programs and file formats. In this example, import a file in the COMSOL
Multiphysics geometry file format (.mphbin).
Note: The location of the files used in this exercise varies based on your
installation. For example, if the installation is on your hard drive, the file path
might be similar to
C:\Program Files\COMSOL60\Multiphysics\applications\
Structural_Mechanics_Module\Tutorials.
24 |
6 Below the filename, click Import .
2 In the Settings window for Block, locate the Selections of Resulting Entities
section.
3 Find the Cumulative selection subsection. Click New.
4 In the New Cumulative Selection
dialog box, type Partition Block in the
Name text field.
5 Click OK.
| 25
6 Locate the Size and Shape section, and enter the values shown below.
26 |
11Locate the Selections of Resulting Entities section. Find the Cumulative
Selection subsection. From the Contribute to list, choose Partition Block. Click
Build Selected .
Since the x-y plane happens to be the default mirror plane, you did not have to
change any settings to specify it.
Create the second mirror copy.
12In the Geometry toolbar, click Transforms and choose Mirror .
13In the Settings window for Mirror, locate the Input section.
14From the Input objects list, choose Partition Block.
15Select the Keep input objects check box.
16Locate the Normal Vector to Plane of Reflection section. In the x text field,
type 1. In the z text field, type 0.
17Locate the Selections of Resulting Entities section. From the Contribute to list,
choose Partition Block.
| 27
18Click Build Selected .
28 |
Partition objects
1 In the Geometry toolbar, click Booleans
and Partitions and choose Partition
Objects .
2 In the Settings for Partition Objects,
locate the Partition Objects section. In
Objects to partition, select imp1.
| 29
The solid geometry has new been partitioned into nine separate domains, five of
which are thin objects with a constant thickness.
Here you want to define expressions for the load applied to the load-carrying
holes. Assume the load distribution to be defined by a trigonometric function.
30 |
Analytic 1 (an1)
1 On the Home toolbar, click Functions and under Local choose Analytic .
| 31
In this example, one selection contains the bolt domains, while other selections
contain the boundaries of the pin holes that carry load.
Explicit 1
1 On the Definitions toolbar, click Explicit . An Explicit node is added under
Definitions>Selections.
2 In the Settings window for Explicit, in the Label text field, type Bolt 1. You
can also click any node in the model builder tree and press F2 to rename, or
right-click and select Rename.
3 On the Graphics toolbar, click Wireframe Rendering in order to see also
hidden boundaries better.
4 Locate the Input Entities section. From the Geometric entity level list, choose
Boundary.
5 Select Boundary 41 only.
6 Select the Group by continuous tangent check box. Boundary 40 is
automatically added to the selection list.
32 |
Explicit 2, Explicit 3, and Explicit 4
Repeat the steps completed for Explicit 1 to add a total of four Explicit nodes .
1 On the Definitions toolbar, click Explicit three times.
2 In the Model Builder click the next Explicit node to open the Settings
window. Edit the Settings window as indicated in the table below.
3 Use the table as a guide, and in the Graphics window, select the boundaries as
indicated. Click to select the Group by continuous tangent check box for each
node.
Explicit 2 Bolt 2 43
Explicit 3 Bolt 3 55
Explicit 4 Bolt 4 57
Union 1
1 On the Definitions toolbar, click
Union .
2 In the Settings window for Union, in the
Label text field enter Bolt Holes.
3 Locate the Geometric Entity Level
section. From the Level list, choose
Boundary.
4 Locate the Color section. On Windows,
select the eighth color in the first row of
the palette (orange). On other platforms,
choose Color 8 from the Color list.
5 Locate the Input Entities section. Under
Selections to add, click the Add
button .
6 In the Add dialog box, in the Selections
to add list, choose Bolt 1, Bolt 2, Bolt 3,
and Bolt 4.
7 Click OK.
| 33
Create selections for the two holes carrying the load.
Explicit 5
1 On the Definitions toolbar, click Explicit .
2 In the Settings window for Explicit, in the Label text field, type Left Pin
Hole.
3 Locate the Input Entities section. From the Geometric entity level list, choose
Boundary.
4 Select Boundary 4 only.
5 Select the Group by continuous tangent check box.
6 Locate the Color section. On Windows, select the ninth color in the first row
of the palette (green). On other platforms, choose Color 9 from the Color list.
Explicit 6
Repeat the steps above, but use the label Right Pin Hole, select boundary 75,
and use Color 12 (a red color). Now the sequence under Definitions should look
like this:
Union 2
Add a selection that combines the pin hole boundaries on both sides.
1 In the Definitions toolbar, click Union .
2 In the Settings window for Union, type Pin Holes in the Label text field.
3 Locate the Geometric Entity Level section. From the Level list, choose
Boundary.
4 Locate the Input Entities section. Under Selections to add, click Add .
5 In the Add dialog box, in the Selections to add list, choose Left Pin Hole and
Right Pin Hole.
6 Click OK.
34 |
Adjacent 1
Add one more selection to be used during mesh generation.
1 On the Definitions toolbar, click Adjacent .
2 In the Settings window for Adjacent, in the Label text field, type Bolt Hole
Edges.
3 Locate the Input Entities section. From the Geometric entity level list, choose
Boundary.
4 Under Input Selections, click the Add button .
5 In the Add dialog box, select Bolt Holes in the Input selections list
6 Click OK.
7 Locate the Output Entities section. From the Geometric entity level list, choose
Adjacent Edges.
8 On the Graphics toolbar, click Wireframe Rendering to reset the graphics
to a view with hidden surfaces.
Mate rials
Solid Mechanics
Now it is time to define the physics settings, such as material models, loads and
constraints. Initially, the analysis was specified to be stationary using the classical
equations associated with solid mechanics.
By default, the Solid Mechanics interface assumes that the materials are linear
elastic, which is appropriate for this example. All that is left to do is to define the
constraints and loads.
| 35
Fixed Constraint 1
Assume that the boundaries of the bolt holes are perfectly constrained.
1 On the Physics toolbar click Boundaries and choose Fixed Constraint.
2 In the Settings window for Fixed Constraint locate the Boundary Selection
section.
3 From the Selection list, choose Bolt Holes.
36 |
Boundary Load 1
Apply a boundary load to the bracket holes. The load is acting in the direction
normal to the boundaries. To achieve that, use the built-in boundary coordinate
system.
1 On the Physics toolbar click Boundaries and choose Boundary Load .
2 Locate the Boundary Selection section. From the Selection list, choose Pin
Holes.
3 Locate the Coordinate System Selection section. From the Coordinate system
list, choose Boundary System 1 (sys1). The input of the load is now interpreted
in this coordinate system, and you can directly access the normal to the
boundaries.
4 Locate the Force section. Specify the FA vector as:
0 t1
0 t2
load(-P0,Y-YC,Z)*(sign(X)*Z>0) n
Note that the coordinate names in the second column of the table were updated
to reflect the chosen coordinate system.
The previously defined function ‘load()’ is called in order to provide the load
distribution. Note how Boolean expressions like Z>0 can be used to limit the part
of the hole where the load is active. Also, the sign of the X-coordinate is used to
flip where the load is applied. It would also have been possible to include that part
of the logic in the function ‘load()’ by supplying the X coordinate as a fourth
argument. Or, you could simply have used one Boundary Load feature for each
hole, and selected only the loaded part of the hole in each of them.
Me sh 1
Start by creating an edge mesh around the bolt holes to make sure that they are
properly resolved.
Edge 1
1 In the Mesh toolbar, click Boundary and chose Edge.
2 In the Settings window for Edge, locate the Edge Selection section. From the
Selection list, choose Bolt Hole Edges.
Distribution 1
1 In the Model Builder, Right-click Edge 1 and choose Distribution .
| 37
2 In the Settings window for Distribution, locate the Distribution section. In the
Number of elements text field, type 8.
Create a mesh which is swept through the thin flat parts, and then use a free
tetrahedral mesh for the remaining more complex parts of the geometry. Note
that the transition between the two types of elements is automatic. A layer of
pyramid elements will be generated there.
Swept 1
1 On the Mesh toolbar, click Swept .
2 In the Settings window for Swept, locate the Domain Selection section. From
the Geometric entity level list, choose Domain, and select domains 1, 4, 5, 6,
and 9.
3 Click to expand the Source faces section. Select Boundaries 1, 33, 37, 50, and
72.
4 In the Model Builder, right-click Swept 1 and choose Size .
Size 1
1 In the Settings window for Size, locate the Element Size section. Click the
Custom button.
2 Locate the Element Size Parameters section. Select the Maximum element size
check box. In the associated text field, type 8[mm].
3 Click Build Selected to generate the swept mesh in the thin parts.
38 |
Free Tetrahedral 1
1 On the Mesh toolbar, click Free Tetrahedral
The default selection is Remaining, that is all not yet meshed domains.
2 In the Model Builder, right-click Free Tetrahedral 1 and choose Size .
3 In the Settings window for Size, locate the Element Size section. From the
Predefined list, choose Finer.
4 Click Build All .
You should now have a mesh which looks similar to this:
| 39
DISPLAYING PHYSICS SYMBOLS I N THE GRAPHICS WINDOW
When working with the physics features,
the current selection is shown in the
Graphics window. You can add symbols to
describe the type of condition applied to
the selection.
The symbols indicate only the type of
settings applied to the model and not the
actual magnitude or direction. If you are
interested in visualizing an actual applied
load, a solution must be computed first.
You turn the physics symbols on by
selecting Enable physics symbols in the
settings for a physics interface.
40 |
You can click the Wireframe Rendering button to see the symbols everywhere.
Study
To check the actual load distribution, you can compute the initial value. For a
large model, this is much faster than computing the actual solution, but the
approach will only work as long as the loads are independent of the solution. The
steps below show how to visualize the load distribution in the current geometry.
1 On the Study toolbar click Get
Initial Value .
The Study node automatically defines
a solver sequence for the simulation
based on the selected physics
interface (Solid Mechanics) and study
type (Stationary). If a mesh had not
been created yet, the Study node
automatically generates it at the same
time as the solver sequence.
If you expand the Study 1 node and
its subnodes, you can see the details
of the generated solver sequence.
| 41
Note: In practice, do not rely only on the standard mesh settings. For most real
life problems, suitable meshing parameters should be set up from the Mesh
toolbar, just as in this example.
Results
Among the default plots that are generated, there is a group containing arrow
plots of the applied loads.
42 |
Study
Solve the model. On the Home or Study toolbar, click Compute . Solving the
problem will take a few seconds.
Results
Stress (solid)
1 Expand the Stress (solid) node, and then click Volume 1. The default plot
displays the von Mises stress distribution together with an exaggerated
(automatically scaled) picture of the deformation. The high stress values are
located in the vicinity of the mounting bolts and at the fillets in the transition
between the plates.
2 In the settings window for Surface, locate the Expression setting.
3 From the Unit list, choose MPa. Note that you can present results in any unit,
independent of the model units.
4 In the Graphics window toolbar, click next to Scene Light, then choose
Ambient Occlusion. Note how the plot changes when you turn this option on
and off.
5 Click the Zoom Extents button on the Graphics toolbar.
| 43
Now, enhance the plot with load arrows. The easiest way of doing that is to copy
from the default load plot, and then adapt the arrow plot slightly.
1 In the Model Builder window, expand the Boundary Loads (solid) node under
Applied Loads (solid).
2 Right-click Boundary Load 1 and choose Copy.
3 Right-click Stress (solid) and choose Paste Arrow Surface.
4 In the Settings window for Arrow Surface, locate the Coloring and Style
section. From the Arrow base list, choose Head.
5 Select the Scale factor check box. In the associated text field, type 1E-8.
6 Click to expand the Inherit Style section. From the Plot list, choose Volume 1.
7 Clear the Arrow scale factor, Color, and Color and data range check boxes.
8 Expand the Boundary Load 1 node, then click Color Expression.
9 In the Settings window for Color Expression, locate the Coloring and Style
section. Clear the Color legend check box.
10Click the Show Grid button in the Graphics toolbar to switch off the grid.
Total Displacement
Add a plot group to display the displacement of the bracket.
1 On the Home toolbar, click Add Plot Group and choose 3D Plot
Group .
44 |
2 In the Settings window for 3D Plot Group, type Total Displacement in the
Label text field. Click anywhere on the Desktop for the setting to take effect.
3 On the Total Displacement toolbar, click Surface . Or, right-click Total
Displacement and choose Surface.
4 In the Settings window for Surface, locate the Expression section. Note that the
displacement magnitude, solid.disp, was selected as the default result.
5 From the Unit list, choose mm (or enter mm in the text field).
6 Locate the Coloring and Style section. From the Color table list, choose
SpectrumLight.
7 On the Total Displacement toolbar, click Plot . You can also click Plot on
the Settings window for Surface
Add a marker indicating the position of the maximum displacement.
1 Right-click Surface 1 and choose Marker.
2 In the Settings window for Marker, locate the Display section.
3 From the Display list, choose Max.
4 Locate the Text Format section. In the Display precision text field, type 2.
Total Displacement
1 In the Model Builder window, click Total Displacement.
2 In the Settings window for 3D Plot Group, locate the Color Legend section.
3 From the Position list, choose Bottom.
4 On the Total Displacement toolbar, click Plot .
| 45
You may have noticed that in the default plot group, the stress was displayed in a
volume plot, whereas a surface plot is used here for the displacements. For a solid
geometry in 3D, the visual difference are small. Each of these plots have their
merits, though. In a large model, a volume plot can take noticeably longer time to
generate, since the expression to be visualized is evaluated not only on the surface,
but also in the interior. If you want to plot only parts of the structure, the volume
plot is easier to work with, since you can select domains, rather than boundaries.
Also, for some expressions, an evaluation in the domain is more accurate than
when the same expression is evaluated only on the boundaries.
Principal Stress
Create a third plot to display the principal stresses.
1 On the Home toolbar, click Add Plot Group and choose 3D Plot
Group .
2 In the Settings window for 3D Plot Group, type Principal Stress in the
Label text field.
Principal Stress
1 On the Principal Stress toolbar, click More Plots and choose Principal Stress
Volume .
2 In the Settings window for Principal
Stress Volume, locate the Positioning
section. Enter values as follows and
replace the defaults:
- Find the X grid points subsection. In
the Points text field, type 30.
- Find the Y grid points subsection. In
the Points text field, type 60.
- Find the Z grid points subsection. In
the Points text field, type 15.
3 Click Plot . You will notice that only a
few arrows at the constrained bolt holes
are visible.
4 Locate the Coloring and Style section.
From the Arrow length list, choose
Logarithmic.
46 |
5 On the Principal Stress toolbar, click Plot .
The principal stresses are color coded so that red is the first principal stress, green
the second, and blue the third.
Derived Values
A final check is to compute the total reaction force along the x, y, and z directions.
Use a surface integration over the constrained boundaries.
Evaluation Group 1
1 In the Results toolbar, click Evaluation Group .
| 47
Surface Integration - Bolt 1
1 On the Evaluation Group: Reactions toolbar click Integration and choose
Surface Integration . Alternatively, in the Model Builder, right-click
Evaluation Group: Reactions and choose Integration>Surface Integration .
2 In the Settings window for Surface Integration type Bolt 1.
3 Locate the Selection section. From the Selection list, choose Bolt 1.
4 Locate the Expressions section. Click Replace Expression in the upper-right
corner of the Expressions section. From the menu, choose
Component 1>Solid Mechanics>Reactions>
Reaction force (spatial frame) - N>All expressions in this group.
This will add all three components of the reaction force vector in the Expression
column.
48 |
5 In the table in the Expressions section, fill in the Descriptions column as shown
below.
Now, the evaluation group in the Model Builder should look like this:
You can use the individual reaction forces to check the capacity of the bolts.
Verifying that the sum of all reaction forces matches the applied loads is also a
good sanity check for an analysis.
| 49
Parametric Study
In the previous section, a bracket loaded by an actuator was analyzed. This section
extends this analysis to study the effect of the actuator’s position. This is equivalent
to changing the direction of the applied load. You will use a load-angle parameter
to set up a parametric study.
COMSOL Multiphysics has two ways to perform parametric studies — a
Parametric Sweep node or an Auxiliary sweep from the Stationary Solver node. In
this example, either method can be used. An Auxiliary sweep is used here, but the
continuation solver is not used. The continuation solver uses the solution from the
previous parameter as an initial guess to calculate the current parameter value, and
is the preferred option for nonlinear problems. Using the Parametric Sweep node
is preferable for applications requiring, for example, geometric parameterization.
Either continue working on the existing model or open a saved version of the
model from the Application Libraries. Browse to the
Structural_Mechanics_Module\Tutorials folder. Double-click to open
bracket_static.mph.
1 In the Model Builder expand the Global Definitions node, then click
Parameters 1 .
2 In the Settings window for Parameters, locate the Parameters section.
3 In the table, add the following settings:
You will now create a local coordinate system that will rotate with the load
orientation.
50 |
Cylindrical System 2 (sys2)
1 On the Definitions toolbar, click Coordinate Systems and choose
Cylindrical System .
2 In the Settings window for Cylindrical System, locate the Settings section.
3 Find the Origin subsection. In the table, enter the following settings:
4 Find the Longitudinal axis subsection. In the table, enter the following settings:
X Y Z
1 0 0
5 Find the Direction of axis ϕ=0 subsection. In the table, enter the following
settings:
X Y Z
0 sin(theta0) cos(theta0)
The orientation of the coordinate system now depends on the parameter theta0.
| 51
Definitions - Functions
Analytic 1 (load)
1 In the Model Builder under Component 1 (comp1)>Definitions click
Analytic 1 (load).
2 In the Settings window for Analytic, locate the Definition section. In the
Expression text field, replace the previous expression by F*cos(p).
3 In the Arguments text field, type F, p.
4 Locate the Units section. In the table (which just shrunk to two rows to match
the current arguments), replace the previous contents on the second row with
rad.
Solid Mechanics
Boundary Load 1
1 In the Model Builder expand the Solid Mechanics (solid) node, then click
Boundary Load 1.
2 Locate the Coordinate System Selection section. From the Coordinate system
list, choose Cylindrical System 2 (sys2).
52 |
Locate the Force section. Specify the FA vector as
load(P0*sign(X),sys2.phi)*(sign(X)*(abs(sys2.phi)-pi/2)<0) r
0 phi
0 a
Parametric studies can be set up from scratch or, as in this example, added to an
existing study. This model computes the stress in the bracket for different load
orientations. Start by selecting the sweep parameter, in this case the load direction
angle. Then run the analysis.
Step 1: Stationary
1 In the Model Builder expand the Study 1 node and click Step 1: Stationary.
2 In the Settings window for Stationary, click to expand the Study Extensions
section. Select the Auxiliary sweep check box.
3 Under the table, click Add .
4 Choose theta0 (Load direction angle) from the list. In the table, enter
the additional settings:
| 53
5 From the Run continuation for list, choose No parameter, since you are
analyzing a set of independent loads.
Results
The default plot shows the solution for the last parameter value (160[deg]). You
can easily change the parameter value to compare solutions for different load cases.
Stress (solid)
1 In the Settings window for 3D Plot Group, click the Plot First button to
plot the first solution at load angle 0.
54 |
2 Locate the Data section. From the Parameter value (theta0 (deg)) list, choose
90. Click Plot .
| 55
You will now create a plot showing how the reaction forces vary with the load
angle.
1D Plot Group 5
1 In the Model Builder window, under Results click 1D Plot Group 5.
2 In the Settings window for 1D Plot Group, type Reaction Force, X-component
in the Label text field.
3 Locate the Plot Settings section. Select the y-axis label check box.
4 In the associated text field, type Reaction Force (N).
56 |
Table Graph 1
1 In the Model Builder window click
Table Graph 1.
2 In the Settings window for Table
Graph, locate the Data section.
3 From the Plot columns list, choose
Manual.
4 In the Columns list, choose
Bolt 1, X (N), Bolt 2, X (N),
Bolt 3, X (N), and Bolt 4, X (N).
5 Locate the Coloring and Style
section. In the Width text field,
type 2.
6 Find the Line markers subsection.
From the Marker list, choose Cycle.
7 Click to expand the Legends section.
Select the Show legends check box.
8 In the Reaction Force, X-component
toolbar, click Plot to show the
variation of the four X-direction
reaction forces as function of the load
angle parameter.
| 57
The graph should look like this:
You will now create similar plots for the reaction forces in the other two directions.
When you already have a plot which is similar to the one you are going to create,
it is usually more efficient to duplicate an existing plot, and then change its
properties, than to start from new plot.
Table Graph 1
1 Under Reaction Force, Y-component click Table Graph 1.
2 In the Settings window for Table Graph, locate the Data section.
3 In the Columns list, choose Bolt 1, Y (N), Bolt 2, Y (N), Bolt 3, Y (N), and Bolt
4, Y (N).
58 |
4 In the Reaction Force, Y-component toolbar, click Plot .
Repeat the steps above to create a similar graph also of the Z-direction reaction
forces.
| 59
Modeling Techniques for Structural Mechanics
The next set of tutorials build on the previous examples to demonstrate the
following structural mechanics modeling techniques: How can I model thermal
stress? How can I add an initial strain to the simulation? To get started, go to
Including Initial Strain or Modeling Thermal Expansion.
60 |
Including Initial Strain
Initial stresses and strains can be specified in a subnode to a material model. You
can define a stress/strain distribution with constant values or as an expression
which can, for example, be space or time dependent. The initial stresses and strains
can also come from another physics interface in the same study, or even be results
from another study.
In this example, you add a pin geometry to the bracket assembly. Then you specify
an initial strain to simulate that the pin is slightly too short in the axial direction,
and then you investigate its effect on the assembly.
Definitions - Parameters
Parameters defining the original length of the pin, L0, and the current length, L,
are used to calculate the initial strain. The prestrain is the only load acting on the
structure, which is fixed at the bolt holes.
Parameters
1 Browse to the Structural_Mechanics_Module\Tutorials folder and
double-click to open bracket_basic.mph.
2 On the Home toolbar click Parameters and select Parameters 1 .
In the Parameters table, define a strain value that corresponds to a reduction of
the pin length from 215 mm to 214 mm.
3 In the Settings window for Parameters, locate the Parameters section.
4 In the table, enter the following settings:
G e o me t r y
Next, the pin geometry is added to the bracket assembly. This is done by
importing it into the existing geometry.
| 61
Note: The location of the files used in this exercise varies based on your
installation. For example, if the installation is on your hard drive, the file path
might be similar to C:\Program
Files\COMSO6056\Multiphysics\applications\Structural_Mechanics_
Module\Tutorials.
Import
1 On the Home toolbar click Import . An Import 2 node is added to the
Model Builder.
2 In the Settings window for Import, locate the Import section. From the Source
list, choose COMSOL Multiphysics file.
3 Click Browse . and go to the model folder
Structural_Mechanics_Module\Tutorials and double-click the file
bracket_pin.mphbin.
4 Below the filename, click Import .
62 |
4 Click the Build Selected button .
The effect of this operation is that the bracket and pin are now independent
objects. The adjacent boundaries are not shared.
S o l i d M e c h a n i c s ( s o l id )
As an alternative, you can right-click on the Linear Elastic Material 1 node, and
select Initial Stress and Strain from the context menu.
2 In the Settings window for Initial Stress and Strain, locate the Domain Selection
section. From the Selection list, choose Manual.
| 63
3 To the right of the Selection list, click
the Clear Selection button . Then
select only Domain 2 (the pin).
The prestrain direction is the axial
direction of the bolt, which coincides with
the global x-direction.
1 On the Home toolbar click Add Study to open the Add Study window. Go
to the Add Study window.
2 Find the Studies subsection. In the Select Study tree under General Studies click
Stationary .
3 In the Add study window, click Add Study .
4 On the Home toolbar, click Add Study again to close the Add Study window.
5 On the Home toolbar, click Compute .
64 |
The default plot shows the von Mises stress in the bracket.
The results show how the pin compresses the bracket arms, and that the largest
stresses are found in the region where the bracket arms are joined to the
supporting plates.
Results
You can also plot a principal strain to visualize the resulting strain in the structure.
As the pin is stiff in comparison to the bracket, the total strain in the pin is almost
the same as the initial strain given as input.
3D Plot Group 2
1 On the Home toolbar, click Add Plot Group and choose 3D Plot
Group .
2 In the Settings window for 3D Plot Group, type Third Principal Strain in
the Label text field (replace the default).
| 65
2 In the Settings window for Surface, click Replace Expression in the
upper-right corner of the Expression section. From the menu, choose
Component 1>Solid Mechanics>Strain>Principal strains>solid.ep3 - Third
principal strain.
3 Locate the Coloring and Style section. From the Scale list, choose Linear
symmetric.
4 In the Graphics window toolbar, click next to Clipping, then choose
Add Clip Plane.
5 In the Graphics window toolbar, click next to Clipping Active, then
deselect Show Gizmos.
6 Click the Zoom Extents button in the Graphics toolbar.
66 |
Modeling Thermal Expansion
In this example, a temperature field is applied to the bracket and pin assembly and
the thermal stresses are calculated.
COMSOL Multiphysics contains physics interfaces for structural analysis as well as
thermal analysis. You can define the analyses separately and then simulate the
thermal-structure interaction by coupling them using the appropriate variables
and terms in the structural analysis equations, or you can add a predefined
multiphysics interface at the beginning of the setup. In principle, you have three
different options:
• Start the analysis by adding a Thermal Stress, Solid multiphysics interface.
This will add a Solid Mechanics interface, a Heat Transfer in Solids interface,
and a Thermal Expansion multiphysics coupling.
• Add a Solid Mechanics interface, a Heat Transfer in Solids interface, and a
Thermal Expansion multiphysics coupling manually.
• Add a Solid Mechanics interface and a Heat Transfer in Solids interface.
Under the Linear Elastic Material, add a Thermal Expansion subnode, and
make sure that it picks up the computed temperature.
These different types of approaches are relevant for many other multiphysics
simulations too.
If you know from the beginning of your simulation project that you are going to
perform a coupled analysis, adding the multiphysics interface is the recommended
approach. Not only is it more convenient, but doing so will also in general change
some settings in the involved physics interfaces to better suit the combined
analysis. An example of this is that when you add the Thermal Stress, Solid
multiphysics interface, the Solid Mechanics interface will assume that a
time-dependent analysis is quasistatic from the structural point of view, so that
inertial terms are ignored. This, in turn, will affect the time-stepping algorithm
chosen in a time-dependent solver.
| 67
3 In the Select Physics tree under Structural Mechanics, expand the folder
Thermal Structure Interaction , and click Thermal Stress, Solid
4 Click Add, then click Study .
5 In the Select Study tree under General Studies, click Stationary .
6 Click Done .
7 On the Home toolbar click Import .
8 In the Settings window for Import locate the Import section.
9 From the Source list, choose COMSOL Multiphysics file.
10Click Browse .
11Browse to the folder Structural_Mechanics_Module\Tutorials under the
COMSOL installation directory and double-click the file bracket.mphbin.
12Below the filename, click Import .
Thermal Stress
When you add a Thermal Stress, Solid multiphysics interface, a Solid Mechanics
interface, a Heat Transfer in Solids interface, and a Multiphysics node are added
to the Model Builder.
68 |
Under the Multiphysics node there is one subnode: Thermal Expansion. When
you click this node, you see that the coupling is set up automatically after adding
the multiphysics interface.
| 69
usually should be shared between different physics interfaces. To see or modify its
value, click the Go to Source button . This will move you to the Default
Model Inputs node under Global Definitions in the Model Builder. The default
value is room temperature, 293.15 K.
70 |
4 Choose Diagonal from the list
below the text field. The text field
changes to a matrix input.
5 Enter 600[kN/mm] in the first
two diagonal elements of the kA
matrix as shown in the figure. This
provides a stiffness in the global X
and Y directions.
| 71
to the boundary conditions and the non-uniform temperature distribution,
thermal stresses develop in the structure.
The second default plot group, Temperature (ht), displays the temperature
distribution. The temperature is highest where the inward heat flux is prescribed,
and decreases as heat is removed by convection from all other boundaries.
72 |
As a final step, pick one of the plots to use as a model thumbnail.
1 In the Model Builder under Results click any of the plot groups.
2 Click the Root node (the first node in the model tree). On the Settings window
for Root under Thumbnail, click Set from Graphics Window.
Adjust the image in the Graphics window using the toolbar buttons until the
image is one that is suitable to your purposes.
| 73
periodic excitation (bracket_eigenfrequency, bracket_transient,
bracket_frequency, bracket_general_periodic)
• Perform a linearized buckling analysis (bracket_linear_buckling)
• Perform a contact analysis (bracket_contact)
• Perform a random vibration analysis (bracket_random_vibration)
74 |