Engineering Solutions

Shape panel

Shape panel

Previous topic Next topic Expand/collapse all hidden text  

Shape panel

Previous topic Next topic JavaScript is required for expanding text JavaScript is required for the print function  

Use the Shape panel to create shape design variables and associate them to a shape for shape optimization.  Shapes must be defined previously using the Perturbations panel or the HyperMorph module.

Note:When creating shape design variables for the Madymo-XML format, the original XML file must be imported and exported from Engineering Solutions. This is necessary, as Engineering Solutions cannot handle the duplicate node IDs, which the Madymo-XML format allows. If this is not done, the shape design variables may refer to the wrong nodes.

The Shape panel can also be used to export shape design variables and shapes in different formats for use in optimization software other than OptiStruct. The following formats are available:

analysis code

sub-code

Remarks

OptiStruct, Nastran, Genesis

None, long, force, moment, temperature

For shape optimization and variable loading

HyperStudy, Templex

OptiStruct, HyperForm, Nastran, Dynakey, Dynaseq, RADIOSS, PAM CRASH 2G, Marc, Ansys, Abaqus, Abaqus2D, Madymo, Madymo-XML, Fluent, Permas, Ideas

For shape parameterization with HyperStudy, Templex, and
HyperOpt/Generic

HyperOpt

OptiStruct, Abaqus, Nastran

For shape optimization with HyperOpt/OptiStruct, HyperOpt/Abaqus, and HyperOpt/Nastran,

These options are set on the export subpanel.

 

Subpanels and Inputs


The Shape panel contains the following subpanels and command buttons:

hmtoggle_arrow1Desvar

Panel Inputs

Input

Action

create / update

These radio buttons determine the mode of the subpanel (creating desvars or updating existing ones), which in turn affects the inputs that display.

desvar =

Type in a name for the new design variable, or click the button to select an existing one.  This field only displays for a single desvar.

initial value =

The initial value for the design variable.

lower bound =

The upper boundary for the design variable.

upper bound =

The lower boundary for the design variable.

move limit default / move limit =

Use this toggle to choose how the movement limit is determined.  If you select move limit =, you must specify a limit value.

no ddval / ddval =

Choose whether or not to use a discrete design value.

If you choose ddvale =, click the button to pick from a list of defined ddvals.

shape =

This button only displays when creating or updating a single desvar.  Click the button to choose the predefined shape that you wish to apply.

single desvar /

multiple desvars /

non-linear desvars

This switch alters how you will select shapes, whether or not you will select an existing desvar or specify its name, and in the case of non-linear design variables, how the variable is applied (via the by constraint / by system / by mid-shape switch that displays for nonlinear desvars.)

shapes

When creating multiple desvars, this entity selector allows you to pick the desired shapes, either by picking from the model or using the extended entity selection menu.

by constraint /

by system /

by mid-shape

When creating nonlinear design variables, use this switch to choose either by constraint, by system, or by mid-shape.

Because shapes are saved as linear perturbations in HyperMesh, additional information is required to determine the intended non-linear path of each node when a shape is applied at values other than zero and one.  Some nodes move along constraints while others travel about the z-axis of a cylindrical coordinate system.  You will select the non-linear shape creation method according to how you intend the nodes to move.  The available methods are described as follows:

This option assumes that constraints, such as those which force nodes to move along or are bounded by a line, plane, surface, mesh, or equation, make the shape non-linear.  When you click create HyperMesh will apply each selected shape a number times between the lower and upper bounds, applying the constraints each time.  From these applications, the non-linear path for each node will be calculated for each shape and up to four new shapes and design variables (per shape) will be generated which, through equations which link them together, will describe the non-linear motion of the shapes as they are affected by the constraints.  Note that for bounded style constraints, where nodes are allowed to move up to but not past a feature such as a surface, you should create any shape which is affected by such constraints with the limiting constraints made inactive.  In other words, the nodes should pass through the constraint when the shape is applied.  Then, before creating the non-linear shapes, make the limiting constraints active again.  This will ensure that the path of the nodes will be non-linear, moving up to the constraint and then stopping, rather than linearly moving up to the constrained position.  You can set which constraints are active and inactive in the HyperMorph > morph options panel.  Due to the limitations of simulating bounded constraints via equations, the constrained nodes may stop slightly short or pass slightly beyond the constraints for some values of application during optimization.

DesvarForNonLinearShapes_1

In this figure, two meshes are constrained to a cylindrical surface.  The mesh on the left slides along the surface while the mesh on the right is bounded by the surface.  Both shapes need to be converted into nonlinear design variables to perform during optimization as they do during morphing.  Note that the shape on the right will move the mesh through the surface if the bounding constraint is inactive.  This is how shapes to be converted to nonlinear shapes should be defined when bounding constraints are used.  Note that the bounding constraint must be made active when creating non-linear design variables.

This option is intended for shapes which were created by rotating the mesh using the angle or arc angle options in the HyperMorph->morph->alter dimensions panel, shapes which were created with respect to a cylindrical coordinate system, or any shapes whose nodes are intended to move in the r-theta-z directions rather than the x-y-z directions.  To use this option you must select a local coordinate system about which the selected shapes rotate.  Engineering Solutions will then determine the non-linear paths of the nodes for each shape as they travel around the local coordinate system and create up to four new shapes for each shape which, through equations which link them together, describe the non-linear paths of the nodes.

DesvarForNonLinearShapes_2

In the top figure, the arc angle of the mesh is changed and in the bottom figure, the radius of the mesh is changed.  Both shapes act with respect to the cylindrical coordinate system, the first by moving nodes in the theta direction and the second by moving nodes in the radial direction.  These shapes should be converted to non-linear design variables using the by system option so that the mesh maintains its true curvature during optimization.

This option allows you to create a non-linear shape described by two shapes.  One shape represents the non-linear shape when it is applied with a multiplier of one.  The other shape represents the non-linear shape when it is applied with a multiplier of one-half.  HyperMorph will interpolate the non-linear paths of the nodes as they travel from the undeformed position to the mid-shape position to the full shape position.  HyperMorph will then create three shapes which, through equations which link them together, describe the non-linear paths of the nodes.

DesvarForNonLinearShapes_4

In this figure, the non-linear path (yellow) for a node is calculated as starting at the undeformed position, passing through the half-shape position (blue), and finishing at the full-shape position (magenta).

For all three options, <%HYPERMESH%> creates all the necessary design variables, equations, and dlink2 cards to support optimization.  You do not need to create design variables for your original shapes.  Also, if you are converting two or more shapes into non-linear shapes which control the same nodes, it is likely that when more than one shape is applied at the same time that the nodes will violate any given constraints or movement with respect to a local  coordinate system.  For this reason, HyperMorph creates one more shape for each pair of overlapping shapes which, when linked to the overlapping shapes through an equation, compensate for the interaction of the shapes.  In order to activate this feature, you must create your non-linear design variables for all the desired shapes at the same time.  Also, since linear shapes may conflict with non-linear shapes when they are both applied, such as when shapes which move nodes radially are applied at the same time as shapes which move nodes about an axis, you should create design variables for all your shapes, linear and non-linear, at the same time.

DesvarForNonLinearShapes_5

In the above example, an arc angle shape change is applied simultaneously with a radius shape change.  In the left figure the two shapes are applied with no compensation.  Note how the sides of the mesh no longer line up with the axis of the local coordinate system.  In the right figure the compensation shape has been applied.  Note how the sides of the mesh now line up with the center axis of the local coordinate system.  If both shapes are converted into non-linear design variables at the same time, the compensation design variable will be generated and integrated into the optimization automatically.

For each non-linear shape up to four shapes will be created. These will be named o#a, o#b, o#c, and o#d where # is the ID of the original shape. The shape named o#a is linked to an independent design variable while the other shapes are linked to dependent design variables. If you wish to apply the dependent shapes by amounts calculated using the deqatn cards for a given value of the independent shape go to HyperMorph->shapes->apply shapes and select only the o#a shape to be applied. When you click apply you will be asked if you want to “apply shapes linked though desvars and dlinks”, click “yes” and HyperMorph will apply o#b, o#c, and o#d automatically by the amounts necessary to make the shapes function as they would during an optimization. This works for both the by factor and interactive options, allowing you to visualize how the non-linear variables will perform.  Also, you can apply more than one o#a shape as well as any overlapping linear shapes and HyperMorph will apply the compensation shapes between the selected independent shapes in addition to the dependent shapes for the independent shapes. The compensation shapes will be named r#r# where the #’s are the IDs of the two overlapping shapes.  To apply linked shapes in HM batch mode use the command *morphshapelinkedpush to assign values for the independent shapes and *morphshapelinkedapply to apply them

When applied during optimization, the non-linear shapes will be close to, but probably not exactly aligned with, the intended node paths.  Although the generated shapes and equations have been optimized to minimize the amount of error between the intended node paths and the actual node paths it is not possible to precisely mimic every non-linear shape using a combination of linear ones.  However, this feature should allow sufficient fidelity for most optimization applications.

Shapes to be converted into non-linear shapes perform best when they have either a lower bound or upper bound of 0.0, but good fidelity can be achieved for shapes which have a negative lower bound and positive upper bound. However, non-linear shapes which sweep out an arc of more than 90 degrees may not give good fidelity for intermediate values.

designvars

This selector only displays when in update mode for multiple desvars.  Use it to select the design variables that you wish to alter.

 

hmtoggle_arrow1Export

Panel Inputs

Input

Action

file:

Click in this text field and type in the desired file name for the exported file.

analysis code

Pick the desired export analysis code (see the chart above).

sub-code

Pick the desired export analysis sub-code (see the chart above).

 

hmtoggle_arrow1Command Buttons

The following action buttons appear throughout the subpanels:

Button

Action

create

Create the new shape design variable.

reject

Undo the most recent shape design variable creation.

update

Update an existing shape variable to use the current input settings.

animate

Open the Deformed panel to post-process the results.

review

Click this button to display a list of existing shape design variables.  Select one to display its settings in the input fields.

undo morphing

 

export as

Opens a standard file browser dialog, so that you can navigate to and select a specific directory and/or filename.

return

Exits the panel.

 

See Also:

HyperMorph module and Perturbations panel for information on how to define shapes.