parameterizing a geometry using the comsol moving mesh feature

47
Parameterizing a Geometry using the COMSOL Moving Mesh Feature

Upload: ericka-ovitt

Post on 14-Dec-2015

254 views

Category:

Documents


5 download

TRANSCRIPT

Page 1: Parameterizing a Geometry using the COMSOL Moving Mesh Feature

Parameterizing a Geometry using the COMSOL Moving Mesh Feature

Page 2: Parameterizing a Geometry using the COMSOL Moving Mesh Feature

This example shows how to parameterize a CAD model by deforming the corresponding finite element mesh.

The method enables geometry parameterization of non-parameterized CAD models such as:

• models created by the built-in COMSOL CAD tools• imported neutral CAD files such as .igs or .step• imported .x_t, .sat, or other vendor-specific formats • imported finite element mesh files

Page 3: Parameterizing a Geometry using the COMSOL Moving Mesh Feature

The geometry is an I-beam with 7 slotted holes.

Page 4: Parameterizing a Geometry using the COMSOL Moving Mesh Feature

We will see how to simultaneously change the dimensions of the slots and …

Page 5: Parameterizing a Geometry using the COMSOL Moving Mesh Feature

… the width of the I-beam by using a single geometry parameter, here called D1 (multiple parameters may also be used).

Page 6: Parameterizing a Geometry using the COMSOL Moving Mesh Feature

This is the beam at one extreme of the geometry parameter: D1=0 mm.

Page 7: Parameterizing a Geometry using the COMSOL Moving Mesh Feature

This is the beam at the other extreme of the geometry parameter: D1=5 mm.

Page 8: Parameterizing a Geometry using the COMSOL Moving Mesh Feature

These are 6 snapshots of the von-Mises effective stress together with the finite element mesh.The color scale is normalized with respect to the stress level of the maximum stress of all parameter values (which is at D1 = 5 mm).

Page 9: Parameterizing a Geometry using the COMSOL Moving Mesh Feature

The effective stress at D1=0 mm

Page 10: Parameterizing a Geometry using the COMSOL Moving Mesh Feature

The effective stress at D1=1 mm

Page 11: Parameterizing a Geometry using the COMSOL Moving Mesh Feature

The effective stress at D1=2 mm

Page 12: Parameterizing a Geometry using the COMSOL Moving Mesh Feature

The effective stress at D1=3 mm

Page 13: Parameterizing a Geometry using the COMSOL Moving Mesh Feature

The effective stress at D1=4 mm

Page 14: Parameterizing a Geometry using the COMSOL Moving Mesh Feature

The effective stress at D1=5 mm

Page 15: Parameterizing a Geometry using the COMSOL Moving Mesh Feature

The material is the default steel of the COMSOL Multiphysics Structural Mechanics Module.

Page 16: Parameterizing a Geometry using the COMSOL Moving Mesh Feature

The highlighted (red) boundaries are unloaded and unconstrained (free).

Page 17: Parameterizing a Geometry using the COMSOL Moving Mesh Feature

This boundary is clamped.

Page 18: Parameterizing a Geometry using the COMSOL Moving Mesh Feature

A roller boundary condition is used close to the clamped end and at the free end of the beam (highlighted surfaces). The roller boundary condition is of a flexible type – a stiff-spring-like force is acting on the beam in the positive y-direction.This approximates the behavior of a flexible roller-type support.

Page 19: Parameterizing a Geometry using the COMSOL Moving Mesh Feature

The highlighted surface has a non-uniform distributed load in the y-direction given by: -p0*(a-z)^2, where p0 and a are constants and z is the coordinate in the direction along the length of the beam. This corresponds to a load with quadratic growth starting from zero (at the left of the highlighted surface).

Page 20: Parameterizing a Geometry using the COMSOL Moving Mesh Feature

The parameterization is handled by a so called Moving Mesh application mode which is used to create a deformable coordinate system.

This is how the geometry is being parameterized – by defining how this coordinate system should deform. The deformable coordinate system is called a Frame.

Page 21: Parameterizing a Geometry using the COMSOL Moving Mesh Feature

The Moving Mesh application mode creates a smooth deformation of the mesh on the boundaries and throughout the volume of the solid. The smoothing technique used is called Arbitrary Lagrangian-Eulerian or ALE. The Moving Mesh coordinate frame is also called an ALE-frame.

Page 22: Parameterizing a Geometry using the COMSOL Moving Mesh Feature

The Model Navigator shows that the coordinate system of the Solid, Stress-Strain application mode is defined by the ALE-frame.

The Moving Mesh (ALE) application mode handles the propagation of the mesh deformation from the boundaries and throughout the computational volume.

Page 23: Parameterizing a Geometry using the COMSOL Moving Mesh Feature

This example shows three of the most basic types of boundary conditions that you can use for parameterizing a geometry:

• Fixed displacement• Parameterized normal (perpendicular) displacement• Free tangential displacement

Page 24: Parameterizing a Geometry using the COMSOL Moving Mesh Feature

These are the parameterized boundaries. They are displaced a distance given by the parameter D1 in the normal (perpendicular) direction to the surfaces. To allow for this – the mesh elements of these boundaries are allowed to stretch freely in the direction tangential to the surface.

Page 25: Parameterizing a Geometry using the COMSOL Moving Mesh Feature

These boundaries are allowed to deform freely in the tangential direction. At the same time, they are constrained in the direction normal to the surfaces.This type of boundary condition is used at surfaces that are adjacent to the parameterized boundaries so they can “inherit” the geometry change by allowing for free deformations in the tangential direction.

Any dimensions perpendicular to these surfaces cannot change.

Page 26: Parameterizing a Geometry using the COMSOL Moving Mesh Feature

These boundaries are fixed. They cannot be deformed in any direction, so any dimension defined by these surfaces cannot change.This type of boundary conditions are used furthest away from the parameterized boundaries.

Page 27: Parameterizing a Geometry using the COMSOL Moving Mesh Feature

The Moving Mesh (ALE) application mode used to create the smooth deformation defines its own equation system (the solution of which gives the smooth deformation) that needs to be solved side-by-side of the stress-strain equations. In order to minimize memory requirement, the parametric segregated solver is used. The D1 parameters solved for range from 0 to 5 mm ( 0.005 m in SI units) in steps of 0.2 mm.

Page 28: Parameterizing a Geometry using the COMSOL Moving Mesh Feature

This visualization shows the von Mises effective stress at D1 = 0.005 m (5 mm)

Page 29: Parameterizing a Geometry using the COMSOL Moving Mesh Feature

This visualization shows an exaggerated deformation plot for the case D1 = 5 mm.

Page 30: Parameterizing a Geometry using the COMSOL Moving Mesh Feature

The next slide is an animation of the parametric sweep. Set the presentation in Full Slide-Show Mode to watch it.

Page 31: Parameterizing a Geometry using the COMSOL Moving Mesh Feature
Page 32: Parameterizing a Geometry using the COMSOL Moving Mesh Feature

Further Model Implementation Details

The next few slides are useful if you wish to reproduce this example.

Page 33: Parameterizing a Geometry using the COMSOL Moving Mesh Feature

This particular example is created by first making a stress-strain analysis model.The geometry was created using COMSOL’s built-in CAD tools with two work planes. The work planes are available as Geom2 and Geom3.

Page 34: Parameterizing a Geometry using the COMSOL Moving Mesh Feature

When the initial stress-strain analysis has been made, a Moving Mesh application mode is added. This places the Stress-Strain and the Moving Mesh application modes in different frames. For the geometry parameterization we wish to have them both in the same frame.

Page 35: Parameterizing a Geometry using the COMSOL Moving Mesh Feature

To change this, select the Solid, Stress-Strain application mode and change the Frame to Frame (ale).

Page 36: Parameterizing a Geometry using the COMSOL Moving Mesh Feature

Now, the Solid, Stress-Strain application mode is defined by the Moving Mesh (ALE) frame.

Page 37: Parameterizing a Geometry using the COMSOL Moving Mesh Feature

The mesh of this example is created with the advancing front method on the boundaries. (This is not the default.)

Page 38: Parameterizing a Geometry using the COMSOL Moving Mesh Feature

These boundaries has a target Maximum element size of 0.004.

Page 39: Parameterizing a Geometry using the COMSOL Moving Mesh Feature

These boundaries has a target Maximum element size of 0.01.

Page 40: Parameterizing a Geometry using the COMSOL Moving Mesh Feature

The Global Predefined mesh size is set to Normal.

Page 41: Parameterizing a Geometry using the COMSOL Moving Mesh Feature

To get a demonstration model that is quick to run and with low memory requirements, Linear Elements are used for both application modes. Note: for reliable stress values, quadratic elements need to be used.

Page 42: Parameterizing a Geometry using the COMSOL Moving Mesh Feature

To minimize computations, the so called Weak constraints are turned off.These are important for numerical accuracy when the ALE frame is physics driven and defined by the deformations given by a Solid, Stress-Strain application mode – such as for Fluid-Structure Interaction (FSI). However, here we are rather imposing a known deformation and Weak constraints are not needed.

Page 43: Parameterizing a Geometry using the COMSOL Moving Mesh Feature

The Weak constraints are on by default and they define additional variables solved for called lagrange multipliers: lm4, lm5, lm6 (or similar). Remove these from the ALE Segregated group so that the variables x y z are the only ones solved for.

Page 44: Parameterizing a Geometry using the COMSOL Moving Mesh Feature

For the two segregated groups, the PARDISO solver is used.

Page 45: Parameterizing a Geometry using the COMSOL Moving Mesh Feature

Depending on in what order you defined the problem, you may need to first select Update Model before solving. The reason is to get well-defined initial values for the ALE frame.

Page 46: Parameterizing a Geometry using the COMSOL Moving Mesh Feature

The Parameter values used for the visualization are controlled from the Plot Parameters dialog box, the General page.

Page 47: Parameterizing a Geometry using the COMSOL Moving Mesh Feature

To visualize the parameterized geometry solution, you need to select the Frame (ale) as your visualization frame. (Otherwise you will see the stress values mapped back into the CAD model with the original dimensions - here D1=0.)