Académique Documents
Professionnel Documents
Culture Documents
Tutorials
altairhyperworks.com
Altair HyperGraph 2D 2019 Tutorials p.1
Contents
Intellectual Property Rights Notice ........................................................................................ 2
Technical Support .............................................................................................................................. 6
Accessing the Model Files .....................................................................................................8
Plotting Basics ...........................................................................................................................9
HG-1000: Plotting XY Data .................................................................................................................. 10
HG-1010: Changing Curve Display Attributes ..................................................................................... 22
HG-1011: Perform Math on Curves Using the Plot Browser .............................................................. 28
HG-1020: Modifying Plots ................................................................................................................... 37
HG-1021: Modifying Plots with the Plot Browser ............................................................................... 43
HG-1030: Referencing and Filtering Curves ........................................................................................ 61
HG-1040: AVD Diagram Using Unit Scaling and Plot Browser ............................................................ 68
HG-1050: Mouse Over - Inspect Mode ............................................................................................... 76
Advanced Curve Manipulation .......................................................................................... 90
HG-2000: Evaluating Curve Data......................................................................................................... 91
HG-2010: Creating a Plot Macro ......................................................................................................... 95
More Plotting .......................................................................................................................... 102
HG-3000: Working with Bar Charts ................................................................................................... 103
HG-3010: Working with Complex Plots ............................................................................................ 107
HG-3020: Working with Polar Plots .................................................................................................. 112
Templates ................................................................................................................................ 117
HG-4000: Creating an Export Template ............................................................................................ 118
Customization ........................................................................................................................ 124
HG-5010: Customizing the Environment .......................................................................................... 125
Note: Pre-release versions of Altair software are provided ‘as is’, without warranty of any
kind. Usage of pre-release versions is strictly limited to non-production purposes.
Note:
PBS Desktop™ ©2008-2012 is now part of Altair Access, specifically Altair Access
desktop, which also has Altair Access web and Altair Access mobile
Not for use or disclosure outside of Altair and its licensed clients. Information
contained in Altair software shall not be decompiled, disassembled, “unlocked”,
reverse translated, reverse engineered, or publicly displayed or publicly
performed in any manner. Usage of the software is only as explicitly permitted
in the end user software license agreement. Copyright notice does not imply
publication.
Altair Engineering Inc. and its subsidiaries and affiliates reserve the right to
embed software security mechanisms in the Software for the purpose of detecting
the installation and/or use of illegal copies of the Software. The Software may
collect and transmit non-proprietary data about those illegal copies. Data
collected will not include any customer data created by or used in connection with
the Software
and will not be provided to any third party, except as may be required by law or
legal process or to enforce our rights with respect to the use of any illegal copies
of the Software. By using the Software, each user consents to such detection and
collection of data, as well as its transmission and use if an illegal copy of the
Software is detected. No steps may be taken to avoid or detect the purpose of
any such security mechanisms.
Technical Support
Altair provides comprehensive software support via web FAQs, tutorials, training classes,
telephone and e-mail.
Israel israelsupport@altair.com
For questions or comments about this help system, send an email to connect@altair.com.
3. Select the required file package and download it onto your system.
Note: The files may require unzipping before proceeding with the tutorials. When
extracting zipped files, preserve any directory structure included in the file package.
Plotting Basics
Tools
The Build Plots panel can be accessed one of the following ways:
The Advanced Options feature on the Build Plots panel allows you to apply many options
at once to the session during plotting. Curves created in this manner are added to the
session in a new layer.
From the Build Plots panel, click Adv. Options to display the Advance Plot Options
dialog.
The Multiple File Plotting dialog allows you to select multiple files with intersecting data
(for example, multiple runs of a particular test) and plot the data from all files
simultaneously in the current HyperGraph session.
To access the Multiple File Plotting dialog, click the Multiple File Plotting button, , on
the Build Plots panel.
4. Click the Open File button, , and select the demo.dat file, located in the plotting
folder.
3. Under Y Request:, click the expansion button, , to easily view the Y Request list.
4. Under Y Request:, press and hold the CTRL key and select REQ/3 Curve 3, REQ/5
Curve 5, REQ/7 Curve 7, and REQ/9 Curve9.
5. Click OK to close the expanded list dialog.
6. Under Y Component:, select X.
7. Click Apply to create the curves on page 1.
The plot’s X axis is labeled Time (the X type), while the y axis is labeled Force (the Y
type). The plot’s title is X (the Y Component name). The curve’s names are the Y
Request names.
6. Click the Page Layout button, , and select the four-window layout from the panel
area.
Step 4: Use Advanced Options to change the curve and plot display
attributes.
While in the Build Plots panel, do the following:
1. Keep the curves you created in Step 3.
2. Click Adv. Options.
3. To change the page title font, click Page Options on the left side of the dialog.
4. Click in the Font field on the right side of the dialog. Next, click the Font icon, , to
display the Font dialog. Change the font size to 16.
5. Under Plot Options, select Header.
6. Click in the Header field on the right side of the dialog to activate the drop-down menu.
Deselect Y-Component.
This will remove the Y component from the header.
7. Select Horizontal Axis from the left side of the dialog. Click in the Font field on the
right side of the dialog. Next, click the Font icon, , to display the Font dialog.
8. From the Font dialog, change the font size to 12.
9. Repeat steps 7 and 8 the Vertical Axis.
10. Select Legend from the left side of the dialog.
11. From the Font dialog, change the legend font size to 10.
12. Select Curve Options from the left side of the dialog.
13. Click in the Label field on the right side of the dialog to activate the drop-down menu.
Deselect Y Request.
This removes the Y request from the label.
14. Activate Show Prefix.
15. Click the Label Prefix field. Once the cursor is displayed, enter Test 17.
16. Click OK to exit the Advanced Options dialog.
You can also perform filtering on the curve. For this, retain the curve and plot
modifications you just performed.
18. From the Build Plots panel, select Adv. Options.
19. Click Curve Options on the left side of the dialog.
20. Activate Math Expression.
21. Leave Expression for x as is.
22. Enter the following filter in the Expression for y field: saefilt95(u,v,60,5,3).
23. Click OK.
24. From the Build Plots panel, click Apply.
25. From Define Curves panel, , you will see the filter you applied display in the y vector
field:
Step 5: Use Multiple File Plotting to plot multiples curves in one plot.
1. From File menu, select New > Session to clear all contents in the HyperGraph session.
5. Next to Select directory, click the Open File button, , and select the
MultipleFiles folder, located in the plotting folder.
6. You can expand the folders in the File Browser List to display the files contained in
each folder.
You can select files from the File Browser List and click the arrow, , to move them to
the Selected File Set. For this tutorial, we will filter them.
7. In the File-Filter field, enter *T01 and press ENTER. The following files are displayed:
8. While holding the CTRL button, select the first eight files listed under File Browser List
and click the right-facing arrow, , to move them to the Selected File Set.
9. Under Curve Name, leave Prefix activated and select Directory Level 2 from the
drop-down menu.
14. Click the Page Layout button, , and select the two-window layout from the panel
area.
15. Click Apply.
16. You can also view the curve Label Prefix and Label information in the Plot Browser.
These fields were edited using the Advanced Options dialog in Step 4.
Tools
The Headers/Footers panel can be accessed in one of the following ways:
The Curve Attributes panel can be accessed in one of the following ways:
The Apply Style dialog allows you to quickly apply a plot window’s attributes across all plot
windows on the current page, or on all pages in the plot.
Step 6: Create the note "Max force is {Y} at time {X}" and attach it
to a curve in window 1, on page 2.
1. Activate window 1.
11. With Note1 highlighted in the Notes list, turn off this note by deactivating the Note
box.
In this tutorial you will learn how to use the Plot Browser to perform the following tasks:
• Perform math on a single curve in the Define Curves panel without creating duplicate
curves
• Apply this math to all other curves in the session via the Plot Browser
Tools
The HyperGraph 2D Plot Browser resides on a tab in the Tab Area sidebar and allows you
to view the HyperGraph 2D plot structure.
The Plot Browser can be turned on or off using the View > Browsers > HyperGraph 2D
> Plot menu options. A check mark indicates that the HyperGraph 2D Plot Browser is
activated for display in the Tab Area.
You can use the Plot Browser tools to search, display and edit entities and their properties
within the current session.
From the Define Curves panel, you can edit existing curves and create new ones. To edit
a curve, it must first be selected either from the curve list or picked from the window.
The X,Y, U, and V vectors are displayed at the top of the Define Curves panel. The data
sources for these vectors are displayed in the text fields. Click the radio button for a vector
or click in the corresponding text box to select that vector for editing. In addition to the
traditional X and Y vectors, you can perform math on curves prior to plotting your data with
the support of u and v vectors. As a result, only one curve is generated in the session,
whereas in the older versions of HyperGraph, this could not be done without an initial curve.
To use math as a data source, from the Define Curves panel, select Source > Math.
Step 2: Use the Define Curves panel to apply an SAE filter to a curve.
1. From the toolbar, select the Define Curves icon, .
2. Activate the x= radio button.
3. Under Source, select Math.
4. In the x= field, enter u. This applies the u vector to the x vector.
5. Click Apply.
6. Activate the y= radio button.
7. Under Source, select Math.
8. In the y= field, enter v. This applies the v vector attributes to the y vector.
9. Click Apply.
You can now apply math to the y vector.
10. For the y vector, remove the v vector you entered in step 8.
11. With your cursor in the y= field, click Functions....
12. From the Functions dialog, select saefilt95 and click OK.
13. The saefilt95 function takes six arguments: vector1, vector2, scalar1, scalar2,
scalar3, scalar4.
14. Enter the following text in the function: saefilt95(u,v,60,20,3) and click Apply.
15. The result is a corrupt curve. This is because the function expects the time to be in
seconds, and our curve is in milliseconds.
16. To correct this, you must apply the time vector by 0.001. Enter the following in the y=
field: saefilt95(u*0.001,v,60,20,3).
The result is a properly filtered curve:
Step 3: Apply the math performed in Step 2 to all other curves in the
session via the Plot Browser.
In this step, you will apply the filter defined in Step 2 to all curves in the session using the
Plot Browser.
1. From the Define Curves panel, highlight the y vector filter you added in step 1 and
press CTRL+C to copy it.
2. From the Plot Browser, select the Curves icon from the top of the browser. This filters
the session information so that only the curve information is displayed in the Plot
Browser.
3. Expand the folders for page 1 (p1: Angular Acceleration) and window 1 (w1:XY Plot)
by clicking the plus button next to each folder.
4. As shown below, right-click on the y vector and select Select All.
7. Notice that all the curves in the graphics area disappear, except for the curve we have
already filtered on the Define Curves panel.
8. Click in the Expression field and paste the filter you copied from the Define Curves
panel and press ENTER.
All curves in the session now contain the same filter and math.
9. It is not required, but you can also apply math to the x vector. Like the steps above,
right-click on the x vector from the Plot Browser and select Select All to select all x
vectors in the session.
10. From the Source drop-down menu, select Math.
11. In the Expression field, enter u.
Now all vectors in the session have the same math.
Tools
The Axes panel can be accessed one of the following ways:
To access Convert Units tool, right-click on the plot axis and select Convert Units.
The Convert Units tool allows you to convert the current unit of measure of a horizontal or
vertical axis to another unit of measure. All curves associated with the axis are scaled
accordingly and the axis label is updated to reflect the new unit of measure.
The Coordinate Info panel can be accessed one of the following ways:
This panel allows you to retrieve individual point data on any curve in the active window.
When a point is selected, its data is displayed in the panel.
To access TextView, use the Select Application menu and click TextView, .
The text editor window allows you to view, edit, and save text files, conduct text searches,
change text attributes, and evaluate Templex. With Templex, you can obtain curve data
from the plot window and display the results in text format in the text window
The Modify Curves panel can be accessed in one of the following ways:
The Scales Offset and Axis Assignments panel can be accessed in one of the following
ways:
Step 2: Using the Convert Axis Units tool to scale the Y axis.
1. On page 2, activate window 1.
2. Right-click on the window’s vertical axis and select Convert Units from the pop-up
menu.
The current selection in the Convert Axis Units dialog defaults to Time. This is because
the unit converter did not recognize the Y axis unit.
3. Select Force from the dialog.
− Select From: N from the drop-down menu.
− Select To: kN from the drop-down menu.
4. Click OK to apply the change and close the dialog.
The Y axis’ label is changed from Force to Force (kN). Also, the Y axis numbers and
the curves’ Y data are scaled by 0.001.
5. Open the unit converter again for the same Y axis. Force is now selected as the tool
recognizes the axis’ unit of measure.
6. Click Cancel to close the Convert Axis Units dialog.
3. To the right of the Curves field, there is a curves button, . Press this button.
The Select Curves dialog is displayed.
4. Under p2:Force-2 select w3: XY plot and click OK.
All curves in window 3 are selected and p2w3c1, p2w3c2, p2w3c3 are displayed in
the Curves text field.
5. Verify the option for Direction is set to Horizontal.
6. Under Range, specify 0.2 for From and press ENTER.
7. Specify 0.95 for To and press ENTER.
8. Under Action, click Trim to remove the data outside of the specified range for the
selected curves.
In this tutorial you will learn how to use the Plot Browser to perform the following tasks:
• Modify the following plot attributes
o Header font size
o Legend position and font size
o Axis fonts
• Modify the following curve attributes
o Curve name and prefix
o Line style
o Color
• Add notes attached to curves
o Modify notes in the Notes panel
o Apply these changes to all notes using the Plot Browser
Tools
The HyperGraph 2D Plot Browser resides on a tab in the Tab Area sidebar and allows you
to view the HyperGraph 2D plot structure.
The Plot Browser can be turned on or off using the View > Browsers > HyperGraph 2D
> Plot menu options. A check mark indicates that the HyperGraph 2D Plot Browser is
activated for display in the Tab Area.
You can use the Plot Browser tools to search, display and edit entities and their properties
within the current session.
These icons allow you to filter the data that is displayed in the Plot browser. For
example, by clicking the Headers/Footers icon, only the header and footer information
for each curve in your session is displayed in the browser.
2. Expand the folders for page 1 (p1: Angular Acceleration), window 1 (w1:XY Plot)
and Header by clicking the plus button next to each folder.
3. Right-click on Header and select Select All.
This action selects all the headers for each curve listed in the plot browser. By doing
this, you can modify a header attribute only once, but it will be applied to all headers.
4. From the Properties Table at the bottom of the Plot Browser, select the font setting
field next to Primary Font Settings.
Step 3: Modify the legend font size and change the legend position.
1. From the Plot Browser tab, click the Legends icon, , from the top of the browser.
These icons allow you to filter the data that is displayed in the Plot Browser. For
example, by clicking the Legends icon, only the legend information for each curve in
your session is displayed in the browser.
2. Expand the folders for page 1 (p1: Angular Acceleration) and window 1 (w1:XY Plot)
by clicking the plus button next to each folder.
3. Right-click on Legends and select Select All.
This action selects all legends for each curve listed in the plot browser. By doing this,
you can modify a legend attribute only once, but it will be applied to all curve legends.
4. From the Properties Table at the bottom of the Plot Browser, select the Font Settings
field.
1. From the Plot Browser tab, click the Axes icon, , from the top of the browser.
These icons allow you to filter the data that is displayed in the Plot Browser. For
example, by clicking the Axes icon, only the axes information for each curve in your
session is displayed in the browser.
2. Expand the folders for page 1 (p1: Angular Acceleration) and window 1 (w1:XY Plot)
by clicking the plus button next to each folder.
3. Right-click on the icon for the horizontal primary axis and select Select All.
This action selects all horizontal axes for each curve listed in the plot browser. By doing
this, you can modify a horizontal axis attribute only once, but it will be applied to all
horizontal axes.
4. From the Properties Table at the bottom of the Plot Browser, select the setting next to
the Font Settings field.
The Font Selector dialog is displayed.
5. Change the Font Size to 12 and click OK.
The font size change is applied to all horizontal axes.
6. Repeat steps 1-5 for the primary vertical axis.
The font size change is applied to all vertical axes.
2. Click the Add Filter icon, , to add a filter to the Filter Area.
3. From the Filter Name drop-down menu, select Display Name.
HyperGraph searches for all the curve names that contain a resultant and display only
those in the Plot Browser.
5. Right-click on the first curve listed in the Plot Browser and select Select All.
6. Delete the filter you just added by clicking the Delete Filter icon, .
The Plot Browser displays all the other curve names that contain something other than a
resultant.
7. Click the Select Reverse icon, , to deselect the curves with resultant in the name
and SELECT the curves with component in the name.
8. From the Properties Table, select the Line Style drop-down menu and select the
dashed line style.
The line style is changed to a dashed line style for all curves with component in the
curve name. The curve name that contains the resultant remains a solid line.
9. To change the line color of only the resultant curve, click the Select Reverse icon
again, , to deselect the component curves from the Plot Browser and select the
resultant curve.
10. From the Properties Table, select the Line Color color square and select the color
black from the color palette.
2. Click the Add Filter icon, , to add a filter to the Filter Area.
3. From the Filter Name drop-down menu, select Display Name.
5. In the Value column, enter Res.
The Plot Browser displays only the curve names with resultant in the name.
5. Right-click on the first curve name listed in the Plot Browser and select Select All to
select all the resultant curves in the Plot Browser.
6. Again, right-click on the first curve listed in the Plot Browser and select Single Curve
Math > Max Note.
This adds a note to the maximum value of each curve in the session.
Next, you will use the Notes panel to modify the note.
9. You can further edit the note display by added quotes around {label}, like this: Max of
"{label}" = {Y}. Click Apply.
10. Edit the note one more time by adding the time to it, like this:
Next, you will apply the note text to all the curves in the session using the Plot Browser.
11. From the Notes panel, highlight the note text and press CTRL+C to copy the text.
12. Click the Notes icon on the Plot Browser.
13. Right-click on Note 1 and select Select All to select all notes in the session.
14. From the Properties Table, click in the Text field.
The Note Text dialog is displayed.
16. Press CTRL+V to insert the text you copied from the Notes panel and click OK.
All max notes now have the same text string applied to them.
17. Click the Font Settings font icon and change the note font size to 12.
All notes in the session are displayed with the same note attributes.
In this tutorial you will learn how to reference and filter curves.
Tools
The Define Curves panel can be accessed in one of the following ways:
p2 is page 2
w3 is window 3
c4 is curve 4
x is the vector
Pick a curve in a plot For the x = SHIFT and pick the curve to get the curve x vector reference
window input field.
SHIFT + CTRL and pick the curve to get the curve y vector
reference
for y = input SHIFT and pick the curve to get the curve y vector reference
field.
SHIFT + CTRL and pick the curve to get the curve x vector
reference
Select a curve vector reference from the Curves… dialog, which is accessed from the Define Curves
panel.
13. Hold down the SHIFT key and select the curve again.
Note: the curve's y vector is referenced in the saefilt95 function. The y = field should
read: saefilt95(p1w1c1.x,p1w1c1.y,60,1,3).
14. Click Apply to create the filtered curve.
4. Click the expand button, , to display the Y Requests dialog. Click All to select all
the requests listed.
5. Click All to select all the requests listed. Click OK to close the dialog.
6. Under Y Component, click All to select all components in the list.
7. From the Layout drop-down menu, select One Plot Per Request.
8. Click the window layout icon and choose the two-window layout.
9. Click Apply.
The following plots are displayed:
10. Click the Next Page icon, , to view the other curves on pages 4 and 5 that were
created in step 8.
Step 2: Filter a curve using the SAE J211/1 filter through the Vehicle
Safety Tools menu.
1. Select File > Load > Preference File.
2. From the Preferences dialog, select Vehicle Safety Tools and click Load.
The Vehicle Safety Tools menus are displayed in the menu bar.
3. From the Filter menu, select SAE General > SAE (J211, Mar 1995) > Mirror
Padding > Fwd-Back.
The Plot Macros panel is displayed.
5. To select all the curves at once, double-click Curve to display the Select Curves dialog.
6. To select the curves on pages 3-5, select p3: Angular Accelearation, hold down the
SHIFT key, and select Z-comp ang. acc. under p5: Angular Acceleration.
All of the master references are inserted into the Curve field.
8. Click Apply.
All curves are filtered.
Tools
The Build Plots panel can be accessed one of the following ways:
The Plot Browser resides on a tab in the Tab Area sidebar and allows you to view the
HyperGraph 2D plot structure. The Plot Browser tools allow you to search, display and edit
entities and their properties within the current session. The plot structure is viewed as a
flat, listed tree structure within the browser. However, if the plot has a hierarchy, then the
Plot Browser accommodates this hierarchical structure.
From the Plot Browser, you can select entities one at a time or several simultaneously using
common selection techniques. You can also use the browser's context-sensitive menus to
select entities. Using the Plot Browser, you can perform many of the operations available
in the HyperGraph 2D panels, thus allowing you to modify your plot and curve properties in
one location.
2. If activated, click Reset Units to clear any unit associations. If Reset Units is grayed
out, you don't need to do anything.
3. Click Close to close the dialog.
5. From the Options dialog, verify that Enable Unit Scaling and Show Units Dialog are
activated.
4. Click the Open File icon, , and select the nodout file, located in the plotting folder.
8. From the Units Profile dialog, select the C radio button and click OK.
This sets the Length, Time and Mass units for the file to millimeter, milliseconds, and
kilograms, respectively.
2. Expand the folders for page 1 (p1: Node Data), and window 1 (w1:XY Plot) by clicking
the plus button next to each folder.
3. The following axes are listed under w1:XY Plot: X1, Y1, Y2, and Y3.
4. Select the X1 axis.
5. From the Properties Table, located in the bottom portion of the Plot Browser, click the
color palette next to Color and select black.
11. Repeat steps 9 and 10 for the Y1, Y2, and Y3 axes. Rename them Node Data,
Velocity and Acceleration, respectively.
The new vertical axes names for X1, Y1, Y2 and Y3 are shown below:
8. From the Plot window, right-click on the horizontal axis to display the following context
menu:
9. Select Convert Units and change the unit type from milliseconds to seconds (s).
10. From the Plot window, right-click in the vertical axis and select Convert Units. Change
the distance from millimeters to meters.
11. Repeat step 8, but for the right-side Velocity axis. Change the speed from
millimeters/milliseconds to mph.
12. You can also change the unit type for a curve by right-clicking on the curve and selecting
Enable/Change Curve Unit.
The Enable/Change Curve Unit dialog is displayed.
13. From the YVector, select the right-most drop-down menu and change the unit from
millimeter/millisecond to kph.
14. Click OK.
The final plot window is shown below:
Tools
The Build Plots panel can be accessed one of the following ways:
4. Click the Open File button, , and select the nodout file, located in the
../plotting/dyna/ folder.
Step 3: Use Inspect Mode to enlarge the plot and display data point
values
1. In the top-left plot, double-click in the plot area to enlarge the plot.
Double-clicking on an empty space in the plot (not on an entity) increases the screen
area of the plot by hiding the panels and any other windows on the page. This is
referred to as the Inspect Mode. In this case, since the plot was part of a multi-window
layout, the other windows are also hidden so that the entire plot area is available for the
plot that you selected.
Double-click in the white space of the plot again to reduce its size and go back to the
four-window layout. However, for this step, leave the plot in its enlarged state.
2. When you move the mouse over a curve before clicking on it, it is highlighted in yellow,
similar to the non-inspect mode.
The curve becomes active. It displays its original color and the other curves become
transparent.
4. Drag the mouse pointer along the curve to display the values of each point along the
curve.
HyperGraph only displays the value of the data points on a curve when the overlap is
less than 50%. If it is more than that, only one value at a time is displayed.
5. Move the mouse pointer over the other transparent curves. Notice they are highlighted
in full color.
6. Click on the blue curve to make it active. The other three curves are now transparent.
7. If you hover over the axes, legend, or headers/footers in the active window, they are
also highlighted in yellow.
8. From the Plot Browser, you can select curves for multiple plots even if they aren't in the
active plot (the active plot is surrounded by a blue border). The selected curves are
highlighted in yellow.
In the image below, the curves selected from the Plot Browser (in blue) are highlighted
in yellow in each of the four plots on the right. The active plot is displayed on the top-
left and is surrounded by the blue rectangle.
9. Double-click in the white space of the plot again to return to normal (non-inspect) mode.
5. Click Apply.
8. Click on any axis. Notice that when you click on an axis, you can only highlight the
curves that belong to that axis.
9. If you click the curve first, the axis automatically highlights. In the image below, the
curve selected belongs to the Acceleration axis.
Tools
The Define Curves panel can be accessed in one of the following ways:
p2 is page 2
w3 is window 3
c4 is curve 4
x is the vector
Pick a curve in a plot For the x = SHIFT and pick the curve to get the curve x vector reference
window input field
SHIFT + CTRL and pick the curve to get the curve y vector
reference
for y = input SHIFT and pick the curve to get the curve y vector reference
field
SHIFT + CTRL and pick the curve to get the curve x vector
reference
Select a curve vector reference from the Curves… dialog, which is accessed from the Define Curves
panel.
Freeze Option
The Freeze option is available when a vector’s source is Math. This option allows you to
break the association of the dependent curve(s) from their parent curve, which allows
modifications to the parent curve without updating the dependent curve(s).
Step 3: Create a new curve with a math expression for its y vector.
1. Click Add to create a new curve named Curve2.
2. Verify the x = radio button is selected.
3. Select Math for the Source:.
4. Click Curves… to open its dialog.
− Select p2: Plot 2.
− Select w3: Plot.
− Select c2: Req/5 Curve 5.
5. Click Select to complete the selection
The result is the same as when the curve was picked from the graphics area; the x curve
reference is p2w3c2.x.
6. Click the y = radio button.
7. Hold the SHIFT key and pick any curve in window 3.
Notice in the y = field is the reference for the y vector of the picked curve.
8. Append the character + to the string in the y = field.
9. Hold the SHIFT key and select any other curve in window 3.
Notice the y = field now has two y vectors separated by the + sign.
10. Click Apply to create the new curve.
The new curve appears in window 3 and is the sum of the two y vectors.
Tools
The Plot Macro panel can be accessed in one of the following ways:
The vehicle safety tools (VST) are a collection of over 200 macros, Templex functions, and
external functions used by vehicle safety engineers. On appending the VST file, seven new
menus that contain the macros and functions are displayed on the menu bar: Math, Filter,
Units, Injury, Misc, Transforms and Safety Tools.
Selecting a tool (macro) from one of these menus takes you to the Plot Macros panel.
More Plotting
In this tutorial, you will learn how to create bar charts by entering values, importing a data
file, or specifying a mathematical expression.
Tools
When the plot type is set to Bar Charts ( ), the Define Curves panel allows you to add
and edit bar charts in the active plot window. It can be accessed one of the following ways.
Bar charts are comprised of data and categories. Data can be entered as values, read from
an external file, or defined as a mathematical expression.
7. In the panel’s center, under the column Nodal Point 1, type these three values:
Index 1: 563.35
Index 2: 567.22
Index 3: 423.51
Step 2: Create a bar chart by importing values from the data file
nodal_values.dat.
1. Add a second bar chart to the current plot window.
2. Rename Curve 2 to Nodal Point 2.
3. Under Source, select File.
4. Click the file browser next to File: and open the nodal_values.dat file, located in the
plotting folder.
5. Leave Type: set to Unknown.
6. Leave Request: set to Block1.
7. Leave Component: set to Column1.
8. Click Apply to create the bar chart.
Tools
The Build Plots panel can be accessed in one of the following ways:
The Define Curves panel can be accessed in one of the following ways:
4. Use the file browser button to open the control_arm_sol111.pch file, located in the
plotting folder.
5. Leave the X type: set to Frequency [hz].
6. In the Y type: column, select Subcase 1 Displacements.
7. In the Y Request: column, select Point id 2086.
8. In the Y Component: column, select X-Rot.
9. Click Apply to create the complex curves.
Step 2: Apply the Inverse Fast Fourier Transform (ifft) math function
to the complex data curve.
1. Change the current window layout of page 1 to a two-window layout, .
2. Activate the window on the right side.
New plot windows are set to the XY plot type by default.
3. Set the plot type for the window on the right side to XY Plot.
Step 4: Subtract the Subcase two curve from the Subcase one
curve.
1. Change the current window layout for page 1 to a three-window layout, .
2. Make the new, blank plot window active.
3. From the plot type menu, select Complex Plot.
4. Enter the Define Curves panel.
5. Click Add P/M to create a new complex curve.
6. Rename Curve 1 to sub_disp.
7. Under Source, select Math.
8. In the x: field, enter p1w1c1.x.
9. In the yp: field, enter p1w1c2.yp - p1w1c1.yp.
10. In the ym: field, enter p1w1c2.ym - p1w1c1.ym.
11. Click Apply to create the complex curve.
Tools
The Build Plots panel can be accessed in one of the following ways:
The Define Curves panel can be accessed in one of the following ways:
11. Access the Frequency dialog by clicking the listed frequency value in the bottom left
region of the plot area.
12. Select the 128.0Hz frequency and click OK.
The vectors are plotted at 128Hz frequency.
1. Use the Page Layout button, , to change the window layout of page 1 to a two-
window layout.
2. Activate the window on the right side.
3. Change the plot type for the new window to Polar Plot.
4. Enter the Define Curves panel.
5. Add a new polar plot curve named Curve 1 by selecting Add R/I.
6. Rename Curve 1 to Summation by typing the new name in the Curve: field and pressing
the ENTER key.
7. Under Source, select Math.
8. In the Frequency= field, enter p1w1c1.f.
A frequency field is specified to allow HyperGraph to compute the summation vector for
every frequency. In this case, the summation vector can be animated or updated when
a certain frequency is chosen.
9. Select the Real = radio button and then select Math as the Source.
10. In the Real = field, enter p1w1c1.yr + p1w1c2.yr + p1w1c3.yr.
11. In the Imaginary = field, enter p1w1c1.yi + p1w1c2.yi + p1w1c3.yi.
12. Set the Type: field to Vector Plot.
13. Click Apply to create the polar plot.
14. Access the Frequency dialog by clicking the listed frequency value in the bottom left
region of the right-hand side of window 2.
15. Choose the 128.0Hz frequency and click OK.
The summation vector is now plotted at 128Hz frequency.
16. Change the Type: field to Phase vs Mag. Notice how a Phase vs Magnitude curve for
all frequencies is shown as a line connecting the tips of the vectors at different
frequencies.
Templates
Tools
Export Template: is a file that contains instructions for exporting curve data into files. The
instructions contained in an Export Template file are in an uncompiled type of programming
language called Export. An Export Template tells the program in which format the data
should be written into the file.
Templex Commands
indexofmin(i) Index of the minimum of a vector (not the minimum itself)
numpts(x) Dimension of the vector X
table() Export of vectors organized in columns
for – endloop Loop
if – else – endif Logics
table(x, y, "%10.6f %11.6f", 0, t - 1); Output Line 3 to t-1 with the table
command
endif
cr();
endif
endloop
}
RESULT:
The below data file is created after exporting curves in this Madymo format:
!vehicle acceleration
151
0.000000 13.591910
1.000000 12.144580
2.000000 10.850770
3.000000 10.180930
4.000000 9.921851
5.000000 9.995111
6.000000 10.342690
7.000000 11.209030
...
...
147.000000 132.563400
148.000000 130.487300
149.000000 129.073800
150.000000 127.332800
Customization
In this tutorial, you will learn how to customize the program using the preference file.
Tools
The Preference File:
A preference file is a script file that is read each time the program is started. It specifies
default user settings such as the order in which colors are assigned, the default printer,
default page layout, the auto save interval, and so on. A standard preference file can be
created in the program installation directory which is executed every time a license is
activated. An additional preference file can be created in your working directory that
contains personal settings that either overwrite the standard preference file or are added to
the existing settings in the standard preference file.
The HyperWorks installation contains two preference files located under $ALTAIR_HOME/hw:
• All HyperWorks desktop products, except HyperStudy: preferences.mvw
• HyperStudy only: preferences_hst.mvw
Seven include preference files are contained in the installation. These include preference
files must be included in the main preference file, as they cannot be used as independent
preference files. They are located under $ALTAIR_HOME/hw/prefinc.
Organization of the Preference File
The following describes the standard structure of the preferences file, containing five
principal blocks.
*BeginDefaults()
*EndDefefaults()
*BeginDefinitions()
*EndDefinitions()
*BeginStatsTemplates()
*EndStatsTemplates()
*BeginPlotMacros()
*EndPlotMacros()
*BeginTemplexFunctions()
*EndTemplexFunctions()
The *BeginDefaults() block is unique to a preference file while the *BeginDefintions(),
*BeginStatsTemplates(), *BeginPlotMacros(), and *BeginTemplexFunctions() blocks
are the same as those found in script files.
*Id statement
The syntax for the *Id statement is: *Id("Release") where the release gives the program
name and version.
For example: *Id("HyperGraph v8.0")
General defaults
General defaults include the autosave interval, bubble help status, and default printer
settings. The block is delimited by these statements:
*BeginDefaults()
*EndDefaults()
Model defaults
Model defaults are used to customize the model tool bar and to add MDL defaults for
submitting mechanical system models to a solver. The block is delimited by these
statements:
*BeginModelDefaults()
*EndModelDefaults()
Graphic defaults
Graphic preferences such as model orientation and the part attributes are specified in the
graphics default block. The block is delimited by these statements:
*BeginGraphicDefaults()
*EndGraphicDefaults()
Plot defaults
Plotting preferences for curves including colors, fonts, and note defaults are specified in the
plotting defaults block. The block is delimited by these statements:
*BeginPlotDefaults()
*EndPlotDefaults()
TextEditor defaults
TextEditor preferences including text and background color and font settings are specified in
the text editor defaults block. The block is delimited by these statements:
*BeginTextEditorDefaults()
*EndTextEditorDefaults()
To help you avoid compile problems, when you begin each block, start with the *Begin and
*End block statements, then enter the remaining statements between the block delimiters.
2. Set the preference file by selecting File > Load > Preference File.
This opens a window which lists all the registered preference files.