Customize Legend Mechanical

12
© 2012 ANSYS, Inc. February 27, 2013 1 Customizing the legend in Mechanical José Ramón Rodríguez ANSYS Iberia

Transcript of Customize Legend Mechanical

Page 1: Customize Legend Mechanical

© 2012 ANSYS, Inc. February 27, 2013 1

Customizing the legend in Mechanical

José Ramón Rodríguez

ANSYS Iberia

Page 2: Customize Legend Mechanical

© 2012 ANSYS, Inc. February 27, 2013 2

• In structural analysis there are several situations that can cause singularities.

• These “artificial” hot spots can adversely affect both error plots and convergence.

• Also the results plot can be confusing because of high non real values.

Introduction

Page 3: Customize Legend Mechanical

© 2012 ANSYS, Inc. February 27, 2013 3

How can we avoid the singularities?

1. Remove the singularity (e.g. more realistic loads and/or geometry).

2. Scope the results to those zones far away from the singularities.

3. Customize the legend.

Page 4: Customize Legend Mechanical

© 2012 ANSYS, Inc. February 27, 2013 4

How can we avoid the singularities?

1. Remove the singularity (e.g. more realistic loads and/or geometry).

2. Scope the results to those zones far away from the singularities.

3. Customize the legend.

Page 5: Customize Legend Mechanical

© 2012 ANSYS, Inc. February 27, 2013 5

Right Clicking on the legend in the graphics area allows the user to modify the legend display.

Continued . . .

Customizing the legend

Edit Value

Export/Import/Switch to a saved legend setting

Horizontal/Vertical legend

Display Date/Time

Display Max/Min label on the legend Switch to Logarithmic Scale

Switch to Scientific Notation Number of Significant Digits

Increase/Decrease Contour Bands

Page 6: Customize Legend Mechanical

© 2012 ANSYS, Inc. February 27, 2013 6

Click and drag contour dividers (or type in values) to specify contour

ranges.

The legend bounds can be manipulated to show result distributions more clearly for contour plots.

Max/Min values are unchanged

Page 7: Customize Legend Mechanical

© 2012 ANSYS, Inc. February 27, 2013 7

Independent Bands allow neutral colors to represent regions of the model above or below the specified legend limits.

Legend Contour Range

Page 8: Customize Legend Mechanical

© 2012 ANSYS, Inc. February 27, 2013 8

What if I want to change the max and min legend values?

Page 9: Customize Legend Mechanical

© 2012 ANSYS, Inc. February 27, 2013 9

It is possible to customize more deeply the legend by changing its .xml associated file.

The procedure to be followed is:

2. Give a name to your customized legend. Click Ok

1. Right click on the legend. Select Named Legends and then New

3. Right click again on the legend. Select Named Legends and then Manage

Page 10: Customize Legend Mechanical

© 2012 ANSYS, Inc. February 27, 2013 10

5. Open the .xml saved file. This file contains the whole information about the legend settings.

For changing the maximum bound go to the last <band> command and modify the next keys:

• value: set here the max value to be plotted

• valueAuto: change it to 0

For example:

4. Select the desired Legend and click on Export. Save the .xml file in a known location

Be careful with the units!!

Page 11: Customize Legend Mechanical

© 2012 ANSYS, Inc. February 27, 2013 11

6. Right click again on the legend. Select Named Legends and then Manage

7. Click on Import. Select the previous .xml file and click Ok.

8. Right click again on the legend. Select Named Legends and then Manage. Select the desired legend.

Page 12: Customize Legend Mechanical

© 2012 ANSYS, Inc. February 27, 2013 12

Comparison

With top independent bands in the legend (see slide 7)

With a customized legend