Adams 2020 Adams View Command User Guide
Adams 2020 Adams View Command User Guide
Adams 2020 Adams View Command User Guide
Japan Asia-Pacific
MSC Software Japan Ltd. MSC Software (S) Pte. Ltd.
Shinjuku First West 8F 100 Beach Road
23-7 Nishi Shinjuku #16-05 Shaw Tower
1-Chome, Shinjuku-Ku Singapore 189702
Tokyo 160-0023, JAPAN Telephone: 65-6272-0082
Telephone: (81) (3)-6911-1200 Email: APAC.Contact@mscsoftware.com
Email: MSCJ.Market@mscsoftware.com
Worldwide Web
www.mscsoftware.com
Support
http://www.mscsoftware.com/Contents/Services/Technical-Support/Contact-Technical-Support.aspx
Disclaimer
This documentation, as well as the software described in it, is furnished under license and may be used only in accordance with the
terms of such license.
MSC Software Corporation reserves the right to make changes in specifications and other information contained in this document
without prior notice.
The concepts, methods, and examples presented in this text are for illustrative and educational purposes only, and are not intended
to be exhaustive or to apply to any particular engineering problem or design. MSC Software Corporation assumes no liability or
responsibility to any person or company for direct or indirect damages resulting from the use of any information contained herein.
User Documentation: Copyright © 2020 MSC Software Corporation. Printed in U.S.A. All Rights Reserved.
This notice shall be marked on any reproduction of this documentation, in whole or in part. Any reproduction or distribution of this
document, in whole or in part, without the prior written consent of MSC Software Corporation is prohibited.
This software may contain certain third-party software that is protected by copyright and licensed from MSC Software suppliers.
Additional terms and conditions and/or notices may apply for certain third party software. Such additional third party software terms
and conditions and/or notices may be set forth in documentation and/or at http://www.mscsoftware.com/thirdpartysoftware (or successor
website designated by MSC from time to time). Portions of this software are owned by Siemens Product Lifecycle Management, Inc.
© Copyright 2020
The MSC Software logo, MSC, MSC Adams, MD Adams, and Adams are trademarks or registered trademarks of MSC Software
Corporation in the United States and/or other countries. Hexagon and the Hexagon logo are trademarks or registered trademarks of
Hexagon AB and/or its subsidiaries. FLEXlm and FlexNet Publisher are trademarks or registered trademarks of Flexera Software.
Parasolid is a registered trademark of Siemens Product Lifecycle Management, Inc. All other trademarks are the property of their
respective owners.
ADAM:V2020:Z:Z:Z:DC-COM
Documentation Feedback
At MSC Software, we strive to produce the highest quality documentation and welcome your feedback.
If you have comments or suggestions about our documentation, write to us at: documentation-
feedback@mscsoftware.com.
Please include the following information with your feedback:
Document name
Release/Version number
Chapter/Section name
Topic title (for Online Help)
Brief description of the content (for example, incomplete/incorrect information, grammatical
errors, information that requires clarification or more details and so on).
Your suggestions for correcting/improving documentation
You may also provide your feedback about MSC Software documentation by taking a short 5-minute
survey at: http://msc-documentation.questionpro.com.
Note: The above mentioned e-mail address is only for providing documentation specific
feedback. If you have any technical problems, issues, or queries, please contact Technical
Support.
Overview 1
Overview
Using the Command Window
The command window provides text-based way to enter Adams View commands. It assumes that you
understand the Adams View command language underlying the Adams View interface.
To help you enter commands correctly, Adams View checks for syntax errors whenever you enter a space,
comma, or equal sign (except in a string or expression) in the command window. If Adams View detects an
error, it displays a message above the command information area. You cannot proceed until you correct the
error.
To get a single backslash into the string, you, therefore, enter double backslashes. For example, to specify This
ia a \string\, you would enter:
"This is a \\string\\"
Note also for path names on Windows, you can use backslashes as the separators, but you are not required
to do so. You can write portable path names by using the forward slash so Adams View interprets the
following as the same path:
"d:/users/efhl/some.file"
"d:\users\efhl\some.file"
If the file name is to be stored in a string variable, the backslashes would need to be doubled to preserve the
file path:
"d:\\users\\efhl\\some.file"
Note that the forward slash is much preferred over the backslash.
To create: Enter:
A comment alone on one line !comment <CR>
A command followed by a comment on one line command !comment<CR>
A command followed by a comment on one line, with the command continuing on &!comment<CR>
the next line command continue command
A command followed by a comment on one line, with the comment continuing on &!comment<CR>
the next line, and the command continuing on the following line command &!comment<CR>
continue command
Entering Abbreviations
You can enter abbreviations for commands and parameters when you are entering commands directly in the
command window. You should always use full keywords for macros and command files to avoid any future
4 Adams View Commands
compatibility problems. Also note that if you use abbreviations, Adams View takes longer to execute your
commands because it must substitute an abbreviation with its full command.
Reviewing Commands
You can use the scroll bar at the side of the command information area to view the last 50 commands that
were entered.
Recalling Commands
Use the arrow keys to recall and edit commands. After entering a command, in the command entry area, press
the up arrow to display it in the command entry area again. Use the left and right arrows to edit it, and then
press Enter.
3. Copy or select the desired object and place it in the parameter value.
The limit on the number of commands Adams View remembers does not apply to commands within an undo
block. You may notice slowed system performance if you store too many commands in a single undo block
or if you have the number of undo steps set too high using the undo set command.
analysis 1
analysis collate_contacts
analysis
analysis collate_contacts
Sets the tolerance value for track data and reference marker with respect to which contact data is computed.
Format:
analysis collate_contacts
analyis_name = existing analysis
contact_name = new contact
tolerance = real
reference_marker = existing marker
Example:
analysis collate_contacts &
analysis_name = last_run &
contact_name = contact_between_part_1_and_2 &
tolerance = 0.1 &
reference_marker = marker_3
Description:
Extended Definition:
1. A track is a sequence of individual impacts between two particular geometries specified by a single
contact object. The two geometries for a particular track should always be the same at every impact
along that track.
2 Adams View Commands
analysis collate_contacts
It is possible for a contact object and two of its geometries to have more than one track. For example,
if a contact and two of its geometries have more than one impact at the same time, each separate
impact must belong to a separate track to remove ambiguity. Also, when the separation between
impacts is great enough according to either an automatic or given criteria, the impacts may be
assembled into separate tracks.
There is an experimental method of specifying a delta value for the separation criteria that will make
the program skip the automatic criteria, sometimes saving a significant amount of time. This can be
done by setting the tolerance parameter using the analysis collate_contacts command. By
using a large tolerance value, you can coerce tracks together that may have been separated by the
automatic criteria. See Knowledge Base Article KB8015944 for more information.
Automatic criteria for a contact and an I and J geometry:
• The geometric center (centroid) of all the impacts over the entire simulation is found in three
frames: the global frame and the I and J part frames.
• The average distance of the impacts from the centroid is computed, again in each of the three
frames.
• The standard deviation of the impacts from this average distance is computed in the three frames.
This value for the standard deviation is used as a delta to decide if any two impacts are close
enough to be considered to belong to the same track. The frame with the minimum distance is
used for the comparison.
To force a pair of locations on two different parts to belong to separate tracks you can place a small
separate piece of geometry at that particular point on each part. For example, instead of making a
table out of a single piece of geometry and letting the algorithm try to find the separate legs as four
separate tracks, placing a cap at the end of each leg will force separate tracks.
2. You can identify an entity, such as a marker or force, by typing its name or by picking it from the
screen. If the entity is not visible on the screen, you must type the name. You may also find it
convenient to type the name even if the element is displayed.
If an entity is available by default, you can identify it by entering its name only. If it is not, you must
enter its full name. To identify a entity under a different part, you may need to enter the model and
part names as well. For example, you can specify marker 'pivot' from model 'links', part 'lower_arm'
by entering ".links.lower_arm.pivot".
If you type a "?", Adams View lists the entity available by default.
You must separate multiple entity names by commas. If the entity is visible in one of your views, you
can identify it by picking it. You need not separate multiple element picks by commas.
analysis 3
analysis create
Notes: If you created a marker by reading an Adams Solver dataset or graphics file, the marker
name is the letters MAR followed by the dataset marker ID number. For example, the
name of MARKER/101 is MAR101. If you created the marker during preprocessing, you
gave it a name at that time.
You may have explicitly named an analysis when you created it by reading one or more
Adams output files (graphics (.gra), request (.req), or results (.res)). By default, the name of
the analysis is the root name of the Adams output files without the extension. If you
created the analysis by reading an Adams graphics file, for example, the analysis name is the
name of the graphics file without the .gra extension
You need to be using the XML Results File (XRF) format in order for the contact incident
data to be available for collation.
analysis create
Allows you to create an empty analysis. This is useful for reading spreadsheet data into a results set, using the
numeric_results read_from_file command.
Format:
analysis create
analysis_name = new analysis
Example:
analysis create &
analysis_name = my_analysis
Description:
Extended Definition:
1. When using the Adams View command language and naming entities, you can use the name later to
refer to this entity. Adams View does not allow you to have two entities with the same name, so you
must provide a unique name. Normally, entity names are composed of alphabetic, numeric, or '_'
(underscore) characters, and start with an alphabetic or '_' character. They may be of any length.
By enclosing the name in double quotes, you can use other printable characters, or start the name with
a numeral. If a name contains characters, or starts with a numeral, you must always quote the name
when entering it.
4 Adams View Commands
analysis delete
Note that you can specify the parentage of an entity (for example, what part "owns" a marker or a
geometry element) when you create it by changing the name. If you enter just the entity name, then
Adams View assigns the default parent. If you type in the full name, then you can override the default
parent. In most cases, when creating an entity, Adams View provides a default name. The default
name that Adams View provides specifies the parentage that it has assumed. You can, of course, delete
this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
analysis delete
Allows you to delete an existing analysis. You must enter the name of the analysis you want to delete by
specifying the name of an analysis on the default model or the full name.
You can reverse this modification by issuing an undo command.
Format:
analysis delete
analysis_name = existing analysis
Example:
analysis delete &
analysis_name = my_analysis
Description:
Extended Definition:
1. When using the Adams View command language and naming entities, you can use the name later to
refer to this entity. Adams View does not allow you to have two entities with the same name, so you
must provide a unique name. Normally, entity names are composed of alphabetic, numeric, or '_'
(underscore) characters, and start with an alphabetic or '_' character. They may be of any length.
By enclosing the name in double quotes, you can use other printable characters, or start the name with
a numeral. If a name contains characters, or starts with a numeral, you must always quote the name
when entering it.
analysis 5
analysis modify
Note that you can specify the parentage of an entity (for example, what part "owns" a marker or a
geometry element) when you create it by changing the name. If you enter just the entity name, then
Adams View assigns the default parent. If you type in the full name, then you can override the default
parent. In most cases, when creating an entity, Adams View provides a default name. The default
name that Adams View provides specifies the parentage that it has assumed. You can, of course, delete
this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
analysis modify
Allows you to modify an existing analysis. You must enter the name of the analysis you want to modify by
specifying the name of an analysis on the default model or the full name.
You can reverse this modification by issuing an undo command.
Format:
analysis modify
analysis_name = existing analysis
new_analysis_name = new name of analysis
Example:
analysis modify &
analysis_name = .model_1.analysis_1 &
new_analysis_name = .model.my_analysis
Description:
Extended Definition:
1. When using the Adams View command language and naming entities, you can use the name later to
refer to this entity. Adams View does not allow you to have two entities with the same name, so you
must provide a unique name. Normally, entity names are composed of alphabetic, numeric, or '_'
(underscore) characters, and start with an alphabetic or '_' character. They may be of any length.
6 Adams View Commands
analysis reload_files
By enclosing the name in double quotes, you can use other printable characters, or start the name with
a numeral. If a name contains characters, or starts with a numeral, you must always quote the name
when entering it.
Note that you can specify the parentage of an entity (for example, what part "owns" a marker or a
geometry element) when you create it by changing the name. If you enter just the entity name, then
Adams View assigns the default parent. If you type in the full name, then you can override the default
parent. In most cases, when creating an entity, Adams View provides a default name. The default
name that Adams View provides specifies the parentage that it has assumed. You can, of course, delete
this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
analysis reload_files
Allows you to read the specified analysis file into Adams View again, reloading any files that were read when
creating the analysis. The analysis files then update any existing plots or analysis results.
Format:
:
analysis reload_files
analysis_name = existing analysis
Example:
analysis reload_files &
analysis_name = my_analysis
Description:
Extended Definition:
1. When using the Adams View command language and naming entities, you can use the name later to
refer to this entity. Adams View does not allow you to have two entities with the same name, so you
must provide a unique name. Normally, entity names are composed of alphabetic, numeric, or '_'
(underscore) characters, and start with an alphabetic or '_' character. They may be of any length.
2. By enclosing the name in double quotes, you can use other printable characters, or start the name with
a numeral. If a name contains characters, or starts with a numeral, you must always quote the name
when entering it.
analysis 7
analysis reload_files
Note that you can specify the parentage of an entity (for example, what part "owns" a marker or a
geometry element) when you create it by changing the name. If you enter just the entity name, then
Adams View assigns the default parent. If you type in the full name, then you can override the default
parent. In most cases, when creating an entity, Adams View provides a default name. The default
name that Adams View provides specifies the parentage that it has assumed. You can, of course, delete
this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
8 Adams View Commands
analysis reload_files
animation 1
animation add_simulation
animation
animation add_simulation
Allows you to add a simulation to an existing animation.
Format:
:
animation add_simulation
animation_name = an existing animation
page_name = an existing page
old_analysis_name = an existing analysis
new_analysis_name = a new analysis
Example:
:
Description:
Extended Definition:
1. This command is useful when you need to compare two animations side by side. For example, if you
want to compare the animation of two cars side by side and see which is faster, you can add the
simulation of one car to the other car’s animation.
2. Normally, entity names are composed of alphabetic, numeric, or '_' (underscore) characters, and start
with an alphabetic or '_' character. They may be of any length.
2 Adams View Commands
animation create
By enclosing the name in double quotes, you may use other printable characters, or start the name
with a numeral. If a name contains characters, or starts with a numeral, you must always quote the
name when entering it.
Note that you can specify the parentage of an entity (e.g. what part "owns" a marker or a geometry
element) when you CREATE it by changing the name. If you enter just the entity name, then the
default parent will be assigned by Adams View. If you type in the full name, then you may override
the default parent. In most cases, when creating an entity, Adams View will provide a default name.
The default name that Adams View provides will specify the parentage that it has assumed.
You may, of course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
animation create
Allows you to create a model
Format:
animation create
animation_name = a new animation
analysis_name = an existing analysis
view_name = an existing view
number_of_cycles = integer
time_range = time
frame_range = integer
frame_number = integer
time = time
configuration = display_frame
increment_frame_by = integer
superimposed = on_off
base_marker = an existing marker
camera_ref_marker = an existing marker
point_trace_marker = an existing marker
icon_visibility = on_off
offset = location
colors = an existing color
animation 3
animation create
Example:
animation create &
analysis_name = Hood_1 &
view_name = View_1 &
component = Plot_1 &
number_of_cycles = 10 &
animation_name = Animation__1 &
time = 50 &
configuration = Model_input &
point_trace_marker = Marker_71 &
icon_visibility = On
Description:
Extended Definition:
1. You may reverse this creation at a later time with an UNDO command.
2. When Adams View reads a request, graphics, and results files (.req, .gra, and .res, respectively) with
the file analysis read command, it stores it in an analysis. By default, the name of the analysis is the
file name, excluding the extension.
3. Each view created has a name associated with it. The view_name parameter is used to identify a view
for a particular operation. In most cases, view_name=all is also a valid entry. The all option indicates
"all displayed views". There are eight standard views available when the Adams View is started. These
views are: front, top, right, iso, bottom, left, and back. The first four of these standard views are
displayed by default when Adams View is started.
The user may create new views using the 'VIEW MANAGEMENT CREATE' command, and
save/restore their attributesIf the VIEW_NAME parameter is used, the desired view can be identified
by picking in the window or entering the name from the keyboard.
4. This means, based on number_of_cycles parameter, the animation will continuously run through all
the specified frames the specified number of times.
f entered, the NUMBER_OF_CYCLES parameter must be a positive integer.This value will be
remembered and will be the default the next time an animation is performed. This parameter is
optional, and if not entered, will default initially to 1 (until updated by the user).
5. If entered, time_range parameter must be two real numbers (separated by commas) where the second
is greater than the first and the default values are initially 0.0,1000.0. If new values are entered, these
values will be remembered and be the default next time the parameter is used. If a value greater than
the simulation endint time is entered for the second value, the system will stop at the last frame.
These time values will be rounded to the nearest simulation output time step value.This parameter is
optional and mutually exclusive with the FRAME_RANGE parameter. If neither is entered, the
previous values to TIME_RANGE will be used (0,0,1000.0, if they have not been changed by the
user
animation 5
animation create
Special Note: Even if only one view_name is provided, the time range will be applied to the specified
view and any other views that contain the same model (the model indicated by analysis_name
parameter). If only analysis_name is provided (view_name parameter is omitted), any views that
contain the model indicated by analysis_name will be affected
6. If entered, this parameter must be two positive integers (separated by commas) where the second is
greater than the first and the default values are initially 1,10000. If new values are entered, these values
will be remembered and be the default next time the parameter is used.
If a value greater than the last frame number is entered for the second value, the system will stop at
the last frame. This parameter is optional and mutually exclusive with the TIME_RANGE parameter.
If neither is entered, the previous values to FRAME_RANGE will be used (1,10000 if they have not
been changed by the user .Special Note: Even if only one view_name is provided, the frame range will
be applied to the specified view and any other views that contain the same model (the model indicated
by analysis_name parameter). If only analysis_name is provided (view_name parameter is omitted),
any views that contain the model indicated by analysis_name will be affected
7. If entered the frame_number must be a positive integer corresponding to the desired frame (output
time step) and the default value is initially 1. If a new value is entered, this value will be remembered
and be the default next time the command is used. If a value greater than the last frame number is
entered, the system will display the last frame.
This parameter is optional and mutually exclusive with the CONFIGURATION and TIME
parameters. If none of the three are entered, the first frame will be displayed .Special Note: Even if
only one view_name is provided, the frame number will be applied to the specified view and any other
views that contain the same model (the model indicated by analysis_name parameter). If only
analysis_name is provided (view_name parameter is omitted), views that contain the model indicated
by analysis_name will be affected
8. The legal values for this parameter are:
MODEL_INPUT, the configuration as input to Adams before analysis,
INITIAL_CONDITIONS, the configuration after initial conditions are met,
EQUILIBRIUM, the configuration after an equilibrium analysis,
FORWARD, one frame forward from the current one displayed, and
BACKWARD, one frame backward from the current one displayed.
Therefore, this parameter is not used to specify a particular time or frame_number. In fact, this
parameter is mutually exclusive with the FRAME_NUMBER and TIME parameters. These two
parameters are used to specify the time dependent frames of the simulation output.
The CONFIGURATION parameter is optional and if not entered, the system will display the first
time dependent frame in the graphics file (assuming its mutually exclusive counterparts are not
entered either).
9. This allows the user to speed up the viewing of motions that take many frames to develop (that move
slowly). If a negative value is entered, the animation will play in the reverse.
If entered, the INCREMENT_FRAMES_BY parameter must have an absolute value less than the
maximum number of frames in the analysis. This parameter is optional and if not entered, will default
to 1.
6 Adams View Commands
animation delete
10. The superimposed view is sometimes referred to as a fan diagram. Superimposing frames is useful to
show the relationship of the models parts between frames but often obscures the view of the motion.
This is an optional parameter and if not entered, then no superimposed frames will be drawn. The
legal values of this parameter are ON and OFF. ON indicates that frames will be superimpose during
the animation. OFF, the default, indicates that frames will not be superimpose during the animation.
11. This is particularly useful when a relatively small object undergoes both, small configuration changes
as well as large overall gross motion. For example, the flight path of a jet is very large over time relative
to the motion of the control surfaces on the jet. In this case, selecting the BASE_MARKER to be on
the jet would be appropriate.
This parameter can be used with the CAMERA_REF_MARKER to create a different effect on the
viewing direction. When the CAMERA_REF_MARKER and the BASE_MARKER are specified
together, the viewing direction is "from" the CAMERA_REF_MARKER position "to" the
BASE_MARKER position.
In addition, the "up" direction of the view is computed based on the direction of the
CAMERA_REF_MARKER "y" axis (i.e. the y axis is projected into a direction perpendicular to the
viewing direction defined by the two markers). This viewing direction is recomputed between each
frame of the animation. This feature allows the effect of watching an object come from a distance,
pass by, and proceed into the distance.
12. camera_ref_marker parameter is used to identify a marker which specifies the viewing direction as
the model gets animated.
13. point_trace_marker parameter is particularly useful when a marker undergoes complicated motion,
or has motion that is easily obscured by other model graphics. For example, the path of a chain link
being whipped, or a car wheel center's 3D motion. In this case, selecting the BASE_MARKER to be
on the wheel center would be appropriate.
14. Entering 'ON' will cause Adams View to display the icons during animation. This will cause slower
animation times. For this reason, 'OFF' is the default value.
Cautions:
1. Typing the name is the only way to identify a stored view that is not displayed.
2. The model graphics need not be displayed to trace the path of a marker in a view. Up to 10 markers
can be traced simultaneously.
animation delete
Allows you to delete an existing animation.
Format:
animation delete
animation_name = an existing animation
animation 7
animation display
Example:
animation delete &
animation_name = ani__1
Description:
Extended Definition:
1. Normally, entity names are composed of alphabetic, numeric, or '_' (underscore) characters, and start
with an alphabetic or '_' character. They may be of any length.
By enclosing the name in double quotes, you may use other printable characters, or start the name
with a numeral. If a name contains characters, or starts with a numeral, you must always quote the
name when entering it.
Note that you can specify the parentage of an entity (e.g. what part "owns" a marker or a geometry
element) when you CREATE it by changing the name. If you enter just the entity name, then the
default parent will be assigned by Adams View. If you type in the full name, then you may override
the default parent. In most cases, when creating an entity, Adams View will provide a default name.
The default name that Adams View provides will specify the parentage that it has assumed.
You may, of course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
animation display
Allows you to display the model in the specified view.
Format:
animation display
animation_name = an existing animation
view_name = an existing view
Example:
animation display &
animation_name = animation_1 &
view_name = view_1
8 Adams View Commands
animation log
Description:
Extended Definition:
1. If no view has been specified, the model will be displayed in the active view.
This command can be useful when the the entire model is no longer visible in the current view space.
MODEL DISPLAY will "fit" the model to the current view space.
2. The view_name parameter is used to identify a view for a particular operation. In most cases,
view_name=all is also a valid entry. The all option indicates "all displayed views". There are eight
standard views available when the Adams View is started. These views are: front, top, right, iso,
bottom, left, and back. The first four of these standard views are displayed by default when Adams
View is started. The user may create new views using the 'VIEW MANAGEMENT CREATE'
command, and save/restore their attributes.
If the VIEW_NAME parameter is used, the desired view can be identified by picking in the window
or entering the name from the keyboard.
Typing the name is the only way to identify a stored view that is not displayed.
animation log
Allows you to specify whether or not cache information is to be maintained on the physical disk.
Format:
animation log
flex_caching = boolean
object_caching = boolean
Example:
animation log &
flex_caching = on &
object_caching = on
animation 9
animation modify
Description:
Extended Definition:
1. By default, cache information necessary for animations containing flexible bodies is maintained on
the disk in files with a .fcf extension. Adams PostProcessor can also maintain this information in
physical memory, which can result in significantly less disk input/output, higher CPU utilization,
and, consequently, faster performance. If you work in an environment with remote disk servers
(accessed across a network), you should see a dramatic improvement in performance if you select to
maintain the cache in memory. Users using local disk will see improvements on a smaller scale.
The disadvantage of memory caching is the increased process size and the risk that it will exceed your
computer's physical memory. If your computer has enough physical memory, then this approach is
more efficient. If your computer does not have enough physical memory, then its operating system
will begin swapping and the animation performance may be worse than when using the .fcf file. We
recommend that you test each model with this setting and monitor the process size using the Task
Manager on Windows or the equivalent tool on Linux (for example, gmemusage -s on SGI).
Cautions:
1. If the cache is turned on, performance will be improved but will use up the computer’s physical
memory.
animation modify
Allows you to modify an existing model
Format:
animation modify
animation_name = a new animation
analysis_name = an existing analysis
view_name = an existing view
number_of_cycles = integer
time_range = time
frame_range = integer
frame_number = integer
time = time
configuration = display_frame
10 Adams View Commands
animation modify
animation modify
increment_frame_by = integer
superimposed = on_off
base_marker = an existing marker
camera_ref_marker = an existing marker
point_trace_marker = an existing marker
icon_visibility = on_off
offset = location
colors = an existing color
Example:
animation modify &
analysis_name = Hood_1 &
view_name = View_1 &
component = Plot_1 &
number_of_cycles = 10 &
animation_name = Animation__1 &
time = 50 &
configuration = Model_input &
point_trace_marker = Marker_71 &
icon_visibility = On
Description:
Extended Definition:
1. You must enter the name of the model you wish to modify either by picking it from the screen or
specifying the full name.
2. You may reverse this modification at a later time with an UNDO command.
3. When Adams View reads a request, graphics, and results files (.req, .gra, and .res, respectively) with
the file analysis read command, it stores it in an analysis. By default, the name of the analysis is the
file name, excluding the extension.
4. Each view created has a name associated with it. The view_name parameter is used to identify a view
for a particular operation. In most cases, view_name=all is also a valid entry. The all option indicates
"all displayed views". There are eight standard views available when the Adams View is started. These
views are: front, top, right, iso, bottom, left, and back. The first four of these standard views are
displayed by default when Adams View is started.
12 Adams View Commands
animation modify
The user may create new views using the 'VIEW MANAGEMENT CREATE' command, and
save/restore their attributes.
If the VIEW_NAME parameter is used, the desired view can be identified by picking in the window
or entering the name from the keyboard.
5. This means, based on number_of_cycles parameter, the animation will continuously run through all
the specified frames the specified number of times.
If entered, the NUMBER_OF_CYCLES parameter must be a positive integer.
This value will be remembered and will be the default the next time an animation is performed. This
parameter is optional and if not entered, will default initially to 1 (until updated by the user).
6. If entered, time_range parameter must be two real numbers (separated by commas) where the second
is greater than the first and the default values are initially 0.0,1000.0. If new values are entered, these
values will be remembered and be the default next time the parameter is used. If a value greater than
the simulation endint time is entered for the second value, the system will stop at the last frame.
These time values will be rounded to the nearest simulation output time step value.
This parameter is optional and mutually exclusive with the FRAME_RANGE parameter. If neither
is entered, the previous values to TIME_RANGE will be used (0,0,1000.0, if they have not been
changed by the user)
Special Note: Even if only one view_name is provided, the time range will be applied to the specified
view and any other views that contain the same model (the model indicated by analysis_name
parameter). If only analysis_name is provided (view_name parameter is omitted), any views that
contain the model indicated by analysis_name will be affected
7. If entered, this parameter must be two positive integers (separated by commas) where the second is
greater than the first and the default values are initially 1,10000. If new values are entered, these values
will be remembered and be the default next time the parameter is used.
If a value greater than the last frame number is entered for the second value, the system will stop at
the last frame.
This parameter is optional and mutually exclusive of the TIME_RANGE parameter. If neither is
entered, the previous values to FRAME_RANGE will be used (1,10000, if they have not been
changed by the user)
Special Note: Even if only one view_name is provided, the frame range will be applied to the specified
view and any other views that contain the same model (the model indicated by analysis_name
parameter). If only analysis_name is provided (view_name parameter is omitted), any views that
contain the model indicated by analysis_name will be affected
8. If entered, the frame_number must be a positive integer corresponding to the desired frame (output
time step) and the default value is initially 1. If a new value is entered, this value will be remembered
and be the default next time the command is used. If a value greater than the last frame number is
entered, the system will display the last frame.
This parameter is optional and mutually exclusive with the CONFIGURATION and TIME
parameters. If none of the three are entered, the first frame will be displayed.
animation 13
animation modify
Special Note: Even if only one view_name is provided, the frame number will be applied to the
specified view and any other views that contain the same model (the model indicated by
analysis_name parameter). If only analysis_name is provided (view_name parameter is omitted), any
views that contain the model indicated by analysis_name will be affected
9. The legal values for this parameter are:
MODEL_INPUT, the configuration as input to Adams before analysis,
INITIAL_CONDITIONS, the configuration after initial conditions are met,
EQUILIBRIUM, the configuration after an equilibrium analysis,
FORWARD, one frame forward from the current one displayed, and BACKWARD, one frame
backward from the current one displayed.
Therefore, this parameter is not used to specify a particular time or frame_number. In fact, this
parameter is mutually exclusive with the FRAME_NUMBER and TIME parameters. These two
parameter are used to specify the time dependent frames of the simulation output.
The CONFIGURATION parameter is optional and if not entered the system will display the 1st
time dependent frame in the graphics file (assuming it's mutually exclusive counterparts are not
entered either).
10. This allows the user to speed up the viewing of motions that take many frames to develop (that move
slowly). If a negative value is entered, the animation will play in reverse.
If entered, the INCREMENT_FRAMES_BY parameter must have an absolute value less than the
maximum number of frames in the analysis. This parameter is optional and if not entered, will default
to 1.
11. The superimposed view is sometimes referred to as a fan diagram. Superimposing frames is useful to
show the relationship of the models parts between frames but often obscures the view of the motion.
This is an optional parameter and if not entered then no superimposed frames will be drawn. The
legal values of this parameter are ON and OFF. ON indicates that frames will be superimpose during
the animation. OFF, the default, indicates that frames will not be superimpose during the animation.
12. This is particularly useful when a relatively small object undergoes both small configuration changes
as well as large overall gross motion. For example, the flight path of a jet is very large over time relative
to the motion of the control surfaces on the jet. In this case selecting the BASE_MARKER to be on
the jet would be appropriate.
This parameter can be used with the CAMERA_REF_MARKER to create a different effect on the
viewing direction. When the CAMERA_REF_MARKER and the BASE_MARKER are specified
together, the viewing direction is "from" the CAMERA_REF_MARKER position "to" the
BASE_MARKER position.
In addition, the "up" direction of the view is computed based on the direction of the
CAMERA_REF_MARKER "y" axis (that is, the y axis is projected into a direction perpendicular to
the viewing direction defined by the two markers). This viewing direction is recomputed between
each frame of the animation. This feature allows the effect of watching an object come from a
distance, pass by, and proceed into the distance.
14 Adams View Commands
animation pause
13. camera_ref_marker parameter is used to identify a marker which specifies the viewing direction as
the model gets animated.
14. point_trace_marker parameter is particularly useful when a marker undergoes complicated motion,
or has motion that is easily obscured by other model graphics. For example, the path of a chain link
being whipped, or a car wheel center's 3D motion. In this case, selecting the BASE_MARKER to be
on the wheel center would be appropriate.
15. Entering 'ON' will cause Adams View to display the icons during animation. This will cause slower
animation times. For this reason, 'OFF' is the default value.
Cautions:
1. Typing the name is the only way to identify a stored view that is not displayed.
2. The model graphics need not be displayed to trace the path of a marker in a view. Up to 10 markers
can be traced simultaneously.
animation pause
Allows you to pause/stop an animation while it is running.
Format:
animation pause
animation_name = an existing animation
page_name = an existing page
Example:
animation pause &
animation_name = animation_1 &
page_name = page_1
Description:
Extended Definition:
1. The parameter supplied to this command could be either an animation name or a page name (run
from the post processor)
animation 15
animation play
animation play
Allows you to play an animation.
Format:
animation play
animation_name = an existing animation
page_name = an existing page
Example:
animation play &
animation_name = animation_1 &
page_name = page_1
Description:
When one of the axes on the plot is time, then the axis limits
change with each frame of the animation according to the
time_window specified. For data vs data plots, the axis
limits stay unchanged during the animation and only the
time-sliced portion of the curve advances on the plot.
Extended Definition:
1. The parameter supplied to this command could either be an animation name or a page name (run
from the post processor)
16 Adams View Commands
animation record start
Format:
animation record start
image_prefix = string
image_type = string
avi_frames_per_sec = integer
avi_compression = boolean
avi_quality = integer
avi_keyframe_every = integer
mpeg_ngop = integer
mpeg_round_size = boolean
window_size = integer
Example:
animation record start &
image_prefix = ".jpg" &
image_type = jpg &
avi_frames_per_sec = 15 &
avi_compression = no &
avi_quality = 10 &
avi_keyframe_every = 25 &
mpeg_ngop = 2 &
mpeg_round_size = yes &
window_size = 2
Description:
Extended Definition:
1. Adams PostProcessor appends a unique number to the prefix to form the name of each file. For
example, if you specify a prefix of suspension, then each .tif file is named suspension_0001.tif,
suspension_0002.tif, and so on. If you do not specify a name, the prefix is frame (for example,
frame_001.tif).
2. When a digital movie stream is encoded with compression, the pixels of each frame are evaluated
against previous frames (those designated as key) and only pixels that changed are stored. For example,
a movie of a car traveling along a road can have many pixels in the image background that do not
change during the entire movie. Therefore, storing only the pixels that change allows for significant
compression. In many cases, however, it can degrade movie quality, especially with movies where a
large percentage of pixels are changing from frame-to-frame, such as with wireframe graphics. Because
Adams PostProcessor lets you set the key frame rates, you control both, the compression factor and
the movie quality.
3. Movies with many key frames will have high quality, while movies with few key frames, such as the
default every 5000 frames, will have lower quality. For a typical 20-second AVI movie of a shaded
Adams model, a key frame rate would be 12.
4. Some playback programs require the pixel height and width to be multiples of 16. Turning the
mpeg_round_size option ‘on’ ensures that your movie plays in many playback programs.
5. One can successfully record .avi movies of animations even if during the recording other windows are
placed in the foreground over top of the Adams PostProcessor window or if the Adams PostProcessor
window is moved (for example, to another monitor) or if it is minimized. Though, in the case of
window minimization, only the model animation records successfully; any adjacent panes of plot
tracking animation will not appear correctly.
Format:
animation record stop
Example:
animation record stop
animation replace_simulation
Replace an existing analysis/page name with another in the animation.
Format:
animation replace_simulation
animation_name = an existing animation
page_name = an existing page
old_analysis_name = an existing analysis
new_analysis_name = a new analysis
Example:
animation replace_simulation &
animation_name = anim__1 &
old_analysis_name = last_run &
new_analysis_name = ana__1
animation 19
animation reset
Description:
Extended Definition:
1. This command is useful when you need to compare two animations side by side. For example if you
want to compare the animation of two cars side by side and see which is faster, you can add the
simulation of one car to the other cars animation.
2. Normally, entity names are composed of alphabetic, numeric, or '_' (underscore) characters, and start
with an alphabetic or '_' character. They may be any length.
By enclosing the name in double quotes, you may use other printable characters, or start the name
with a numeral. If a name contains characters, or starts with a numeral, you must always quote the
name when entering it.
Note: You can specify the parentage of an entity (e.g. what part "owns" a marker or a geometry
element) when you CREATE it by changing the name. If you enter just the entity name, then
the default parent will be assigned by Adams View. If you type in the full name, then you may
over ride the default parent. In most cases, when creating anentity, Adams View will provide
a default name. The default namethatAdams View provides will specify the parentage that it
has assumed.
You may, or course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
animation reset
Allows you to reset an animation.
20 Adams View Commands
animation step
Format:
:
animation reset
animation_name = an existing animation
page_name = an existing page
Example:
animation reset &
animation_name = an existing animation &
page_name = an existing page
Description:
Extended Definition:
1. The parameter supplied to this command could either be an animation name or a page name (run
from the post processor)
animation step
Allows you to step the animation either forward or backwards as needed.
Format:
animation step
direction = animation_direction
animation_name = an existing animation
page_name = an existing page
Example:
animation step &
direction = forward &
animation_name = animation_1 &
page_name = page_1
animation 21
animation step
Description:
Extended Definition:
1. When you play an animation, Adams View plays every frame by default. You can rewind an
animation and play the animation at various speeds. During fast-forward and fast-backward play
modes, Adams View plays only every fifth frame.
22 Adams View Commands
putenv
toolkit
putenv
Allows you to set or change the value of an environment variable.
Format:
aview toolkit putenv
env = string
value = string
Example:
aview toolkit putenv &
env = "MY_VARIABLE" &
value = "1"
Description:
Extended Definition:
See view function PUTENV for more information.
break 1
break
Allows you to exit the innermost FOR or WHILE loop immediately and stop execution of the loop.
When Adams View encounters a BREAK command inside a loop, it immediately exits the loop without
executing the remaining commands for that iteration.
The BREAK command affects only the innermost FOR or WHILE loop.
Format:
BREAK
Example:
variable create variable_name=ip integer_value=0
while condition=(ip < 5)
variable modify variable_name=ip integer_value(eval(ip+1))
if condition=(eval(DB_EXISTS ("MAR"//ip)))
break
end
marker create marker_name=(eval("MAR"//ip)) &
location=(eval(ip-1)),0,0
end
variable delete variable_name=ip
In this example, Adams View creates markers, named MAR1, MAR2, MAR3, MAR4, and MAR5, unless a
marker already exists with one of those names. As soon as it encounters an existing marker, Adams View exits
the loop and does not create any more.
2 Adams View Commands
callback 1
callback copy
callback
callback copy
Allows you to copy an existing callback routine.
Format:
Callback copy
callback_name = Existing callback name
New_callback_name = String
Example:
callback copy &
callback_name = callback_1 &
New_callback_name = my_copy
Description:
Tip: On typing "callback copy" followed by a "?" in the command window, the option
"callback_name =" is automatically displayed. If you need to find out the various contacts
already present, type ? once again. This will result in all the existing callback names that can be
copied being displayed in the command window.
callback create
Allows you to create multiple callback routines within a single model. This allows the design of HPC
solutions in the user space. It provides a clear framework for users who implement complex user subroutines
to design memory management and parallel simulations running along Adams simulation.
2 Adams View Commands
callback delete
Format:
Callback create
callback_name = New callback name
Adams_id = Integer
Routine = String
Priority = Integer
Example:
Callback create
callback_name = callback_1 &
routine = callback05::myCbksub &
priority = 1
Description:
Extended Definition:
User-written subroutines are used primarily for modeling specialized phenomena or calculating nonstandard
results. Many simulations require the modeling of special phenomena that are not a part of the standard
Adams software. These phenomena may be expressed mathematically as differential equations, algebraic
equations, applied forces, constraints, motion inputs to system, or a combination of these general modeling
entities.
Adams Solver can accept user-specified descriptions of phenomena. You define the governing relationships
for the phenomena in the user-written subroutines. Adams then evaluates these relationships as part of the
solution process.
For more information about user-written subroutines and details about each of the user-written subroutines,
see User-Written Subroutines.
callback delete
Allows you to delete an existing callback routine.
callback 3
callback modify
Format:
Callback delete
callback_name = Existing callback name
Example:
Callback_delete &
Callback_name = CALLBACK_1
Description:
Tip: 1. On typing "calback delete" followed by a "?" in the command window, the option
"callback_name =" is automatically displayed. If you need to find out the various
contacts already present, type ? once again. This will result in all the existing callback
names that can be deleted being displayed in the command window.
2. You may reverse this deletion at a later time with an UNDO command.
callback modify
Allows you to modify an existing callback routine.
Format:
Callback modify
callback_name = Existing callback name
Adams_id = Integer
Routine = String
Priority = Integer
Example:
callback modify &
callback_name = callback_1 &
routine = “callback05::myCbksub” &
priority = 1
4 Adams View Commands
callback modify
Description:
Extended Definition:
User-written subroutines are used primarily for modeling specialized phenomena or calculating nonstandard
results. Many simulations require the modeling of special phenomena that are not a part of the standard
Adams software. These phenomena may be expressed mathematically as differential equations, algebraic
equations, applied forces, constraints, motion inputs to system, or a combination of these general modeling
entities.
Adams Solver can accept user-specified descriptions of phenomena. You define the governing relationships
for the phenomena in the user-written subroutines. Adams then evaluates these relationships as part of the
solution process.
For more information about user-written subroutines and details about each of the user-written subroutines,
see User-Written Subroutines.
check_messages 1
check_messages
This command provides you with a way to monitor an Adams simulation while it is running in batch mode.
This is done by querying the Adams message data base using some filter and sorting parameters.
The FAULTS, ERRORS, WARNINGS, and INFO parameters allow you to filter out only the messages that
you want to see. All messages will be reported with like messages grouped according to message type, unless
the SORT_BY_TIME parameter is set to YES.
The SORT_BY_TIME parameter specifies in what order the messages of all types are to be reported. When
SORT_BY_TIME is set to YES, all message types will be merged together and reported in the order in which
they occurred during the simulation (i.e. sorted on the base of simulation time).
The FILE_NAME parameter specifies the name of the Adams message file that is to be read. This parameter
will default to the message file for the default analysis unless you override it by providing another
FILE_NAME with this parameter is specified. The proper extension is ".mdb", the default, but can be
overridden by simply supplying a different extension.
You do not need to enclose the file name in quotes if it only contains alpha-numeric characters and starts with
a letter. If you want to include other characters, such as a '.' for an extension or '/' or '[]' for directory paths,
you must enclose the name in quotes.
Format:
check_messages
file_name = string
faults = boolean
errors = boolean
warnings = boolean
info = boolean
sort_by_time = boolean
Example:
check_messages &
faults = yes &
errors = yes &
warnings = no &
info = no &
sort_by_time = yes
When the above command is executed, all the messages related to faults and errors will be displayed in the
order in which they occur during the simulation.
2 Adams View Commands
Description:
Extended Definition:
1. The FILE_NAME parameter will default to the file for the default analysis unless this parameter is
specified. The proper extension is ".mdb", the default, but can be overridden by simply supplying a
different extension.
You do not need to enclose the file name in quotes if it only contains alpha-numeric characters and
starts with a letter. If you want to include other characters, such as a '.' for an extension or '/' or '[]'
for directory paths, you must enclose the name in quotes.
2. All messages of type FAULTS, ERROR, WARNINGS and INFO will be reported together unless
the SORT_BY_TIME parameter is set to yes. In this case, all message types will be merged together
and reported in the order in which they occurred during the simulation (i.e. sorting based on
simulation time).
clearance 1
clearance compute
clearance
clearance compute
Allows you to carry out the specified clearance study for post-processing clearances. Use the menu items Tools
→ Clearance → Compute in Adams PostProcessor, to execute a clearance study.
Format:
clearance compute
analysis_name = existing analysis
treat_flex_as_rigid = yes/no
Example:
clearance compute &
analysis_name = Last_Run &
treat_flex_as_rigid = yes
Description:
Extended Definition:
The clearance study which is being carried out uses the analysis specified by the existing_analysis
parameter as the basis of the study.
Note: This command is for computing post-processing clearances only. Run-time clearances will not
be computed using this command.
clearance create
Creates a new clearance study. There are two kinds of clearances in Adams, Run-time clearances and Post-
processing clearances. Use the menu items Tools → Clearance→ Create in Adams PostProcessor, to create a
clearance study for post-processing clearance.
2 Adams View Commands
clearance create
Format:
clearance create
clearance_name = string
comments = string
i_geometry = existing geometry
i_part = existing part
i_flex = existing flexible body
j_geometry = existing geometry
j_part = existing part
j_flex = existing flexible body
i_region = existing matrix
j_region = existing matrix
i_exclude = boolean
maximum = real
threshold = real
method = selection list
run_time = boolean
Example:
clearance create &
clearance_name = .testdb.CLEARANCE_1 &
comments = " test comment for post-processing
clearances " &
i_geometry = LINK_2 &
j_geometry = BOX_1 &
maximum = 90 &
method = polygon
clearance_name = .testdb.CLEARANCE_run_time &
comments = " test run-time clearance comment" &
i_flex = FLEX_BODY_1,FLEX_BODY_2 &
j_geometry = BOX_1 &
i_region = MATRIX_1,MATRIX_2 &
i_exclude = no,yes &
threshold = 20 &
run_time = yes
clearance 3
clearance create
Description:
Extended Definition:
1. There are two distinct types of clearances supported in Adams, Run time clearances and Post
Processing clearances. If the run_time parameter is not specified or specified as "no" then, the
clearance is treated as a post-processing clearance. The parameters threshold, i_region, j_region,
i_exclude and j_exclude are available only with run-time clearances. The parameters method and
maximum are only available with post-processing clearances.
2. The information entered in the comments parameter is displayed as the title on the post-processing
clearance plot which can be generated by the Adams Postprocessor.
3. Clearance can be found out between two bodies which can be parts, flexible bodies or geometries. If
the first selected body happens to be a geometry, i_geometry should be selected as the parameter which
holds the first body for clearance create.
4. Clearance can be found out between two bodies which can be parts, flexible bodies or geometries. If
the second selected body happens to be a geometry, j_geometry should be selected as the parameter
which holds the second body for clearance create.
5. Clearance can be found out between two bodies which can be parts, flexible bodies or geometries. If
the first selected body happens to be a part, i_part should be selected as the parameter which holds
the first body for clearance create.
6. Clearance can be found out between two bodies which can be parts, flexible bodies or geometries. If
the second selected body happens to be a part, j_part should be selected as the parameter which holds
the second body for clearance create.
7. Clearance can be found out between two bodies which can be parts, flexible bodies or geometries. If
the second selected body happens to be a flexible body, i_flex should be selected as the parameter
which holds the second body for clearance create.
clearance 5
clearance delete
Note: Only a single flexible body can be specified for post-processing clearance whereas
multiple flexible bodies separated by commas, can be specified for run-time clearances.
8. Clearance can be found out between two bodies which can be parts, flexible bodies or geometries. If
the second selected body happens to be a flexible body, j_flex should be selected as the parameter
which holds the second body for clearance create.
Note: Only a single flexible body can be specified for post-processing clearance whereas
multiple flexible bodies separated by commas, can be specified for run-time clearances.
9. To reduce the calculations in the clearance study for post processing clearances, you can also define a
maximum distance above which Adams PostProcessor does not calculate the clearance. When you
play an animation, if the distance between the pair of objects is greater than the maximum distance
specified by you, Adams PostProcessor does not display a line between the objects. In addition, in the
clearance study reports, if the distance between two selected bodies exceeds the maximum distance
specified by you, Adams PostProcessor records the distance as the maximum distance and not the
actual distance.
10. For run-time clearances, the threshold parameter specifies a double precision distance. If the gross
clearance check is greater than this value, then the precise check is skipped and the gross value is
returned. By default, the threshold parameter has value 0.0, indicating that the precise check is always
to be done.
11. Adams PostProcessor uses two different calculations for clearance studies - polygon and vertex.
• Polygon
In the Polygon method, Adams PostProcessor calculates the minimum distance between the
surfaces of the triangles that make up the geometry. This is the most accurate method but requires
the most time and calculations. See also, Vertex.
• Vertex
In Vertex method, Adams PostProcessor calculates only the minimum distances between the
vertices of the triangles that make up the geometry. This method is less accurate than Polygon,
but calculates faster.
clearance delete
Allows you to delete an existing clearance study.
Format:
clearance delete
clearance_name = an existing clearance
6 Adams View Commands
clearance export_results
Example:
clearance delete &
clearance_name = Clearance_1
Description:
clearance export_results
Allows you to export the results of an existing post-processing clearance study to the specified file.
Format:
clearance export_results
file_name = any file
analysis_name = an existing analysis
Example:
clearance export_results &
file_name = "c:/testdir/test.out" &
analysis_name = Last_Run
Description:
Extended Definition:
1. This parameter gets assigned the name of the output file to which the results of the current clearance
study should be written.
2. This analysis specified by the analysis_name parameter is used as the basis for the clearance study
being carried out.
clearance 7
clearance modify
Note: This command is for exporting post-processing clearances only. Run-time clearances will not
be exported using this command.
clearance modify
Enables the user to modify an existing clearance study.
Format:
clearance modify
clearance_name = an existing clearance
new_clearance_name = a new clearance
comments = comment string
maximum = real value
threshold = real value
method = selection list
Example:
clearance modify &
clearance_name = clearance_4 &
new_clearance_name = clearance_4_new_1 &
comments = "clearace_4 modified &
maximum = 120.0
Description:
Extended Definition:
1. When you play an animation, if the distance between the pair of objects is greater than the maximum
distance specified by you, Adams PostProcessor does not display a line between the objects. In
addition, in the clearance study reports, if the distance between two selected bodies exceeds the
maximum distance specified by you, Adams PostProcessor records the distance as the maximum
distance and not the actual distance. This parameter can only be specified in case the clearance was
defined to be of type post-processing clearance.
2. For run-time clearances, when the clearance distance exceeds the threshold value, the precise check is
skipped and the gross clearance value is returned. This parameter can only be specified in case the
clearance was defined to be of type run-time clearance.
3. Adams PostProcessor uses two different calculations for clearance studies - polygon and vertex.
• Polygon
In the Polygon method, Adams PostProcessor calculates the minimum distance between the
surfaces of the triangles that make up the geometry. This is the most accurate method but requires
the most time and calculations. See also Vertex.
• Vertex
In Vertex method, Adams PostProcessor calculates only the minimum distance between the
vertices of the triangles that make up the geometry. This method is less accurate than Polygon,
but calculates faster.
color 1
color create
color
Allows you to select a basic color or create a custom color to be used for displaying objects, the background
of the main window and any view windows that you create.
color create
Allows you to create a new color by specifying the red, blue and green components of the color.
Format:
color create
color_name = a new color
red_component = real
green_component = real
blue_component = real
Example:
color create &
Color_name = MY_COLOR &
Red_component = 0.98 &
Green_component = 0.89 &
Blue_component = 0.66
Description:
Extended Definition:
1. Color_name should be different from the names of any of the existing colors present. If you need to
modify the hue of an existing color, then use the modify keyword within the command color.
2. Red_component can be a real value greater than or equal to zero and less than or equal to one. You
can use any combination of red, green, or blue to define a color.
2 Adams View Commands
color modify
3. Green_component can be a real value greater than or equal to zero and less than or equal to one. You
can use any combination of red, green, or blue to define a color.
Blue_component can be a real value greater than or equal to zero and less than or equal to one. You
can use any combination of red, green, or blue to define a color.
color modify
This command allows you to modify an existing color by changing the red, blue and green components of
the color.
Format:
color modify
color_name = an existing color
new_color_name = a new color
red_component = real
green_component = real
blue_component = real
Example:
color modify &
Color_name = MY_COLOR &
New_color_name = MODIFIED_COLOR &
Red_component = 0.99 &
Green_component = 0.89 &
Blue_component = 0.56
Description:
Extended Definition:
1. The new_color_name parameter allows the user to change the name of the existing color. For
example, if you make an existing color, RED, lighter by reducing its red component, you could
rename it as, say, LT_RED.
2. Red_componenet can be a real value greater than or equal to zero and less than or equal to one. You
can use any combination of red, green, or blue to define a color.
3. Green_component can be a real value greater than or equal to zero and less than or equal to one. You
can use any combination of red, green, or blue to define a color.
4. Blue_component can be a real value greater than or equal to zero and less than or equal to one. You
can use any combination of red, green, or blue to define a color.
4 Adams View Commands
color modify
constraint 1
constraint attributes
constraint
constraint attributes
Allows the specification of attributes to be set on an individual constraint or a group of constraints.
Format:
constraint attributes
constraint_name = existing constraint
scale_of_icons = real
size_of_icons = length
visibility = on/off/no_opinion/toggle
name_visibility = on/off/no_opinion/toggle
color = existing color
active = on/off/no_opinion
dependents_active = on/off/no_opinion
Example:
constraint attributes &
constraint_name = joint_1 &
scale_of_icons = 1.2 &
visibility = on &
name_visibility = off &
active = on &
dependents_active = off
The above statement will set the new size of the icons by multiplying the current icon size by 1.2. The Joint_1
will be visible since its visibility parameter is turned ON. The visibility of the view name displayed at the top
center position of a given view will be turned OFF since the name_visibility parameter is turned OFF.
If JOINT_1 has a marker MAR1 which is the I marker of a joint JOI1 (which has a J marker MAR2), then
JOI1 will be deactivated as well because the dependants_active parameter being turned OFF.
Also, if the joint JOI1 is referenced in a request function, or if the I marker is referenced by a request, then
the request will be deactivated.
2 Adams View Commands
constraint attributes
Description:
Extended Definition:
1. You may identify a constraint by typing its name or by picking it from the screen.
• If the constraint is not visible on the screen, you must type the name. You may also find it
convenient to type the name even if the constraint is displayed.
• If you created the constraint by reading an Adams data set, the constraint name is the first three
letters of the Adams statement type followed by the Adams data set constraint ID number. The
name of ADAMS JOINT/101 is JOI101, for example. If you created the constraint during
preprocessing, you gave it a name at that time.
• If a constraint is available by default, you may identify it by entering its name only. If it is not,
you must enter its full name. To identify a constraint under a different model, for instance, you
may need to enter the model name as well. For example, you may specify constraint 'servo_motor'
from model 'test' by entering ".test.servo_motor". If you type a "?", Adams View will list the
constraints available by default.
• You must separate multiple constraint names by commas.
• If the constraint is visible in one of your views, you may identify it by picking on any of the
graphics associated with it.
• You need not separate multiple constraint picks by commas.
constraint 3
constraint attributes
2. If no initial size is specified for Adams View icons, the default size will be one modeling LENGTH
unit. For example, if the modeling units are K/M/S, a part axes icon will have triad legs of one meter
in length.
When you specify SCALE_OF_ICONS, a new size is calculated by multipling the current size, by
the scale, and storing the product as the new ICON_SIZE.
3. If no initial size is specified for Adams View icons, the default size will be one modeling LENGTH
unit. For example, if the modeling units are K/M/S, a part axes icon will have triad legs of one meter
in length.
When you set SIZE_OF_ICONS at the model level, all Adams View icons used in creating a model
will use the size specified.
If the model has an SIZE_OF_ICONS set, and a part under that model has a different
SIZE_OF_ICONS, the model's ICONS_SIZE will take precedence.
An Example:
.model ---------------------- SIZE_OF_ICONS = .15 meters
.constraint -------------------- SIZE_OF_ICONS = .125 meters
The constraint's icon will be 1.5 meters is size.
If the model has SIZE_OF_ICONS of set to 0.0 , and a constraint under that model has a
SIZE_OF_ICONS set to .125, the constraint's icon size will be used.
An Example:
.model ---------------------- SIZE_OF_ICONS = 0.0 meters
.constraint -------------------- SIZE_OF_ICONS = .125 meters
The constraint's icon will be .125 meters is size.
4. The visibility parameter is used to control whether graphic entities, such as markers, joints, and parts,
are to be drawn in an Adams View viewport. The legal values for this parameter are: ON, OFF, and
TOGGLE. ON will make the desired entity visible. OFF will make the desired entity invisible.
TOGGLE will take the current state of an entities visibility and reverse it.
5. The legal values of the visibility parameter are ON and OFF. This is an optional parameter and if not
entered the name will be visible (i.e. will be ON).
6. Adams View allows you to specify the following colors for modeling entities: BLACK, WHITE,
RED, GREEN, BLUE, CYAN, MAGENTA, YELLOW, and NO_COLOR
Specifying 'NO_COLOR' for a modeling entity, instructs Adams View to use the default color for
this entity, if there is no color present in its parent modeling entity.
Example 1:
.model -------------------------NO_COLOR
.part---------------------- RED
.geometry(circle) ------- NO_COLOR
The circle will be RED.
Example 2:
.model -------------------------NO_COLOR
.part---------------------- RED
.geometry(circle) ------- BLUE
4 Adams View Commands
constraint attributes
If a parent modeling entity has a color previously specified, that color takes precedence. Adams View
will issue a warning message about color precedence. The circle will be RED.
Example 3:
.model -------------------------NO_COLOR
.part---------------------- NO_COLOR
.geometry(circle) ------- BLUE
The circle will be BLUE.
7. If you set ACTIVE=NO on a part, but wish for a marker on that part to be on, then you must
explicitly set ACTIVE=YES on the marker, after setting activation on the part.
The DEPENDENTS_ACTIVE parameter acts in the same fashion, but sets the ACTIVE attribute
for the dependents, all the way down the dependency chain. For example, if you execute the following
command:
PART ATTRIBUTES PART=PAR1 DEPENDENTS_ACTIVE=NO
Where PAR1 has a marker MAR1 which is the I marker of a joint JOI1 (which has a J marker MAR2),
then JOI1 will be deactivated.
Also, if the joint JOI1 is referenced in a request function, or if the I marker is referenced by a request,
then the request will be deactivated.
Propagation of activation status through groups is as if each element were to have its activation status
changed indvidually.
Elements affected are:
• Group
• Part
• Differential Equation
• Marker
• Geometry
• Constraints
• Forces
• Data Elements
• Output Control
8. You can set the following attributes on a constraint.
SIZE_OF_ICONS / SCALE_OF_ICONS: These two parameters are mutually exclusive. You may
set a size of the icon used for the constraint representation in modeling units, or you may scale the
size of the icon by a non-unit scale factor.
VISIBILITY. You may set a constraint's visibility ON, OFF or TOGGLE the current setting. When
you set a constraint's visibility OFF, the constraint will not be drawn. When you set a constraint's
visibility ON, you allow that constraint to be drawn.
NAME_VISIBILITY: You may set a constraint's name label visibility ON, OFF or TOGGLE the
current setting with this parameter.
constraint 5
constraint copy
COLOR: You may set the color of a constraint with this parameter.
If an entity does not have a GRAPHICS ATTRIBUTE setting, the value for that GRAPHIC
ATTRIBUTE may be inherited from another entity. INHERITANCE may be either TOP_DOWN
or BOTTOM_UP.
BOTTOM_UP and TOP_DOWN refer to the natural hierarchy of the Adams model. The hierarchy
is a tree structure with the model at the apex. Parts exist beneath the model, and markers exist beneath
the parts. If the icon size of the model is set to 0.1, and the default INHERITANCE is set to
TOP_DOWN, then all icons displayed within the model will be displayed at this size. However, if
the icon size of a model is set to 0.1, and then the default INHERITANCE is set to BOTTOM_UP,
then any icons set to a size other than the model's icon size will be displayed at their own size.
Caution: Note that if the visibility of the view name is turned off the only indication that a view is
"active" will be the color of the viewport border. This would be a problem on a black and white
monitor.
Tip: Use the constraint_name parameter to identify the existing constraint to affect with this
command.
constraint copy
Allows you to create a replica constraint within the same model.
Format:
constraint copy
constraint_name = existing constraint
new_constraint_name = new constraint name
Example:
constraint copy &
constraint_name = joint_1 &
new_constraint_name = copy_joint_1
Description:
Extended Definition:
1. Any Adams View object you delete, may be "undeleted" by using the UNDO commands. If you have
deleted something you would like back, enter the command "undo backward", or pick on the fixed
menu entry 'UNDO'.
• You may identify a constraint by typing its name or by picking it from the screen.
• If the constraint is not visible on the screen, you must type the name. You may also find it
convenient to type the name even if the constraint is displayed.
• If you created the constraint by reading an Adams data set, the constraint name is the first three
letters of the Adams statement type followed by the Adams data set constraint ID number. The
name of Adams joint/101 is JOI101, for example. If you created the constraint during
preprocessing, you gave it a name at that time.
• If a constraint is available by default, you may identify it by entering its name only. If it is not,
you must enter its full name.
• To identify a constraint under a different model, for instance, you may need to enter the model
name as well. For example, you may specify constraint 'servo_motor' from model 'test' by
entering ".test.servo_motor". If you type a "?", Adams View will list the constraints available by
default.
• You must separate multiple constraint names by commas.
• If the constraint is visible in one of your views, you may identify it by picking on any of the
graphics associated with it.
• You need not separate multiple constraint picks by commas.
2. Adams View will not allow you to have two constraints with the same full name, so you must provide
a unique name.
Normally, entity names are composed of alphabetic, numeric, or '_' (underscore) characters, and start
with an alphabetic or '_' character. They may be any length.
By enclosing the name in double quotes, you may use other printable characters, or start the name
with a numeral. If a name contains characters, or starts with a numeral, you must always quote the
name when entering it.
Note that you can specify the parentage of an entity (for example, what part "owns" a marker or a
geometry element) when you create it by changing the name. If you enter just the entity name, then
the default parent will be assigned by Adams View. If you type in the full name, then you may over
ride the default parent. In most cases, when creating an entity, Adams View will provide a default
name. The default name that Adams View provides will specify the parentage that it has assumed.
You may, or course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
3. This replica constraint will be identical to the original with the exception of the constraint name.
Constraints must have unique names relative to other constraints in a given model. The replica will
be completely independent of the original, and may be modified without effecting the original.
constraint 7
constraint create complex_joint coupler
When the new constraint is created, it uses the same markers or joints as the original. A first step after
the copy of a joint constraint might be to modify the I and J markers on the replica.
Constraints may not be copied from model to model.
Tip: You may use the new_constraint_name later to refer to the constraint.
Format:
constraint create complex_joint coupler
coupler_name = a new coupler
adams_id = adams_id
comments = string
joint_name = an existing joint
type_of_freedom = coupler_freedom
motion_multipliers = real
first_angular_scale_factor = angle
first_scale_factor = real
second_angular_scale_factor = angle
second_scale_factor = real
third_angular_scale_factor = angle
third_scale_factor = real
user_function = real
Example:
constraint create complex_joint coupler &
coupler_name = coupler__1 &
adams_id = 1 &
comments = "comment string" &
joint_name = joint_1 , joint_1 &
motion_multipliers = 0.1 , 0.2 &
type_of_freedom = rot_rot_rot
8 Adams View Commands
constraint create complex_joint coupler
Description:
Extended Definition:
1. A coupler creates the coupling of the translational and/or the rotational motion of two or three joints.
With this constraint, you can deliver or relate motion from one area of a mechanism to another.
Components whose behavior you might approximate with this statement include combinations of
hydraulic generators, motors, and pistons and include flexible, rotational transmission cables.
2. Normally, entity names like the coupler name are composed of alphabetic, numeric, or '_'
(underscore) characters, and start with an alphabetic or '_' character. They may be any length. By
enclosing the name in double quotes, you may use other printable characters, or start the name with
a numeral. If a name contains characters, or starts with a numeral, you must always quote the name
when entering it. Note that you can specify the parentage of an entity (for example, what part "owns"
a marker or a geometry element) when you create it by changing the name. If you enter just the entity
name, then the default parent will be assigned by Adams View. If you type in the full name, then you
may over ride the default parent. In most cases, when creating an entity, Adams View will provide a
default name. The default name that Adams View provides will specify the parentage that it has
assumed. You may, or course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
3. When you use the File Adams_data_set write command, Adams View writes an Adams data file
for your model. Adams requires that each modeling element be identified by a unique integer
identifier. If you use this parameter to specify a non-zero identifier, Adams View will use it in the
corresponding statement in the Adams data file. You may also enter zero as an identifier, either
explicitly or by default. The next time you write an Adams file, Adams View will replace the zero with
a unique, internally-generated identifier. Adams View will permanently store this identifier with the
element just as if you had entered it yourself. Normally, you would let all identifiers default to zero,
and Adams View would generate the identifiers for you. You are never required to enter a non-zero
identifier. You only need to specify it if, for some reason, you wish to control the Adams file output.
10 Adams View Commands
constraint create complex_joint coupler
4. When an Adams Solver data file (.adm) is read into Adams View, all comments associated with a
statement (from the end of the previous statement through the end of the current statement) are
stored with the object. Comments in the data file can be associated with model. These comments
must follow the title statement and be followed by the comment 'END OF MODEL
COMMENTS'. This string must be uppercase. When an Adams Solver data file is written, the
comments for an object are written before the statement corresponding to the object.
5. You may identify a joint by typing its name or by picking it from the screen. If the joint is not visible
on the screen, you must type the name. You may also find it convenient to type the name even if the
joint is displayed. If you created the joint by reading an data set or graphics file, the joint name is the
letters JOI followed by the Adams data set joint ID number. The name of Adams JOINT/101 is
JOI101, for example. If you created the joint during preprocessing, you gave it a name at that time.
If a joint is available by default, you may identify it by entering its name only. If it is not, you must
enter its full name. To identify a joint under a model, for instance, you may need to enter the model
name as well. For example, you may specify joint 'lower_pivot' in model 'links' by entering
".links.lower_pivot". You must separate multiple joint names by commas. If the joint is visible in one
of your views, you may identify it by picking on any of the graphics associated with it. You need not
separate multiple joint picks by commas.
6. Adams assumes that translational joints transfer translational motion and that revolute joints transfer
rotational motion. A cylindrical joint permits both translational and rotational motion, however. If
your coupler includes cylindrical joints, you must use this parameter to indicate which motion is
transferred at each joint.
7. Adams uses the values in the SCALES argument in the following equation:
(r1 * q1) + (r2 * q2) + (r3 * q3) = 0,
where r1, r2, and r3 are the scale factors for the three joints and q1, q2, and q3 are the translational
or the rotational displacements of the joint I markers with respect to their J markers. Suppose you are
coupling two joints, and SCALES=1,-2. The equation that relates the two joints is
q1 + (-2 * q2) = 0, or
q1 = 2 * q2.
The displacement (q1) of the I marker with respect to the J marker in the first joint is twice that of
the displacement (q2) of the I marker with respect to the J marker in the second joint; the two
displacements have the same sign. If you specify two joints in the JOINTS argument, you must
specify r2. If you specify only one value, Adams assumes it is r2 and uses the default value of 1 for r1.
8. Adams uses the first_angular_scale_factor (r1) in the following equation:
(r1 * q1) + (r2 * q2) + (r3 * q3) = 0,
where r1, r2, and r3 are the scale factors for the three joints and q1, q2, and q3 are the translational
or the rotational displacements of the joint I markers with respect to their J markers. Suppose you are
coupling two joints, and r1=1 and r2=-2. The equation that relates the two joints is
q1 + (-2 * q2) = 0, or
q1 = 2 * q2.
The displacement (q1) of the I marker with respect to the J marker in the first joint is twice that of
the displacement (q2) of the I marker with respect to the J marker in the second joint; the two
displacements have the same sign.
constraint 11
constraint create complex_joint coupler
Caution: Adams View will not allow you to have two couplers with the same full name, so you must
provide a unique name.
Tip: If you type a "?", Adams View will list the joints available by default.
Format:
constraint create complex_joint gear
joint_name = a new gear
adams_id = integer
comments = string
joint_name = an existing joint
common_velocity_marker = an existing marker
Example:
constraint create complex_joint gear &
gear_name = gear__1 &
adams_id = 3 &
comments = "comment string" &
joint_name = joint_1 &
common_velocity_marker = marker_1
Description:
Extended Definition:
1. A gear pair relates the motion of three parts and two joints. The three parts are the two gear parts and
a third part, the carrier, to which the gears are attached by the two joints. The joints must be
translational, revolute, or cylindrical. Different combinations of joint types and orientations allow
you to model spur, helical, planetary, bevel, and rack-and-pinion gear pairs.
2. The gear element uses the location of the common velocity marker to determine the point of contact
of the two gear pitch circles. The direction of the z-axis of the common velocity marker indicates the
direction of the common velocity of points on the gear teeth in contact. This is also the direction in
which gear tooth forces act. The location of the common velocity marker is constant with respect to
the carrier part.
3. Normally, entity names like the gear name are composed of alphabetic, numeric, or '_' (underscore)
characters, and start with an alphabetic or '_' character. They may be any length. By enclosing the
name in double quotes, you may use other printable characters, or start the name with a numeral. If
a name contains characters, or starts with a numeral, you must always quote the name when entering
it. Note that you can specify the parentage of an entity (for example, what part "owns" a marker or a
geometry element) when you create it by changing the name. If you enter just the entity name, then
the default parent will be assigned by Adams View. If you type in the full name, then you may over
ride the default parent. In most cases, when creating an entity, Adams View will provide a default
name. The default name that Adams View provides will specify the parentage that it has assumed.
You may, or course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
4. When you use the FILE Adams_data_set write command, Adams View writes an Adams data file for
your model. Adams requires that each modeling element be identified by a unique integer identifier.
If you use this parameter to specify a non-zero identifier, Adams View will use it in the corresponding
statement in the Adams data file. You may also enter zero as an identifier, either explicitly or by
default. The next time you write an Adams file, Adams View will replace the zero with a unique,
internally-generated identifier. Adams View will permanently store this identifier with the element
just as if you had entered it yourself. Normally, you would let all identifiers default to zero, and Adams
View would generate the identifiers for you. You are never required to enter a non-zero identifier. You
only need to specify it if, for some reason, you wish to control the Adams file output.
14 Adams View Commands
constraint create general_constraint
5. When an Adams Solver data file (.adm) is read into Adams View, all comments associated with a
statement (from the end of the previous statement through the end of the current statement) are
stored with the object. Comments in the data file can be associated with model. These comments
must follow the title statement and be followed by the comment 'END OF MODEL
COMMENTS'. This string must be uppercase. When an Adams Solver data file is written, the
comments for an object are written before the statement corresponding to the object.
6. You may identify a joint by typing its name or by picking it from the screen. If the joint is not visible
on the screen, you must type the name. You may also find it convenient to type the name even if the
joint is displayed. If you created the joint by reading an Adams data set or graphics file, the joint name
is the letters JOI followed by the Adams data set joint ID number. The name of Adams joint/101 is
JOI101, for example. If you created the joint during preprocessing, you gave it a name at that time.
If a joint is available by default, you may identify it by entering its name only. If it is not, you must
enter its full name. To identify a joint under a model, for instance, you may need to enter the model
name as well. For example, you may specify joint 'lower_pivot' in model 'links' by entering
".links.lower_pivot". You must separate multiple joint names by commas. If the joint is visible in one
of your views, you may identify it by picking on any of the graphics associated with it. You need not
separate multiple joint picks by commas.
7. You define the constant-velocity (CV) marker on the carrier part to which the J markers of the joints
belong. The z-axis of this marker must point in the direction of common velocity at the point of
contact. The direction of common velocity is tangent to both pitch circles and would be normal to
the tooth surfaces of the gears if the pressure angle was zero. (Adams always assumes a pressure angle
of zero.) The CV marker has constant position and orientation in the carrier LPRF and does not
change when the direction of power flow through the gear changes.
Tip: 1. If you type a "?", Adams View will list the joints available by default.
2. You may use the gear_name later to refer to this gear. Adams View will not allow you
to have two gears with the same full name, so you must provide a unique name.
3. Some entities constrain motion at, or are otherwise associated with, specific joints. You
use the joint_name parameter to identify that joint.
4. The common_velocity_marker also determines the direction of the reaction forces
developed by the joints in the gear pair.
Example:
constraint create general_constraint &
general_constraint_name = gcon_1 &
i_marker_name = marker_11 &
function = time
Description:
Extended Definition:
1. When you use the File Adams_data_set write command, Adams View writes an Adams data file for
your model. Adams requires that each modeling element be identified by a unique integer identifier.
If you use this parameter to specify a non-zero identifier, Adams View will use it in the corresponding
statement in the Adams data file.
You may also enter zero as an identifier, either explicitly or by default. The next time you write an
Adams file, Adams View will replace the zero with a unique, internally-generated identifier. Adams
View will permanently store this identifier with the element just as if you had entered it yourself.
Normally, you would let all identifiers default to zero, and Adams View would generate the identifiers
for you. You are never required to enter a non-zero identifier. You only need to specify it if, for some
reason, you wish to control the Adams file output.
2. You may identify a joint by typing its name or by picking it from the screen.
If the joint is not visible on the screen, you must type the name. You may also find it convenient to
type the name even if the joint is displayed.
16 Adams View Commands
constraint create general_constraint
If you created the joint by reading an Adams data set or graphics file, the joint name is the letters JOI
followed by the Adams data set joint ID number. The name of Adams JOINT/101 is JOI101, for
example. If you created the joint during preprocessing, you gave it a name at that time.
If a joint is available by default, you may identify it by entering its name only. If it is not, you must
enter its full name. To identify a joint under a model, for instance, you may need to enter the model
name as well. For example, you may specify joint 'lower_pivot' in model 'links' by entering
".links.lower_pivot". If you type a "?", Adams View will list the joints available by default.
You must separate multiple joint names by commas.
If the joint is visible in one of your views, you may identify it by picking on any of the graphics
associated with it.
You need not separate multiple joint picks by commas.
3. While the JOINT statement describes a physically recognizable combination of constraints that are
used to connect bodies together, the GCON statement enables you to define an arbitrary constraint
specific to a particular model. The GCON statement is more general and can be used to equivalently
define the existent JOINT elements. Therefore, the spherical joint
JOINT/11, SPHERICAL, I=1,J=3
could be equivalently replaced by the following set of three GCONs:
GCON/111, I=2, FUNC=DX(2,3)
GCON/112, I=2, FUNC=DY(2,3)
GCON/113, I=2, FUNC=DZ(2,3)
The GCON statement allows you to define both holonomic and non-holonomic constraints.
Holonomic constraints only depend on position measures, like GCON/111 through GCON/113
above. A constraint is non-holonomic if (a) its expression exp1 contains velocity measures, and (b)
there is no expression exp2 that is the time integral of exp1. An example of a non-holonomic constraint
is a roll without slip condition
GCON/34, FUNC=VX(2) - WZ(2)*DY(2)
The GCON statement introduces a constraint to Adams Solver (C++) that is guaranteed to be
handled correctly as long as the FUNCTION is in Pfaffian form. In this context, note that any
holonomic expression is automatically in Pfaffian form. In the case of non-holonomic constraints, a
Pfaffian constraint requires that the FUNCTION is limited to expressions that are linear in velocity
quantities. In other words, if there are velocity quantities in the definition of the FUNCTION (as is
the case in the previous GCON), a partial derivative of the FUNCTION with respect to any velocity
quantity present in its definition should lead to an expression that does not depend on velocity
∂FUNC
quantities. The previous GCON is therefore in Pfaffian form, since -------------------- = 1
∂FUNC
∂FUNC
and -------------------- = – DX ( 2 ) which makes the FUNC linear in velocity quantities.
∂WZ ( 2 )
Another example of a Pfaffian non-holonomic constraint is the perpendicularity condition
GCON/25, FU=VX(2,3)*DX(2,1)+ VY(2,3)*DY(2,1)+ VZ(2,3)*DZ(2,1)
that indicates that the velocity V(2,3) is orthogonal to the distance vector between markers I=2 and
J=1.
constraint 17
constraint create general_constraint
Cautions:
1. Objects of type General_Constraint are not compatible with Adams Solver (FORTRAN).
2. The topology of the model has changed so .model_1.GCON__1 is no longer connected in a way that
is compatible with Adams Solver (FORTRAN).
3. An attribute of .model_1.GCON__1 is no longer compatible with Adams Solver (FORTRAN).
If you intend to use Adams Solver (FORTRAN), you must change your model to eliminate the
incompatibility. For more information, see the online help for the object listed.
If you do not want to use Adams Solver (FORTRAN), then be sure that you set your preferences so
Adams Solver (C++) is the default as follows:
a. From the Settings menu, point to Solver and then select either Solver Executable or Preferences,
depending on the product you are using.
b. To learn more, press F1 in the dialog box.
Correct handling of a GCON element assumes a FUNCTION defined in Pfaffian form.
Kinematic models are incompatible with velocity constraints. If a model is rendered kinematic by
displacement constraints, any additional velocity constraints will be either redundant or conflicting.
In either case, version 2003 of Adams Solver (C++) is incapable of analyzing the model as explained
below:
Currently, there is no redundancy check for user constraints defined at the velocity level. Therefore,
you can impose constraints that are not redundant at the position level, but lead to a set of redundant
constraints when their time derivative is considered with other velocity level constraints during the
velocity Initial Conditions (IC) analysis. Consider the situation when two constraints are defined as
GCON/1, FU=DX(1,2), and GCON/2, FU=VX(1,2). Because the redundant constraint analysis
only includes position level constraints, Adams Solver (C++) will not identify that a velocity-level
constraint (GCON/2) induces a redundant constraint during the velocity computation. As a result,
a model that contains these two user constraints will fail during the velocity analysis with a singular
Jacobian error.
GCON is a new modeling element only available in the Adams Solver (C++). Currently there is no
support for defining GCON through Adams View, so you need to edit the .adm file to add user-
defined constraints. Adams View correctly imports the edited .adm file, and the internal Adams
Solver (C++) from within Adams View correctly handles the simulation of the model.
18 Adams View Commands
constraint create higher_pair_contact curve_curve
If you use GCON to constrain the values of DIFF, LSE, and TFSISO elements, note that they will
not contribute degrees of freedom that are considered removed by a GCON element. The GCON
statement functions properly for Pfaffian expressions depending on position and velocity measures
and time, or as mentioned earlier, on VARVALs measures for VARIABLEs that only depend on
position and velocity measures and time.
Consequently, a model that contains velocity constraints can only be simulated using the dynamic
solver.
For a position-level GCON, the FUNCTION must be at least three times differentiable. If the
GCON introduces a velocity-level constraint, then the FUNCTION should be at least twice
differentiable. This requirement ensures that internally Adams Solver (C++) can take the necessary
derivatives to perform certain types of analyses such as Acceleration/Force reconciliation, dynamic
analysis, and so on. Note that if the expression provided for GCON is not continuously
differentiable for the required number of times, the integrator will either fail, or have a difficult time
finding the numerical solution.
The ability of the Adams Solver (C++) to handle function expressions to provide the necessary
derivatives required by the GCON does not extend to user subroutines. Consequently, a
VARIABLE can only be referenced in a GCON provided it is defined using function expressions,
rather than a VARSUB subroutine.
Use the RESULTS/XRF statement in order to get the reaction force on marker I reported in the
results file. This is the only output format currently able to handle GCON output.
Tip: There is no dedicated function that returns the reaction force induced by a user constraint on
a marker. You can invoke an existing function such as FX(I[; J][;K]) for this purpose. Note that
FX(I[; J][;K]) reports the force that acts on the I marker as a result of both constraint and
external forces applied to this marker. To only obtain the contribution of the the GCON, the
markers that appear in FX(I[; J][;K]) should be exclusively used to define the GCON, and no
other elements such as applied forces, joints, or motions should refer them.
Format:
constraint create higher_pair_contact curve_curve
curve_curve_name = new ccurve
adams_id = geom._id
comments = string
i_curve_name = existing acurve
J_curve_name = existing acurve
I_ref_marker_name = existing marker
constraint 19
constraint create higher_pair_contact curve_curve
Description:
Extended Definition:
1. Adams View will not allow you to have two point_curves with the same full name, so you must
provide a unique name.
Normally, entity names are composed of alphabetic, numeric, or '_' (underscore) characters, and start
with an alphabetic or '_' character. They may be any length.
By enclosing the name in double quotes, you may use other printable characters, or start the name
with a numeral. If a name contains characters, or starts with a numeral, you must always quote the
name when entering it.
Note that you can specify the parentage of an entity (for example, what part "owns" a marker or a
geometry element) when you CREATE it by changing the name. If you enter just the entity name,
then the default parent will be assigned by Adams View. If you type in the full name, then you may
over ride the default parent. In most cases, when creating an entity, Adams View will provide a default
name. The default name that Adams View provides will specify the parentage that it has assumed.
You may, or course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
2. When you use the File Adams_data_set write command, Adams View writes an Adams data file for
your model. Adams requires that each modeling element be identified by a unique integer identifier.
If you use this parameter to specify a non-zero identifier, Adams View will use it in the corresponding
statement in the Adams data file.
You may also enter zero as an identifier, either explicitly or by default. The next time you write an
Adams file, Adams View will replace the zero with a unique, internally-generated identifier. Adams
View will permanently store this identifier with the element just as if you had entered it yourself.
Normally, you would let all identifiers default to zero, and Adams View would generate the identifiers
for you. You are never required to enter a non-zero identifier. You only need to specify it if, for some
reason, you wish to control the Adams file output.
3. The I_REFERENCE_MARKER marker specifies the coordinate system in which the x, y, z
coordinates of I_CURVE are specified. The curve is attached rigidly to the part specified in the
I_PART_NAME parameter and containing the I_REFERENCE_MARKER marker. The z
component of the CURVE must be zero. As a result, the curve will lie in the x-y plane of the
I_REFERENCE_MARKER marker.
4. The J_REFERENCE_MARKER specifies the coordinate system in which the x, y, z coordinates of
J_CURVE are specified. The curve is attached rigidly to the part specified in the J_PART_NAME
parameter and containing the J_REFERENCE_MARKER. The z component of the CURVE must
be zero. As a result, the curve will lie in the x-y plane of the J_REFERENCE_MARKER.
5. The I_REF_MARKER marker identifies the coordinate system in which the coordinates of ICURVE
are specified. Adams constructs the I_CURVE in the I_REF_MARKER marker coordinate system.
Adams View will automatically create the I "floating" marker. The I "floating marker" and
I_REF_MARKER markers must lie on the same part.
22 Adams View Commands
constraint create higher_pair_contact curve_curve
6. The J_REF_MARKER marker identifies the coordinate system that the coordinates of J_CURVE are
specified. Adams constructs the J_CURVE in the J_REF_MARKER coordinate system. The J
"floating" and J_REF_MARKER markers must lie on the same part.
7. For the i_displacement_ic parameter, if the point specified is not exactly on the curve, Adams will use
a point on the curve nearest to that specified. By default, the contact point is specified in the
I_REF_MARKER coordinate system. If another coordinate system is more convenient, you may
supply the I_IC_REF_MARKER argument and enter I_DISPLACEMENT_IC in
I_IC_REF_MARKER coordinates.
If you supply I_DISPLACEMENT_IC, Adams assembles the system with the contact at the specified
point on the curve, even if it must override part initial conditions in order to do so. If you do not
supply I_DISPLACEMENT_IC, Adams assumes the initial contact is at the point on the first curve
closest to J_CURVE in the input configuration. In this case, Adams may adjust that contact point to
maintain other part or constraint initial conditions.
8. For the j_displacement_ic parameter, if the point specified is not exactly on the curve, Adams uses a
point on the curve nearest to that specified. By default, the contact point is specified in the
J_REF_MARKER coordinate system. If another coordinate system is more convenient, you may
supply the J_IC_REF_MARKER and enter J_DISPLACEMENT_IC in J_IC_REF_MARKER
coordinates.
If you supply J_DISPLACEMENT_IC, Adams assembles the system with the contact at the specified
point on the curve, even if it must override part initial conditions in order to do so. If you do not
supply J_DISPLACEMENT_IC, Adams assumes the initial contact is at a point on the second curve
closest to ICURVE in the input configuration. In this case, Adams may adjust that contact point to
maintain other part or constraint initial conditions.
9. The i_velocity_ic is the speed at which the contact point is initially moving relative to the curve.
I_VELOCITY_IC is negative if the contact point is moving towards the start of the curve, positive if
the contact point is moving toward the end of the curve, and zero if the contact point is stationary on
the curve.
If you supply I_VELOCITY_IC, Adams gives the contact point the specified initial velocity along
the first curve, even if it must override part initial conditions in order to do so. If you do not supply
I_VELOCITY_IC, Adams assumes the initial velocity is zero, but may adjust that velocity to
maintain other part or constraint initial conditions.
10. The j_velocity_ic is the speed at which the contact point is initially moving relative to the curve.
J_VELOCITY_IC is negative if the contact point is moving towards the start of the curve, positive if
the contact point is moving toward the end of the curve, and zero if the contact point is stationary on
the curve.
If you supply J_VELOCITY_IC, Adams gives the contact point the specified initial velocity along
the second curve, even if it must override part initial conditions in order to do so. If you do not supply
J_VELOCITY_IC, Adams assumes the initial velocity is zero, but may adjust that velocity to
maintain other part or constraint initial conditions.
11. The CURVE_CURVE defines a curve-curve constraint, which restricts a planar curve on one part
to be in contact with, and tangent to, a planar curve on a second part. The curves must lie in parallel
planes.
constraint 23
constraint create higher_pair_contact curve_curve
Adams constructs the first curve from the I_CURVE curve and the I_REF_MARKER, the second
curve from the J_CURVE value and the J_REF_MARKER. In both cases, the CURVE command
(I_CURVE or J_CURVE) defines x and y coordinates along the curve as a function of the
independent parameter (u). The z coordinates of the curves must be zero. The reference marker
(I_REF_MARKER or J_REF_MARKER) defines the part the constraining curve is attached to and
the coordinate system in which Adams applies the coordinates from the CURVE statement. Both
I_CURVE and J_CURVE may be open or closed, defined analytically or as a set of discrete data
points.
The CURVE_CURVE constraint removes three degrees-of-freedom from the system. Adams restricts
the motion of the parts such that the curves are always in contact and the curves are tangent at the
contact point. Although Adams requires that the curves lie in parallel planes, the CURVE_CURVE
command does not enforce this. You must build the model in such a way that the curves are held in
parallel planes, which will remove another three degrees of freedom. Assuming the curves are held in
parallel planes, a CURVE_CURVE leaves two relative degrees of freedom between the curves. The
first curve may slide or roll on the second, but may not move perpendicular to the curve tangents at
the contact.
Internally, Adams actually generates five constraint equations, but also adds two new system variables
and equations for a net decrease of one degree-of-freedom. The added system variables are the two
curve parameters at the contact points on the curves. Two of the constraints restrict the x and y
coordinates at the contact point on the first curve to match the x and y coordinates at the the contact
point on the second curve. The third constraint restricts the tangent at the contact point on the first
curve to be parallel to the tangent at the contact point on the second curve.
More than one POINT_CURVE or CURVE_CURVE statement may reference the same CURVE
statement. If the mechanism contains several similar contacts, you may enter just one CURVE
statement, then use it with several POINT_CURVE or CURVE_CURVE constraints, each with a
different REF_MARKER.
The I_VELOCITY_IC and J_VELOCITY_IC are specified in the reference frame of the part
containing the I_REF_MARKER or J_REF_MARKER marker, respectively. In other words, the
I_VELOCITY_IC is the speed of the contact point specified from the standpoint of an observer on
the part containing the first curve. This means if the contact point is not moving globally, but the
first curve is, then I_VELOCITY_IC is still non-zero.
Adams detects a fatal user error if the contact point moves off the end of an open curve. You should
make sure the CURVE statement defines the curve over the expected range of motion. The initial
conditions arguments, I_DISPLACEMENT_IC, J_DISPLACEMENT_IC, I_VELOCITY_IC and
J_VELOCITY_IC, impose constraints that are active only during an initial conditions analysis.
Adams does not impose these initial conditions during subsequent analyses.
For a kinematic analysis, the initial conditions are redundant. Do not use the
I_DISPLACEMENT_IC, J_DISPLACEMENT_IC, I_VELOCITY_IC or J_VELOCITY_IC
arguments on the CURVE_CURVE statements for systems with zero degrees of freedom.
Adams requires that there be a unique contact point in the vicinity of the I floating and J floating
markers during simulation. If this condition is violated, Adams may be unable to find the correct
contact point or may even jump from one contact point to the next.
24 Adams View Commands
constraint create higher_pair_contact point_curve
One way to ensure that contact points are unique is to specify curve shapes that are convex. Note that
for a convex curve, any line segment connecting two points on the curve lie in the domain of the
curve. The same is not true for non-convex curves.
Note: The I- and J- marker id allow you to reference the floating marker in a request or function by
the id you specify, instead of letting Adams View generate one.
Format:
constraint create higher_pair_contact point_curve
point_curve_name = new pcurve
adams_id = geom._id
comments = string
curve_name = existing acurve
i_part_name = existing body
location = location
relative_to = an existing model, part or marker
i_marker_name = An existing marker
j_floating_marker_name = An existing fmarker
j_marker_id = integer
ref_marker_name = existing marker
displacement_ic = length
no_displacement_ic = true
velocity_ic = velocity
no_velocity_ic = true
ic_ref_marker_name = existing marker
constraint 25
constraint create higher_pair_contact point_curve
Description:
Extended Definition:
1. Adams View will not allow you to have two point_curves with the same full name, so you must
provide a unique name.
Normally, entity names are composed of alphabetic, numeric, or '_' (underscore) characters, and start
with an alphabetic or '_' character. They may be any length.
By enclosing the name in double quotes, you may use other printable characters, or start the name
with a numeral. If a name contains characters, or starts with a numeral, you must always quote the
name when entering it.
Note that you can specify the parentage of an entity (for example, what part "owns" a marker or a
geometry element) when you CREATE it by changing the name. If you enter just the entity name,
then the default parent will be assigned by Adams View. If you type in the full name, then you may
over ride the default parent. In most cases, when creating an entity, Adams View will provide a default
name. The default name that Adams View provides will specify the parentage that it has assumed.
You may, or course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
2. When you use the FILE Adams_DATA_SET WRITE command, Adams View writes an Adams data
file for your model. Adams requires that each modeling element be identified by a unique integer
identifier. If you use this parameter to specify a non-zero identifier, Adams View will use it in the
corresponding statement in the Adams data file.
You may also enter zero as an identifier, either explicitly or by default. The next time you write an
Adams file, Adams View will replace the zero with a unique, internally-generated identifier. Adams
View will permanently store this identifier with the element just as if you had entered it yourself.
Normally, you would let all identifiers default to zero, and Adams View would generate the identifiers
for you. You are never required to enter a non-zero identifier. You only need to specify it if, for some
reason, you wish to control the Adams file output.
constraint 27
constraint create higher_pair_contact point_curve
3. The specfied part and the curve must belong to different parts. You may identify a part by typing its
name or by picking it from the screen.
If the part is not visible on the screen, you must type the name. You may also find it convenient to
type the name even if the part is displayed.
If you created the part by reading an Adams data set or graphics file, the part name is the letters PAR
followed by the Adams data set part ID number. The name of Adams PART/101 is PAR101, for
example. If you created the part during preprocessing, you gave it a name at that time.
If a part is available by default, you may identify it by entering its name only. If it is not, you must
enter its full name. To identify a part under another model, for instance, you may need to enter the
model name as well. For example, you may specify part 'arm' from model 'robot' by entering
".robot.arm". If you type a "?", Adams View will list the parts available by default.
You must separate multiple part names by commas.
If the part is visible in one of your views, you may identify it by picking on any of the graphics
associated with it.
You need not separate multiple part picks by commas.
4. The "floating" marker is automatically created by Adams View on the part specified in the
J_PART_NAME parameter. Adams will orient the J floating marker so that its x-axis is along the
tangent vector at the contact point, its y-axis is along the gradient vector at the contact point in the
plane containing the tangent vector and the center of curvature, and its z-axis is along the binormal
at contact point.
You may identify a part by typing its name or by picking it from the screen.
If the part is not visible on the screen, you must type the name. You may also find it convenient to
type the name even if the part is displayed.
If you created the part by reading an Adams data set or graphics file, the part name is the letters PAR
followed by the Adams data set part ID number. The name of Adams PART/101 is PAR101, for
example. If you created the part during preprocessing, you gave it a name at that time.
If a part is available by default, you may identify it by entering its name only. If it is not, you must
enter its full name. To identify a part under another model, for instance, you may need to enter the
model name as well. For example, you may specify part 'arm' from model 'robot' by entering
".robot.arm". If you type a "?", Adams View will list the parts available by default.
You must separate multiple part names by commas.
If the part is visible in one of your views, you may identify it by picking on any of the graphics
associated with it.
You need not separate multiple part picks by commas.
5. If this parameter is not specified, the default coordinate system is used. The default coordinate system
is initially your model, i.e. the global coordinate system. You may change the default coordinate
system using the 'defaults coordinate_system' command.
6. The REF_MARKER is used to associate the shape defined by the CURVE to the part on which the
REF_MARKER lies. The curve coordinates are therefore specified in the coordinate system of the
REF_MARKER. The floating J marker and REF_MARKER must belong to the same PART.
28 Adams View Commands
constraint create higher_pair_contact point_curve
You may identify a marker by typing its name or by picking it from the screen.
If the marker is not visible on the screen, you must type the name.
You may also find it convenient to type the name even if the marker is displayed.
If you created the marker by reading an Adams data set or graphics file, the marker name is the letters
MAR followed by the Adams data set marker ID number. The name of Adams MARKER/101 is
MAR101, for example. If you created the marker during preprocessing, you gave it a name at that
time.
If a marker is available by default, you may identify it by entering its name only. If it is not, you must
enter its full name. To identify a marker under a different part, for instance, you may need to enter
the model and part names as well. For example, you may specify marker 'pivot' from model 'links',
part 'lower_arm' by entering ".links.lower_arm.pivot". If you type a "?", Adams View will list the
markers available by default.
You must separate multiple marker names by commas.
If the marker is visible in one of your views, you may identify it by picking on it.
You need not separate multiple marker picks by commas.
7. If the point specified is not exactly on the curve, Adams uses a point on the curve nearest to that
specified. By default, DISPLACEMENT_IC is specified in the REF_MARKER marker coordinate
system. If another coordinate system is more convenient, you may supply the IC_REF_MARKER
argument and enter DISPLACEMENT_IC in IC_REF_MARKER marker coordinates. If you
supply DISPLACEMENT_IC values, Adams assembles the system with the I_MARKER at the
specified point on the curve, even if it must override part initial conditions in order to do so. If you
do not supply DISPLACEMENT_IC, Adams assumes the initial contact is at the point on the curve
closest to the initial I_MARKER position. However, it may adjust that contact point to maintain
other part or constraint initial conditions.
8. The velocity_ic parameter specified the speed at which the I_MARKER is initially moving relative to
the curve. The VELOCITY_IC is negative if the I_MARKER is moving towards the start of the
curve, positive if the I_MARKER is moving toward the end of the curve, and zero if the I_MARKER
is stationary on the curve.
If you supply the VELOCITY_IC, 1 gives the I_MARKER the specified initial tangential velocity
along the curve, even if it must override part initial conditions in order to do so. If you do not supply
VELOCITY_IC, Adams assumes the initial tangential velocity is zero, but may adjust that velocity to
maintain other part or constraint initial conditions.
The I_MARKER and REF_MARKER must belong to different parts.
9. The POINT_CURVE command defines a point-to-curve constraint, which restricts a fixed point
defined on one part to lie on a curve defined on a second part. This is an instance of a higher pair
constraint.
10. The part containing the I_MARKER is free to roll and slide on the curve that is fixed to a second
part. Lift-off is not allowed, i.e., the I_MARKER must always lie on the curve.
1
constraint 29
constraint create joint convel
11. The curve itself may be planar or spatial, open or closed. The "floating J" marker origin defines the
contact point on the curve; its orientation defines the tangent, normal, and binormal at the contact
point. A POINT_CURVE constraint removes two translational degrees-of-freedom from the system.
Adams restricts the origin of the I_MARKER to always lie on the curve. The I_MARKER may
translate only in one direction relative to the curve, along the instantaneous tangent. The I marker is
free to rotate in all three directions.
12. More than one POINT_CURVE or CURVE_CURVE element may reference the same CURVE
statement. If the mechanism contains several similar contacts, you may enter just one CURVE
statement, then use it with several POINT_CURVE or CURVE_CURVE constraints, each with a
different REF_MARKER.
13. The VELOCITY_IC is specified in the reference frame of the part containing the REF_MARKER.
In other words, the VELOCITY_IC is the speed of the I_MARKER specified from the standpoint of
an observer on the part containing the curve. This means that if the I_MARKER is not moving
globally but the curve is, then VELOCITY_IC is still non-zero.
14. The initial conditions arguments, DISPLACEMENT_IC and VELOCITY_IC, impose constraints
that are active only during an initial conditions analysis. Adams does not impose these initial
conditions during subsequent analyses.
For a kinematic analysis, the initial conditions are redundant. Do not use the DISPLACEMENT_IC
or VELOCITY_IC arguments on the POINT_CURVE command for systems with zero degrees of
freedom.
Caution: 1. For the no_displacement_ic and no_velocity parameters, setting these parameters to
true is not the same as setting the value to zero. A zero displacement/velocity is not the
same as "no" displacement/velocity. Therefore, by setting this parameter to true there
is no longer a displacement initial condition for this element.
2. The I_MARKER and REF_MARKER must belong to different parts.
3. Adams aborts the simulation if the contact point moves off the end of an open curve.
The user should make sure the CURVE statement defines the curve over the expected
range of motion.
Tip: The x, y, z values associated with the CURVE are the coordinates of points lying on the
CURVE and are calculated in the coordinate system of the REF_MARKER.
Format:
constraint create joint convel
joint_name = a new joint
adams_id = integer
comments = string
i_part_name = an existing body
j_part_name = an existing body
location = location
orientation = location
along_axis_orientation = location
in_plane_orientation = location
relative_to = an existing model, part or marker
i_marker_name = an existing marker
j_marker_name = an existing marker
Example:
constraint create joint convel &
joint_name = JOINT__1 &
adams_id = 2 &
comments = "comment string" &
i_part_name = part_1 &
j_part_name = part_2 &
location = 10 , 10 , 5 &
orientation = 1 , 2 , 1 &
relative_to = ground &
i_marker_name = marker_1 &
j_marker_name = marker_2
constraint 31
constraint create joint convel
Description:
Extended Definition:
1. A CONVEL joint is a two-degree-of-freedom joint that superimposes the origin of two markers while
constraining the local z-rotation of the I marker to match the local z-rotation of the J marker.
2. Normally, entity names like the joint name are composed of alphabetic, numeric, or '_' (underscore)
characters, and start with an alphabetic or '_' character. They may be any length. By enclosing the
name in double quotes, you may use other printable characters, or start the name with a numeral. If
a name contains characters, or starts with a numeral, you must always quote the name when entering
it. Note that you can specify the parentage of an entity (for example, what part "owns" a marker or a
geometry element) when you CREATE it by changing the name. If you enter just the entity name,
then the default parent will be assigned by Adams View. If you type in the full name, then you may
over ride the default parent. In most cases, when creating an entity, Adams View will provide a default
name. The default name that Adams View provides will specify the parentage that it has assumed.
You may, or course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
3. When you use the File Adams_data_set write command, Adams View writes an Adams data file for
your model. Adams requires that each modeling element be identified by a unique integer identifier.
If you use this parameter to specify a non-zero identifier, Adams View will use it in the corresponding
statement in the Adams data file. You may also enter zero as an identifier, either explicitly or by
default. The next time you write an Adams file, Adams View will replace the zero with a unique,
internally-generated identifier. Adams View will permanently store this identifier with the element
just as if you had entered it yourself. Normally, you would let all identifiers default to zero, and Adams
View would generate the identifiers for you. You are never required to enter a non-zero identifier. You
only need to specify it if, for some reason, you wish to control the Adams file output.
4. When an Adams Solver data file (.adm) is read into Adams View, all comments associated with a
statement (from the end of the previous statement through the end of the current statement) are
stored with the object. Comments in the data file can be associated with model. These comments
must follow the title statement and be followed by the comment 'END OF MODEL
COMMENTS'. This string must be uppercase. When an Adams Solver data file is written, the
comments for an object are written before the statement corresponding to the object.
constraint 33
constraint create joint cylindrical
5. Adams View will orient the coordinate system by starting from the initial coordinate system and
applying three successive rotations. Depending on the convention you have selected, the rotations
may occur about space-fixed or bodyfixed axes in any meaningful combination of the x, y, and z axes.
By default, you supply Euler (body313, or body-fixed z, x, z) angles. You may change this convention
with the 'DEFAULTS UNITS ORIENTATION_TYPE=' command. For example, selecting
SPACE123 means you will subsequently be supplying space-fixed x, y, and z angles. Adams View
applies your orientation angles starting from the coordinate system you identify with the
RELATIVE_TO parameter. The default for the RELATIVE_TO parameter is the default coordinate
system.
6. For the along_axis_orientation parameter you may enter either one or two locations to direct the axis.
If you enter one location, the axis will point toward the location. If you specify two locations, the axis
will be parallel to, and pointing the same way as, the vector from the first location to the second. Note
that this does not completely dictate the orientation of the coordinate system. Adams View will
osition the coordinate system with an arbitrary rotation about the axis. If you must completely control
the coordinate system orientation, use ORIENTATION or IN_PLANE_ORIENTATION. By
default, you direct the Z axis of the coordinate system.
You may change this convention with the 'DEFAULTS ORIENT_AXIS_AND_PLANE
AXIS_AND_PLANE_SETTING=' command. For example, selecting either X_AXIS_XY_PLANE
or X_AXIS_XZ_PLANE means you will subsequently be directing the X axis. The plane-convention
setting does not affect this parameter. Adams View applies your location coordinates in the coordinate
system you identify with the RELATIVE_TO parameter. The default for the RELATIVE_TO
parameter is the default coordinate system.
7. For the in_plane_orientation parameter you may enter either two or three locations. If you enter two
locations, the axis will point toward the first location and the plane will fall on the second. If you
specify three locations, the axis will be parallel to, and pointing the same way as, the vector from the
first location to the second and the plane will be parallel to the plane defined by the three locations.
By default, you direct the Z axis of the coordinate system and locate the ZX plane. You may use the
'DEFAULTS ORIENT_AXIS_AND_PLANE AXIS_AND_PLANE_SETTING=' command to
change this convention. For example, selecting X_AXIS_XY_PLANE means you will subsequently
be directing the X axis and locating the XY plane. Adams View applies your location coordinates in
the coordinate system you identify with the RELATIVE_TO parameter. The default for the
RELATIVE_TO parameter is the default coordinate system.
8. If the relative_to parameter is not specified, the default coordinate system is used. The default
coordinate system is initially your model, i.e. the global coordinate system. You may change the
default coordinate system using the 'defaults coordinate_system' command.
9. The pitch diameter relates the rotational motion of the pinion to the translational motion of the rack.
When the pinion turns in the positive direction around the z-axis of the I marker, a positive pitch
diameter moves the rack in the positive direction along the z-axis of the J marker and a negative pitch
diameter moves the rack in the negative direction along the z-axis of the J marker.
Format:
constraint create joint cylindrical
joint_name = new joint name
adams_id = Geom_id
comments = String
translational_ic = length
no_translational_ic = true
velocity_ic = velocity
no_velocity_ic = true
rotational_ic = angle
no_rotational_ic = true
angular_velocity_ic = angular_velocity
no_angular_velocity_ic = true
i_part_name = existing body
j_part_name = existing body
Location = location
orientation = orientation
along_axis_orientation = location
in_plane_orientation = location
relative_to = existing model, part or marker
i_marker_name = existing marker
j_marker_name = existing marker
Example:
constraint create joint Cylindrical &
joint_name = .model_1.JOINT_2 &
adams_id = 2 &
i_part_name = PART_2 &
j_part_name = PART_3
constraint 35
constraint create joint cylindrical
Description:
Extended Definition:
1. Adams View will not allow you to have two joints with the same name, so you must provide a unique
name.
Normally, entity names are composed of alphabetic, numeric, or '_' (underscore) characters, and start
with an alphabetic or '_' character. They may be of any length.
By enclosing the name in double quotes, you may use other printable characters, or start the name
with a numeral. If a name contains characters, or starts with a numeral, you must always quote the
name when entering it.
Note that you can specify the parentage of an entity (for example, what part "owns" a marker or a
geometry element) when you CREATE it by changing the name. If you enter just the entity name,
then the default parent will be assigned by Adams View. If you type in the full name, then you may
override the default parent. In most cases, when creating an entity, Adams View will provide a default
name. The default name that Adams View provides will specify the parentage that it has assumed.
You may, of course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
2. When you use the FILE ADAMS_DATA_SET WRITE command, Adams View writes an Adams
data file for your model. Adams requires that each modeling element be identified by a unique integer
identifier. If you use this parameter to specify a non-zero identifier, Adams View will use it in the
corresponding statement in the Adams data file.
You may also enter zero as an identifier, either explicitly or by default. The next time you write an
Adams file, Adams View will replace the zero with a unique, internally-generated identifier.
Adams View will permanently store this identifier with the element just as if you had entered it
yourself.
Normally, you would let all identifiers default to zero, and Adams View would generate the identifiers
for you. You are never required to enter a non-zero identifier. You only need to specify it if, for some
reason, you wish to control the Adams file output.
3. Adams View measures the translational displacement of the origin of the I marker along the common
z-axis of the I and the J markers with respect to the origin of the J marker.
If you specify TRANSLATIONAL_IC, but not VELOCITY_IC, Adams View will set
VELOCITY_IC to zero.
constraint 37
constraint create joint cylindrical
Joint initial conditions impose constraints that are active only during initial conditions analysis (not
at the time of the initial configuration). Adams does not impose initial conditions during subsequent
analyses.
If you impose initial conditions on the joint that are inconsistent with those on a part in the joint, the
initial conditions take precedence. However, if you impose initial conditions on the joint that are
inconsistent with imparted motions on the joint, the initial conditions, as specified by the motion
generator, take precedence.
4. Adams View measures the translational velocity of the origin of the I marker along the common z-
axis of the I and the J markers with respect to the origin of the J marker.
If you specify VELOCITY_IC, but not TRANSLATIONAL_IC, Adams View will set
TRANSLATIONAL_IC to zero.
Joint initial conditions impose constraints that are active only during initial conditions analysis (not
at the time of the initial configuration). Adams does not impose initial conditions during subsequent
analyses.
If you impose initial conditions on the joint that are inconsistent with those on a part in the joint, the
initial conditions take precedence. However, if you impose initial conditions on the joint that are
inconsistent with imparted motions on the joint, the initial conditions, as specified by the motion
generator, take precedence.
5. Adams View measures the rotational displacement of the x-axis of the I marker about the common z-
axis of the I and the J markers with respect to the x-axis of the J marker.
If you specify ROTATIONAL_IC, but not ANGULAR_VELOCITY_IC, Adams View will set
ANGULAR_VELOCITY_IC to zero.
Joint initial conditions impose constraints that are active only during initial conditions analysis (not
at the time of the initial configuration). Adams does not impose initial conditions during subsequent
analyses.
If you impose initial conditions on the joint that are inconsistent with those on a part in the joint, the
initial conditions take precedence. However, if you impose initial conditions on the joint that are
inconsistent with imparted motions on the joint, the initial conditions, as specified by the motion
generator, take precedence.
6. Adams View measures the angular velocity of the x-axis of the I marker about the common z-axis of
the I and the J markers with respect to the x-axis of the J marker.
If you specify ANGULAR_VELOCITY_IC, but not ROTATIONAL_IC, Adams View will set
ROTATIONAL_IC to zero.
Joint initial conditions impose constraints that are active only during initial conditions analysis (not
at the time of the initial configuration). Adams does not impose initial conditions during subsequent
analyses.
If you impose initial conditions on the joint that are inconsistent with those on a part in the joint, the
initial conditions take precedence. However, if you impose initial conditions on the joint that are
inconsistent with imparted motions on the joint, the initial conditions, as specified by the motion
generator, take precedence.
38 Adams View Commands
constraint create joint cylindrical
7. By default, you supply Cartesian (x, y, z) coordinates. You may use the 'defaults units
coordinate_system_type =' command to change this convention. For example, selecting 'cylindrical'
means you will subsequently be supplying r, theta, and z coordinates.
Adams View applies your location coordinates in the coordinate system you identify with the
RELATIVE_TO parameter. The default for the RELATIVE_TO parameter is the default coordinate
system.
(See the RELATIVE_TO parameter for this command.)
8. For the parameter “orientation”, the I marker is oriented based on the J marker orientation and the
requirements of the particular constraint being created. These markers are created automatically.
Adams View will orient the coordinate system by starting from the initial coordinate system and
applying three successive rotations.
Depending on the convention you have selected, the rotations may occur about space-fixed or body-
fixed axes in any meaningful combination of the x, y, and z axes.
By default, you supply Euler (body313, or body-fixed z, x, z) angles.
You may change this convention with the 'DEFAULTS UNITS ORIENTATION_TYPE='
command. For example, selecting SPACE123 means you will subsequently be supplying space-fixed
x, y, and z angles.
Adams View applies your orientation angles starting from the coordinate system you identify with the
RELATIVE_TO parameter. The default for the RELATIVE_TO parameter is the default coordinate
system.
9. For the “along_axis_orientation” parameter, you may enter either one or two locations to direct the
axis. If you enter one location, the axis will point towards the location. If you specify two locations,
the axis will be parallel to, and pointing the same way as, the vector from the first location to the
second.
Note that this does not completely dictate the orientation of the coordinate system. Adams View will
position the coordinate system with an arbitrary rotation about the axis. If you must completely
control the coordinate system orientation, use ORIENTATION or IN_PLANE_ORIENTATION.
By default, you direct the Z axis of the coordinate system. You may change this convention with the
'DEFAULTS ORIENT_AXIS_AND_PLANE AXIS_AND_PLANE_SETTING=' command. For
example, selecting either X_AXIS_XY_PLANE or X_AXIS_XZ_PLANE means you will
subsequently be directing the X axis. The plane-convention setting does not affect this parameter.
Adams View applies your location coordinates in the coordinate system you identify with the
RELATIVE_TO parameter. The default for the RELATIVE_TO parameter is the default coordinate
system.
10. For the “in_plane_orientation” parameter, you may enter either two or three locations. If you enter
two locations, the axis will point toward the first location and the plane will fall on the second. If you
specify three locations, the axis will be parallel to, and pointing the same way as, the vector from the
first location to the second and the plane will be parallel to the plane defined by the three locations.
constraint 39
constraint create joint fixed
By default, you direct the Z axis of the coordinate system and locate the ZX plane. You may use the
'DEFAULTS ORIENT_AXIS_AND_PLANE AXIS_AND_PLANE_SETTING=' command to
change this convention. For example, selecting X_AXIS_XY_PLANE means you will subsequently
be directing the X axis and locating the XY plane.
Adams View applies your location coordinates in the coordinate system you identify with the
RELATIVE_TO parameter. The default for the RELATIVE_TO parameter is the default coordinate
system.
11. If the “relative_to” parameter is not specified, the default coordinate system is used. The default
coordinate system is initially your model, i.e. the global coordinate system. You may change the
default coordinate system using the 'defaults coordinate_system' command.
12. A cylindrical joint is a two-degree-of-freedom joint that allows both relative translational and relative
rotational displacement of one part with respect to another. For a cylindrical joint, Adams keeps the
z-axis of the I marker parallel to, and co-directed with, the z-axis of the J marker and confines the
origin of the I marker to the z-axis of the J marker so that the I and the J markers have a common z-
axis. To determine translational motion, Adams measures the movement of the origin of the I marker
along the z-axis and with respect to the J marker. To determine rotational motion, Adams measures
the rotation of the x-axis of the I marker about the common z-axis and with respect to the x-axis of
the J marker.
Tip: 1. You may use the joint_name later to refer to this joint.
2. Adams View connects one part at the J marker to the other at the I marker. These
markers are automatically generated using this method of joint creation.
The I and J markers will be automatically created at this location on the
I_PART_NAME and J_PART_NAME respectively.
Format:
constraint create joint fixed
joint_name = a new joint
Adams_id = integer
40 Adams View Commands
constraint create joint fixed
Example:
constraint create joint fixed &
joint_name = JOINT__1 &
Adams_id = 2 &
comments = "comment string" &
i_part_name = part_1 &
j_part_name = part_2 &
location = 10 , 10 , 5 &
orientation = 1 , 2 , 1 &
relative_to = ground &
i_marker_name = marker_1 &
j_marker_name = marker_2
Description:
Extended Definition:
1. A fixed joint essentially locks two parts together. It can be used as a placeholder for another joint or
in conjunction with the ACTIVATE and DACTIVATE commands in Adams to model special
effects.
2. Normally, entity names like the joint name are composed of alphabetic, numeric, or '_' (underscore)
characters, and start with an alphabetic or '_' character. They may be any length. By enclosing the
name in double quotes, you may use other printable characters, or start the name with a numeral. If
a name contains characters, or starts with a numeral, you must always quote the name when entering
it. Note that you can specify the parentage of an entity (for example, what part "owns" a marker or a
geometry element) when you CREATE it by changing the name. If you enter just the entity name,
then the default parent will be assigned by Adams View. If you type in the full name, then you may
over ride the default parent. In most cases, when creating an entity, Adams View will provide a default
name. The default name that Adams View provides will specify the parentage that it has assumed.
You may, or course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
42 Adams View Commands
constraint create joint fixed
3. When you use the FILE_ADAMS_DATA_SET WRITE command, Adams View writes an Adams
data file for your model. Adams requires that each modeling element be identified by a unique integer
identifier. If you use this parameter to specify a non-zero identifier, Adams View will use it in the
corresponding statement in the Adams data file. You may also enter zero as an identifier, either
explicitly or by default. The next time you write an Adams file, Adams View will replace the zero with
a unique, internally-generated identifier. Adams View will permanently store this identifier with the
element just as if you had entered it yourself. Normally, you would let all identifiers default to zero,
and Adams View would generate the identifiers for you. You are never required to enter a non-zero
identifier. You only need to specify it if, for some reason, you wish to control the Adams file output.
4. When an Adams Solver data file (.adm) is read into Adams View, all comments associated with a
statement (from the end of the previous statement through the end of the current statement) are
stored with the object. Comments in the data file can be associated with model. These comments
must follow the title statement and be followed by the comment 'END OF MODEL
COMMENTS'. This string must be uppercase. When an Adams Solver data file is written, the
comments for an object are written before the statement corresponding to the object.
5. Adams View will orient the coordinate system by starting from the initial coordinate system and
applying three successive rotations. Depending on the convention you have selected, the rotations
may occur about space-fixed or bodyfixed axes in any meaningful combination of the x, y, and z axes.
By default, you supply Euler (body313, or body-fixed z, x, z) angles. You may change this convention
with the 'DEFAULTS UNITS ORIENTATION_TYPE=' command. For example, selecting
SPACE123 means you will subsequently be supplying space-fixed x, y, and z angles. Adams View
applies your orientation angles starting from the coordinate system you identify with the
RELATIVE_TO parameter. The default for the RELATIVE_TO parameter is the default coordinate
system.
6. For the along_axis_orientation parameter you may enter either one or two locations to direct the axis.
If you enter one location, the axis will point toward the location. If you specify two locations, the axis
will be parallel to, and pointing the same way as, the vector from the first location to the second. Note
that this does not completely dictate the orientation of the coordinate system. Adams View will
osition the coordinate system with an arbitrary rotation about the axis. If you must completely control
the coordinate system orientation, use ORIENTATION or IN_PLANE_ORIENTATION. By
default, you direct the Z axis of the coordinate system.
You may change this convention with the 'DEFAULTS ORIENT_AXIS_AND_PLANE
AXIS_AND_PLANE_SETTING=' command. For example, selecting either X_AXIS_XY_PLANE
or X_AXIS_XZ_PLANE means you will subsequently be directing the X axis. The plane-convention
setting does not affect this parameter. Adams View applies your location coordinates in the coordinate
system you identify with the RELATIVE_TO parameter. The default for the RELATIVE_TO
parameter is the default coordinate system.
7. For the in_plane_orientation parameter you may enter either two or three locations. If you enter two
locations, the axis will point toward the first location and the plane will fall on the second. If you
specify three locations, the axis will be parallel to, and pointing the same way as, the vector from the
first location to the second and the plane will be parallel to the plane defined by the three locations.
By default, you direct the Z axis of the coordinate system and locate the ZX plane. You may use the
'DEFAULTS ORIENT_AXIS_AND_PLANE AXIS_AND_PLANE_SETTING=' command to
constraint 43
constraint create joint hooke
change this convention. For example, selecting X_AXIS_XY_PLANE means you will subsequently
be directing the X axis and locating the XY plane. Adams View applies your location coordinates in
the coordinate system you identify with the RELATIVE_TO parameter. The default for the
RELATIVE_TO parameter is the default coordinate system.
8. If the relative_to parameter is not specified, the default coordinate system is used. The default
coordinate system is initially your model, i.e. the global coordinate system. You may change the
default coordinate system using the 'defaults coordinate_system' command.
9. The pitch diameter relates the rotational motion of the pinion to the translational motion of the rack.
When the pinion turns in the positive direction around the z-axis of the I marker, a positive pitch
diameter moves the rack in the positive direction along the z-axis of the J marker and a negative pitch
diameter moves the rack in the negative direction along the z-axis of the J marker.
10. A FIXED joint is a zero-degree-of-freedom joint that superimposes the origins of the I and J markers
while also constraining the X, Y, and Z axes of the I marker to remain parallel to the respective X, Y,
and Z axes of the J marker.
Tip: 1. You may use this name later to refer to this joint. Adams View will not allow you to
have two joints with the same full name, so you must provide a unique name.
2. Adams View connects one part at the I marker to the other at the J marker. These
markers are automatically generated using this method of joint creation.
3. The I and J markers will be automatically created at this location on the
I_PART_NAME and J_PART_NAME respectively.
4. The I marker is oriented based on the J marker orientation and the requirements of the
particular constraint being created. These markers are created automatically.
Format:
constraint create joint hooke
joint_name = A New Joint
adams_id = Integer
comments = String
i_part_name = An Existing Body
j_part_name = An Existing Body
location = Location
orientation = Location
along_axis_orientation = Location
44 Adams View Commands
constraint create joint hooke
Example:
constraint create joint hooke &
joint_name = JOINT__1 &
adams_id = 2 &
comments = "comment string" &
i_part_name = part_1 &
j_part_name = part_2 &
location = 10 , 10 , 5 &
orientation = 1 , 2 , 1 &
relative_to = ground &
i_marker_name = marker_1 &
j_marker_name = marker_2
Description:
Extended Definition:
1. The UNIVERSAL joint required the Z-axis of the I marker to be perpendicular to the Z-axis of the
J marker, whereas the HOOKE joint requires THE X-axis of the I marker to be perpendicular to the
Y-axis of the J marker, so that they outline the crosspiece of the joint. A valid HOOKE joint may be
properly defined with two coincident markers and can better take advantage of the automatic marker
generation capabilities of Adams View.
2. Normally, entity names like the joint name are composed of alphabetic, numeric, or '_' (underscore)
characters, and start with an alphabetic or '_' character. They may be any length. By enclosing the
name in double quotes, you may use other printable characters, or start the name with a numeral. If
a name contains characters, or starts with a numeral, you must always quote the name when entering
it. Note that you can specify the parentage of an entity (e.g. what part "owns" a marker or a geometry
element) when you CREATE it by changing the name. If you enter just the entity name, then the
default parent will be assigned by Adams View. If you type in the full name, then you may over ride
the default parent. In most cases, when creating an entity, Adams View will provide a default name.
The default name that Adams View provides will specify the parentage that it has assumed. You may,
or course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
3. When you use the FILE ADAMS_DATA_SET WRITE command, Adams View writes an Adams
data file for your model. Adams requires that each modeling element be identified by a unique integer
identifier. If you use this parameter to specify a non-zero identifier, Adams View will use it in the
corresponding statement in the Adams data file. You may also enter zero as an identifier, either
explicitly or by default. The next time you write an Adams file, Adams View will replace the zero with
46 Adams View Commands
constraint create joint hooke
a unique, internally-generated identifier. Adams View will permanently store this identifier with the
element just as if you had entered it yourself. Normally, you would let all identifiers default to zero,
and Adams View would generate the identifiers for you. You are never required to enter a non-zero
identifier. You only need to specify it if, for some reason, you wish to control the Adams file output.
4. When an Adams Solver data file (.adm) is read into Adams View, all comments associated with a
statement (from the end of the previous statement through the end of the current statement) are
stored with the object. Comments in the data file can be associated with model. These comments
must follow the title statement and be followed by the comment 'END OF MODEL
COMMENTS'. This string must be uppercase. When an Adams Solver data file is written, the
comments for an object are written before the statement corresponding to the object.
5. Adams View will orient the coordinate system by starting from the initial coordinate system and
applying three successive rotations. Depending on the convention you have selected, the rotations
may occur about space-fixed or bodyfixed axes in any meaningful combination of the x, y, and z axes.
By default, you supply Euler (body313, or body-fixed z, x, z) angles. You may change this convention
with the 'DEFAULTS UNITS ORIENTATION_TYPE=' command. For example, selecting
SPACE123 means you will subsequently be supplying space-fixed x, y, and z angles. Adams View
applies your orientation angles starting from the coordinate system you identify with the
RELATIVE_TO parameter. The default for the RELATIVE_TO parameter is the default coordinate
system.
6. For the along_axis_orientation parameter you may enter either one or two locations to direct the axis.
If you enter one location, the axis will point toward the location. If you specify two locations, the axis
will be parallel to, and pointing the same way as, the vector from the first location to the second. Note
that this does not completely dictate the orientation of the coordinate system. Adams View will
osition the coordinate system with an arbitrary rotation about the axis. If you must completely control
the coordinate system orientation, use ORIENTATION or IN_PLANE_ORIENTATION. By
default, you direct the Z axis of the coordinate system.
You may change this convention with the 'DEFAULTS ORIENT_AXIS_AND_PLANE
AXIS_AND_PLANE_SETTING=' command. For example, selecting either X_AXIS_XY_PLANE
or X_AXIS_XZ_PLANE means you will subsequently be directing the X axis. The plane-convention
setting does not affect this parameter. Adams View applies your location coordinates in the coordinate
system you identify with the RELATIVE_TO parameter. The default for the RELATIVE_TO
parameter is the default coordinate system.
7. For the in_plane_orientation parameter you may enter either two or three locations. If you enter two
locations, the axis will point toward the first location and the plane will fall on the second. If you
specify three locations, the axis will be parallel to, and pointing the same way as, the vector from the
first location to the second and the plane will be parallel to the plane defined by the three locations.
By default, you direct the Z axis of the coordinate system and locate the ZX plane. You may use the
'DEFAULTS ORIENT_AXIS_AND_PLANE AXIS_AND_PLANE_SETTING=' command to
change this convention. For example, selecting X_AXIS_XY_PLANE means you will subsequently
be directing the X axis and locating the XY plane. Adams View applies your location coordinates in
the coordinate system you identify with the RELATIVE_TO parameter. The default for the
RELATIVE_TO parameter is the default coordinate system.
constraint 47
constraint create joint planar
8. If the relative_to parameter is not specified, the default coordinate system is used. The default
coordinate system is initially your model, i.e. the global coordinate system. You may change the
default coordinate system using the 'defaults coordinate_system' command.
9. The pitch diameter relates the rotational motion of the pinion to the translational motion of the rack.
When the pinion turns in the positive direction around the z-axis of the I marker, a positive pitch
diameter moves the rack in the positive direction along the z-axis of the J marker and a negative pitch
diameter moves the rack in the negative direction along the z-axis of the J marker.
10. A HOOKE joint is a two-degree-of-freedom joint that is that same as the UNIVERSAL joint with
the exception that the marker orientations have been modified.
Tip: 1. You may use the joint_name later to refer to this joint. Adams View will not allow you
to have two joints with the same full name, so you must provide a unique name.
2. Adams View connects one part at the I marker to the other at the J marker. These
markers are automatically generated using this method of joint creation.
3. The I and J markers will be automatically created at this location on the
I_PART_NAME and J_PART_NAME respectively.
4. The I marker is oriented based on the J marker orientation and the requirements of the
particular constraint being created. These markers are created automatically.
Format:
constraint create joint planar
joint_name = a new joint
adams_id = integer
comments = string
i_part_name = an existing body
j_part_name = an existing body
location = location
orientation = location
along_axis_orientation = location
in_plane_orientation = location
relative_to = an existing model, part or marker
i_marker_name = an existing marker
j_marker_name = an existing marker
48 Adams View Commands
constraint create joint planar
Example:
constraint create joint planar &
joint_name = JOINT__1 &
adams_id = 2 &
comments = "comment string" &
i_part_name = part_1 &
j_part_name = part_2 &
location = 10 , 10 , 5 &
orientation = 1 , 2 , 1 &
relative_to = ground &
i_marker_name = marker_1 &
j_marker_name = marker_2
Description:
Extended Definition:
1. For a planar joint, Adams keeps the origin of the I marker in the x-y plane of the J marker and keeps
the z axis of the I marker perpendicular to the x-y plane of the J marker.
2. Normally, entity names like the joint name are composed of alphabetic, numeric, or '_' (underscore)
characters, and start with an alphabetic or '_' character. They may be any length. By enclosing the
name in double quotes, you may use other printable characters, or start the name with a numeral. If
a name contains characters, or starts with a numeral, you must always quote the name when entering
it. Note that you can specify the parentage of an entity (e.g. what part "owns" a marker or a geometry
element) when you CREATE it by changing the name. If you enter just the entity name, then the
default parent will be assigned by Adams View. If you type in the full name, then you may over ride
the default parent. In most cases, when creating an entity, Adams View will provide a default name.
The default name that Adams View provides will specify the parentage that it has assumed. You may,
or course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
3. When you use the FILE ADAMS_DATA_SET WRITE command, Adams View writes an Adams
data file for your model. Adams requires that each modeling element be identified by a unique integer
identifier. If you use this parameter to specify a non-zero identifier, Adams View will use it in the
corresponding statement in the Adams data file. You may also enter zero as an identifier, either
explicitly or by default. The next time you write an Adams file, Adams View will replace the zero with
a unique, internally-generated identifier. Adams View will permanently store this identifier with the
element just as if you had entered it yourself. Normally, you would let all identifiers default to zero,
and Adams View would generate the identifiers for you. You are never required to enter a non-zero
identifier. You only need to specify it if, for some reason, you wish to control the Adams file output.
4. When an Adams Solver data file (.adm) is read into Adams View, all comments associated with a
statement (from the end of the previous statement through the end of the current statement) are
stored with the object. Comments in the data file can be associated with model. These comments
must follow the title statement and be followed by the comment 'END OF MODEL
COMMENTS'. This string must be uppercase. When an Adams Solver data file is written, the
comments for an object are written before the statement corresponding to the object.
5. Adams View will orient the coordinate system by starting from the initial coordinate system and
applying three successive rotations. Depending on the convention you have selected, the rotations
may occur about space-fixed or bodyfixed axes in any meaningful combination of the x, y, and z axes.
50 Adams View Commands
constraint create joint planar
By default, you supply Euler (body313, or body-fixed z, x, z) angles. You may change this convention
with the 'DEFAULTS UNITS ORIENTATION_TYPE=' command. For example, selecting
SPACE123 means you will subsequently be supplying space-fixed x, y, and z angles. Adams View
applies your orientation angles starting from the coordinate system you identify with the
RELATIVE_TO parameter. The default for the RELATIVE_TO parameter is the default coordinate
system.
6. For the along_axis_orientation parameter you may enter either one or two locations to direct the axis.
If you enter one location, the axis will point toward the location. If you specify two locations, the axis
will be parallel to, and pointing the same way as, the vector from the first location to the second. Note
that this does not completely dictate the orientation of the coordinate system. Adams View will
osition the coordinate system with an arbitrary rotation about the axis. If you must completely control
the coordinate system orientation, use ORIENTATION or IN_PLANE_ORIENTATION. By
default, you direct the Z axis of the coordinate system.
You may change this convention with the 'DEFAULTS ORIENT_AXIS_AND_PLANE
AXIS_AND_PLANE_SETTING=' command. For example, selecting either X_AXIS_XY_PLANE
or X_AXIS_XZ_PLANE means you will subsequently be directing the X axis. The plane-convention
setting does not affect this parameter. Adams View applies your location coordinates in the coordinate
system you identify with the RELATIVE_TO parameter. The default for the RELATIVE_TO
parameter is the default coordinate system.
7. For the in_plane_orientation parameter you may enter either two or three locations. If you enter two
locations, the axis will point toward the first location and the plane will fall on the second. If you
specify three locations, the axis will be parallel to, and pointing the same way as, the vector from the
first location to the second and the plane will be parallel to the plane defined by the three locations.
By default, you direct the Z axis of the coordinate system and locate the ZX plane. You may use the
'DEFAULTS ORIENT_AXIS_AND_PLANE AXIS_AND_PLANE_SETTING=' command to
change this convention. For example, selecting X_AXIS_XY_PLANE means you will subsequently
be directing the X axis and locating the XY plane. Adams View applies your location coordinates in
the coordinate system you identify with the RELATIVE_TO parameter. The default for the
RELATIVE_TO parameter is the default coordinate system.
8. If the relative_to parameter is not specified, the default coordinate system is used. The default
coordinate system is initially your model, i.e. the global coordinate system. You may change the
default coordinate system using the 'defaults coordinate_system' command.
Tip: 1. You may use the joint_name later to refer to the joint. Adams View will not allow you
to have two joints with the same full name, so you must provide a unique name.
2. Adams View connects one part at the I marker to the other at the J marker. These
markers are automatically generated using this method of joint creation.
3. The I and J markers will be automatically created at this location on the
I_PART_NAME and J_PART_NAME respectively.
4. The I marker is oriented based on the J marker orientation and the requirements of the
particular constraint being created. These markers are created automatically.
constraint 51
constraint create joint rackpin
Format:
constraint create joint rackpin
joint_name = a new joint
adams_id = integer
comments = string
i_part_name = an existing body
j_part_name = an existing body
location = location
orientation = location
along_axis_orientation = location
in_plane_orientation = location
relative_to = an existing model, part or marker
i_marker_name = an existing marker
j_marker_name = an existing marker
diameter_of_pitch = real number
Example:
constraint create joint rackpin &
joint_name = JOINT__1 &
adams_id = 2 &
comments = "comment string" &
i_part_name = part_1 &
j_part_name = part_2 &
location = 10 , 10 , 5 &
orientation = 1 , 2 , 1 &
relative_to = ground &
i_marker_name = marker_1 &
j_marker_name = marker_2 &
diameter_of_pitch = 0.2
52 Adams View Commands
constraint create joint rackpin
Description:
Extended Definition:
1. For a rack-and-pinion joint, the x-axis of the pinion must be parallel to and pointed in the same
direction as the z (translational) axis of the rack. The separation between the two axes should be one-
half the pitch diameter of the pinion. The rack-and-pinion joint itself does not enforce the position
and orientation it requires, but the chain of both parts and joints that connects markers I and J should
enforce the position and orientation. A common approach for enforcing the position and the
orientation is to support the rack with a translational joint and to support the pinion with a revolute
joint.
2. Normally, entity names like the joint name are composed of alphabetic, numeric, or '_' (underscore)
characters, and start with an alphabetic or '_' character. They may be any length. By enclosing the
name in double quotes, you may use other printable characters, or start the name with a numeral. If
a name contains characters, or starts with a numeral, you must always quote the name when entering
it. Note that you can specify the parentage of an entity (e.g. what part "owns" a marker or a geometry
element) when you CREATE it by changing the name. If you enter just the entity name, then the
default parent will be assigned by Adams View. If you type in the full name, then you may over ride
the default parent. In most cases, when creating an entity, Adams View will provide a default name.
The default name that Adams View provides will specify the parentage that it has assumed. You may,
or course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
3. When you use the FILE ADAMS_DATA_SET WRITE command, Adams View writes an Adams
data file for your model. Adams requires that each modeling element be identified by a unique integer
identifier. If you use this parameter to specify a non-zero identifier, Adams View will use it in the
corresponding statement in the Adams data file. You may also enter zero as an identifier, either
explicitly or by default. The next time you write an Adams file, Adams View will replace the zero with
a unique, internally-generated identifier. Adams View will permanently store this identifier with the
element just as if you had entered it yourself. Normally, you would let all identifiers default to zero,
and Adams View would generate the identifiers for you. You are never required to enter a non-zero
identifier. You only need to specify it if, for some reason, you wish to control the Adams file output.
54 Adams View Commands
constraint create joint rackpin
4. When an Adams Solver data file (.adm) is read into Adams View, all comments associated with a
statement (from the end of the previous statement through the end of the current statement) are
stored with the object. Comments in the data file can be associated with model. These comments
must follow the title statement and be followed by the comment 'END OF MODEL
COMMENTS'. This string must be uppercase. When an Adams Solver data file is written, the
comments for an object are written before the statement corresponding to the object.
5. Adams View will orient the coordinate system by starting from the initial coordinate system and
applying three successive rotations. Depending on the convention you have selected, the rotations
may occur about space-fixed or bodyfixed axes in any meaningful combination of the x, y, and z axes.
By default, you supply Euler (body313, or body-fixed z, x, z) angles. You may change this convention
with the 'DEFAULTS UNITS ORIENTATION_TYPE=' command. For example, selecting
SPACE123 means you will subsequently be supplying space-fixed x, y, and z angles. Adams View
applies your orientation angles starting from the coordinate system you identify with the
RELATIVE_TO parameter. The default for the RELATIVE_TO parameter is the default coordinate
system.
6. For the along_axis_orientation parameter you may enter either one or two locations to direct the axis.
If you enter one location, the axis will point toward the location. If you specify two locations, the axis
will be parallel to, and pointing the same way as, the vector from the first location to the second. Note
that this does not completely dictate the orientation of the coordinate system. Adams View will
osition the coordinate system with an arbitrary rotation about the axis. If you must completely control
the coordinate system orientation, use ORIENTATION or IN_PLANE_ORIENTATION. By
default, you direct the Z axis of the coordinate system.
You may change this convention with the 'DEFAULTS ORIENT_AXIS_AND_PLANE
AXIS_AND_PLANE_SETTING=' command. For example, selecting either X_AXIS_XY_PLANE
or X_AXIS_XZ_PLANE means you will subsequently be directing the X axis. The plane-convention
setting does not affect this parameter. Adams View applies your location coordinates in the coordinate
system you identify with the RELATIVE_TO parameter. The default for the RELATIVE_TO
parameter is the default coordinate system.
7. For the in_plane_orientation parameter you may enter either two or three locations. If you enter two
locations, the axis will point toward the first location and the plane will fall on the second. If you
specify three locations, the axis will be parallel to, and pointing the same way as, the vector from the
first location to the second and the plane will be parallel to the plane defined by the three locations.
By default, you direct the Z axis of the coordinate system and locate the ZX plane. You may use the
'DEFAULTS ORIENT_AXIS_AND_PLANE AXIS_AND_PLANE_SETTING=' command to
change this convention. For example, selecting X_AXIS_XY_PLANE means you will subsequently
be directing the X axis and locating the XY plane. Adams View applies your location coordinates in
the coordinate system you identify with the RELATIVE_TO parameter. The default for the
RELATIVE_TO parameter is the default coordinate system.
8. If the relative_to parameter is not specified, the default coordinate system is used. The default
coordinate system is initially your model, i.e. the global coordinate system. You may change the
default coordinate system using the 'defaults coordinate_system' command.
constraint 55
constraint create joint revolute
9. The pitch diameter relates the rotational motion of the pinion to the translational motion of the rack.
When the pinion turns in the positive direction around the z-axis of the I marker, a positive pitch
diameter moves the rack in the positive direction along the z-axis of the J marker and a negative pitch
diameter moves the rack in the negative direction along the z-axis of the J marker.
Tip: The I marker is at the center of the pinion, and the J marker is in the rack.
Format:
Constraint create joint revolute
joint_name = new joint
adams_id = geom._id
comments = string
rotational_ic = angle
no_rotational_ic = true
angular_velocity_ic = angular_vel
no_angular_velocity_ic = true
friction_enabled = enable_friction
delta_v = real
maximum_deformation = real
mu_dyn_rot = real
mu_stat_rot = real
max_fric_rot = torque
preload_radial = force
preload_axial = force
inner_radius = length
outer_radius = length
i_part_name = existing body
j_part_name = existing body
location = location
orientation = orienatation
along_axis_orientation = location
in_plane_orientation = location
56 Adams View Commands
constraint create joint revolute
Example:
constraint create joint Revolute &
joint_name = .model_1.JOINT_1 &
adams_id = 1 &
i_marker_name = .model_1.PART_2.MARKER_5 &
j_marker_name = .model_1.PART_3.MARKER_6
Description:
Extended Definition:
1. Adams View will not allow you to have two joints with the same full name, so you must provide a
unique name.
Normally, entity names are composed of alphabetic, numeric, or '_' (underscore) characters, and start
with an alphabetic or '_' character. They may be any length.
58 Adams View Commands
constraint create joint revolute
By enclosing the name in double quotes, you may use other printable characters, or start the name
with a numeral. If a name contains characters, or starts with a numeral, you must always quote the
name when entering it.
Note that you can specify the parentage of an entity (e.g. what part "owns" a marker or a geometry
element) when you CREATE it by changing the name. If you enter just the entity name, then the
default parent will be assigned by Adams View. If you type in the full name, then you may over ride
the default parent. In most cases, when creating an entity, Adams View will provide a default name.
The default name that Adams View provides will specify the parentage that it has assumed.
You may, or course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
2. When you use the FILE ADAMS_DATA_SET WRITE command, Adams View writes an Adams
data file for your model. Adams requires that each modeling element be identified by a unique integer
identifier. If you use this parameter to specify a non-zero identifier, Adams View will use it in the
corresponding statement in the Adams data file.
You may also enter zero as an identifier, either explicitly or by default. The next time you write an
Adams file, Adams View will replace the zero with a unique, internally-generated identifier.
Adams View will permanently store this identifier with the element just as if you had entered it
yourself.
Normally, you would let all identifiers default to zero, and Adams View would generate the identifiers
for you. You are never required to enter a non-zero identifier. You only need to specify it if, for some
reason, you wish to control the Adams file output.
3. Adams View measures the rotational displacement of the x-axis of the I marker about the common z-
axis of the I and the J markers with respect to the x-axis of the J marker.
If you specify ROTATIONAL_IC, but not ANGULAR_VELOCITY_IC, Adams View will set
ANGULAR_VELOCITY_IC to zero.
Joint initial conditions impose constraints that are active only during initial conditions analysis (not
at the time of the initial configuration). Adams does not impose initial conditions during subsequent
analyses.
If you impose initial conditions on the joint that are inconsistent with those on a part in the joint, the
initial conditions on the joint have precedence over those on the part. However, if you impose initial
conditions on the joint that are inconsistent with imparted motions on the joint, the initial conditions
as specified by the motion generator have precedence over those here.
4. Adams View measures the angular velocity of the x-axis of the I marker about the common z-axis of
the I and the J markers with respect to the x-axis of the J marker.
If you specify ANGULAR_VELOCITY_IC, but not ROTATIONAL_IC, Adams View ill set
ROTATIONAL_IC to zero.
Joint initial conditions impose constraints that are active only uring initial conditions analysis (not at
the time of the initial onfiguration). Adams does not impose initial conditions during subsequent
analyses.
constraint 59
constraint create joint revolute
If you impose initial conditions on the joint that are inconsistent with those on a part in the joint, the
initial conditions on the joint have precedence over those on the part. However, if you impose initial
conditions on the joint that are inconsistent with imparted motions on the joint, the initial conditions
as specified by the motion generator have precedence over those here.
5. The I and J markers will be automatically created at this location on the I_PART_NAME and
J_PART_NAME respectively.
By default, you supply Cartesian (x, y, z) coordinates. You may use the 'defaults units
coordinate_system_type =' command to change this convention. For example, selecting 'cylindrical'
means you will subsequently be supplying r, theta, and z coordinates.
Adams View applies your location coordinates in the coordinate system you identify with the
RELATIVE_TO parameter. The default for the RELATIVE_TO parameter is the default coordinate
system. (See the RELATIVE_TO parameter for this command).
6. The I marker is oriented based on the J marker orientation and the requirements of the particular
constraint being created. These markers are created automatically.
Adams View will orient the coordinate system by starting from the initial coordinate system and
applying three successive rotations.
Depending on the convention you have selected, the rotations may occur about space-fixed or body-
fixed axes in any meaningful combination of the x, y, and z axes.
By default, you supply Euler (body313, or body-fixed z, x, z) angles.
You may change this convention with the 'DEFAULTS UNITS ORIENTATION_TYPE='
command. For example, selecting SPACE123 means you will subsequently be supplying space-fixed
x, y, and z angles.
Adams View applies your orientation angles starting from the coordinate system you identify with the
RELATIVE_TO parameter. The default for the RELATIVE_TO parameter is the default coordinate
system.
7. Adams View will assign an arbitrary rotation about the axis.
You may enter either one or two locations to direct the axis. If you enter one location, the axis will
point toward the location. If you specify two locations, the axis will be parallel to, and pointing the
same way as, the vector from the first location to the second.
Note that this does not completely dictate the orientation of the coordinate system. Adams View will
position the coordinate system with an arbitrary rotation about the axis. If you must completely
control the coordinate system orientation, use ORIENTATION or IN_PLANE_ORIENTATION.
By default, you direct the Z axis of the coordinate system. You may change this convention with the
'DEFAULTS ORIENT_AXIS_AND_PLANE AXIS_AND_PLANE_SETTING=' command. For
example, selecting either X_AXIS_XY_PLANE or X_AXIS_XZ_PLANE means you will
subsequently be directing the X axis. The plane-convention setting does not affect this parameter.
Adams View applies your location coordinates in the coordinate system you identify with the
RELATIVE_TO parameter. The default for the RELATIVE_TO parameter is the default coordinate
system.
60 Adams View Commands
constraint create joint screw
8. For the “in_plane_orientation” parameter, you may enter either two or three locations. If you enter
two locations, the axis will point toward the first location and the plane will fall on the second. If you
specify three locations, the axis will be parallel to, and pointing the same way as, the vector from the
first location to the second and the plane will be parallel to the plane defined by the three locations.
By default, you direct the Z axis of the coordinate system and locate the ZX plane. You may use the
'DEFAULTS ORIENT_AXIS_AND_PLANE AXIS_AND_PLANE_SETTING=' command to
change this convention. For example, selecting X_AXIS_XY_PLANE means you will subsequently
be directing the X axis and locating the XY plane.
Adams View applies your location coordinates in the coordinate system you identify with the
RELATIVE_TO parameter. The default for the RELATIVE_TO parameter is the default coordinate
system.
9. If the “relative_to” parameter is not specified, the default coordinate system is used. The default
coordinate system is initially your model, i.e. the global coordinate system. You may change the
default coordinate system using the 'defaults coordinate_system' command.
10. A revolute joint is a single-degree-of-freedom joint that allows rotation of one part with respect to
another about a common axis. For a revolute joint, Adams superimposes the origins of the I and J
markers and keeps their z-axes parallel and co-directed. Relative motion occurs about the common z-
axis. Adams measures the angle of the x-axis of the I marker relative to the x-axis of the J marker to
determine the rotational displacement. Adams measures positive rotation according to the right-hand
rule.
Caution: “No_rotational_ic” and “no_angular_velocity_ic” being set to True is not the same as setting
the value to zero. A zero velocity is not the same as "no" velocity. Therefore, by setting this
parameter to true there is no longer a velocity initial condition for this element.
Tip: 1. The I- and J- markers are automatically generated using this method of joint creation.
2. Adams View connects one part at the I marker to the other at the J marker.
Format:
constraint create joint screw
joint_name = a new joint
adams_id = integer
comments = string
constraint 61
constraint create joint screw
Example:
constraint create joint screw &
joint_name = joint__1 &
adams_id = 2 &
comments = "comment string" &
i_part_name = part_1 &
j_part_name = part_2 &
location = 10 , 10 , 5 &
orientation = 1 , 2 , 1 &
relative_to = ground &
i_marker_name = marker_1 &
j_marker_name = marker_2 &
pitch = 0.2
62 Adams View Commands
constraint create joint screw
Description:
coordinate planes.
relative_to An Existing Model, Specifies the coordinate system that location
Part Or Marker coordinates and orientation angles are with respect to.
constraint 63
constraint create joint screw
Extended Definition:
1. For a screw joint, the z-axis of the I marker and the z-axis of the J marker must always be parallel and
co-directed. Although the screw joint does not enforce this parallelism, the chain of parts and joints
that connects the two markers should. During simulation, the I marker displacement along the J
marker z-axis is a function of the relative angle of the x-axis of the I marker with respect to the x-axis
of the J marker. Adams measures a positive rotation according to the right-hand rule. For every full
rotation, the displacement of the I marker along the z-axis of the J marker is equal to the value of the
screw pitch. If phi is zero, the translational displacement may be zero or any multiple of the pitch.
2. Normally, entity names like the joint name are composed of alphabetic, numeric, or '_' (underscore)
characters, and start with an alphabetic or '_' character. They may be any length. By enclosing the
name in double quotes, you may use other printable characters, or start the name with a numeral. If
a name contains characters, or starts with a numeral, you must always quote the name when entering
it. Note that you can specify the parentage of an entity (for example, what part "owns" a marker or a
geometry element) when you CREATE it by changing the name. If you enter just the entity name,
then the default parent will be assigned by Adams View. If you type in the full name, then you may
over ride the default parent. In most cases, when creating an entity, Adams View will provide a default
name. The default name that Adams View provides will specify the parentage that it has assumed.
You may, or course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
3. When you use the FILE ADAMS_DATA_SET WRITE command, Adams View writes an Adams
data file for your model. Adams requires that each modeling element be identified by a unique integer
identifier. If you use this parameter to specify a non-zero identifier, Adams View will use it in the
corresponding statement in the Adams data file. You may also enter zero as an identifier, either
explicitly or by default. The next time you write an Adams file, Adams View will replace the zero with
a unique, internally-generated identifier. Adams View will permanently store this identifier with the
element just as if you had entered it yourself. Normally, you would let all identifiers default to zero,
and Adams View would generate the identifiers for you. You are never required to enter a non-zero
identifier. You only need to specify it if, for some reason, you wish to control the Adams file output.
64 Adams View Commands
constraint create joint screw
4. When an Adams Solver data file (.adm) is read into Adams View, all comments associated with a
statement (from the end of the previous statement through the end of the current statement) are
stored with the object. Comments in the data file can be associated with model. These comments
must follow the title statement and be followed by the comment 'END OF MODEL
COMMENTS'. This string must be uppercase. When an Adams Solver data file is written, the
comments for an object are written before the statement corresponding to the object.
5. Adams View will orient the coordinate system by starting from the initial coordinate system and
applying three successive rotations. Depending on the convention you have selected, the rotations
may occur about space-fixed or bodyfixed axes in any meaningful combination of the x, y, and z axes.
By default, you supply Euler (body313, or body-fixed z, x, z) angles. You may change this convention
with the 'DEFAULTS UNITS ORIENTATION_TYPE=' command. For example, selecting
SPACE123 means you will subsequently be supplying space-fixed x, y, and z angles. Adams View
applies your orientation angles starting from the coordinate system you identify with the
RELATIVE_TO parameter. The default for the RELATIVE_TO parameter is the default coordinate
system.
6. For the along_axis_orientation parameter you may enter either one or two locations to direct the axis.
If you enter one location, the axis will point toward the location. If you specify two locations, the axis
will be parallel to, and pointing the same way as, the vector from the first location to the second. Note
that this does not completely dictate the orientation of the coordinate system. Adams View will
osition the coordinate system with an arbitrary rotation about the axis. If you must completely control
the coordinate system orientation, use ORIENTATION or IN_PLANE_ORIENTATION. By
default, you direct the Z axis of the coordinate system.
You may change this convention with the 'DEFAULTS ORIENT_AXIS_AND_PLANE
AXIS_AND_PLANE_SETTING=' command. For example, selecting either X_AXIS_XY_PLANE
or X_AXIS_XZ_PLANE means you will subsequently be directing the X axis. The plane-convention
setting does not affect this parameter. Adams View applies your location coordinates in the coordinate
system you identify with the RELATIVE_TO parameter. The default for the RELATIVE_TO
parameter is the default coordinate system.
7. For the in_plane_orientation parameter you may enter either two or three locations. If you enter two
locations, the axis will point toward the first location and the plane will fall on the second. If you
specify three locations, the axis will be parallel to, and pointing the same way as, the vector from the
first location to the second and the plane will be parallel to the plane defined by the three locations.
By default, you direct the Z axis of the coordinate system and locate the ZX plane. You may use the
'DEFAULTS ORIENT_AXIS_AND_PLANE AXIS_AND_PLANE_SETTING=' command to
change this convention. For example, selecting X_AXIS_XY_PLANE means you will subsequently
be directing the X axis and locating the XY plane. Adams View applies your location coordinates in
the coordinate system you identify with the RELATIVE_TO parameter. The default for the
RELATIVE_TO parameter is the default coordinate system.
8. If the relative_to parameter is not specified, the default coordinate system is used. The default
coordinate system is initially your model, i.e. the global coordinate system. You may change the
default coordinate system using the 'defaults coordinate_system' command.
constraint 65
constraint create joint spherical
9. The pitch diameter relates the rotational motion of the pinion to the translational motion of the rack.
When the pinion turns in the positive direction around the z-axis of the I marker, a positive pitch
diameter moves the rack in the positive direction along the z-axis of the J marker and a negative pitch
diameter moves the rack in the negative direction along the z-axis of the J marker.
Format:
constraint create joint spherical
joint_name = new joint
adams_id = geom._id
comments = string
i_part_name = existing body
j_part_name = existing body
location = location
Orientation = orientation
along_axis_orientation = location
in_plane_orientation = location
relative_to = existing part, body or marker
i_marker_name = existing marker
j_marker_name = existing marker
Example:
constraint create joint Spherical &
joint_name = .model_1.JOINT_6 &
adams_id = 6 &
i_marker_name = .model_1.PART_2.MARKER_15 &
j_marker_name = .model_1.PART_3.MARKER_16
66 Adams View Commands
constraint create joint spherical
Description:
Adams View connects one part at the I marker to the other at the
J marker.
j_marker_name Existing marker Specifies a marker on the second of two parts connected by this
joint.
Adams View connects one part at the I marker to the other at the
J marker.
Extended Definition:
1. Adams View will not allow you to have two joints with the same full name, so you must provide a
unique name.
Normally, entity names are composed of alphabetic, numeric, or '_' (underscore) characters, and start
with an alphabetic or '_' character. They may be any length.
By enclosing the name in double quotes, you may use other printable characters, or start the name
with a numeral. If a name contains characters, or starts with a numeral, you must always quote the
name when entering it.
Note that you can specify the parentage of an entity (for example, what part "owns" a marker or a
geometry element) when you CREATE it by changing the name. If you enter just the entity name,
then the default parent will be assigned by Adams View. If you type in the full name, then you may
over ride the default parent. In most cases, when creating an entity, Adams View will provide a default
name. The default name that Adams View provides will specify the parentage that it has assumed.
You may, or course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
2. When you use the FILE ADAMS_DATA_SET WRITE command, Adams View writes an Adams
data file for your model. Adams requires that each modeling element be identified by a unique integer
identifier. If you use this parameter to specify a non-zero identifier, Adams View will use it in the
corresponding statement in the Adams data file.
You may also enter zero as an identifier, either explicitly or by default. The next time you write an
Adams file, Adams View will replace the zero with a unique, internally-generated identifier. Adams
View will permanently store this identifier with the element just as if you had entered it yourself.
Normally, you would let all identifiers default to zero, and Adams View would generate the identifiers
for you. You are never required to enter a non-zero identifier. You only need to specify it if, for some
reason, you wish to control the Adams file output.
68 Adams View Commands
constraint create joint spherical
3. By default, you supply Cartesian (x, y, z) coordinates. You may use the 'defaults units
coordinate_system_type =' command to change this convention. For example, selecting 'cylindrical'
means you will subsequently be supplying r, theta, and z coordinates.
Adams View applies your location coordinates in the coordinate system you identify with the
RELATIVE_TO parameter. The default for the RELATIVE_TO parameter is the default coordinate
system. (See the RELATIVE_TO parameter for this command).
4. Adams View will orient the coordinate system by starting from the initial coordinate system and
applying three successive rotations. Depending on the convention you have selected, the rotations
may occur about space-fixed or body-fixed axes in any meaningful combination of the x, y, and z axes.
By default, you supply Euler (body313, or body-fixed z, x, z) angles.
You may change this convention with the 'DEFAULTS UNITS ORIENTATION_TYPE='
command. For example, selecting SPACE123 means you will subsequently be supplying space-fixed
x, y, and z angles.
Adams View applies your orientation angles starting from the coordinate system you identify with the
RELATIVE_TO parameter. The default for the RELATIVE_TO parameter is the default coordinate
system.
5. For the “along_axis_orientation” parameter, you may enter either one or two locations to direct the
axis. If you enter one location, the axis will point toward the location. If you specify two locations,
the axis will be parallel to, and pointing the same way as, the vector from the first location to the
second.
Note that this does not completely dictate the orientation of the coordinate system. Adams View will
position the coordinate system with an arbitrary rotation about the axis. If you must completely
control the coordinate system orientation, use ORIENTATION or IN_PLANE_ORIENTATION.
By default, you direct the Z axis of the coordinate system. You may change this convention with the
'DEFAULTS ORIENT_AXIS_AND_PLANE AXIS_AND_PLANE_SETTING=' command. For
example, selecting either X_AXIS_XY_PLANE or X_AXIS_XZ_PLANE means you will
subsequently be directing the X axis. The plane-convention setting does not affect this parameter.
Adams View applies your location coordinates in the coordinate system you identify with the
RELATIVE_TO parameter. The default for the RELATIVE_TO parameter is the default coordinate
system.
6. For the “in_plane_orientation” parameter, you may enter either two or three locations. If you enter
two locations, the axis will point toward the first location and the plane will fall on the second. If you
specify three locations, the axis will be parallel to, and pointing the same way as, the vector from the
first location to the second and the plane will be parallel to the plane defined by the three locations.
By default, you direct the Z axis of the coordinate system and locate the ZX plane. You may use the
'DEFAULTS ORIENT_AXIS_AND_PLANE AXIS_AND_PLANE_SETTING=' command to
change this convention. For example, selecting X_AXIS_XY_PLANE means you will subsequently
be directing the X axis and locating the XY plane.
Adams View applies your location coordinates in the coordinate system you identify with the
RELATIVE_TO parameter. The default for the RELATIVE_TO parameter is the default coordinate
system.
constraint 69
constraint create joint translational
7. If the “relative_to” parameter is not specified, the default coordinate system is used. The default
coordinate system is initially your model, i.e. the global coordinate system. You may change the
default coordinate system using the 'defaults coordinate_system' command.
8. A spherical joint is a three-degree-of-freedom joint. While permitting all three rotations, a spherical
joint superimposes the I and the J markers.
Format:
constraint create joint translational
joint_name = a new joint
adams_id = integer
comments = string
translational_ic = length
no_translational_ic = true
velocity_ic = real
no_velocity_ic = true
friction_enabled = enable_friction
delta_v = real
maximum_deformation = real
mu_dyn_trans = real
mu_stat_trans = real
max_fric_trans = real
preload_x = real
preload_y = real
height = real
width = real
i_part_name = an existing body
j_part_name = an existing body
location = location
orientation = location
along_axis_orientation = location
in_plane_orientation = location
70 Adams View Commands
constraint create joint translational
Example:
constraint create joint translational &
joint_name = joint__1 &
adams_id = 2 &
comments = "comment string" &
translational_ic = 1.2 &
velocity_ic = 1.4 &
friction_enabled = preload_only &
delta_v = 1.4 &
maximum_deformation = 0.02 &
mu_dyn_trans = 0.4 &
mu_stat_trans = 0.8 &
max_fric_trans = 0.15 &
preload_x = 1 &
preload_y = 1.2 &
height = 1.5 &
width = 0.8 &
i_part_name = part_1 &
j_part_name = part_2 &
location = 10 , 10 , 5 &
orientation = 1 , 2 , 1 &
relative_to = ground &
i_marker_name = marker_1 &
j_marker_name = marker_2
constraint 71
constraint create joint translational
Description:
Extended Definition:
1. For a translational joint, Adams keeps all the axes of the I and the J markers parallel and keeps the
origin of the I marker on the z-axis of the J marker so that the two markers have a common z-axis. To
determine the translational displacement of the I marker with respect to the J marker, Adams
measures the origin of the I marker with respect to the origin of the J marker along their common z-
axis.
2. Normally, entity names like the joint name are composed of alphabetic, numeric, or '_' (underscore)
characters, and start with an alphabetic or '_' character. They may be any length. By enclosing the
name in double quotes, you may use other printable characters, or start the name with a numeral. If
a name contains characters, or starts with a numeral, you must always quote the name when entering
it. Note that you can specify the parentage of an entity (for example, what part "owns" a marker or a
geometry element) when you CREATE it by changing the name. If you enter just the entity name,
then the default parent will be assigned by Adams View. If you type in the full name, then you may
over ride the default parent. In most cases, when creating an entity, Adams View will provide a default
name. The default name that Adams View provides will specify the parentage that it has assumed.
You may, or course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
3. When you use the FILE ADAMS_DATA_SET WRITE command, Adams View writes an Adams
data file for your model. Adams requires that each modeling element be identified by a unique integer
identifier. If you use this parameter to specify a non-zero identifier, Adams View will use it in the
corresponding statement in the Adams data file. You may also enter zero as an identifier, either
explicitly or by default. The next time you write an Adams file, Adams View will replace the zero with
constraint 73
constraint create joint translational
a unique, internally-generated identifier. Adams View will permanently store this identifier with the
element just as if you had entered it yourself. Normally, you would let all identifiers default to zero,
and Adams View would generate the identifiers for you. You are never required to enter a non-zero
identifier. You only need to specify it if, for some reason, you wish to control the Adams file output.
4. When an Adams Solver data file (.adm) is read into Adams View, all comments associated with a
statement (from the end of the previous statement through the end of the current statement) are
stored with the object. Comments in the data file can be associated with model. These comments
must follow the title statement and be followed by the comment 'END OF MODEL
COMMENTS'. This string must be uppercase. When an Adams Solver data file is written, the
comments for an object are written before the statement corresponding to the object.
5. Adams View measures the translational displacement of the origin of the I marker along the common
z-axis of the I and the J markers with respect to the origin of the J marker. If you specify
TRANSLATIONAL_IC, but not VELOCITY_IC, Adams View will set VELOCITY_IC to zero.
Joint initial conditions impose constraints that are active only during initial conditions analysis (not
at the time of the initial configuration). Adams does not impose initial conditions during subsequent
analyses. If you impose initial conditions on the joint that are inconsistent with those on a part in the
joint, the initial conditions on the joint have precedence over those on the part. However, if you
impose initial conditions on the joint that are inconsistent with imparted motions on the joint, the
initial conditions as specified by the motion generator have precedence over those here.
6. Setting the no_translational_ic is not the same as setting the value to zero. A zero velocity is not the
same as "no" velocity. Therefore, by setting this parameter to true there is no longer a velocity initial
condition for this element.
7. Adams View measures the translational velocity of the origin of the I marker along the common z-
axis of the I and the J markers with respect to the origin of the J marker. If you specify
VELOCITY_IC, but not TRANSLATIONAL_IC, Adams View will set TRANSLATIONAL_IC to
zero. Joint initial conditions impose constraints that are active only during initial conditions analysis
(not at the time of the initial configuration). Adams does not impose initial conditions during
subsequent analyses. If you impose initial conditions on the joint that are inconsistent with those on
a part in the joint, the initial conditions on the joint have precedence over those n the part. However,
if you impose initial conditions on the joint that are inconsistent with imparted motions on the joint,
the initial conditions as specified by the motion generator have precedence over those here.
8. Setting the no_velocity_ic parameter is not the same as setting the value to zero. A zero velocity is not
the same as "no" velocity. Therefore, by setting this parameter to true there is no longer a velocity
initial condition for this element.
9. The height and the width values should be a real number between 0.0 and 2.0, where 2.0 represents
the height of the Adams View window. Therefore, a value of 1.0 will set the info window to be one
half as high as the Adams View window.
10. By default, you supply Cartesian (x, y, z) coordinates for the location parameter. You may use the
'defaults units coordinate_system_type =' command to change this convention. For example,
selecting 'cylindrical' means you will subsequently be supplying r, theta, and z coordinates. Adams
View applies your location coordinates in the coordinate system you identify with the
RELATIVE_TO parameter. The default for the RELATIVE_TO parameter is the default coordinate
system. (See the RELATIVE_TO parameter for this command).
74 Adams View Commands
constraint create joint translational
11. Adams View will orient the coordinate system by starting from the initial coordinate system and
applying three successive rotations. Depending on the convention you have selected, the rotations
may occur about space-fixed or bodyfixed axes in any meaningful combination of the x, y, and z axes.
By default, you supply Euler (body313, or body-fixed z, x, z) angles. You may change this convention
with the 'DEFAULTS UNITS ORIENTATION_TYPE=' command. For example, selecting
SPACE123 means you will subsequently be supplying space-fixed x, y, and z angles. Adams View
applies your orientation angles starting from the coordinate system you identify with the
RELATIVE_TO parameter. The default for the RELATIVE_TO parameter is the default coordinate
system.
12. For the along_axis_orientation parameter you may enter either one or two locations to direct the axis.
If you enter one location, the axis will point toward the location. If you specify two locations, the axis
will be parallel to, and pointing the same way as, the vector from the first location to the second. Note
that this does not completely dictate the orientation of the coordinate system. Adams View will
osition the coordinate system with an arbitrary rotation about the axis. If you must completely control
the coordinate system orientation, use ORIENTATION or IN_PLANE_ORIENTATION. By
default, you direct the Z axis of the coordinate system.
You may change this convention with the 'DEFAULTS ORIENT_AXIS_AND_PLANE
AXIS_AND_PLANE_SETTING=' command. For example, selecting either X_AXIS_XY_PLANE
or X_AXIS_XZ_PLANE means you will subsequently be directing the X axis. The plane-convention
setting does not affect this parameter. Adams View applies your location coordinates in the coordinate
system you identify with the RELATIVE_TO parameter. The default for the RELATIVE_TO
parameter is the default coordinate system.
13. For the in_plane_orientation parameter you may enter either two or three locations. If you enter two
locations, the axis will point toward the first location and the plane will fall on the second. If you
specify three locations, the axis will be parallel to, and pointing the same way as, the vector from the
first location to the second and the plane will be parallel to the plane defined by the three locations.
By default, you direct the Z axis of the coordinate system and locate the ZX plane. You may use the
'DEFAULTS ORIENT_AXIS_AND_PLANE AXIS_AND_PLANE_SETTING=' command to
change this convention. For example, selecting X_AXIS_XY_PLANE means you will subsequently
be directing the X axis and locating the XY plane. Adams View applies your location coordinates in
the coordinate system you identify with the RELATIVE_TO parameter. The default for the
RELATIVE_TO parameter is the default coordinate system.
14. If the relative_to parameter is not specified, the default coordinate system is used. The default
coordinate system is initially your model, that is, the global coordinate system. You may change the
default coordinate system using the 'defaults coordinate_system' command.
constraint 75
constraint create joint universal
Tip: 1. You may use the joint_name later to refer to this joint. Adams View will not allow you
to have two joints with the same full name, so you must provide a unique name.
2. Adams View connects one part at the I marker to the other at the J marker. These
markers are automatically generated using this method of joint creation.
3. The I and J markers will be automatically created at this location on the
I_PART_NAME and J_PART_NAME respectively.
4. The I marker is oriented based on the J marker orientation and the requirements of the
particular constraint being created. These markers are created automatically.
Format:
:
Example:
constraint create joint universal &
joint_name = JOINT__2 &
adams_id = 4 &
i_marker_name = MARKER_11 &
j_marker_name = MARKER_12
76 Adams View Commands
constraint create joint universal
Description:
Extended Definition:
1. Adams View will not allow you to have two joints with the same full name, so you must provide a
unique name.
Normally, entity names are composed of alphabetic, numeric, or '_' (underscore) characters, and start
with an alphabetic or '_' character. They may be any length.
constraint 77
constraint create joint universal
By enclosing the name in double quotes, you may use other printable characters, or start the name
with a numeral. If a name contains characters, or starts with a numeral, you must always quote the
name when entering it.
Note that you can specify the parentage of an entity (for example, what part "owns" a marker or a
geometry element) when you CREATE it by changing the name. If you enter just the entity name,
then the default parent will be assigned by Adams View. If you type in the full name, then you may
over ride the default parent. In most cases, when creating an entity, Adams View will provide a default
name. The default name that Adams View provides will specify the parentage that it has assumed.
You may, or course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
2. When you use the FILE ADAMS_DATA_SET WRITE command, Adams View writes an Adams
data file for your model. Adams requires that each modeling element be identified by a unique integer
identifier. If you use this parameter to specify a non-zero identifier, Adams View will use it in the
corresponding statement in the Adams data file.
You may also enter zero as an identifier, either explicitly or by default. The next time you write an
Adams file, Adams View will replace the zero with a unique, internally-generated identifier. Adams
View will permanently store this identifier with the element just as if you had entered it yourself.
Normally, you would let all identifiers default to zero, and Adams View would generate the identifiers
for you. You are never required to enter a non-zero identifier. You only need to specify it if, for some
reason, you wish to control the Adams file output.
3. By default, you supply Cartesian (x, y, z) coordinates. You may use the 'defaults units
coordinate_system_type =' command to change this convention. For example, selecting 'cylindrical'
means you will subsequently be supplying r, theta, and z coordinates.
Adams View applies your location coordinates in the coordinate system you identify with the
RELATIVE_TO parameter. The default for the RELATIVE_TO parameter is the default coordinate
system. (See the RELATIVE_TO parameter for this command).
4. Adams View will orient the coordinate system by starting from the initial coordinate system and
applying three successive rotations.
Depending on the convention you have selected, the rotations may occur about space-fixed or body-
fixed axes in any meaningful combination of the x, y, and z axes.
By default, you supply Euler (body313, or body-fixed z, x, z) angles. You may change this convention
with the 'DEFAULTS UNITS ORIENTATION_TYPE=' command. For example, selecting
SPACE123 means you will subsequently be supplying space-fixed x, y, and z angles.
Adams View applies your orientation angles starting from the coordinate system you identify with the
RELATIVE_TO parameter. The default for the RELATIVE_TO parameter is the default coordinate
system.
78 Adams View Commands
constraint create joint universal
5. For the “along_axis_orientation” parameter, you may enter either one or two locations to direct the
axis. If you enter one location, the axis will point toward the location. If you specify two locations,
the axis will be parallel to, and pointing the same way as, the vector from the first location to the
second.
Note that this does not completely dictate the orientation of the coordinate system. Adams View will
position the coordinate system with an arbitrary rotation about the axis. If you must completely
control the coordinate system orientation, use ORIENTATION or IN_PLANE_ORIENTATION.
By default, you direct the Z axis of the coordinate system. You may change this convention with the
'DEFAULTS ORIENT_AXIS_AND_PLANE AXIS_AND_PLANE_SETTING=' command. For
example, selecting either X_AXIS_XY_PLANE or X_AXIS_XZ_PLANE means you will
subsequently be directing the X axis. The plane-convention setting does not affect this parameter.
Adams View applies your location coordinates in the coordinate system you identify with the
RELATIVE_TO parameter. The default for the RELATIVE_TO parameter is the default coordinate
system.
6. For the “in_plane_orientation” parameter, you may enter either two or three locations. If you enter
two locations, the axis will point toward the first location and the plane will fall on the second. If you
specify three locations, the axis will be parallel to, and pointing the same way as, the vector from the
first location to the second and the plane will be parallel to the plane defined by the three locations.
By default, you direct the Z axis of the coordinate system and locate the ZX plane. You may use the
'DEFAULTS ORIENT_AXIS_AND_PLANE AXIS_AND_PLANE_SETTING=' command to
change this convention. For example, selecting X_AXIS_XY_PLANE means you will subsequently
be directing the X axis and locating the XY plane.
Adams View applies your location coordinates in the coordinate system you identify with the
RELATIVE_TO parameter. The default for the RELATIVE_TO parameter is the default coordinate
system.
7. If the “relative_to” parameter is not specified, the default coordinate system is used. The default
coordinate system is initially your model, i.e. the global coordinate system. You may change the
default coordinate system using the 'defaults coordinate_system' command.
8. A universal joint is a joint that allows two degrees of rotational freedom.
For a universal joint, Adams superimposes the origins of I and J and keeps their z-axes perpendicular,
so that they outline the crosspiece of the joint. The origins of the I and the J markers are at the center
of the crosspiece.
constraint 79
constraint create motion_generator
Tip: 1. Adams View connects one part at the I marker to the other at the J marker. These
markers are automatically generated using this method of joint creation.
2. Adams View connects one part at the J marker to the other at the I marker. These
markers are automatically generated using this method of joint creation.
3. The I and J markers will be automatically created at this location on the
I_PART_NAME and J_PART_NAME respectively.
4. The I marker is oriented based on the J marker orientation and the requirements of the
particular constraint being created. These markers are created automatically.
5. Adams View connects one part at the I marker to the other at the J marker.
Format:
constraint create motion_generator
motion_name = a new motion
adams_id = geom._id
comments = string
joint_name = existing joint
type_of_freedom = freedom type
i_marker_name = existing marker
j_marker_name = existing marker
axis = motion_axes
function = function
user_function = real
time_derivative = displacement/ velocity/ acceleration
displacement_ic = length
velocity_ic = velocity
rotational_displacement_ic = angle
rotational_velocity_ic = angular_velocity
Routine = string
80 Adams View Commands
constraint create motion_generator
Example:
constraint create motion_generator &
motion_name = ROT_MOTION &
joint_name = JOINT_1 &
type_of_freedom = rotational &
function = time &
rotational_velocity_ic = 25.9 &
rotational_displacement_ic = 25.4
The above command will apply a rotational motion to the specified joint which is a function of time. Its
rotational velocity would be 25.9 and its rotational displacement would be 25.4.
Description:
Extended Definition:
1. Adams View will not allow you to have two motion generators with the same full name, so you must
provide a unique name.
Normally, entity names are composed of alphabetic, numeric, or '_' (underscore) characters, and start
with an alphabetic or '_' character. They may be any length.
By enclosing the name in double quotes, you may use other printable characters, or start the name
with a numeral. If a name contains characters, or starts with a numeral, you must always quote the
name when entering it.
Note that you can specify the parentage of an entity (for example, what part "owns" a marker or a
geometry element) when you CREATE it by changing the name. If you enter just the entity name,
then the default parent will be assigned by Adams View. If you type in the full name, then you may
over ride the default parent. In most cases, when creating an entity, Adams View will provide a default
name. The default name that Adams View provides will specify the parentage that it has assumed.
You may, or course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
2. When you use the FILE ADAMS_DATA_SET WRITE command, Adams View writes an Adams
data file for your model. Adams requires that each modeling element be identified by a unique integer
identifier. If you use this parameter to specify a non-zero identifier, Adams View will use it in the
corresponding statement in the Adams data file.
You may also enter zero as an identifier, either explicitly or by default. The next time you write an
Adams file, Adams View will replace the zero with a unique, internally-generated identifier. Adams
View will permanently store this identifier with the element just as if you had entered it yourself.
Normally, you would let all identifiers default to zero, and Adams View would generate the identifiers
for you. You are never required to enter a non-zero identifier. You only need to specify it if, for some
reason, you wish to control the Adams file output.
3. You may identify a joint by typing its name or by picking it from the screen.
82 Adams View Commands
constraint create motion_generator
If the joint is not visible on the screen, you must type the name. You may also find it convenient to
type the name even if the joint is displayed.
If you created the joint by reading an Adams data set or graphics file, the joint name is the letters JOI
followed by the Adams data set joint ID number. The name of Adams JOINT/101 is JOI101, for
example. If you created the joint during preprocessing, you gave it a name at that time.
If a joint is available by default, you may identify it by entering its name only. If it is not, you must
enter its full name. To identify a joint under a model, for instance, you may need to enter the model
name as well. For example, you may specify joint 'lower_pivot' in model 'links' by entering
".links.lower_pivot". If you type a "?", Adams View will list the joints available by default.
You must separate multiple joint names by commas.
If the joint is visible in one of your views, you may identify it by picking on any of the graphics
associated with it.
You need not separate multiple joint picks by commas.
4. The “type_of_freedom” parameter is necessary only when you apply motion to a cylindrical joint. For
a translational joint or a revolute joint, Adams assumes you want translational motion or rotational
motion, respectively.
5. When you create a plot template, Adams View creates two axes by default, one horizontal and one
vertical. These are the plot's primary axes which Adams View uses to perform cursor tracking and to
draw the grid. The plot TEMPLATE commands also operate on the plot's primary axes.
Each axis consists of an axis line, tic marks, numbers and a label. Use the axis ATTRIBUTES to
change visibility and color attributes for the axis entities.
To plot a curve against the new axes, specify the axis names when you create the curve.
You can make the new axes the plot's primary axes by modifying the plot's template and specifying
the desired axes as the PRIMARY_HAXIS and PRIMARY_VAXIS. The grid will then reflect the
divisions of the new axes and cursor tracking will reflect the new axes' coordinate system.
6. The motion must be a function of time only and not a function of the state variables.
Adams View treats this parameter as a series of literal strings. When you write an Adams data set,
Adams View writes these strings, just as you enter them here, after the 'FUNCTION=' argument.
If you want to define the motion with an expression, enclose the expression in quotes and enter it just
as you would in the data set. See the Adams User's Manual for information on writing function
expressions. If your expression is longer than 65 characters, you should break it up into separate
strings so it does not extend past the Adams 80-character line-length limit. Adams View will write
each string on a separate line in the data set.
If you want to define the motion with a user-written subroutine, enter the character string
"USER(r1[,...,r30])", where r1[,...,r30] are the values you want Adams to pass to your user-written
subroutine MOTSUB. If you enter "USER(1.,2.,3.)", for instance, Adams will call your MOTSUB
with values 1, 2, and 3. See the Adams User's Manual for more information on using MOTSUBs.
7. A MOTION_GENERATOR determines a translational or a rotational motion as a function of time.
In Adams you can apply a motion to a translational, to a revolute, or to a cylindrical joint. You can
define the motion with a FUNCTION expression or with a user-written subroutine.
constraint 83
constraint create primitive_joint at_point
You can assign a translational motion at either a translational or a cylindrical joint, and you can assign
a rotational motion at either a revolute or a cylindrical joint. Adams uses the two markers that specify
the joint to define the motion. In other words, Adams controls the rotational or the translational
displacement of the I marker in the joint with respect to the J marker in the joint.
For a translational motion, Adams moves the I marker along the z-axis of the J marker. The J marker
origin represents zero displacement, while the z-axis of the J marker defines the positive direction. For
a rotational motion, Adams rotates the I marker about the z-axis of the J marker. Positive rotations
are positive according to the right-hand rule. The z-axis of the I marker must be collinear with the z-
axis of the J marker at all times. The angle is zero when the x-axis of the I marker is also collinear with
the x-axis of the J marker.
Format:
constraint create primitive_joint at_point
jprim_name = new primitive joint
adams_id = integer
comments = string
i_part_name = existing body
j_part_name = existing body
location = location
Orientation = orientation
along_axis_orientation = location
in_plane_orientation = location
relative_to = existing model, part or marker
i_marker_name = existing marker
j_marker_name = existing marker
Example:
constraint create primitive_joint at_point &
jprim_name = JPRIM__1 &
i_marker_name = MARKER_10 &
j_marker_name = MARKER_12
84 Adams View Commands
constraint create primitive_joint at_point
Description:
Extended Definition:
1. Adams View will not allow you to have two jprims with the same full name, so you must provide a
unique name.
Normally, entity names are composed of alphabetic, numeric, or '_' (underscore) characters, and start
with an alphabetic or '_' character. They may be any length.
By enclosing the name in double quotes, you may use other printable characters, or start the name
with a numeral. If a name contains characters, or starts with a numeral, you must always quote the
name when entering it.
constraint 85
constraint create primitive_joint at_point
Note that you can specify the parentage of an entity (for example, what part "owns" a marker or a
geometry element) when you CREATE it by changing the name. If you enter just the entity name,
then the default parent will be assigned by Adams View. If you type in the full name, then you may
over ride the default parent. In most cases, when creating an entity, Adams View will provide a default
name. The default name that Adams View provides will specify the parentage that it has assumed.
You may, or course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
2. When you use the FILE ADAMS_DATA_SET WRITE command, Adams View writes an Adams
data file for your model. Adams requires that each modeling element be identified by a unique integer
identifier. If you use this parameter to specify a non-zero identifier, Adams View will use it in the
corresponding statement in the Adams data file.
You may also enter zero as an identifier, either explicitly or by default. The next time you write an
Adams file, Adams View will replace the zero with a unique, internally-generated identifier. Adams
View will permanently store this identifier with the element just as if you had entered it yourself.
Normally, you would let all identifiers default to zero, and Adams View would generate the identifiers
for you. You are never required to enter a non-zero identifier. You only need to specify it if, for some
reason, you wish to control the Adams file output.
3. For the location parameter, the I and J markers will be automatically created at this location on the
I_PART_NAME and J_PART_NAME respectively.
By default, you supply Cartesian (x, y, z) coordinates. You may use the 'defaults units
coordinate_system_type =' command to change this convention. For example, selecting 'cylindrical'
means you will subsequently be supplying r, theta, and z coordinates.
Adams View applies your location coordinates in the coordinate system you identify with the
RELATIVE_TO parameter. The default for the RELATIVE_TO parameter is the default coordinate
system. (See the RELATIVE_TO parameter for this command).
4. The I marker is oriented based on the J marker orientation and the requirements of the particular
constraint being created. These markers are created automatically.
Adams View will orient the coordinate system by starting from the initial coordinate system and
applying three successive rotations.
Depending on the convention you have selected, the rotations may occur about space-fixed or body-
fixed axes in any meaningful combination of the x, y, and z axes.
By default, you supply Euler (body313, or body-fixed z, x, z) angles. You may change this convention
with the 'DEFAULTS UNITS ORIENTATION_TYPE=' command. For example, selecting
SPACE123 means you will subsequently be supplying space-fixed x, y, and z angles.
Adams View applies your orientation angles starting from the coordinate system you identify with the
RELATIVE_TO parameter. The default for the RELATIVE_TO parameter is the default coordinate
system.
86 Adams View Commands
constraint create primitive_joint inline
5. You may enter either one or two locations to direct the axis. If you enter one location, the axis will
point toward the location. If you specify two locations, the axis will be parallel to, and pointing the
same way as, the vector from the first location to the second.
Note that this does not completely dictate the orientation of the coordinate system. Adams View will
position the coordinate system with an arbitrary rotation about the axis. If you must completely
control the coordinate system orientation, use ORIENTATION or IN_PLANE_ORIENTATION.
By default, you direct the Z axis of the coordinate system. You may change this convention with the
'DEFAULTS ORIENT_AXIS_AND_PLANE AXIS_AND_PLANE_SETTING=' command. For
example, selecting either X_AXIS_XY_PLANE or X_AXIS_XZ_PLANE means you will
subsequently be directing the X axis. The plane-convention setting does not affect this parameter.
Adams View applies your location coordinates in the coordinate system you identify with the
RELATIVE_TO parameter. The default for the RELATIVE_TO parameter is the default coordinate
system.
6. For the “in_plane_orientation” parameter, you may enter either two or three locations. If you enter
two locations, the axis will point toward the first location and the plane will fall on the second. If you
specify three locations, the axis will be parallel to, and pointing the same way as, the vector from the
first location to the second and the plane will be parallel to the plane defined by the three locations.
By default, you direct the Z axis of the coordinate system and locate the ZX plane. You may use the
'DEFAULTS ORIENT_AXIS_AND_PLANE AXIS_AND_PLANE_SETTING=' command to
change this convention. For example, selecting X_AXIS_XY_PLANE means you will subsequently
be directing the X axis and locating the XY plane.
Adams View applies your location coordinates in the coordinate system you identify with the
RELATIVE_TO parameter. The default for the RELATIVE_TO parameter is the default coordinate
system.
7. If the “relative_to” parameter is not specified, the default coordinate system is used. The default
coordinate system is initially your model, i.e. the global coordinate system. You may change the
default coordinate system using the 'defaults coordinate_system' command.
Tip: Adams View connects one part at the I marker to the other at the J marker. These markers are
automatically generated using this method of joint creation.
Format:
constraint create primitive_joint inline
jprim_name = new primitive joint
adams_id = integer
comments = string
constraint 87
constraint create primitive_joint inline
Example:
constraint create primitive_joint inline &
jprim_name = JPRIM__1 &
i_marker_name = MARKER_10 &
j_marker_name = MARKER_12
Description:
Extended Definition:
1. Adams View will not allow you to have two jprims with the same full name, so you must provide a
unique name.
Normally, entity names are composed of alphabetic, numeric, or '_' (underscore) characters, and start
with an alphabetic or '_' character. They may be any length.
By enclosing the name in double quotes, you may use other printable characters, or start the name
with a numeral. If a name contains characters, or starts with a numeral, you must always quote the
name when entering it.
Note that you can specify the parentage of an entity (for example, what part "owns" a marker or a
geometry element) when you CREATE it by changing the name. If you enter just the entity name,
then the default parent will be assigned by Adams View. If you type in the full name, then you may
over ride the default parent. In most cases, when creating an entity, Adams View will provide a default
name. The default name that Adams View provides will specify the parentage that it has assumed.
You may, or course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
2. When you use the FILE ADAMS_DATA_SET WRITE command, Adams View writes an Adams
data file for your model. Adams requires that each modeling element be identified by a unique integer
identifier. If you use this parameter to specify a non-zero identifier, Adams View will use it in the
corresponding statement in the Adams data file.
You may also enter zero as an identifier, either explicitly or by default. The next time you write an
Adams file, Adams View will replace the zero with a unique, internally-generated identifier. Adams
View will permanently store this identifier with the element just as if you had entered it yourself.
constraint 89
constraint create primitive_joint inline
Normally, you would let all identifiers default to zero, and Adams View would generate the identifiers
for you. You are never required to enter a non-zero identifier. You only need to specify it if, for some
reason, you wish to control the Adams file output.
3. For the location parameter, the I and J markers will be automatically created at this location on the
I_PART_NAME and J_PART_NAME respectively.
By default, you supply Cartesian (x, y, z) coordinates. You may use the 'defaults units
coordinate_system_type =' command to change this convention. For example, selecting 'cylindrical'
means you will subsequently be supplying r, theta, and z coordinates.
Adams View applies your location coordinates in the coordinate system you identify with the
RELATIVE_TO parameter. The default for the RELATIVE_TO parameter is the default coordinate
system. (See the RELATIVE_TO parameter for this command).
4. The I marker is oriented based on the J marker orientation and the requirements of the particular
constraint being created. These markers are created automatically.
Adams View will orient the coordinate system by starting from the initial coordinate system and
applying three successive rotations. Depending on the convention you have selected, the rotations
may occur about space-fixed or body-fixed axes in any meaningful combination of the x, y, and z axes.
By default, you supply Euler (body313, or body-fixed z, x, z) angles. You may change this convention
with the 'DEFAULTS UNITS ORIENTATION_TYPE=' command. For example, selecting
SPACE123 means you will subsequently be supplying space-fixed x, y, and z angles.
Adams View applies your orientation angles starting from the coordinate system you identify with the
RELATIVE_TO parameter. The default for the RELATIVE_TO parameter is the default coordinate
system.
5. You may enter either one or two locations to direct the axis. If you enter one location, the axis will
point toward the location. If you specify two locations, the axis will be parallel to, and pointing the
same way as, the vector from the first location to the second.
Note that this does not completely dictate the orientation of the coordinate system. Adams View will
position the coordinate system with an arbitrary rotation about the axis. If you must completely
control the coordinate system orientation, use ORIENTATION or IN_PLANE_ORIENTATION.
By default, you direct the Z axis of the coordinate system. You may change this convention with the
'DEFAULTS ORIENT_AXIS_AND_PLANE AXIS_AND_PLANE_SETTING=' command. For
example, selecting either X_AXIS_XY_PLANE or X_AXIS_XZ_PLANE means you will
subsequently be directing the X axis. The plane-convention setting does not affect this parameter.
Adams View applies your location coordinates in the coordinate system you identify with the
RELATIVE_TO parameter. The default for the RELATIVE_TO parameter is the default coordinate
system.
6. For the “in_plane_orientation” parameter, you may enter either two or three locations. If you enter
two locations, the axis will point toward the first location and the plane will fall on the second. If you
specify three locations, the axis will be parallel to, and pointing the same way as, the vector from the
first location to the second and the plane will be parallel to the plane defined by the three locations.
90 Adams View Commands
constraint create primitive_joint inplane
By default, you direct the Z axis of the coordinate system and locate the ZX plane. You may use the
'DEFAULTS ORIENT_AXIS_AND_PLANE AXIS_AND_PLANE_SETTING=' command to
change this convention. For example, selecting X_AXIS_XY_PLANE means you will subsequently
be directing the X axis and locating the XY plane.
Adams View applies your location coordinates in the coordinate system you identify with the
RELATIVE_TO parameter. The default for the RELATIVE_TO parameter is the default coordinate
system.
7. If the “relative_to” parameter is not specified, the default coordinate system is used. The default
coordinate system is initially your model, i.e. the global coordinate system. You may change the
default coordinate system using the 'defaults coordinate_system' command.
8. An inline joint primitive indicates a four-degree-of-freedom joint primitive that allows one
translational and three rotational motions of one part with respect to another.
For an inline primitive, Adams imposes two translational constraints, which confine the translational
motion of the I marker to the line defined by the z-axis of the J marker.
Tip: Adams View connects one part at the I marker to the other at the J marker. These markers are
automatically generated using this method of joint creation.
Format:
constraint create primitive_joint inplane
jprim_name = a new primitive joint name
adams_id = integer
comments = string
i_part_name = existing body
j_part_name = existing body
location = location
orientation = location
along_axis_orientation = location
in_plane_orientation = location
relative_to = existing model, part or marker
i_marker_name = existing marker
j_marker_name = existing marker
constraint 91
constraint create primitive_joint inplane
Example:
constraint create primitive_joint inplane &
jprim_name = JPRIM__1 &
adams_id = 2&
comments = "comment string" &
i_part_name = part_1 &
j_part_name = part_2 &
location = 10 , 10 , 5 &
orientation = 1 , 2 , 1 &
relative_to = ground &
i_marker_name = marker_1 &
j_marker_name = marker_2
Description:
Extended Definition:
1. For an inplane primitive, Adams imposes one translational constraint, which confines the
translational motion of the I marker to the x-y plane of the J marker.
2. Normally, entity names like the jprim_name are composed of alphabetic, numeric, or '_' (underscore)
characters, and start with an alphabetic or '_' character. They may be any length. By enclosing the
name in double quotes, you may use other printable characters, or start the name with a numeral. If
a name contains characters, or starts with a numeral, you must always quote the name when entering
it. Note that you can specify the parentage of an entity (e.g. what part "owns" a marker or a geometry
element) when you CREATE it by changing the name. If you enter just the entity name, then the
default parent will be assigned by Adams View. If you type in the full name, then you may over ride
the default parent. In most cases, when creating an entity, Adams View will provide a default name.
The default name that Adams View provides will specify the parentage that it has assumed. You may,
or course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
3. When you use the FILE ADAMS_DATA_SET WRITE command, Adams View writes an Adams
data file for your model. Adams requires that each modeling element be identified by a unique integer
identifier. If you use this parameter to specify a non-zero identifier, Adams View will use it in the
corresponding statement in the Adams data file. You may also enter zero as an identifier, either
explicitly or by default. The next time you write an Adams file, Adams View will replace the zero with
a unique, internally-generated identifier. Adams View will permanently store this identifier with the
element just as if you had entered it yourself. Normally, you would let all identifiers default to zero,
and Adams View would generate the identifiers for you. You are never required to enter a non-zero
identifier. You only need to specify it if, for some reason, you wish to control the Adams file output.
4. When an Adams Solver data file (.adm) is read into Adams View, all comments associated with a
statement (from the end of the previous statement through the end of the current statement) are
stored with the object. Comments in the data file can be associated with model. These comments
must follow the title statement and be followed by the comment 'END OF MODEL
COMMENTS'. This string must be uppercase. When an Adams Solver data file is written, the
comments for an object are written before the statement corresponding to the object.
constraint 93
constraint create primitive_joint inplane
5. Adams View will orient the coordinate system by starting from the initial coordinate system and
applying three successive rotations. Depending on the convention you have selected, the rotations
may occur about space-fixed or bodyfixed axes in any meaningful combination of the x, y, and z axes.
By default, you supply Euler (body313, or body-fixed z, x, z) angles. You may change this convention
with the 'DEFAULTS UNITS ORIENTATION_TYPE=' command. For example, selecting
SPACE123 means you will subsequently be supplying space-fixed x, y, and z angles. Adams View
applies your orientation angles starting from the coordinate system you identify with the
RELATIVE_TO parameter. The default for the RELATIVE_TO parameter is the default coordinate
system.
6. For the along_axis_orientation parameter you may enter either one or two locations to direct the axis.
If you enter one location, the axis will point toward the location. If you specify two locations, the axis
will be parallel to, and pointing the same way as, the vector from the first location to the second. Note
that this does not completely dictate the orientation of the coordinate system. Adams View will
osition the coordinate system with an arbitrary rotation about the axis. If you must completely control
the coordinate system orientation, use ORIENTATION or IN_PLANE_ORIENTATION. By
default, you direct the Z axis of the coordinate system.
You may change this convention with the 'DEFAULTS ORIENT_AXIS_AND_PLANE
AXIS_AND_PLANE_SETTING=' command. For example, selecting either X_AXIS_XY_PLANE
or X_AXIS_XZ_PLANE means you will subsequently be directing the X axis. The plane-convention
setting does not affect this parameter. Adams View applies your location coordinates in the coordinate
system you identify with the RELATIVE_TO parameter. The default for the RELATIVE_TO
parameter is the default coordinate system.
7. For the in_plane_orientation parameter you may enter either two or three locations. If you enter two
locations, the axis will point toward the first location and the plane will fall on the second. If you
specify three locations, the axis will be parallel to, and pointing the same way as, the vector from the
first location to the second and the plane will be parallel to the plane defined by the three locations.
By default, you direct the Z axis of the coordinate system and locate the ZX plane. You may use the
'DEFAULTS ORIENT_AXIS_AND_PLANE AXIS_AND_PLANE_SETTING=' command to
change this convention. For example, selecting X_AXIS_XY_PLANE means you will subsequently
be directing the X axis and locating the XY plane. Adams View applies your location coordinates in
the coordinate system you identify with the RELATIVE_TO parameter. The default for the
RELATIVE_TO parameter is the default coordinate system.
8. If the relative_to parameter is not specified, the default coordinate system is used. The default
coordinate system is initially your model, i.e. the global coordinate system. You may change the
default coordinate system using the 'defaults coordinate_system' command.
9. An inplane joint primitive indicates a five-degree-of-freedom joint primitive that allows both
translational and rotational motion of one part with respect to another.
94 Adams View Commands
constraint create primitive_joint orientation
Tip: 1. You may use the jprim_name later to refer to this jprim. Adams View will not allow
you to have two jprims with the same full name, so you must provide a unique name.
2. Adams View connects one part at the I marker to the other at the J marker. These
markers are automatically generated using this method of joint creation.
3. The I and J markers will be automatically created at this location on the
I_PART_NAME and J_PART_NAME respectively.
4. The I marker is oriented based on the J marker orientation and the requirements of the
particular constraint being created. These markers are created automatically.
Format:
constraint create primitive_joint orientation
jprim_name = a new primitive joint name
adams_id = integer
comments = string
i_part_name = an existing body
j_part_name = an existing body
location = location
orientation = location
along_axis_orientation = location
in_plane_orientation = location
relative_to = an existing model, part or marker
i_marker_name = an existing marker
j_marker_name = an existing marker
Example:
constraint create primitive_joint orientation &
jprim_name = JPRIM__1 &
adams_id = 2 &
comments = "comment string" &
i_part_name = part_1 &
j_part_name = part_2 &
constraint 95
constraint create primitive_joint orientation
Description:
Extended Definition:
1. For an orientation primitive, Adams imposes three rotational constraints to keep the orientation of
the I marker identical to the orientation of the J marker.
2. Normally, entity names like the jprim_name are composed of alphabetic, numeric, or '_' (underscore)
characters, and start with an alphabetic or '_' character. They may be any length. By enclosing the
name in double quotes, you may use other printable characters, or start the name with a numeral. If
a name contains characters, or starts with a numeral, you must always quote the name when entering
it. Note that you can specify the parentage of an entity (e.g. what part "owns" a marker or a geometry
element) when you CREATE it by changing the name. If you enter just the entity name, then the
default parent will be assigned by Adams View. If you type in the full name, then you may over ride
the default parent. In most cases, when creating an entity, Adams View will provide a default name.
The default name that Adams View provides will specify the parentage that it has assumed. You may,
or course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
3. When you use the FILE ADAMS_DATA_SET WRITE command, Adams View writes an Adams
data file for your model. Adams requires that each modeling element be identified by a unique integer
identifier. If you use this parameter to specify a non-zero identifier, Adams View will use it in the
corresponding statement in the Adams data file. You may also enter zero as an identifier, either
explicitly or by default. The next time you write an Adams file, Adams View will replace the zero with
a unique, internally-generated identifier. Adams View will permanently store this identifier with the
element just as if you had entered it yourself. Normally, you would let all identifiers default to zero,
and Adams View would generate the identifiers for you. You are never required to enter a non-zero
identifier. You only need to specify it if, for some reason, you wish to control the Adams file output.
4. When an Adams Solver data file (.adm) is read into Adams View, all comments associated with a
statement (from the end of the previous statement through the end of the current statement) are
stored with the object. Comments in the data file can be associated with model. These comments
must follow the title statement and be followed by the comment 'END OF MODEL
COMMENTS'. This string must be uppercase. When an Adams Solver data file is written, the
comments for an object are written before the statement corresponding to the object.
5. Adams View will orient the coordinate system by starting from the initial coordinate system and
applying three successive rotations. Depending on the convention you have selected, the rotations
may occur about space-fixed or bodyfixed axes in any meaningful combination of the x, y, and z axes.
By default, you supply Euler (body313, or body-fixed z, x, z) angles. You may change this convention
with the 'DEFAULTS UNITS ORIENTATION_TYPE=' command. For example, selecting
SPACE123 means you will subsequently be supplying space-fixed x, y, and z angles. Adams View
applies your orientation angles starting from the coordinate system you identify with the
RELATIVE_TO parameter. The default for the RELATIVE_TO parameter is the default coordinate
system.
constraint 97
constraint create primitive_joint parallel_axis
6. For the along_axis_orientation parameter you may enter either one or two locations to direct the axis.
If you enter one location, the axis will point toward the location. If you specify two locations, the axis
will be parallel to, and pointing the same way as, the vector from the first location to the second. Note
that this does not completely dictate the orientation of the coordinate system. Adams View will
osition the coordinate system with an arbitrary rotation about the axis. If you must completely control
the coordinate system orientation, use ORIENTATION or IN_PLANE_ORIENTATION. By
default, you direct the Z axis of the coordinate system.
You may change this convention with the 'DEFAULTS ORIENT_AXIS_AND_PLANE
AXIS_AND_PLANE_SETTING=' command. For example, selecting either X_AXIS_XY_PLANE
or X_AXIS_XZ_PLANE means you will subsequently be directing the X axis. The plane-convention
setting does not affect this parameter. Adams View applies your location coordinates in the coordinate
system you identify with the RELATIVE_TO parameter. The default for the RELATIVE_TO
parameter is the default coordinate system.
7. For the in_plane_orientation parameter you may enter either two or three locations. If you enter two
locations, the axis will point toward the first location and the plane will fall on the second. If you
specify three locations, the axis will be parallel to, and pointing the same way as, the vector from the
first location to the second and the plane will be parallel to the plane defined by the three locations.
By default, you direct the Z axis of the coordinate system and locate the ZX plane. You may use the
'DEFAULTS ORIENT_AXIS_AND_PLANE AXIS_AND_PLANE_SETTING=' command to
change this convention. For example, selecting X_AXIS_XY_PLANE means you will subsequently
be directing the X axis and locating the XY plane. Adams View applies your location coordinates in
the coordinate system you identify with the RELATIVE_TO parameter. The default for the
RELATIVE_TO parameter is the default coordinate system.
8. If the relative_to parameter is not specified, the default coordinate system is used. The default
coordinate system is initially your model, i.e. the global coordinate system. You may change the
default coordinate system using the 'defaults coordinate_system' command.
9. An orientation joint primitive indicates a three-degree-of-freedom joint primitive that allows only
translational motion of one part with respect to another.
Tip: 1. You may use the jprim_name later to refer to this jprim. Adams View will not allow
you to have two jprims with the same full name, so you must provide a unique name.
2. Adams View connects one part at the I marker to the other at the J marker. These
markers are automatically generated using this method of joint creation.
3. The I and J markers will be automatically created at this location on the
I_PART_NAME and J_PART_NAME respectively.
4. The I marker is oriented based on the J marker orientation and the requirements of the
particular constraint being created. These markers are created automatically.
Format:
constraint create primitive_joint parallel_axis
jprim_name = a new primitive joint name
adams_id = integer
comments = string
i_part_name = an existing body
j_part_name = an existing body
location = location
orientation = location
along_axis_orientation = location
in_plane_orientation = location
relative_to = an existing model, part or marker
i_marker_name = an existing marker
j_marker_name = an existing marker
Example:
constraint create primitive_joint parallel_axis &
jprim_name = JPRIM__1 &
adams_id = 2 &
comments = "comment string" &
i_part_name = part_1 &
j_part_name = part_2 &
location = 10 , 10 , 5 &
orientation = 1 , 2 , 1
relative_to = ground &
i_marker_name = marker_1 &
j_marker_name = marker_2
constraint 99
constraint create primitive_joint parallel_axis
Description:
Extended Definition:
1. For a parallel axis primitive, Adams imposes two rotational constraints so that the z-axis of the I
marker stays parallel to the z-axis of the J marker. This primitive permits relative rotation about the
common z-axis of I and J and permits all relative displacements.
2. Normally, entity names like the jprim_name are composed of alphabetic, numeric, or '_' (underscore)
characters, and start with an alphabetic or '_' character. They may be any length. By enclosing the
name in double quotes, you may use other printable characters, or start the name with a numeral. If
a name contains characters, or starts with a numeral, you must always quote the name when entering
100 Adams View Commands
constraint create primitive_joint parallel_axis
it. Note that you can specify the parentage of an entity (e.g. what part "owns" a marker or a geometry
element) when you CREATE it by changing the name. If you enter just the entity name, then the
default parent will be assigned by Adams View. If you type in the full name, then you may over ride
the default parent. In most cases, when creating an entity, Adams View will provide a default name.
The default name that Adams View provides will specify the parentage that it has assumed. You may,
or course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
3. When you use the FILE ADAMS_DATA_SET WRITE command, Adams View writes an Adams
data file for your model. Adams requires that each modeling element be identified by a unique integer
identifier. If you use this parameter to specify a non-zero identifier, Adams View will use it in the
corresponding statement in the Adams data file. You may also enter zero as an identifier, either
explicitly or by default. The next time you write an Adams file, Adams View will replace the zero with
a unique, internally-generated identifier. Adams View will permanently store this identifier with the
element just as if you had entered it yourself. Normally, you would let all identifiers default to zero,
and Adams View would generate the identifiers for you. You are never required to enter a non-zero
identifier. You only need to specify it if, for some reason, you wish to control the Adams file output.
4. When an Adams Solver data file (.adm) is read into Adams View, all comments associated with a
statement (from the end of the previous statement through the end of the current statement) are
stored with the object. Comments in the data file can be associated with model. These comments
must follow the title statement and be followed by the comment 'END OF MODEL
COMMENTS'. This string must be uppercase. When an Adams Solver data file is written, the
comments for an object are written before the statement corresponding to the object.
5. Adams View will orient the coordinate system by starting from the initial coordinate system and
applying three successive rotations. Depending on the convention you have selected, the rotations
may occur about space-fixed or bodyfixed axes in any meaningful combination of the x, y, and z axes.
By default, you supply Euler (body313, or body-fixed z, x, z) angles. You may change this convention
with the 'DEFAULTS UNITS ORIENTATION_TYPE=' command. For example, selecting
SPACE123 means you will subsequently be supplying space-fixed x, y, and z angles. Adams View
applies your orientation angles starting from the coordinate system you identify with the
RELATIVE_TO parameter. The default for the RELATIVE_TO parameter is the default coordinate
system.
6. For the along_axis_orientation parameter you may enter either one or two locations to direct the axis.
If you enter one location, the axis will point toward the location. If you specify two locations, the axis
will be parallel to, and pointing the same way as, the vector from the first location to the second. Note
that this does not completely dictate the orientation of the coordinate system. Adams View will
osition the coordinate system with an arbitrary rotation about the axis. If you must completely control
the coordinate system orientation, use ORIENTATION or IN_PLANE_ORIENTATION. By
default, you direct the Z axis of the coordinate system.
constraint 101
constraint create primitive_joint perpendicular
Tip: 1. You may use the jprim_name later to refer to this jprim. Adams View will not allow
you to have two jprims with the same full name, so you must provide a unique name.
2. Adams View connects one part at the I marker to the other at the J marker. These
markers are automatically generated using this method of joint creation.
3. The I and J markers will be automatically created at this location on the
I_PART_NAME and J_PART_NAME respectively.
4. The I marker is oriented based on the J marker orientation and the requirements of the
particular constraint being created. These markers are created automatically.
Format:
Constraint create primitive_joint perpendicular
jprim_name = new primitive joint name
adams_id = geom_id
comments = string
102 Adams View Commands
constraint create primitive_joint perpendicular
Example:
constraint create primitive_joint perpendicular &
jprim_name = JPRIM__1 &
i_marker_name = MARKER_1 &
j_marker_name = MARKER_11
Description:
Extended Definition:
1. Adams View will not allow you to have two jprims with the same full name, so you must provide a
unique name.
Normally, entity names are composed of alphabetic, numeric, or '_' (underscore) characters, and start
with an alphabetic or '_' character. They may be any length.
By enclosing the name in double quotes, you may use other printable characters, or start the name
with a numeral. If a name contains characters, or starts with a numeral, you must always quote the
name when entering it.
Note that you can specify the parentage of an entity (e.g. what part "owns" a marker or a geometry
element) when you CREATE it by changing the name. If you enter just the entity name, then the
default parent will be assigned by Adams View. If you type in the full name, then you may over ride
the default parent. In most cases, when creating an entity, Adams View will provide a default name.
The default name that Adams View provides will specify the parentage that it has assumed.
104 Adams View Commands
constraint create primitive_joint perpendicular
You may, or course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
2. When you use the FILE ADAMS_DATA_SET WRITE command, Adams View writes an Adams
data file for your model. Adams requires that each modeling element be identified by a unique integer
identifier. If you use this parameter to specify a non-zero identifier, Adams View will use it in the
corresponding statement in the Adams data file.
You may also enter zero as an identifier, either explicitly or by default. The next time you write an
Adams file, Adams View will replace the zero with a unique, internally-generated identifier.
Adams View will permanently store this identifier with the element just as if you had entered it
yourself.
Normally, you would let all identifiers default to zero, and Adams View would generate the identifiers
for you. You are never required to enter a non-zero identifier. You only need to specify it if, for some
reason, you wish to control the Adams file output.
3. By default, you supply Cartesian (x, y, z) coordinates. You may use the 'defaults units
coordinate_system_type =' command to change this convention. For example, selecting 'cylindrical'
means you will subsequently be supplying r, theta, and z coordinates.
Adams View applies your location coordinates in the coordinate system you identify with the
RELATIVE_TO parameter. The default for the RELATIVE_TO parameter is the default coordinate
system. (See the RELATIVE_TO parameter for this command).
4. Adams View will orient the coordinate system by starting from the initial coordinate system and
applying three successive rotations. Depending on the convention you have selected, the rotations
may occur about space-fixed or body-fixed axes in any meaningful combination of the x, y, and z axes.
By default, you supply Euler (body313, or body-fixed z, x, z) angles. You may change this convention
with the 'DEFAULTS UNITS ORIENTATION_TYPE=' command. For example, selecting
SPACE123 means you will subsequently be supplying space-fixed x, y, and z angles.
Adams View applies your orientation angles starting from the coordinate system you identify with the
RELATIVE_TO parameter. The default for the RELATIVE_TO parameter is the default coordinate
system.
5. For the “along_axis_orientation” parameter, you may enter either one or two locations to direct the
axis. If you enter one location, the axis will point toward the location. If you specify two locations,
the axis will be parallel to, and pointing the same way as, the vector from the first location to the
second.
Note that this does not completely dictate the orientation of the coordinate system. Adams View will
position the coordinate system with an arbitrary rotation about the axis. If you must completely
control the coordinate system orientation, use ORIENTATION or IN_PLANE_ORIENTATION.
By default, you direct the Z axis of the coordinate system. You may change this convention with the
'DEFAULTS ORIENT_AXIS_AND_PLANE AXIS_AND_PLANE_SETTING=' command. For
example, selecting either X_AXIS_XY_PLANE or X_AXIS_XZ_PLANE means you will
subsequently be directing the X axis. The plane-convention setting does not affect this parameter.
constraint 105
constraint create primitive_joint point _point
Adams View applies your location coordinates in the coordinate system you identify with the
RELATIVE_TO parameter. The default for the RELATIVE_TO parameter is the default coordinate
system.
6. For the “in_plane_orientation” parameter, you may enter either two or three locations. If you enter
two locations, the axis will point toward the first location and the plane will fall on the second. If you
specify three locations, the axis will be parallel to, and pointing the same way as, the vector from the
first location to the second and the plane will be parallel to the plane defined by the three locations.
By default, you direct the Z axis of the coordinate system and locate the ZX plane. You may use the
'DEFAULTS ORIENT_AXIS_AND_PLANE AXIS_AND_PLANE_SETTING=' command to
change this convention. For example, selecting X_AXIS_XY_PLANE means you will subsequently
be directing the X axis and locating the XY plane.
Adams View applies your location coordinates in the coordinate system you identify with the
RELATIVE_TO parameter. The default for the RELATIVE_TO parameter is the default coordinate
system.
7. If the “relative_to” parameter is not specified, the default coordinate system is used. The default
coordinate system is initially your model, that is, the global coordinate system. You may change the
default coordinate system using the 'defaults coordinate_system' command.
8. A perpendicular joint primitive is a five-degree-of-freedom joint primitive that allows both
translational and rotational motion of one part with respect to another.
For a perpendicular primitive, Adams imposes a single rotational constraint on the I and the J markers
so that their z-axes remain perpendicular. This allows relative rotations about either z-axis, but does
not allow any relative rotation in the direction perpendicular to both z-axes.
Tip: 1. Adams View connects one part at the I marker to the other at the J marker. These
markers are automatically generated using this method of joint creation.
2. The I and J markers will be automatically created at this location on the
I_PART_NAME and J_PART_NAME respectively.
Format:
constraint create primitive_joint point_point
prim_name = new primitive joint
adams_id = integer
comments = string
i_part_name = existing body
j_part_name = existing body
106 Adams View Commands
constraint create primitive_joint point _point
location = location
Orientation = orientation
along_axis_orientation = location
in_plane_orientation = location
relative_to = existing model, part or marker
i_marker_name = existing marker
j_marker_name = existing marker
offset = length
Example:
constraint create primitive_joint point_point &
jprim_name = JPRIM__1 &
i_marker_name = MARKER_10 &
j_marker_name = MARKER_12 &
offset = 2
constraint 107
constraint create primitive_joint point _point
Description:
Extended Definition:
1. Adams View will not allow you to have two jprims with the same full name, so you must provide a
unique name.
108 Adams View Commands
constraint create primitive_joint point _point
Normally, entity names are composed of alphabetic, numeric, or '_' (underscore) characters, and start
with an alphabetic or '_' character. They may be any length.
By enclosing the name in double quotes, you may use other printable characters, or start the name
with a numeral. If a name contains characters, or starts with a numeral, you must always quote the
name when entering it.
Note that you can specify the parentage of an entity (for example, what part "owns" a marker or a
geometry element) when you CREATE it by changing the name. If you enter just the entity name, then
the default parent will be assigned by Adams View. If you type in the full name, then you may over
ride the default parent. In most cases, when creating an entity, Adams View will provide a default
name. The default name that Adams View provides will specify the parentage that it has assumed.
You may, or course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME". The number of levels
used varies from case to case and the parentage must exist before an entity can be assigned to it.
2. When you use the FILE ADAMS_DATA_SET WRITE command, Adams View writes an Adams data
file for your model. Adams requires that each modeling element be identified by a unique integer
identifier. If you use this parameter to specify a non-zero identifier, Adams View will use it in the
corresponding statement in the Adams data file.
You may also enter zero as an identifier, either explicitly or by default. The next time you write an
Adams file, Adams View will replace the zero with a unique, internally-generated identifier. Adams
View will permanently store this identifier with the element just as if you had entered it yourself.
Normally, you would let all identifiers default to zero, and Adams View would generate the identifiers
for you. You are never required to enter a non-zero identifier. You only need to specify it if, for some
reason, you wish to control the Adams file output.
3. For the location parameter, the I and J markers will be automatically created at this location on the
I_PART_NAME and J_PART_NAME respectively.
By default, you supply Cartesian (x, y, z) coordinates. You may use the 'defaults units
coordinate_system_type =' command to change this convention. For example, selecting 'cylindrical'
means you will subsequently be supplying r, theta, and z coordinates.
Adams View applies your location coordinates in the coordinate system you identify with the
RELATIVE_TO parameter. The default for the RELATIVE_TO parameter is the default coordinate
system. (See the RELATIVE_TO parameter for this command).
4. The I marker is oriented based on the J marker orientation and the requirements of the particular
constraint being created. These markers are created automatically.
Adams View will orient the coordinate system by starting from the initial coordinate system and
applying three successive rotations.
Depending on the convention you have selected, the rotations may occur about space-fixed or body-
fixed axes in any meaningful combination of the x, y, and z axes. By default, you supply Euler
(body313, or body-fixed z, x, z) angles. You may change this convention with the 'DEFAULTS UNITS
ORIENTATION_TYPE=' command. For example, selecting SPACE123 means you will subsequently
be supplying space-fixed x, y, and z angles.
Adams View applies your orientation angles starting from the coordinate system you identify with the
RELATIVE_TO parameter. The default for the RELATIVE_TO parameter is the default coordinate
system.
constraint 109
constraint create user_defined
5. You may enter either one or two locations to direct the axis. If you enter one location, the axis will
point toward the location. If you specify two locations, the axis will be parallel to, and pointing the
same way as, the vector from the first location to the second.
Note that this does not completely dictate the orientation of the coordinate system. Adams View will
position the coordinate system with an arbitrary rotation about the axis. If you must completely
control the coordinate system orientation, use ORIENTATION or IN_PLANE_ORIENTATION.
By default, you direct the Z axis of the coordinate system. You may change this convention with the
'DEFAULTS ORIENT_AXIS_AND_PLANE AXIS_AND_PLANE_SETTING=' command. For
example, selecting either X_AXIS_XY_PLANE or X_AXIS_XZ_PLANE means you will subsequently
be directing the X axis. The plane-convention setting does not affect this parameter. Adams View
applies your location coordinates in the coordinate system you identify with the RELATIVE_TO
parameter. The default for the RELATIVE_TO parameter is the default coordinate system.
6. For the “in_plane_orientation” parameter, you may enter either two or three locations. If you enter
two locations, the axis will point toward the first location and the plane will fall on the second. If you
specify three locations, the axis will be parallel to, and pointing the same way as, the vector from the
first location to the second and the plane will be parallel to the plane defined by the three locations.
By default, you direct the Z axis of the coordinate system and locate the ZX plane. You may use the
'DEFAULTS ORIENT_AXIS_AND_PLANE AXIS_AND_PLANE_SETTING=' command to change
this convention. For example, selecting X_AXIS_XY_PLANE means you will subsequently be
directing the X axis and locating the XY plane.
Adams View applies your location coordinates in the coordinate system you identify with the
RELATIVE_TO parameter. The default for the RELATIVE_TO parameter is the default coordinate
system.
7. If the “relative_to” parameter is not specified, the default coordinate system is used. The default
coordinate system is initially your model, i.e. the global coordinate system. You may change the
default coordinate system using the 'defaults coordinate_system' command.
Tip: Adams View connects one part at the I marker to the other at the J marker. These markers are
automatically generated using this method of joint creation.
Format:
constraint create user_defined
user_constraint_name = new user constraint
adams_id = geom._id
comments = string
user_function = function
110 Adams View Commands
constraint delete
Description:
Extended Definition:
1. When you use the FILE ADAMS_DATA_SET WRITE command, Adams View writes an Adams
data file for your model. Adams requires that each modeling element be identified by a unique integer
identifier. If you use this parameter to specify a non-zero identifier, Adams View will use it in the
corresponding statement in the Adams data file.
You may also enter zero as an identifier, either explicitly or by default. The next time you write an
Adams file, Adams View will replace the zero with a unique, internally-generated identifier.
Adams View will permanently store this identifier with the element just as if you had entered it
yourself.
Normally, you would let all identifiers default to zero, and Adams View would generate the identifiers
for you. You are never required to enter a non-zero identifier. You only need to specify it if, for some
reason, you wish to control the Adams file output.
2. A user-defined constraint describes a system constraint as a function of time and as many as thirty
variables. Each of these variables must be the displacement or the velocity of a part. For any part at
any point in time, six displacements define its position, and six velocities define its velocity. The six
displacements are the x, y, and z translations and the three Euler angle rotations. The six velocities are
the x, y, and z translational velocities and the time derivatives of the three Euler angles. Adams
measures all of these displacements and velocities at the origin of the principal axes with respect to the
global coordinate system. A USER DEFINED constraint is only used when a constraint is needed
that is not definable by any of the other constraint types.
constraint delete
Allows you to delete an existing constraint.
Format:
constraint delete
constraint_name = existing constraint
constraint 111
constraint modify complex_joint coupler
Example:
constraint delete &
constraint_name = joint_1
Description:
Extended Definition:
1. Any Adams View object you delete, may be "undeleted" by using the UNDO commands. If you have
deleted something you would like back, enter the command "undo backward", or pick on the fixed
menu entry 'UNDO'.
• You may identify a constraint by typing its name or by picking it from the screen.
• If the constraint is not visible on the screen, you must type the name. You may also find it
convenient to type the name even if the constraint is displayed.
• If you created the constraint by reading an Adams data set, the constraint name is the first three
letters of the Adams statement type followed by the Adams data set constraint ID number. The
name of Adams JOINT/101 is JOI101, for example. If you created the constraint during
preprocessing, you gave it a name at that time.
• If a constraint is available by default, you may identify it by entering its name only. If it is not,
you must enter its full name. To identify a constraint under a different model, for instance, you
may need to enter the model name as well. For example, you may specify constraint 'servo_motor'
from model 'test' by entering ".test.servo_motor". If you type a "?", Adams View will list the
constraints available by default.
• You must separate multiple constraint names by commas.
• If the constraint is visible in one of your views, you may identify it by picking on any of the
graphics associated with it.
• You need not separate multiple constraint picks by commas.
2. You must enter the name of the constraint you wish to delete by either picking it from the screen or
specifying the full name.
You may reverse this deletion at a later time with an UNDO command.
Format:
constraint modify complex_joint coupler
coupler_name = an existing coupler
new_coupler_name = a new coupler
adams_id = adams_id
comments = string
joint_name = an existing joint
type_of_freedom = coupler_freedom
motion_multipliers = real
first_angular_scale_factor = angle
first_scale_factor = real
second_angular_scale_factor = angle
second_scale_factor = real
third_angular_scale_factor = angle
third_scale_factor = real
user_function = real
Example:
constraint modify complex_joint coupler &
coupler_name = coupler__1 &
new_coupler_name = coupler__2 &
adams_id = 1 &
comments = "comment string" &
joint_name = JOINT_1 , JOINT_1 &
motion_multipliers = 0.1 , 0.2 &
type_of_freedom = rot_rot_rot
Description:
Extended Definition:
1. A coupler creates the coupling of the translational and/or the rotational motion of two or three joints.
With this constraint, you can deliver or relate motion from one area of a mechanism to another.
Components whose behavior you might approximate with this statement include combinations of
hydraulic generators, motors, and pistons and include flexible, rotational transmission cables.
114 Adams View Commands
constraint modify complex_joint coupler
2. You may identify a coupler by typing its name or by picking it from the screen.
If the coupler is not visible on the screen, you must type the name. You may also find it convenient
to type the name even if the coupler is displayed. If you created the coupler by reading an Adams data
set, the coupler name is the letters COU followed by the Adams data set coupler ID number. The
name of Adams COUPLER/101 is COU101, for example. If you created the coupler during
preprocessing, you gave it a name at that time. If a coupler is available by default, you may identify it
by entering its name only. If it is not, you must enter its full name. To identify a coupler under a
different model, for instance, you may need to enter the model name as well. For example, you may
specify coupler 'differential' from model 'test' by entering ".test.differential". You must separate
multiple coupler names by commas.
3. Normally, entity names like the coupler name are composed of alphabetic, numeric, or '_'
(underscore) characters, and start with an alphabetic or '_' character. They may be any length. By
enclosing the name in double quotes, you may use other printable characters, or start the name with
a numeral. If a name contains characters, or starts with a numeral, you must always quote the name
when entering it. Note that you can specify the parentage of an entity (for example, what part "owns"
a marker or a geometry element) when you CREATE it by changing the name. If you enter just the
entity name, then the default parent will be assigned by Adams View. If you type in the full name,
then you may over ride the default parent. In most cases, when creating an entity, Adams View will
provide a default name. The default name that Adams View provides will specify the parentage that
it has assumed. You may, or course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
4. When you use the FILE ADAMS_DATA_SET WRITE command, Adams View writes an Adams
data file for your model. Adams requires that each modeling element be identified by a unique integer
identifier. If you use this parameter to specify a non-zero identifier, Adams View will use it in the
corresponding statement in the Adams data file. You may also enter zero as an identifier, either
explicitly or by default. The next time you write an Adams file, Adams View will replace the zero with
a unique, internally-generated identifier. Adams View will permanently store this identifier with the
element just as if you had entered it yourself. Normally, you would let all identifiers default to zero,
and Adams View would generate the identifiers for you. You are never required to enter a non-zero
identifier. You only need to specify it if, for some reason, you wish to control the Adams file output.
5. When an Adams Solver data file (.adm) is read into Adams View, all comments associated with a
statement (from the end of the previous statement through the end of the current statement) are
stored with the object. Comments in the data file can be associated with model. These comments
must follow the title statement and be followed by the comment 'END OF MODEL
COMMENTS'. This string must be uppercase. When an Adams Solver data file is written, the
comments for an object are written before the statement corresponding to the object.
6. You may identify a joint by typing its name or by picking it from the screen. If the joint is not visible
on the screen, you must type the name. You may also find it convenient to type the name even if the
joint is displayed. If you created the joint by reading an Adams data set or graphics file, the joint name
is the letters JOI followed by the Adams data set joint ID number. The name of Adams JOINT/101
is JOI101, for example. If you created the joint during preprocessing, you gave it a name at that time.
constraint 115
constraint modify complex_joint coupler
If a joint is available by default, you may identify it by entering its name only. If it is not, you must
enter its full name. To identify a joint under a model, for instance, you may need to enter the model
name as well. For example, you may specify joint 'lower_pivot' in model 'links' by entering
".links.lower_pivot". You must separate multiple joint names by commas. If the joint is visible in one
of your views, you may identify it by picking on any of the graphics associated with it. You need not
separate multiple joint picks by commas.
7. AdamsAdams assumes that translational joints transfer translational motion and that revolute joints
transfer rotational motion. A cylindrical joint permits both translational and rotational motion,
however. If your coupler includes cylindrical joints, you must use this parameter to indicate which
motion is transferred at each joint.
8. Adams uses the values in the SCALES argument in the following equation:
(r1 * q1) + (r2 * q2) + (r3 * q3) = 0,
where r1, r2, and r3 are the scale factors for the three joints and q1, q2, and q3 are the translational
or the rotational displacements of the joint I markers with respect to their J
markers. Suppose you are coupling two joints, and SCALES=1,-2. The equation that relates the two
joints is
q1 + (-2 * q2) = 0, or
q1 = 2 * q2.
The displacement (q1) of the I marker with respect to the J marker in the first joint is twice that of
the displacement (q2) of the I marker with respect to the J marker in the second joint; the two
displacements have the same sign. If you specify two joints in the JOINTS argument, you must
specify r2. If you specify only one value, Adams assumes it is r2 and uses the default value of 1 for r1.
9. Adams uses the first_angular_scale_factor (r1) in the following equation:
(r1 * q1) + (r2 * q2) + (r3 * q3) = 0,
where r1, r2, and r3 are the scale factors for the three joints and q1, q2, and q3 are the translational
or the rotational displacements of the joint I markers with respect to their J markers. Suppose you are
coupling two joints, and r1=1 and r2=-2. The equation that relates the two joints is
q1 + (-2 * q2) = 0, or
q1 = 2 * q2.
The displacement (q1) of the I marker with respect to the J marker in the first joint is twice that of
the displacement (q2) of the I marker with respect to the J marker in the second joint; the two
displacements have the same sign.
10. Adams uses the first_scale_factor (r1) in the following equation:
(r1 * q1) + (r2 * q2) + (r3 * q3) = 0,
where r1, r2, and r3 are the scale factors for the three joints and q1, q2, and q3 are the translational
or the rotational displacements of the joint I markers with respect to their J markers. Suppose you are
coupling two joints, and r1=1 and r2=-2. The equation that relates the two joints is
q1 + (-2 * q2) = 0, or
q1 = 2 * q2.
116 Adams View Commands
constraint modify complex_joint coupler
The displacement (q1) of the I marker with respect to the J marker in the first joint is twice that of
the displacement (q2) of the I marker with respect to the J marker in the second joint; the two
displacements have the same sign.
11. Adams uses the second_angular scale_factor (r2) in the following equation:
(r1 * q1) + (r2 * q2) + (r3 * q3) = 0,
where r1, r2, and r3 are the scale factors for the three joints and q1, q2, and q3 are the translational
or the rotational displacements of the joint I markers with respect to their J markers. Suppose you are
coupling two joints, and r1=1 and r2=-2. The equation that relates the two joints is
q1 + (-2 * q2) = 0, or
q1 = 2 * q2.
The displacement (q1) of the I marker with respect to the J marker in the first joint is twice that of
the displacement (q2) of the I marker with respect to the J marker in the second joint; the two
displacements have the same sign.
12. Adams uses the second_scale_factor (r2) in the following equation:
(r1 * q1) + (r2 * q2) + (r3 * q3) = 0,
where r1, r2, and r3 are the scale factors for the three joints and q1, q2, and q3 are the translational
or the rotational displacements of the joint I markers with respect to their J markers. Suppose you are
coupling two joints, and r1=1 and r2=-2. The equation that relates the two joints is
q1 + (-2 * q2) = 0, or
q1 = 2 * q2.
The displacement (q1) of the I marker with respect to the J marker in the first joint is twice that of
the displacement (q2) of the I marker with respect to the J marker in the second joint; the two
displacements have the same sign.
13. Adams uses the third_angular_scale_factor (r3) in the following equation:
(r1 * q1) + (r2 * q2) + (r3 * q3) = 0,
where r1, r2, and r3 are the scale factors for the three joints and q1, q2, and q3 are the translational
or the rotational displacements of the joint I markers with respect to their J markers.
14. Adams uses the third_scale_factor (r3) in the following equation:
(r1 * q1) + (r2 * q2) + (r3 * q3) = 0,
where r1, r2, and r3 are the scale factors for the three joints and q1, q2, and q3 are the translational
or the rotational displacements of the joint I markers with respect to their J markers.
constraint 117
constraint modify complex_joint gear
Tip: 1. If you type a "?", Adams View will list the couplers available by default.
2. If the coupler is visible in one of your views, you may identify it by picking on any of
the graphics associated with it.
3. You need not separate multiple coupler picks by commas.
4. You use the coupler_name parameter to identify the existing coupler to affect with this
command.
5. You may use the new_coupler_name later to refer to this coupler. Adams View will not
allow you to have two couplers with the same full name, so you must provide a unique
name.
6. Some entities constrain motion at, or are otherwise associated with, specific joints. You
use this parameter to identify that joint.
7. See the Adams User's Manual for information on writing user-written subroutines.
Format:
constraint modify complex_joint gear
gear_name = an existing joint
new_gear_name = a new joint
adams_id = integer
comments = string
joint_name = an existing joint
common_velocity_marker = an existing marker
Example:
constraint modify complex_joint gear &
gear_name = GEAR__1 &
new_gear_name = GEAR__2 &
adams_id = 2 &
comments = "comment string" &
joint_name = JOINT__1 &
common_velocity_marker = marker_1
118 Adams View Commands
constraint modify complex_joint gear
Description:
Extended Definition:
1. The gear element uses the location of the common velocity marker to determine the point of contact
of the two gear pitch circles. The direction of the z-axis of the common velocity marker indicates the
direction of the common velocity of points on the gear teeth in contact. This is also the direction in
which gear tooth forces act. The location of the common velocity marker is constant with respect to
the carrier part.
2. You may identify a gear pair by typing its name or by picking it from the screen.
If the gear pair is not visible on the screen, you must type the name. You may also find it convenient
to type the name even if the gear is displayed. If you created the gear by reading an Adams data set,
the gear name is the letters GEA followed by the Adams data set gear ID number. The name of Adams
GEAR/101 is GEA101, for example. If you created the gear during preprocessing, you gave it a name
at that time. If a gear is available by default, you may identify it by entering its name only. If it is not,
you must enter its full name. To identify a gear under another model, for instance, you may need to
enter the model name as well. For example, you may specify gear 'spur1' from model 'train' by
entering ".train.spur1". You must separate multiple gear names by commas. If the gear is visible in
one of your views, you may identify it by picking on any of the graphics associated with it. You need
not separate multiple gear picks by commas.
3. Normally, entity names like the gear name are composed of alphabetic, numeric, or '_' (underscore)
characters, and start with an alphabetic or '_' character. They may be any length. By enclosing the
name in double quotes, you may use other printable characters, or start the name with a numeral. If
a name contains characters, or starts with a numeral, you must always quote the name when entering
it. Note that you can specify the parentage of an entity (for example, what part "owns" a marker or a
geometry element) when you CREATE it by changing the name. If you enter just the entity name,
then the default parent will be assigned by Adams View. If you type in the full name, then you may
over ride the default parent. In most cases, when creating an entity, Adams View will provide a default
name. The defaultname that Adams View provides will specify the parentage that it has assumed. You
may, or course, delete this name and use your own. The form of a full name is:
constraint 119
constraint modify complex_joint gear
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
4. When you use the FILE ADAMS_DATA_SET WRITE command, Adams View writes an Adams
data file for your model. Adams requires that each modeling element be identified by a unique integer
identifier. If you use this parameter to specify a non-zero identifier, Adams View will use it in the
corresponding statement in the Adams data file. You may also enter zero as an identifier, either
explicitly or by default. The next time you write an Adams file, Adams View will replace the zero with
a unique, internally-generated identifier. Adams View will permanently store this identifier with the
element just as if you had entered it yourself. Normally, you would let all identifiers default to zero,
and Adams View would generate the identifiers for you. You are never required to enter a non-zero
identifier. You only need to specify it if, for some reason, you wish to control the Adams file output.
5. When an Adams Solver data file (.adm) is read into Adams View, all comments associated with a
statement (from the end of the previous statement through the end of the current statement) are
stored with the object. Comments in the data file can be associated with model. These comments
must follow the title statement and be followed by the comment 'END OF MODEL
COMMENTS'. This string must be uppercase. When an Adams Solver data file is written, the
comments for an object are written before the statement corresponding to the object.
6. You may identify a joint by typing its name or by picking it from the screen. If the joint is not visible
on the screen, you must type the name. You may also find it convenient to type the name even if the
joint is displayed. If you created the joint by reading an Adams data set or graphics file, the joint name
is the letters JOI followed by the Adams data set joint ID number. The name of Adams JOINT/101
is JOI101, for example. If you created the joint during preprocessing, you gave it a name at that time.
If a joint is available by default, you may identify it by entering its name only. If it is not, you must
enter its full name. To identify a joint under a model, for instance, you may need to enter the model
name as well. For example, you may specify joint 'lower_pivot' in model 'links' by entering
".links.lower_pivot". If you type a "?", Adams View will list the joints available by default. You must
separate multiple joint names by commas. If the joint is visible in one of your views, you may identify
it by picking on any of the graphics associated with it. You need not separate multiple joint picks by
commas.
7. You define the constant-velocity (CV) marker on the carrier part to which the J markers of the joints
belong. The z-axis of this marker must point in the direction of common velocity at the point of
contact. The direction of common velocity is tangent to both pitch circles and would be normal to
the tooth surfaces of the gears if the pressure angle was zero. (Adams always assumes a pressure angle
of zero.)
The CV marker has constant position and orientation in the carrier LPRF and does not change when
the direction of power flow through the gear changes.
8. A gear pair relates the motion of three parts and two joints. The three parts are the two gear parts and
a third part, the carrier, to which the gears are attached by the two joints. The joints must be
translational, revolute, or cylindrical. Different combinations of joint types and orientations allow
you to model spur, helical, planetary, bevel, and rack-and-pinion gear pairs.
120 Adams View Commands
constraint modify general_constraint
Tip: 1. If you type a "?", Adams View will list the gears available by default.
2. You use the joint_name parameter to identify the existing gear to affect with this
command.
3. You may use the new_gear_name later to refer to this gear. Adams View will not allow
you to have two gears with the same full name, so you must provide a unique name.
4. Some entities constraint motion at, or are otherwise associated with, specific joints.
You use this parameter to identify that joint.
5. The common_velocity_marker also determines the direction of the reaction forces
developed by the joints in the gear pair.
Format:
constraint modify general_constraint
general_constraint_name = existing gen_constraint name
new_general_constraint_name = new gen_constraint name
adams_id = geom. _id
comments = string,
i_marker_name = existing marker
function = function
Example:
constraint modify general_constraint &
general_constraint_name = GCON_1 &
new_general_constraint_name = MY_GCON &
i_marker_name = MARKER_11 &
function = time
constraint 121
constraint modify general_constraint
Description:
Extended Definition:
1. When you use the FILE ADAMS_DATA_SET WRITE command, Adams View writes an Adams
data file for your model. Adams requires that each modeling element be identified by a unique integer
identifier. If you use this parameter to specify a non-zero identifier, Adams View will use it in the
corresponding statement in the Adams data file.
You may also enter zero as an identifier, either explicitly or by default. The next time you write an
Adams file, Adams View will replace the zero with a unique, internally-generated identifier. Adams
View will permanently store this identifier with the element just as if you had entered it yourself.
Normally, you would let all identifiers default to zero, and Adams View would generate the identifiers
for you. You are never required to enter a non-zero identifier. You only need to specify it if, for some
reason, you wish to control the Adams file output.
2. You may identify a joint by typing its name or by picking it from the screen.
If the joint is not visible on the screen, you must type the name. You may also find it convenient to
type the name even if the joint is displayed.
If you created the joint by reading an Adams data set or graphics file, the joint name is the letters JOI
followed by the Adams data set joint ID number. The name of Adams JOINT/101 is JOI101, for
example. If you created the joint during preprocessing, you gave it a name at that time.
If a joint is available by default, you may identify it by entering its name only. If it is not, you must
enter its full name. To identify a joint under a model, for instance, you may need to enter the model
name as well. For example, you may specify joint 'lower_pivot' in model 'links' by entering
".links.lower_pivot". If you type a "?", Adams View will list the joints available by default.
You must separate multiple joint names by commas.
If the joint is visible in one of your views, you may identify it by picking on any of the graphics
associated with it.
122 Adams View Commands
constraint modify general_constraint
Cautions:
1. Objects of type General_Constraint are not compatible with Adams Solver (FORTRAN).
2. The topology of the model has changed so .model_1.GCON__1 is no longer connected in a way that
is compatible with Adams Solver (FORTRAN).
3. An attribute of .model_1.GCON__1 is no longer compatible with Adams Solver (FORTRAN).
If you intend to use Adams Solver (FORTRAN), you must change your model to eliminate the
incompatibility. For more information, see the online help for the object listed.
If you do not want to use Adams Solver (FORTRAN), then be sure that you set your preferences so
Adams Solver (C++) is the default as follows:
a. From the Settings menu, point to Solver and then select either Solver Executable or Preferences,
depending on the product you are using.
b. To learn more, press F1 in the dialog box.
• Correct handling of a GCON element assumes a FUNCTION defined in Pfaffian form.
• Kinematic models are incompatible with velocity constraints. If a model is rendered kinematic by
displacement constraints, any additional velocity constraints will be either redundant or
conflicting. In either case, version 2003 of Adams Solver (C++) is incapable of analyzing the
model as explained below:
Currently, there is no redundancy check for user constraints defined at the velocity level.
Therefore, you can impose constraints that are not redundant at the position level, but lead to a
set of redundant constraints when their time derivative is considered with other velocity level
constraints during the velocity Initial Conditions (IC) analysis. Consider the situation when two
constraints are defined as GCON/1, FU=DX(1,2), and GCON/2, FU=VX(1,2). Because the
redundant constraint analysis only includes position level constraints, Adams Solver (C++) will
not identify that a velocity-level constraint (GCON/2) induces a redundant constraint during the
velocity computation. As a result, a model that contains these two user constraints will fail during
the velocity analysis with a singular Jacobian error.
• GCON is a new modeling element only available in the Adams Solver (C++). Currently there is
no support for defining GCON through Adams View, so you need to edit the .adm file to add
user-defined constraints. Adams View correctly imports the edited .adm file, and the internal
Adams Solver (C++) from within Adams View correctly handles the simulation of the model.
• If you use GCON to constrain the values of DIFF, LSE, and TFSISO elements, note that they
will not contribute degrees of freedom that are considered removed by a GCON element. The
GCON statement functions properly for Pfaffian expressions depending on position and velocity
measures and time, or as mentioned earlier, on VARVALs measures for VARIABLEs that only
depend on position and velocity measures and time.
• Consequently, a model that contains velocity constraints can only be simulated using the dynamic
solver.
124 Adams View Commands
constraint modify higher_pair_contact curve_curve
• For a position-level GCON, the FUNCTION must be at least three times differentiable. If the
GCON introduces a velocity-level constraint, then the FUNCTION should be at least twice
differentiable. This requirement ensures that internally Adams Solver (C++) can take the
necessary derivatives to perform certain types of analyses such as Acceleration/Force
reconciliation, dynamic analysis, and so on. Note that if the expression provided for GCON is
not continuously differentiable for the required number of times, the integrator will either fail, or
have a difficult time finding the numerical solution.
• The ability of the Adams Solver (C++) to handle function expressions to provide the necessary
derivatives required by the GCON does not extend to user subroutines. Consequently, a
VARIABLE can only be referenced in a GCON provided it is defined using function expressions,
rather than a VARSUB subroutine.
• Use the RESULTS/XRF statement in order to get the reaction force on marker I reported in the
results file. This is the only output format currently able to handle GCON output.
Tips:
1. There is no dedicated function that returns the reaction force induced by a user constraint on a
marker. You can invoke an existing function such as FX(I[; J][;K]) for this purpose. Note that FX(I[;
J][;K]) reports the force that acts on the I marker as a result of both constraint and external forces
applied to this marker. To only obtain the contribution of the the GCON, the markers that appear
in FX(I[; J][;K]) should be exclusively used to define the GCON, and no other elements such as
applied forces, joints, or motions should refer them.
Format:
constraint modify higher_pair_contact curve_curve
curve_curve_name = existing ccurve
new curve_curve_name = new cccurve name
adams_id = geom._id
comments = string
i_curve_name = existing acurve
J_curve_name = existing acurve
I_ref_marker_name = existing marker
J_ref_marker_name = existing marker
I_displacement_ic = length
no_i_displacement_ic = true
j_displacement_ic = length
constraint 125
constraint modify higher_pair_contact curve_curve
Description:
Extended Definition:
1. Adams View will not allow you to have two point_curves with the same full name, so you must
provide a unique name.
Normally, entity names are composed of alphabetic, numeric, or '_' (underscore) characters, and start
with an alphabetic or '_' character. They may be any length.
By enclosing the name in double quotes, you may use other printable characters, or start the name
with a numeral. If a name contains characters, or starts with a numeral, you must always quote the
name when entering it.
Note that you can specify the parentage of an entity (for example, what part "owns" a marker or a
geometry element) when you CREATE it by changing the name. If you enter just the entity name,
then the default parent will be assigned by Adams View. If you type in the full name, then you may
over ride the default parent. In most cases, when creating an entity, Adams View will provide a default
name. The default name that Adams View provides will specify the parentage that it has assumed.
You may, or course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
constraint 127
constraint modify higher_pair_contact curve_curve
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
2. When you use the FILE ADAMS_DATA_SET WRITE command, Adams View writes an Adams
data file for your model. Adams requires that each modeling element be identified by a unique integer
identifier. If you use this parameter to specify a non-zero identifier, Adams View will use it in the
corresponding statement in the Adams data file.
You may also enter zero as an identifier, either explicitly or by default. The next time you write an
Adams file, Adams View will replace the zero with a unique, internally-generated identifier. Adams
View will permanently store this identifier with the element just as if you had entered it yourself.
Normally, you would let all identifiers default to zero, and Adams View would generate the identifiers
for you. You are never required to enter a non-zero identifier. You only need to specify it if, for some
reason, you wish to control the Adams file output.
3. The I_REFERENCE_MARKER marker specifies the coordinate system in which the x, y, z
coordinates of I_CURVE are specified. The curve is attached rigidly to the part specified in the
I_PART_NAME parameter and containing the I_REFERENCE_MARKER marker. The z
component of the CURVE must be zero. As a result, the curve will lie in the x-y plane of the
I_REFERENCE_MARKER marker.
4. The J_REFERENCE_MARKER specifies the coordinate system in which the x, y, z coordinates of
J_CURVE are specified. The curve is attached rigidly to the part specified in the J_PART_NAME
parameter and containing the J_REFERENCE_MARKER. The z component of the CURVE must
be zero. As a result, the curve will lie in the x-y plane of the J_REFERENCE_MARKER.
5. The I_REF_MARKER marker identifies the coordinate system in which the coordinates of ICURVE
are specified. Adams constructs the I_CURVE in the I_REF_MARKER marker coordinate system.
Adams View will automatically create the I "floating" marker. The I "floating marker" and
I_REF_MARKER markers must lie on the same part.
6. The J_REF_MARKER marker identifies the coordinate system that the coordinates of J_CURVE are
specified. Adams constructs the J_CURVE in the J_REF_MARKER coordinate system. The J
"floating" and J_REF_MARKER markers must lie on the same part.
7. For the i_displacement_ic parameter, if the point specified is not exactly on the curve, Adams will use
a point on the curve nearest to that specified. By default, the contact point is specified in the
I_REF_MARKER coordinate system. If another coordinate system is more convenient, you may
supply the I_IC_REF_MARKER argument and enter I_DISPLACEMENT_IC in
I_IC_REF_MARKER coordinates.
If you supply I_DISPLACEMENT_IC, Adams assembles the system with the contact at the specified
point on the curve, even if it must override part initial conditions in order to do so. If you do not
supply I_DISPLACEMENT_IC, Adams assumes the initial contact is at the point on the first curve
closest to J_CURVE in the input configuration. In this case, Adams may adjust that contact point to
maintain other part or constraint initial conditions.
128 Adams View Commands
constraint modify higher_pair_contact curve_curve
8. For the j_displacement_ic parameter, if the point specified is not exactly on the curve, Adams uses a
point on the curve nearest to that specified. By default, the contact point is specified in the
J_REF_MARKER coordinate system. If another coordinate system is more convenient, you may
supply the J_IC_REF_MARKER and enter J_DISPLACEMENT_IC in J_IC_REF_MARKER
coordinates.
If you supply J_DISPLACEMENT_IC, Adams assembles the system with the contact at the specified
point on the curve, even if it must override part initial conditions in order to do so. If you do not
supply J_DISPLACEMENT_IC, Adams assumes the initial contact is at a point on the second curve
closest to ICURVE in the input configuration. In this case, Adams may adjust that contact point to
maintain other part or constraint initial conditions.
9. The i_velocity_ic is the speed at which the contact point is initially moving relative to the curve.
I_VELOCITY_IC is negative if the contact point is moving towards the start of the curve, positive if
the contact point is moving toward the end of the curve, and zero if the contact point is stationary on
the curve.
If you supply I_VELOCITY_IC, Adams gives the contact point the specified initial velocity along
the first curve, even if it must override part initial conditions in order to do so. If you do not supply
I_VELOCITY_IC, Adams assumes the initial velocity is zero, but may adjust that velocity to
maintain other part or constraint initial conditions.
10. The j_velocity_ic is the speed at which the contact point is initially moving relative to the curve.
J_VELOCITY_IC is negative if the contact point is moving towards the start of the curve, positive if
the contact point is moving toward the end of the curve, and zero if the contact point is stationary on
the curve.
If you supply J_VELOCITY_IC, Adams gives the contact point the specified initial velocity along
the second curve, even if it must override part initial conditions in order to do so. If you do not supply
J_VELOCITY_IC, Adams assumes the initial velocity is zero, but may adjust that velocity to
maintain other part or constraint initial conditions.
11. The CURVE_CURVE defines a curve-curve constraint, which restricts a planar curve on one part to
be in contact with, and tangent to, a planar curve on a second part. The curves must lie in parallel
planes.
Adams constructs the first curve from the I_CURVE curve and the I_REF_MARKER, the second
curve from the J_CURVE value and the J_REF_MARKER. In both cases, the CURVE command
(I_CURVE or J_CURVE) defines x and y coordinates along the curve as a function of the
independent parameter (u). The z coordinates of the curves must be zero. The reference marker
(I_REF_MARKER or J_REF_MARKER) defines the part the constraining curve is attached to and
the coordinate system in which Adams applies the coordinates from the CURVE statement. Both
I_CURVE and J_CURVE may be open or closed, defined analytically or as a set of discrete data
points.
The CURVE_CURVE constraint removes three degrees-of-freedom from the system. Adams restricts
the motion of the parts such that the curves are always in contact and the curves are tangent at the
contact point. Although Adams requires that the curves lie in parallel planes, the CURVE_CURVE
command does not enforce this. You must build the model in such a way that the curves are held in
constraint 129
constraint modify higher_pair_contact curve_curve
parallel planes, which will remove another three degrees of freedom. Assuming the curves are held in
parallel planes, a CURVE_CURVE leaves two relative degrees of freedom between the curves. The
first curve may slide or roll on the second, but may not move perpendicular to the curve tangents at
the contact.
Internally, Adams actually generates five constraint equations, but also adds two new system variables
and equations for a net decrease of one degree-of-freedom. The added system variables are the two
curve parameters at the contact points on the curves. Two of the constraints restrict the x and y
coordinates at the contact point on the first curve to match the x and y coordinates at the contact
point on the second curve. The third constraint restricts the tangent at the contact point on the first
curve to be parallel to the tangent at the contact point on the second curve.
More than one POINT_CURVE or CURVE_CURVE statement may reference the same CURVE
statement. If the mechanism contains several similar contacts, you may enter just one CURVE
statement, then use it with several POINT_CURVE or CURVE_CURVE constraints, each with a
different REF_MARKER.
The I_VELOCITY_IC and J_VELOCITY_IC are specified in the reference frame of the part
containing the I_REF_MARKER or J_REF_MARKER marker, respectively. In other words, the
I_VELOCITY_IC is the speed of the contact point specified from the standpoint of an observer on
the part containing the first curve. This means if the contact point is not moving globally, but the
first curve is, then I_VELOCITY_IC is still non-zero.
Adams detects a fatal user error if the contact point moves off the end of an open curve. You should
make sure the CURVE statement defines the curve over the expected range of motion. The initial
conditions arguments, I_DISPLACEMENT_IC, J_DISPLACEMENT_IC, I_VELOCITY_IC and
J_VELOCITY_IC, impose constraints that are active only during an initial conditions analysis.
Adams does not impose these initial conditions during subsequent analyses.
For a kinematic analysis, the initial conditions are redundant. Do not use the
I_DISPLACEMENT_IC, J_DISPLACEMENT_IC, I_VELOCITY_IC or J_VELOCITY_IC
arguments on the CURVE_CURVE statements for systems with zero degrees of freedom.
Adams requires that there be a unique contact point in the vicinity of the I floating and J floating
markers during simulation. If this condition is violated, Adams may be unable to find the correct
contact point or may even jump from one contact point to the next.
One way to ensure that contact points are unique is to specify curve shapes that are convex. Note that
for a convex curve, any line segment connecting two points on the curve lie in the domain of the
curve. The same is not true for non-convex curves.
Cautions:
1. For the no_i_displacement_ic,no_j_displacement_ic,no_i_velocity and no_j_velocity parameters,
setting these parameters to true is not the same as setting the value to zero. A zero
displacement/velocity is not the same as "no" displacement/velocity. Therefore, by setting this
parameter to true there is no longer a displacement/velocity initial condition for this element.
130 Adams View Commands
constraint modify higher_pair_contact point_curve
Format:
constraint modify higher_pair_contact point_curve
point_curve_name = existing pcurve
new_point_curve_name = new name for pcurve
adams_id = geom._id
comments = string
curve_name = existing acurve
i_marker_name = An existing marker
j_floating_marker_name = An existing fmarker
ref_marker_name = existing marker
displacement_ic = length
no_displacement_ic = true
velocity_ic = velocity
no_velocity_ic = true
ic_ref_marker_name = existing marker
Description:
Extended Definition:
1. Adams View will not allow you to have two point_curves with the same full name, so you must
provide a unique name.
Normally, entity names are composed of alphabetic, numeric, or '_' (underscore) characters, and start
with an alphabetic or '_' character. They may be any length.
By enclosing the name in double quotes, you may use other printable characters, or start the name
with a numeral. If a name contains characters, or starts with a numeral, you must always quote the
name when entering it.
Note that you can specify the parentage of an entity (for example, what part "owns" a marker or a
geometry element) when you CREATE it by changing the name. If you enter just the entity name,
then the default parent will be assigned by Adams View. If you type in the full name, then you may
over ride the default parent. In most cases, when creating an entity, Adams View will provide a default
name. The default name that Adams View provides will specify the parentage that it has assumed.
You may, or course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
2. When you use the FILE ADAMS_DATA_SET WRITE command, Adams View writes an Adams
data file for your model. AdamsAdams requires that each modeling element be identified by a unique
integer identifier. If you use this parameter to specify a non-zero identifier, Adams View will use it in
the corresponding statement in the Adams data file.
132 Adams View Commands
constraint modify higher_pair_contact point_curve
You may also enter zero as an identifier, either explicitly or by default. The next time you write an
Adams file, Adams View will replace the zero with a unique, internally-generated identifier.
Adams View will permanently store this identifier with the element just as if you had entered it
yourself.
Normally, you would let all identifiers default to zero, and Adams View would generate the identifiers
for you. You are never required to enter a non-zero identifier. You only need to specify it if, for some
reason, you wish to control the Adams file output.
3. The REF_MARKER is used to associate the shape defined by the CURVE to the part on which the
REF_MARKER lies. The curve coordinates are therefore specified in the coordinate system of the
REF_MARKER. The floating J marker and REF_MARKER must belong to the same PART.
You may identify a marker by typing its name or by picking it from the screen.
If the marker is not visible on the screen, you must type the name. You may also find it convenient
to type the name even if the marker is displayed.
If you created the marker by reading an Adams data set or graphics file, the marker name is the letters
MAR followed by the Adams data set marker ID number. The name of Adams MARKER/101 is
MAR101, for example. If you created the marker during preprocessing, you gave it a name at that
time.
If a marker is available by default, you may identify it by entering its name only. If it is not, you must
enter its full name. To identify a marker under a different part, for instance, you may need to enter
the model and part names as well. For example, you may specify marker 'pivot' from model 'links',
part 'lower_arm' by entering ".links.lower_arm.pivot". If you type a "?", Adams View will list the
markers available by default.
You must separate multiple marker names by commas.
If the marker is visible in one of your views, you may identify it by picking on it.
You need not separate multiple marker picks by commas.
4. If the point specified is not exactly on the curve, Adams uses a point on the curve nearest to that
specified. By default, DISPLACEMENT_IC is specified in the REF_MARKER marker coordinate
system. If another coordinate system is more convenient, you may supply the IC_REF_MARKER
argument and enter DISPLACEMENT_IC in IC_REF_MARKER marker coordinates. If you
supply DISPLACEMENT_IC values, Adams assembles the system with the I_MARKER at the
specified point on the curve, even if it must override part initial conditions in order to do so. If you
do not supply DISPLACEMENT_IC, Adams assumes the initial contact is at the point on the curve
closest to the initial I_MARKER position. However, it may adjust that contact point to maintain
other part or constraint initial conditions.
5. The velocity_ic parameter specified the speed at which the I_MARKER is initially moving relative to
the curve. The VELOCITY_IC is negative if the I_MARKER is moving towards the start of the
curve, positive if the I_MARKER is moving toward the end of the curve, and zero if the I_MARKER
is stationary on the curve.
constraint 133
constraint modify higher_pair_contact point_curve
If you supply the VELOCITY_IC, Adams gives the I_MARKER the specified initial tangential
velocity along the curve, even if it must override part initial conditions in order to do so. If you do
not supply VELOCITY_IC, Adams assumes the initial tangential velocity is zero, but may adjust that
velocity to maintain other part or constraint initial conditions.
6. The POINT_CURVE command defines a point-to-curve constraint, which restricts a fixed point
defined on one part to lie on a curve defined on a second part. This is an instance of a higher pair
constraint.
The part containing the I_MARKER is free to roll and slide on the curve that is fixed to a second part.
Lift-off is not allowed, i.e., the I_MARKER must always lie on the curve.
The curve itself may be planar or spatial, open or closed. The "floating J" marker origin defines the
contact point on the curve; its orientation defines the tangent, normal, and binormal at the contact
point. A POINT_CURVE constraint removes two translational degrees-of-freedom from the system.
Adams restricts the origin of the I_MARKER to always lie on the curve. The I_MARKER may
translate only in one direction relative to the curve, along the instantaneous tangent. The I marker is
free to rotate in all three directions.
More than one POINT_CURVE or CURVE_CURVE element may reference the same CURVE
statement. If the mechanism contains several similar contacts, you may enter just one CURVE
statement, then use it with several POINT_CURVE or CURVE_CURVE constraints, each with a
different REF_MARKER.
The VELOCITY_IC is specified in the reference frame of the part containing the REF_MARKER.
In other words, the VELOCITY_IC is the speed of the I_MARKER specified from the standpoint of
an observer on the part containing the curve. This means that if the I_MARKER is not moving
globally but the curve is, then VELOCITY_IC is still non-zero.
The initial conditions arguments, DISPLACEMENT_IC and VELOCITY_IC, impose constraints
that are active only during an initial conditions analysis. Adams does not impose these initial
conditions during subsequent analyses.
For a kinematic analysis, the initial conditions are redundant. Do not use the DISPLACEMENT_IC
or VELOCITY_IC arguments on the POINT_CURVE command for systems with zero degrees of
freedom.
Cautions:
1. For the no_displacement_ic and no_velocity parameters, setting these parameters to true is not the
same as setting the value to zero. A zero displacement/velocity is not the same as "no"
displacement/velocity. Therefore, by setting this parameter to true there is no longer a displacement
initial condition for this element.
2. The I_MARKER and REF_MARKER must belong to different parts.
3. Adams aborts the simulation if the contact point moves off the end of an open curve. The user should
make sure the CURVE statement defines the curve over the expected range of motion.
4. The IC_REF_MARKER must be on the same part as the REF_MARKER.
134 Adams View Commands
constraint modify joint cylindrical
Tip: The x, y, z values associated with the CURVE are the coordinates of points lying on the
CURVE and are calculated in the coordinate system of the REF_MARKER.
Format:
constraint modify joint cylindrical
joint_name = existing joint name
new_joint_name = new joint name
adams_id = Geom_id
comments = String
translational_ic = length
no_translational_ic = true
velocity_ic = velocity
no_velocity_ic = true
rotational_ic = angle
no_rotational_ic = true
angular_velocity_ic = angular_velocity
no_angular_velocity_ic = true
i_marker_name = existing marker
j_marker_name = existing marker
Example:
constraint modify joint Cylindrical &
joint_name = .model_1.JOINT_2 &
new_joint_name = My_Cylinderical_joint &
adams_id = 2 &
i_marker_name = MARKER_2 &
j_marker_name = MARKER_3
constraint 135
constraint modify joint cylindrical
Description:
Extended Definition:
1. Adams View will not allow you to have two joints with the same full name, so you must provide a
unique name.
Normally, entity names are composed of alphabetic, numeric, or '_' (underscore) characters, and start
with an alphabetic or '_' character. They may be any length.
136 Adams View Commands
constraint modify joint cylindrical
By enclosing the name in double quotes, you may use other printable characters, or start the name
with a numeral. If a name contains characters, or starts with a numeral, you must always quote the
name when entering it.
Note that you can specify the parentage of an entity (for example, what part "owns" a marker or a
geometry element) when you CREATE it by changing the name. If you enter just the entity name,
then the default parent will be assigned by Adams View. If you type in the full name, then you may
over ride the default parent. In most cases, when creating an entity, Adams View will provide a default
name. The default name that Adams View provides will specify the parentage that it has assumed.
You may, or course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
2. When you use the FILE ADAMS_DATA_SET WRITE command, Adams View writes an Adams
data file for your model. Adams requires that each modeling element be identified by a unique integer
identifier. If you use this parameter to specify a non-zero identifier, Adams View will use it in the
corresponding statement in the AdamsAdams data file.
You may also enter zero as an identifier, either explicitly or by default. The next time you write an
Adams file, Adams View will replace the zero with a unique, internally-generated identifier. Adams
View will permanently store this identifier with the element just as if you had entered it yourself.
Normally, you would let all identifiers default to zero, and Adams View would generate the identifiers
for you. You are never required to enter a non-zero identifier. You only need to specify it if, for some
reason, you wish to control the Adams file output.
3. Adams View measures the translational displacement of the origin of the I marker along the common
z-axis of the I and the J markers with respect to the origin of the J marker.
If you specify TRANSLATIONAL_IC, but not VELOCITY_IC, Adams View will set
VELOCITY_IC to zero.
Joint initial conditions impose constraints that are active only during initial conditions analysis (not
at the time of the initial configuration). Adams does not impose initial conditions during subsequent
analyses.
If you impose initial conditions on the joint that are inconsistent with those on a part in the joint, the
initial conditions on the joint have precedence over those on the part. However, if you impose initial
conditions on the joint that are inconsistent with imparted motions on the joint, the initial conditions
as specified by the motion generator have precedence over those here.
4. Adams View measures the translational velocity of the origin of the I marker along the common z-
axis of the I and the J markers with respect to the origin of the J marker.
If you specify VELOCITY_IC, but not TRANSLATIONAL_IC, Adams View will set
TRANSLATIONAL_IC to zero.
Joint initial conditions impose constraints that are active only during initial conditions analysis (not
at the time of the initial configuration). Adams does not impose initial conditions during subsequent
analyses.
constraint 137
constraint modify joint cylindrical
If you impose initial conditions on the joint that are inconsistent with those on a part in the joint, the
initial conditions on the joint have precedence over those on the part. However, if you impose initial
conditions on the joint that are inconsistent with imparted motions on the joint, the initial conditions
as specified by the motion generator have precedence over those here.
5. Adams View measures the rotational displacement of the x-axis of the I marker about the common z-
axis of the I and the J markers with respect to the x-axis of the J marker.
If you specify ROTATIONAL_IC, but not ANGULAR_VELOCITY_IC, Adams View will set
ANGULAR_VELOCITY_IC to zero.
Joint initial conditions impose constraints that are active only during initial conditions analysis (not
at the time of the initial configuration). Adams does not impose initial conditions during subsequent
analyses.
If you impose initial conditions on the joint that are inconsistent with those on a part in the joint, the
initial conditions on the joint have precedence over those on the part. However, if you impose initial
conditions on the joint that are inconsistent with imparted motions on the joint, the initial conditions
as specified by the motion generator have precedence over those here.
6. Adams View measures the angular velocity of the x-axis of the I marker about the common z-axis of
the I and the J markers with respect to the x-axis of the J marker.
If you specify ANGULAR_VELOCITY_IC, but not ROTATIONAL_IC, Adams View will set
ROTATIONAL_IC to zero.
Joint initial conditions impose constraints that are active only during initial conditions analysis (not
at the time of the initial configuration). Adams does not impose initial conditions during subsequent
analyses.
If you impose initial conditions on the joint that are inconsistent with those on a part in the joint, the
initial conditions on the joint have precedence over those on the part. However, if you impose initial
conditions on the joint that are inconsistent with imparted motions on the joint, the initial conditions
as specified by the motion generator have precedence over those here.
7. A cylindrical joint is a two-degree-of-freedom joint that allows both relative translational and relative
rotational displacement of one part with respect to another. For a cylindrical joint, Adams keeps the
z-axis of the I marker parallel to, and co-directed with, the z-axis of the J marker and confines the
origin of the I marker to the z-axis of the J marker so that the I and the J markers have a common z-
axis. To determine translational motion, Adams measures the movement of the origin of the I marker
along the z-axis and with respect to the J marker. To determine rotational motion, Adams measures
the rotation of the x-axis of the I marker about the common z-axis and with respect to the x-axis of
the J marker.
Tip: Adams View connects one part at the I marker to the other at the J marker.
Format:
constraint modify joint fixed
joint_name = an existing joint
new_joint_name = a new joint
adams_id = integer
comments = string
i_marker_name = an existing marker
j_marker_name = an existing marker
Example:
constraint modify joint fixed &
joint_name = JOINT__1 &
new_joint_name = JOINT__2 &
adams_id = 2 &
comments = "comment string" &
i_marker_name = marker_1 &
j_marker_name = marker_2
Description:
Extended Definition:
1. A fixed joint essentially locks to parts together. It can be used as a placeholder for another joint or in
conjunction with the ACTIVATE and DACTIVATE commands in Adams to model special effects.
2. You may identify a joint by typing its name or by picking it from the screen. If the joint is not visible
on the screen, you must type the name. You may also find it convenient to type the name even if the
joint is displayed. If you created the joint by reading an Adams data set or graphics file, the joint name
is the letters JOI followed by the Adams data set joint ID number. The name of Adams JOINT/101
is JOI101, for example. If you created the joint during preprocessing, you gave it a name at that time.
If a joint is available by default, you may identify it by entering its name only. If it is not, you must
enter its full name. To identify a joint under a model, for instance, you may need to enter the model
name as well. For example, you may specify joint 'lower_pivot' in model 'links' by entering
".links.lower_pivot". You must separate multiple joint names by commas. If the joint is visible in one
of your views, you may identify it by picking on any of the graphics associated with it. You need not
separate multiple joint picks by commas.
3. Normally, entity names like the joint name are composed of alphabetic, numeric, or '_' (underscore)
characters, and start with an alphabetic or '_' character. They may be any length. By enclosing the
name in double quotes, you may use other printable characters, or start the name with a numeral. If
a name contains characters, or starts with a numeral, you must always quote the name when entering
it. Note that you can specify the parentage of an entity (for example, what part "owns" a marker or a
geometry element) when you CREATE it by changing the name. If you enter just the entity name,
then the default parent will be assigned by Adams View. If you type in the full name, then you may
over ride the default parent. In most cases, when creating an entity, Adams View will provide a default
name. The default name that Adams View provides will specify the parentage that it has assumed.
You may, or course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
4. When you use the FILE ADAMS_DATA_SET WRITE command, Adams View writes an Adams
data file for your model. Adams requires that each modeling element be identified by a unique integer
identifier. If you use this parameter to specify a non-zero identifier, Adams View will use it in the
corresponding statement in the Adams data file. You may also enter zero as an identifier, either
explicitly or by default. The next time you write an Adams file, Adams View will replace the zero with
140 Adams View Commands
constraint modify joint hooke
a unique, internally-generated identifier. Adams View will permanently store this identifier with the
element just as if you had entered it yourself. Normally, you would let all identifiers default to zero,
and Adams View would generate the identifiers for you. You are never required to enter a non-zero
identifier. You only need to specify it if, for some reason, you wish to control the Adams file output.
5. When an Adams Solver data file (.adm) is read into Adams View, all comments associated with a
statement (from the end of the previous statement through the end of the current statement) are
stored with the object. Comments in the data file can be associated with model. These comments
must follow the title statement and be followed by the comment 'END OF MODEL
COMMENTS'. This string must be uppercase. When an Adams Solver data file is written, the
comments for an object are written before the statement corresponding to the object.
6. A FIXED joint is a zero-degree-of-freedom joint that superimposes the origins of the I and J markers
while also constraining the X, Y, and Z axes of the I marker to remain parallel to the respective X, Y,
and Z axes of the J marker.
Tip: 1. If you type a "?", Adams View will list the joints available by default.
2. Use the joint name parameter to identify the existing joint to affect with this
command.
3. You may use the new_joint_name later to refer to this joint. Adams View will not allow
you to have two joints with the same full name, so you must provide a unique name.
Format:
constraint modify joint hooke
joint_name = an existing joint
new_joint_name = a new joint
adams_id = integer
comments = string
i_marker_name = an existing marker
j_marker_name = an existing marker
Example:
constraint modify joint hooke &
joint_name = JOINT__1 &
new_joint_name = JOINT__2 &
adams_id = 2 &
constraint 141
constraint modify joint hooke
Description:
Extended Definition:
1. The UNIVERSAL joint required the Z-axis of the I marker to be perpendicular to the Z-axis of the
J marker, whereas the HOOKE joint requires THE X-axis of the I marker to be perpendicular to the
Y-axis of the J marker, so that they outline the crosspiece of the joint. A valid HOOKE joint may be
properly defined with two coincident markers and can better take advantage of the automatic marker
generation capabilities of Adams View.
2. You may identify a joint by typing its name or by picking it from the screen. If the joint is not visible
on the screen, you must type the name. You may also find it convenient to type the name even if the
joint is displayed. If you created the joint by reading an Adams data set or graphics file, the joint name
is the letters JOI followed by the Adams data set joint ID number. The name of Adams JOINT/101
is JOI101, for example. If you created the joint during preprocessing, you gave it a name at that time.
If a joint is available by default, you may identify it by entering its name only. If it is not, you must
enter its full name. To identify a joint under a model, for instance, you may need to enter the model
name as well. For example, you may specify joint 'lower_pivot' in model 'links' by entering
".links.lower_pivot". You must separate multiple joint names by commas. If the joint is visible in one
of your views, you may identify it by picking on any of the graphics associated with it. You need not
separate multiple joint picks by commas.
142 Adams View Commands
constraint modify joint planar
3. Normally, entity names like the joint name are composed of alphabetic, numeric, or '_' (underscore)
characters, and start with an alphabetic or '_' character. They may be any length. By enclosing the
name in double quotes, you may use other printable characters, or start the name with a numeral. If
a name contains characters, or starts with a numeral, you must always quote the name when entering
it. Note that you can specify the parentage of an entity (for example, what part "owns" a marker or a
geometry element) when you CREATE it by changing the name. If you enter just the entity name,
then the default parent will be assigned by Adams View. If you type in the full name, then you may
over ride the default parent. In most cases, when creating an entity, Adams View will provide a default
name. The default name that Adams View provides will specify the parentage that it has assumed.
You may, or course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
4. When you use the FILE ADAMS_DATA_SET WRITE command, Adams View writes an Adams
data file for your model. Adams requires that each modeling element be identified by a unique integer
identifier. If you use this parameter to specify a non-zero identifier, Adams View will use it in the
corresponding statement in the Adams data file. You may also enter zero as an identifier, either
explicitly or by default. The next time you write an Adams file, Adams View will replace the zero with
a unique, internally-generated identifier. Adams View will permanently store this identifier with the
element just as if you had entered it yourself. Normally, you would let all identifiers default to zero,
and Adams View would generate the identifiers for you. You are never required to enter a non-zero
identifier. You only need to specify it if, for some reason, you wish to control the Adams file output.
5. When an Adams Solver data file (.adm) is read into Adams View, all comments associated with a
statement (from the end of the previous statement through the end of the current statement) are
stored with the object. Comments in the data file can be associated with model. These comments
must follow the title statement and be followed by the comment 'END OF MODEL
COMMENTS'. This string must be uppercase. When an Adams Solver data file is written, the
comments for an object are written before the statement corresponding to the object.
6. A HOOKE joint is a two-degree-of-freedom joint that is that same as the UNIVERSAL joint with
the exception that the marker orientations have been modified.
Format:
constraint modify joint planar
joint_name = an existing joint
new_joint_name = a new joint
adams_id = integer
comments = string
constraint 143
constraint modify joint planar
Example:
constraint modify joint planar &
joint_name = JOINT__1 &
new_joint_name = JOINT__2 &
adams_id = 2 &
comments = "comment string" &
i_marker_name = marker_1 &
j_marker_name = marker_2
Description:
Extended Definition:
1. You may identify a joint by typing its name or by picking it from the screen. If the joint is not visible
on the screen, you must type the name. You may also find it convenient to type the name even if the
joint is displayed. If you created the joint by reading an Adams data set or graphics file, the joint name
is the letters JOI followed by the Adams data set joint ID number. The name of Adams JOINT/101
is JOI101, for example. If you created the joint during preprocessing, you gave it a name at that time.
If a joint is available by default, you may identify it by entering its name only. If it is not, you must
enter its full name. To identify a joint under a model, for instance, you may need to enter the model
name as well. For example, you may specify joint 'lower_pivot' in model 'links' by entering
".links.lower_pivot". You must separate multiple joint names by commas. If the joint is visible in one
of your views, you may identify it by picking on any of the graphics associated with it. You need not
separate multiple joint picks by commas.
144 Adams View Commands
constraint modify joint rackpin
2. Normally, entity names like the joint name are composed of alphabetic, numeric, or '_' (underscore)
characters, and start with an alphabetic or '_' character. They may be any length. By enclosing the
name in double quotes, you may use other printable characters, or start the name with a numeral. If
a name contains characters, or starts with a numeral, you must always quote the name when entering
it. Note that you can specify the parentage of an entity (e.g. what part "owns" a marker or a geometry
element) when you CREATE it by changing the name. If you enter just the entity name, then the
default parent will be assigned by Adams View. If you type in the full name, then you may over ride
the default parent. In most cases, when creating an entity, Adams View will provide a default name.
The default name that Adams View provides will specify the parentage that it has assumed. You may,
or course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
3. When you use the FILE ADAMS_DATA_SET WRITE command, Adams View writes an Adams
data file for your model. Adams requires that each modeling element be identified by a unique integer
identifier. If you use this parameter to specify a non-zero identifier, Adams View will use it in the
corresponding statement in the Adams data file. You may also enter zero as an identifier, either
explicitly or by default. The next time you write an Adams file, Adams View will replace the zero with
a unique, internally-generated identifier. Adams View will permanently store this identifier with the
element just as if you had entered it yourself. Normally, you would let all identifiers default to zero,
and Adams View would generate the identifiers for you. You are never required to enter a non-zero
identifier. You only need to specify it if, for some reason, you wish to control the Adams file output.
4. When an Adams Solver data file (.adm) is read into Adams View, all comments associated with a
statement (from the end of the previous statement through the end of the current statement) are
stored with the object. Comments in the data file can be associated with model. These comments
must follow the title statement and be followed by the comment 'END OF MODEL
COMMENTS'. This string must be uppercase. When an Adams Solver data file is written, the
comments for an object are written before the statement corresponding to the object.
5. A planar joint is a three-degree-of-freedom joint that allows the x-y plane of one part to slide in the
x-y plane of another part. For a planar joint, Adams keeps the origin of the I marker in the x-y plane
of the J marker and keeps the z axis of the I marker perpendicular to the x-y plane of the J marker.
Tip: 1. If you type a "?", Adams View will list the joints available by default.
2. Use the joint_name parameter to identify the existing joint to affect with this
command.
3. You may use the new_joint_name later to refer to this joint. Adams View will not allow
you to have two joints with the same full name, so you must provide a unique name.
4. Adams View connects one part at the I marker to the other at the J marker.
Format:
constraint modify joint rackpin
joint_name = an existing joint
new_joint_name = a new joint
adams_id = integer
comments = string
i_marker_name = an existing marker
j_marker_name = an existing marker
diameter_of_pitch = real number
Example:
:
Description:
Extended Definition:
1. For a rack-and-pinion joint, the x-axis of the pinion must be parallel to and pointed in the same
direction as the z (translational) axis of the rack. The separation between the two axes should be one-
half the pitch diameter of the pinion. The rack-and-pinion joint itself does not enforce the position
and orientation it requires, but the chain of both parts and joints that connects markers I and J should
enforce the position and orientation. A common approach for enforcing the position and the
orientation is to support the rack with a translational joint and to support the pinion with a revolute
joint.
2. You may identify a joint by typing its name or by picking it from the screen. If the joint is not visible
on the screen, you must type the name. You may also find it convenient to type the name even if the
joint is displayed. If you created the joint by reading an Adams data set or graphics file, the joint name
is the letters JOI followed by the Adams data set joint ID number. The name of Adams JOINT/101
is JOI101, for example. If you created the joint during preprocessing, you gave it a name at that time.
If a joint is available by default, you may identify it by entering its name only. If it is not, you must
enter its full name. To identify a joint under a model, for instance, you may need to enter the model
name as well. For example, you may specify joint 'lower_pivot' in model 'links' by entering
".links.lower_pivot". You must separate multiple joint names by commas. If the joint is visible in one
of your views, you may identify it by picking on any of the graphics associated with it. You need not
separate multiple joint picks by commas.
3. Normally, entity names like the joint name are composed of alphabetic, numeric, or '_' (underscore)
characters, and start with an alphabetic or '_' character. They may be any length. By enclosing the
name in double quotes, you may use other printable characters, or start the name with a numeral. If
a name contains characters, or starts with a numeral, you must always quote the name when entering
it. Note that you can specify the parentage of an entity (for example, what part "owns" a marker or a
geometry element) when you CREATE it by changing the name. If you enter just the entity name,
then the default parent will be assigned by Adams View. If you type in the full name, then you may
over ride the default parent. In most cases, when creating an entity, Adams View will provide a default
name. The default name that Adams View provides will specify the parentage that it has assumed.
You may, or course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
4. When you use the FILE ADAMS_DATA_SET WRITE command, Adams View writes an Adams
data file for your model. Adams requires that each modeling element be identified by a unique integer
identifier. If you use this parameter to specify a non-zero identifier, Adams View will use it in the
corresponding statement in the Adams data file. You may also enter zero as an identifier, either
explicitly or by default. The next time you write an Adams file, Adams View will replace the zero with
a unique, internally-generated identifier. Adams View will permanently store this identifier with the
element just as if you had entered it yourself. Normally, you would let all identifiers default to zero,
and Adams View would generate the identifiers for you. You are never required to enter a non-zero
identifier. You only need to specify it if, for some reason, you wish to control the Adams file output.
constraint 147
constraint modify joint revolute
5. When an Adams Solver data file (.adm) is read into Adams View, all comments associated with a
statement (from the end of the previous statement through the end of the current statement) are
stored with the object. Comments in the data file can be associated with model. These comments
must follow the title statement and be followed by the comment 'END OF MODEL
COMMENTS'. This string must be uppercase. When an Adams Solver data file is written, the
comments for an object are written before the statement corresponding to the object.
6. The pitch diameter relates the rotational motion of the pinion to the translational motion of the rack.
When the pinion turns in the positive direction around the z-axis of the I marker, a positive pitch
diameter moves the rack in the positive direction along the z-axis of the J marker and a negative pitch
diameter moves the rack in the negative direction along the z-axis of the J marker.
7. A rack-and-pinion joint is a five-degree-of-freedom joint that constrains the rotational and
translational displacement of the I marker as it rolls along the z-axis of the J marker. The I marker is
at the center of the pinion, and the J marker is in the rack.
Tip: 1. If you type a "?", AdamsAdams View will list the joints available by default.
2. Use the joint_name parameter to identify the existing joint to affect with this
command.
3. You may use the new_joint_name later to refer to this joint. Adams View will not allow
you to have two joints with the same full name, so you must provide a unique name.
4. Adams View connects one part at the I marker to the other at the J marker.
Format:
constraint modify joint revolute
joint_name = existing joint
new_joint_name = new joint
adams_id = geom._id
comments = string
rotational_ic = angle
no_rotational_ic = true
angular_velocity_ic = angular_vel
no_angular_velocity_ic = true
friction_enabled = enable_friction
delta_v = real
maximum_deformation = real
148 Adams View Commands
constraint modify joint revolute
Example:
constraint modify joint Revolute &
joint_name = .model_1.JOINT_1 &
neW_joint_name = MY_REVOLUTE_JOINT &
adams_id = 1 &
i_marker_name = .model_1.PART_2.MARKER_5 &
j_marker_name = .model_1.PART_3.MARKER_6
Description:
Extended Definition:
1. Adams View will not allow you to have two joints with the same full name, so you must provide a
unique name.
Normally, entity names are composed of alphabetic, numeric, or '_' (underscore) characters, and start
with an alphabetic or '_' character. They may be any length.
By enclosing the name in double quotes, you may use other printable characters, or start the name
with a numeral. If a name contains characters, or starts with a numeral, you must always quote the
name when entering it.
Note that you can specify the parentage of an entity (e.g. what part "owns" a marker or a geometry
element) when you CREATE it by changing the name. If you enter just the entity name, then the
default parent will be assigned by Adams View. If you type in the full name, then you may over ride
the default parent. In most cases, when creating an entity, Adams View will provide a default name.
The default name that Adams View provides will specify the parentage that it has assumed.
You may, or course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
2. When you use the FILE ADAMS_DATA_SET WRITE command, Adams View writes an Adams
data file for your model. Adams requires that each modeling element be identified by a unique integer
identifier. If you use this parameter to specify a non-zero identifier, Adams View will use it in the
corresponding statement in the Adams data file.
constraint 151
constraint modify joint revolute
You may also enter zero as an identifier, either explicitly or by default. The next time you write an
Adams file, Adams View will replace the zero with a unique, internally-generated identifier. Adams
View will permanently store this identifier with the element just as if you had entered it yourself.
Normally, you would let all identifiers default to zero, and Adams View would generate the identifiers
for you. You are never required to enter a non-zero identifier. You only need to specify it if, for some
reason, you wish to control the Adams file output.
3. Adams View measures the rotational displacement of the x-axis of the I marker about the common z-
axis of the I and the J markers with respect to the x-axis of the J marker.
If you specify ROTATIONAL_IC, but not ANGULAR_VELOCITY_IC, Adams View will set
ANGULAR_VELOCITY_IC to zero.
Joint initial conditions impose constraints that are active only during initial conditions analysis (not
at the time of the initial configuration). Adams does not impose initial conditions during subsequent
analyses.
If you impose initial conditions on the joint that are inconsistent with those on a part in the joint, the
initial conditions on the joint have precedence over those on the part. However, if you impose initial
conditions on the joint that are inconsistent with imparted motions on the joint, the initial conditions
as specified by the motion generator have precedence over those here.
4. Adams View measures the angular velocity of the x-axis of the I marker about the common z-axis of
the I and the J markers with respect to the x-axis of the J marker.
If you specify ANGULAR_VELOCITY_IC, but not ROTATIONAL_IC, Adams View will set
ROTATIONAL_IC to zero.
Joint initial conditions impose constraints that are active only during initial conditions analysis (not
at the time of the initial configuration). Adams does not impose initial conditions during subsequent
analyses.
If you impose initial conditions on the joint that are inconsistent with those on a part in the joint, the
initial conditions on the joint have precedence over those on the part. However, if you impose initial
conditions on the joint that are inconsistent with imparted motions on the joint, the initial conditions
as specified by the motion generator have precedence over those here.
5. The I and J markers will be automatically created at this location on the I_PART_NAME and
J_PART_NAME respectively.
By default, you supply Cartesian (x, y, z) coordinates. You may use the 'defaults units
coordinate_system_type =' command to change this convention. For example, selecting 'cylindrical'
means you will subsequently be supplying r, theta, and z coordinates.
Adams View applies your location coordinates in the coordinate system you identify with the
RELATIVE_TO parameter. The default for the RELATIVE_TO parameter is the default coordinate
system. (See the RELATIVE_TO parameter for this command).
6. The I marker is oriented based on the J marker orientation and the requirements of the particular
constraint being created. These markers are created automatically.
Adams View will orient the coordinate system by starting from the initial coordinate system and
applying three successive rotations. Depending on the convention you have selected, the rotations
may occur about space-fixed or body-fixed axes in any meaningful combination of the x, y, and z axes.
152 Adams View Commands
constraint modify joint revolute
Cautions:
1. “No_rotational_ic” and “no_angular_velocity_ic” being set to True is not the same as setting the
value to zero. A zero velocity is not the same as "no" velocity. Therefore, by setting this parameter to
true there is no longer a velocity initial condition for this element.
Format:
constraint modify joint screw
joint_name = an existing joint
new_joint_name = a new joint
adams_id = integer
comments = string
i_marker_name = an existing marker
j_marker_name = an existing marker
pitch = real number
Example:
constraint modify joint screw &
joint_name = JOINT__1 &
new_joint_name = JOINT__2 &
adams_id = 2 &
comments = "comment string" &
i_marker_name = marker_1 &
j_marker_name = marker_2 &
pitch = 0.22
Description:
Extended Definition:
1. For a screw joint, the z-axis of the I marker and the z-axis of the J marker must always be parallel and
co-directed. Although the screw joint does not enforce this parallelism, the chain of parts and joints
that connects the two markers should.
During simulation, the I marker displacement along the J marker z-axis is a function of the relative
angle of the x-axis of the I marker with respect to the x-axis of the J marker. Adams measures a positive
rotation according to the righthand rule. For every full rotation, the displacement of the I marker
along the z-axis of the J marker is equal to the value of the screw pitch. If phi is zero, the translational
displacement may be zero or any multiple of the pitch.
2. You may identify a joint by typing its name or by picking it from the screen. If the joint is not visible
on the screen, you must type the name. You may also find it convenient to type the name even if the
joint is displayed. If you created the joint by reading an Adams data set or graphics file, the joint name
is the letters JOI followed by the Adams data set joint ID number. The name of Adams JOINT/101
is JOI101, for example. If you created the joint during preprocessing, you gave it a name at that time.
If a joint is available by default, you may identify it by entering its name only. If it is not, you must
enter its full name. To identify a joint under a model, for instance, you may need to enter the model
name as well. For example, you may specify joint 'lower_pivot' in model 'links' by entering
".links.lower_pivot". You must separate multiple joint names by commas. If the joint is visible in one
of your views, you may identify it by picking on any of the graphics associated with it. You need not
separate multiple joint picks by commas.
3. Normally, entity names like the joint name are composed of alphabetic, numeric, or '_' (underscore)
characters, and start with an alphabetic or '_' character. They may be any length. By enclosing the
name in double quotes, you may use other printable characters, or start the name with a numeral. If
a name contains characters, or starts with a numeral, you must always quote the name when entering
it. Note that you can specify the parentage of an entity (for example, what part "owns" a marker or a
geometry element) when you CREATE it by changing the name. If you enter just the entity name,
then the default parent will be assigned by Adams View. If you type in the full name, then you may
over ride the default parent. In most cases, when creating an entity, Adams View will provide a default
name. The default name that Adams View provides will specify the parentage that it has assumed.
You may, or course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
constraint 155
constraint modify joint spherical
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
4. When you use the FILE ADAMS_DATA_SET WRITE command, Adams View writes an Adams
data file for your model. Adams requires that each modeling element be identified by a unique integer
identifier. If you use this parameter to specify a non-zero identifier, Adams View will use it in the
corresponding statement in the Adams data file. You may also enter zero as an identifier, either
explicitly or by default. The next time you write an Adams file, Adams View will replace the zero with
a unique, internally-generated identifier. Adams View will permanently store this identifier with the
element just as if you had entered it yourself. Normally, you would let all identifiers default to zero,
and Adams View would generate the identifiers for you. You are never required to enter a non-zero
identifier. You only need to specify it if, for some reason, you wish to control the Adams file output.
5. When an Adams Solver data file (.adm) is read into Adams View, all comments associated with a
statement (from the end of the previous statement through the end of the current statement) are
stored with the object. Comments in the data file can be associated with model. These comments
must follow the title statement and be followed by the comment 'END OF MODEL
COMMENTS'. This string must be uppercase. When an Adams Solver data file is written, the
comments for an object are written before the statement corresponding to the object.
6. A screw joint is a five-degree-of-freedom joint that constrains the rotational and translational
displacement of the I marker as it spins about the z-axis of the J marker.
Tips:
1. If you type a "?", Adams View will list the joints available by default.
2. Use the joint_name parameter to identify the existing joint to affect with this command.
3. Adams View will not allow you to have two joints with the same full name, so you must provide a
unique name.
Format:
constraint modify joint spherical
joint_name = existing joint
new_joint_name = new_joint
adams_id = geom._id
comments = string
i_marker_name = Existing marker
j_marker_name = existing marker
156 Adams View Commands
constraint modify joint spherical
Example:
constraint modify joint Spherical &
joint_name = .model_1.JOINT_6 &
new_joint_name = My_joint &
adams_id = 6 &
i_marker_name = .model_1.PART_2.MARKER_15 &
j_marker_name = .model_1.PART_3.MARKER_16
Description:
Extended Definition:
1. Adams View will not allow you to have two joints with the same full name, so you must provide a
unique name.
Normally, entity names are composed of alphabetic, numeric, or '_' (underscore) characters, and start
with an alphabetic or '_' character. They may be any length.
By enclosing the name in double quotes, you may use other printable characters, or start the name
with a numeral. If a name contains characters, or starts with a numeral, you must always quote the
name when entering it.
Note that you can specify the parentage of an entity (for example, what part "owns" a marker or a
geometry element) when you CREATE it by changing the name. If you enter just the entity name,
then the default parent will be assigned by Adams View. If you type in the full name, then you may
over ride the default parent. In most cases, when creating an entity, Adams View will provide a default
name. The default name that Adams View provides will specify the parentage that it has assumed.
You may, or course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
constraint 157
constraint modify joint translational
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
2. When you use the FILE ADAMS_DATA_SET WRITE command, Adams View writes an Adams
data file for your model. Adams requires that each modeling element be identified by a unique integer
identifier. If you use this parameter to specify a non-zero identifier, Adams View will use it in the
corresponding statement in the Adams data file.
You may also enter zero as an identifier, either explicitly or by default. The next time you write an
Adams file, Adams View will replace the zero with a unique, internally-generated identifier. Adams
View will permanently store this identifier with the element just as if you had entered it yourself.
Normally, you would let all identifiers default to zero, and Adams View would generate the identifiers
for you. You are never required to enter a non-zero identifier. You only need to specify it if, for some
reason, you wish to control the Adams file output.
3. A spherical joint is a three-degree-of-freedom joint. While permitting all three rotations, a spherical
joint superimposes the I and the J markers.
Tips:
1. Adams View connects one part at the I marker to the other at the J marker.
Format:
constraint modify joint translational
joint_name = an existing joint
new_joint_name = a new joint name
adams_id = integer
comments = string
translational_ic = length
no_translational_ic = true
velocity_ic = real
no_velocity_ic = true
friction_enabled = enable_friction
delta_v = real
maximum_deformation = real
mu_dyn_trans = real
mu_stat_trans = real
max_fric_trans = real
158 Adams View Commands
constraint modify joint translational
Example:
constraint modify joint translational &
joint_name = JOINT__1 &
new_joint_name = JOINT__2 &
adams_id = 2 &
comments = "comment string" &
translational_ic = 1.2 &
velocity_ic = 1.4 &
friction_enabled = preload_only &
delta_v = 1.4 &
maximum_deformation = 0.02 &
mu_dyn_trans = 0.4 &
mu_stat_trans = 0.8 &
max_fric_trans = 0.15 &
preload_x = 1 &
preload_y = 1.2 &
height = 1.5 &
width = 0.8 &
i_part_name = part_1 &
j_part_name = part_2 &
constraint 159
constraint modify joint translational
Description:
Extended Definition:
1. A translational joint is a single-degree-of-freedom joint that allows translational displacement of one
part relative to another. For a translational joint, Adams keeps all the axes of the I and the J markers
parallel and keeps the origin of the I marker on the z-axis of the J marker so that the two markers have
a common z-axis. To determine the translational displacement of the I marker with respect to the J
marker, Adams measures the origin of the I marker with respect to the origin of the J marker along
their common z-axis.
2. You may identify a joint by typing its name or by picking it from the screen.
If the joint is not visible on the screen, you must type the name. You may also find it convenient to
type the name even if the joint is displayed. If you created the joint by reading an Adams data set or
graphics file, the joint name is the letters JOI followed by the Adams data set joint ID number. The
name of Adams JOINT/101 is JOI101, for example. If you created the joint during preprocessing,
you gave it a name at that time. If a joint is available by default, you may identify it by entering its
name only. If it is not, you must enter its full name. To identify a joint under a model, for instance,
you may need to enter the model name as well. For example, you may specify joint 'lower_pivot' in
model 'links' by entering ".links.lower_pivot". You must separate multiple joint names by commas.
If the joint is visible in one of your views, you may identify it by picking on any of the graphics
associated with it. You need not separate multiple joint picks by commas.
3. For a translational joint, Adams keeps all the axes of the I and the J markers parallel and keeps the
origin of the I marker on the z-axis of the J marker so that the two markers have a common z-axis. To
determine the translational displacement of the I marker with respect to the J marker, Adams
measures the origin of the I marker with respect to the origin of the J marker along their common z-
axis.
4. Normally, entity names like the joint name are composed of alphabetic, numeric, or '_' (underscore)
characters, and start with an alphabetic or '_' character. They may be any length. By enclosing the
name in double quotes, you may use other printable characters, or start the name with a numeral. If
a name contains characters, or starts with a numeral, you must always quote the name when entering
it. Note that you can specify the parentage of an entity (e.g. what part "owns" a marker or a geometry
element) when you CREATE it by changing the name. If you enter just the entity name, then the
default parent will be assigned by Adams View. If you type in the full name, then you may over ride
the default parent. In most cases, when creating an entity, Adams View will provide a default name.
The default name that Adams View provides will specify the parentage that it has assumed. You may,
or course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
5. When you use the FILE ADAMS_DATA_SET WRITE command, Adams View writes an Adams
data file for your model. Adams requires that each modeling element be identified by a unique integer
identifier. If you use this parameter to specify a non-zero identifier, Adams View will use it in the
corresponding statement in the Adams data file. You may also enter zero as an identifier, either
explicitly or by default. The next time you write an Adams file, AdamsAdams View will replace the
zero with a unique, internally-generated identifier. Adams View will permanently store this identifier
162 Adams View Commands
constraint modify joint translational
with the element just as if you had entered it yourself. Normally, you would let all identifiers default
to zero, and Adams View would generate the identifiers for you. You are never required to enter a
non-zero identifier. You only need to specify it if, for some reason, you wish to control the Adams file
output.
6. When an Adams Solver data file (.adm) is read into Adams View, all comments associated with a
statement (from the end of the previous statement through the end of the current statement) are
stored with the object. Comments in the data file can be associated with model. These comments
must follow the title statement and be followed by the comment 'END OF MODEL
COMMENTS'. This string must be uppercase. When an Adams Solver data file is written, the
comments for an object are written before the statement corresponding to the object.
7. Adams View measures the translational displacement of the origin of the I marker along the common
z-axis of the I and the J markers with respect to the origin of the J marker. If you specify
TRANSLATIONAL_IC, but not VELOCITY_IC, Adams View will set VELOCITY_IC to zero.
Joint initial conditions impose constraints that are active only during initial conditions analysis (not
at the time of the initial configuration). Adams does not impose initial conditions during subsequent
analyses. If you impose initial conditions on the joint that are inconsistent with those on a part in the
joint, the initial conditions on the joint have precedence over those on the part. However, if you
impose initial conditions on the joint that are inconsistent with imparted motions on the joint, the
initial conditions as specified by the motion generator have precedence over those here.
8. Setting the no_translational_ic is not the same as setting the value to zero. A zero velocity is not the
same as "no" velocity. Therefore, by setting this parameter to true there is no longer a velocity initial
condition for this element.
9. Adams View measures the translational velocity of the origin of the I marker along the common z-
axis of the I and the J markers with respect to the origin of the J marker. If you specify
VELOCITY_IC, but not TRANSLATIONAL_IC, Adams View will set TRANSLATIONAL_IC to
zero. Joint initial conditions impose constraints that are active only during initial conditions analysis
(not at the time of the initial configuration). Adams does not impose initial conditions during
subsequent analyses. If you impose initial conditions on the joint that are inconsistent with those on
a part in the joint, the initial conditions on the joint have precedence over those n the part. However,
if you impose initial conditions on the joint that are inconsistent with imparted motions on the joint,
the initial conditions as specified by the motion generator have precedence over those here.
10. Setting the no_velocity_ic parameter is not the same as setting the value to zero. A zero velocity is not
the same as "no" velocity. Therefore, by setting this parameter to true there is no longer a velocity
initial condition for this element.
11. The height and the width values should be a real number between 0.0 and 2.0, where 2.0 represents
the height of the Adams View window. Therefore, a value of 1.0 will set the info window to be one
half as high as the Adams View window.
12. By default, you supply Cartesian (x, y, z) coordinates for the location parameter. You may use the
'defaults units coordinate_system_type =' command to change this convention. For example,
selecting 'cylindrical' means you will subsequently be supplying r, theta, and z coordinates. Adams
View applies your location coordinates in the coordinate system you identify with the
RELATIVE_TO parameter. The default for the RELATIVE_TO parameter is the default coordinate
system. (See the RELATIVE_TO parameter for this command).
constraint 163
constraint modify joint universal
13. Adams View will orient the coordinate system by starting from the initial coordinate system and
applying three successive rotations. Depending on the convention you have selected, the rotations
may occur about space-fixed or bodyfixed axes in any meaningful combination of the x, y, and z axes.
By default, you supply Euler (body313, or body-fixed z, x, z) angles. You may change this convention
with the 'DEFAULTS UNITS ORIENTATION_TYPE=' command. For example, selecting
SPACE123 means you will subsequently be supplying space-fixed x, y, and z angles. Adams View
applies your orientation angles starting from the coordinate system you identify with the
RELATIVE_TO parameter. The default for the RELATIVE_TO parameter is the default coordinate
system.
14. For the along_axis_orientation parameter you may enter either one or two locations to direct the axis.
If you enter one location, the axis will point toward the location. If you specify two locations, the axis
will be parallel to, and pointing the same way as, the vector from the first location to the second. Note
that this does not completely dictate the orientation of the coordinate system. Adams View will
osition the coordinate system with an arbitrary rotation about the axis. If you must completely control
the coordinate system orientation, use ORIENTATION or IN_PLANE_ORIENTATION. By
default, you direct the Z axis of the coordinate system.
You may change this convention with the 'DEFAULTS ORIENT_AXIS_AND_PLANE
AXIS_AND_PLANE_SETTING=' command. For example, selecting either X_AXIS_XY_PLANE
or X_AXIS_XZ_PLANE means you will subsequently be directing the X axis. The plane-convention
setting does not affect this parameter. Adams View applies your location coordinates in the coordinate
system you identify with the RELATIVE_TO parameter. The default for the RELATIVE_TO
parameter is the default coordinate system.
15. For the in_plane_orientation parameter you may enter either two or three locations. If you enter two
locations, the axis will point toward the first location and the plane will fall on the second. If you
specify three locations, the axis will be parallel to, and pointing the same way as, the vector from the
first location to the second and the plane will be parallel to the plane defined by the three locations.
By default, you direct the Z axis of the coordinate system and locate the ZX plane. You may use the
'DEFAULTS ORIENT_AXIS_AND_PLANE AXIS_AND_PLANE_SETTING=' command to
change this convention. For example, selecting X_AXIS_XY_PLANE means you will subsequently
be directing the X axis and locating the XY plane. Adams View applies your location coordinates in
the coordinate system you identify with the RELATIVE_TO parameter. The default for the
RELATIVE_TO parameter is the default coordinate system.
16. If the relative_to parameter is not specified, the default coordinate system is used. The default
coordinate system is initially your model, i.e. the global coordinate system. You may change the
default coordinate system using the 'defaults coordinate_system' command.
Tips:
1. If you type a "?", Adams View will list the joints available by default.
Format:
constraint modify joint universal
joint_name = existing joint
new_joint_name = new joint name
adams_id = geom_id
comments = String
i_marker_name = existing marker
j_marker_name = existing marker
Example:
constraint modify joint universal &
joint_name = JOINT__2 &
new_joint_name = MY_JOINT &
adams_id = 4 &
i_marker_name = MARKER_11 &
j_marker_name = MARKER_12
Description:
Extended Definition:
1. Adams View will not allow you to have two joints with the same full name, so you must provide a
unique name.
Normally, entity names are composed of alphabetic, numeric, or '_' (underscore) characters, and start
with an alphabetic or '_' character. They may be any length.
constraint 165
constraint modify motion_generator
By enclosing the name in double quotes, you may use other printable characters, or start the name
with a numeral. If a name contains characters, or starts with a numeral, you must always quote the
name when entering it.
Note that you can specify the parentage of an entity (for example, what part "owns" a marker or a
geometry element) when you CREATE it by changing the name. If you enter just the entity name,
then the default parent will be assigned by Adams View. If you type in the full name, then you may
over ride the default parent. In most cases, when creating an entity, Adams View will provide a default
name. The default name that Adams View provides will specify the parentage that it has assumed.
You may, or course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
2. When you use the FILE ADAMS_DATA_SET WRITE command, Adams View writes an Adams
data file for your model. Adams requires that each modeling element be identified by a unique integer
identifier. If you use this parameter to specify a non-zero identifier, Adams View will use it in the
corresponding statement in the Adams data file.
You may also enter zero as an identifier, either explicitly or by default. The next time you write an
Adams file, Adams View will replace the zero with a unique, internally-generated identifier. Adams
View will permanently store this identifier with the element just as if you had entered it yourself.
Normally, you would let all identifiers default to zero, and Adams View would generate the identifiers
for you. You are never required to enter a non-zero identifier. You only need to specify it if, for some
reason, you wish to control the Adams file output system.
3. A universal joint is a joint that allows two degrees of rotational freedom.
For a universal joint, Adams superimposes the origins of I and J and keeps their z-axes perpendicular,
so that they outline the crosspiece of the joint. The origins of the I and the J markers are at the center
of the crosspiece.
Tips:
1. Adams View connects one part at the I marker to the other at the J marker.
Format:
constraint modify motion_generator
motion_name = an existing motion
new_motion_name = new name for the motion
adams_id = geom._id
166 Adams View Commands
constraint modify motion_generator
Example:
constraint modify motion_generator &
motion_name = ROT_MOTION &
new_motion_name = ROTATIONAL_MOT &
joint_name = JOINT_1 &
type_of_freedom = rotational &
function = time &
rotational_velocity_ic = 25.9 &
rotational_displacement_ic = 25.4
The above command will apply a rotational motion to the specified joint which is a function of time. Its
rotational velocity would be 25.9 and its rotational displacement would be 25.4.
constraint 167
constraint modify motion_generator
Description:
Extended Definition:
1. Adams View will not allow you to have two motion generators with the same full name, so you must
provide a unique name.
Normally, entity names are composed of alphabetic, numeric, or '_' (underscore) characters, and start
with an alphabetic or '_' character. They may be any length.
By enclosing the name in double quotes, you may use other printable characters, or start the name
with a numeral. If a name contains characters, or starts with a numeral, you must always quote the
name when entering it.
Note that you can specify the parentage of an entity (for example, what part "owns" a marker or a
geometry element) when you CREATE it by changing the name. If you enter just the entity name,
then the default parent will be assigned by Adams View. If you type in the full name, then you may
over ride the default parent. In most cases, when creating an entity, Adams View will provide a default
name. The default name that Adams View provides will specify the parentage that it has assumed.
You may, or course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
2. When you use the FILE ADAMS_DATA_SET WRITE command, Adams View writes an Adams
data file for your model. Adams requires that each modeling element be identified by a unique integer
identifier. If you use this parameter to specify a non-zero identifier, Adams View will use it in the
corresponding statement in the AdamsAdams data file.
You may also enter zero as an identifier, either explicitly or by default. The next time you write an
Adams file, Adams View will replace the zero with a unique, internally-generated identifier. Adams
View will permanently store this identifier with the element just as if you had entered it yourself.
Normally, you would let all identifiers default to zero, and Adams View would generate the identifiers
for you. You are never required to enter a non-zero identifier. You only need to specify it if, for some
reason, you wish to control the Adams file output.
3. You may identify a joint by typing its name or by picking it from the screen.
If the joint is not visible on the screen, you must type the name. You may also find it convenient to
type the name even if the joint is displayed.
If you created the joint by reading an Adams data set or graphics file, the joint name is the letters JOI
followed by the Adams data set joint ID number. The name of Adams JOINT/101 is JOI101, for
example. If you created the joint during preprocessing, you gave it a name at that time.
constraint 169
constraint modify motion_generator
If a joint is available by default, you may identify it by entering its name only. If it is not, you must
enter its full name. To identify a joint under a model, for instance, you may need to enter the model
name as well. For example, you may specify joint 'lower_pivot' in model 'links' by entering
".links.lower_pivot". If you type a "?", Adams View will list the joints available by default.
You must separate multiple joint names by commas.
If the joint is visible in one of your views, you may identify it by picking on any of the graphics
associated with it.
You need not separate multiple joint picks by commas.
4. The “type_of_freedom” parameter is necessary only when you apply motion to a cylindrical joint. For
a translational joint or a revolute joint, Adams assumes you want translational motion or rotational
motion, respectively.
5. When you create a plot template, Adams View creates two axes by default, one horizontal and one
vertical. These are the plot's primary axes which Adams View uses to perform cursor tracking and to
draw the grid. The plot TEMPLATE commands also operate on the plot's primary axes.
Each axis consists of an axis line, tic marks, numbers and a label. Use the axis ATTRIBUTES to
change visibility and color attributes for the axis entities.
To plot a curve against the new axes, specify the axis names when you create the curve.
You can make the new axes the plot's primary axes by modifying the plot's template and specifying
the desired axes as the PRIMARY_HAXIS and PRIMARY_VAXIS. The grid will then reflect the
divisions of the new axes and cursor tracking will reflect the new axes' coordinate system.
6. The motion must be a function of time only and not a function of the state variables.
Adams View treats this parameter as a series of literal strings. When you write an Adams data set,
Adams View writes these strings, just as you enter them here, after the 'FUNCTION=' argument.
If you want to define the motion with an expression, enclose the expression in quotes and enter it just
as you would in the data set. See the Adams User's Manual for information on writing function
expressions. If your expression is longer than 65 characters, you should break it up into separate
strings so it does not extend past the Adams 80-character line-length limit. Adams View will write
each string on a separate line in the data set.
If you want to define the motion with a user-written subroutine, enter the character string
"USER(r1[,...,r30])", where r1[,...,r30] are the values you want Adams to pass to your user-written
subroutine MOTSUB. If you enter "USER(1.,2.,3.)", for instance, Adams will call your MOTSUB
with values 1, 2, and 3. See the Adams User's Manual for more information on using MOTSUBs.
7. A MOTION_GENERATOR determines a translational or a rotational motion as a function of time.
In Adams you can apply a motion to a translational, to a revolute, or to a cylindrical joint. You can
define the motion with a FUNCTION expression or with a user-written subroutine.
You can assign a translational motion at either a translational or a cylindrical joint, and you can assign
a rotational motion at either a revolute or a cylindrical joint. Adams uses the two markers that specify
the joint to define the motion. In other words, Adams controls the rotational or the translational
displacement of the I marker in the joint with respect to the J marker in the joint.
170 Adams View Commands
constraint modify primitive_joint inplane
For a translational motion, Adams moves the I marker along the z-axis of the J marker. The J marker
origin represents zero displacement, while the z-axis of the J marker defines the positive direction. For
a rotational motion, Adams rotates the I marker about the z-axis of the J marker. Positive rotations
are positive according to the right-hand rule. The z-axis of the I marker must be collinear with the z-
axis of the J marker at all times. The angle is zero when the x-axis of the I marker is also collinear with
the x-axis of the J marker.
Format:
constraint modify primitive_joint inplane
jprim_name = an existing primitive joint name
new_jprim_name = a new primitive joint name
adams_id = integer
comments = string
i_marker_name = an existing marker
j_marker_name = an existing marker
Example:
constraint modify primitive_joint inplane &
jprim_name = JPRIM__1 &
new_jprim_name = JPRIM__2 &
adams_id = 2 &
comments = "comment string" &
i_marker_name = marker_1 &
j_marker_name = marker_2
Description:
Extended Definition:
1. An inplane joint primitive indicates a five-degree-of-freedom joint primitive that allows both
translational and rotational motion of one part with respect to another.For an inplane primitive,
Adams imposes one translational constraint, which confines the translational motion of the I marker
to the x-y plane of the J marker.
2. You may identify a jprim by typing its name or by picking it from the screen. If the jprim is not visible
on the screen, you must type the name. You may also find it convenient to type the name even if the
jprim is displayed. If you created the jprim by reading an Adams data set or graphics file, the jprim
name is the letters JPR followed by the Adams data set jprim ID number. The name of Adams
JPRIM/101 is JPR101, for example. If you created the jprim during preprocessing, you gave it a name
at that time. If a jprim is available by default, you may identify it by entering its name only. If it is
not, you must enter its full name. To identify a jprim under an analysis, for instance, you may need
to enter the analysis name as well. For example, you may specify jprim 101 from the analysis named
test by entering ".test.jpr101". You must separate multiple jprim names by commas. If the jprim is
visible in one of your views, you may identify it by picking on any of the graphics associated with it.
You need not separate multiple jprim picks by commas.
3. Normally, entity names like the jprim_name are composed of alphabetic, numeric, or '_' (underscore)
characters, and start with an alphabetic or '_' character. They may be any length. By enclosing the
name in double quotes, you may use other printable characters, or start the name with a numeral. If
a name contains characters, or starts with a numeral, you must always quote the name when entering
it. Note that you can specify the parentage of an entity (for example, what part "owns" a marker or a
geometry element) when you CREATE it by changing the name. If you enter just the entity name,
then the default parent will be assigned by Adams View. If you type in the full name, then you may
over ride the default parent. In most cases, when creating an entity, Adams View will provide a default
name. The default name that Adams View provides will specify the parentage that it has assumed.
You may, or course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
4. When you use the FILE ADAMS_DATA_SET WRITE command, Adams View writes an Adams
data file for your model. Adams requires that each modeling element be identified by a unique integer
identifier. If you use this parameter to specify a non-zero identifier, Adams View will use it in the
corresponding statement in the Adams data file. You may also enter zero as an identifier, either
explicitly or by default. The next time you write an Adams file, Adams View will replace the zero with
172 Adams View Commands
constraint modify primitive_joint orientation
a unique, internally-generated identifier. Adams View will permanently store this identifier with the
element just as if you had entered it yourself. Normally, you would let all identifiers default to zero,
and Adams View would generate the identifiers for you. You are never required to enter a non-zero
identifier. You only need to specify it if, for some reason, you wish to control the Adams file output.
5. When an Adams Solver data file (.adm) is read into Adams View, all comments associated with a
statement (from the end of the previous statement through the end of the current statement) are
stored with the object. Comments in the data file can be associated with model. These comments
must follow the title statement and be followed by the comment 'END OF MODEL
COMMENTS'. This string must be uppercase. When an Adams Solver data file is written, the
comments for an object are written before the statement corresponding to the object.
Tips:
1. If you type a "?", Adams View will list the jprims available by default.
2. You use the jprim_name parameter to identify the existing jprim to affect with this command.
3. You may use the newjprim_name later to refer to this jprim. Adams View will not allow you to have
two jprims with the same full name, so you must provide a unique name.
4. Adams View connects one part at the I marker to the other at the J marker.
Format:
constraint modify primitive_joint orientation
jprim_name = an existing primitive joint name
new_jprim_name = a new primitive joint name
adams_id = integer
comments = string
i_marker_name = an existing marker
j_marker_name = an existing marker
Example:
constraint modify primitive_joint orientation &
jprim_name = JPRIM__1 &
new_jprim_name = JPRIM__2 &
adams_id = 2 &
comments = "comment string" &
constraint 173
constraint modify primitive_joint orientation
Description:
Extended Definition:
1. An orientation joint primitive indicates a three-degree-of-freedom joint primitive that allows only
translational motion of one part with respect to another. For an orientation primitive, Adams imposes
three rotational constraints to keep the orientation of the I marker identical to the orientation of the
J marker.
2. You may identify a jprim by typing its name or by picking it from the screen. If the jprim is not visible
on the screen, you must type the name. You may also find it convenient to type the name even if the
jprim is displayed. If you created the jprim by reading an Adams data set or graphics file, the jprim
name is the letters JPR followed by the Adams data set jprim ID number. The name of Adams
JPRIM/101 is JPR101, for example. If you created the jprim during preprocessing, you gave it a name
at that time. If a jprim is available by default, you may identify it by entering its name only. If it is
not, you must enter its full name. To identify a jprim under an analysis, for instance, you may need
to enter the analysis name as well. For example, you may specify jprim 101 from the analysis named
test by entering ".test.jpr101". You must separate multiple jprim names by commas. If the jprim is
visible in one of your views, you may identify it by picking on any of the graphics associated with it.
You need not separate multiple jprim picks by commas.
3. Normally, entity names like the jprim_name are composed of alphabetic, numeric, or '_' (underscore)
characters, and start with an alphabetic or '_' character. They may be any length. By enclosing the
name in double quotes, you may use other printable characters, or start the name with a numeral. If
a name contains characters, or starts with a numeral, you must always quote the name when entering
it. Note that you can specify the parentage of an entity (e.g. what part "owns" a marker or a geometry
174 Adams View Commands
constraint modify primitive_joint parallel_axis
element) when you CREATE it by changing the name. If you enter just the entity name, then the
default parent will be assigned by Adams View. If you type in the full name, then you may over ride
the default parent. In most cases, when creating an entity, Adams View will provide a default name.
The default name that Adams View provides will specify the parentage that it has assumed. You may,
or course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
4. When you use the FILE ADAMS_DATA_SET WRITE command, Adams View writes an Adams
data file for your model. Adams requires that each modeling element be identified by a unique integer
identifier. If you use this parameter to specify a non-zero identifier, Adams View will use it in the
corresponding statement in the Adams data file. You may also enter zero as an identifier, either
explicitly or by default. The next time you write an Adams file, Adams View will replace the zero with
a unique, internally-generated identifier. Adams View will permanently store this identifier with the
element just as if you had entered it yourself. Normally, you would let all identifiers default to zero,
and Adams View would generate the identifiers for you. You are never required to enter a non-zero
identifier. You only need to specify it if, for some reason, you wish to control the Adams file output.
5. When an Adams Solver data file (.adm) is read into Adams View, all comments associated with a
statement (from the end of the previous statement through the end of the current statement) are
stored with the object. Comments in the data file can be associated with model. These comments
must follow the title statement and be followed by the comment 'END OF MODEL
COMMENTS'. This string must be uppercase. When an Adams Solver data file is written, the
comments for an object are written before the statement corresponding to the object.
Tips:
1. If you type a "?", Adams View will list the jprims available by default.
2. You use this parameter to identify the existing jprim to affect with this command.
3. Adams View will not allow you to have two jprims with the same full name, so you must provide a
unique name.
4. Adams View connects one part at the I marker to the other at the J marker.
Format:
constraint modify primitive_joint parallel_axis
jprim_name = an existing primitive joint name
new_jprim_name = a new primitive joint name
adams_id = integer
constraint 175
constraint modify primitive_joint parallel_axis
Example:
constraint modify primitive_joint parallel_axis &
jprim_name = JPRIM__1 &
new_jprim_name = JPRIM__2 &
adams_id = 2 &
comments = "comment string" &
i_marker_name = marker_1 &
j_marker_name = marker_2
Description:
Extended Definition:
1. A parallel joint primitive is a four-degree-of-freedom joint primitive that allows both translational and
rotational motion of one part with respect to another. For a parallel axis primitive, Adams imposes
two rotational constraints so that the z-axis of the I marker stays parallel to the z-axis of the J marker.
This primitive permits relative rotation about the common z-axis of I and J and permits all relative
displacements.
2. You may identify a jprim by typing its name or by picking it from the screen. If the jprim is not visible
on the screen, you must type the name. You may also find it convenient to type the name even if the
jprim is displayed. If you created the jprim by reading an Adams data set or graphics file, the jprim
name is the letters JPR followed by the Adams data set jprim ID number. The name of Adams
176 Adams View Commands
constraint modify primitive_joint parallel_axis
JPRIM/101 is JPR101, for example. If you created the jprim during preprocessing, you gave it a name
at that time. If a jprim is available by default, you may identify it by entering its name only. If it is
not, you must enter its full name. To identify a jprim under an analysis, for instance, you may need
to enter the analysis name as well. For example, you may specify jprim 101 from the analysis named
test by entering ".test.jpr101". You must separate multiple jprim names by commas. If the jprim is
visible in one of your views, you may identify it by picking on any of the graphics associated with it.
You need not separate multiple jprim picks by commas.
3. Normally, entity names like the jprim_name are composed of alphabetic, numeric, or '_' (underscore)
characters, and start with an alphabetic or '_' character. They may be any length. By enclosing the
name in double quotes, you may use other printable characters, or start the name with a numeral. If
a name contains characters, or starts with a numeral, you must always quote the name when entering
it. Note that you can specify the parentage of an entity (for example, what part "owns" a marker or a
geometry element) when you CREATE it by changing the name. If you enter just the entity name,
then the default parent will be assigned by Adams View. If you type in the full name, then you may
over ride the default parent. In most cases, when creating an entity, Adams View will provide a default
name. The default name that Adams View provides will specify the parentage that it has assumed.
You may, or course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
4. When you use the FILE ADAMS_DATA_SET WRITE command, Adams View writes an Adams
data file for your model. Adams requires that each modeling element be identified by a unique integer
identifier. If you use this parameter to specify a non-zero identifier, Adams View will use it in the
corresponding statement in the Adams data file. You may also enter zero as an identifier, either
explicitly or by default. The next time you write an Adams file, Adams View will replace the zero with
a unique, internally-generated identifier. Adams View will permanently store this identifier with the
element just as if you had entered it yourself. Normally, you would let all identifiers default to zero,
and Adams View would generate the identifiers for you. You are never required to enter a non-zero
identifier. You only need to specify it if, for some reason, you wish to control the Adams file output.
5. When an Adams Solver data file (.adm) is read into Adams View, all comments associated with a
statement (from the end of the previous statement through the end of the current statement) are
stored with the object. Comments in the data file can be associated with model. These comments
must follow the title statement and be followed by the comment 'END OF MODEL
COMMENTS'. This string must be uppercase. When an Adams Solver data file is written, the
comments for an object are written before the statement corresponding to the object.
Tips:
1. If you type a "?", Adams View will list the jprims available by default.
2. You use the jprim_name parameter to identify the existing jprim to affect with this command.
3. You may use the new_jprim_name later to refer to the jprim. Adams View will not allow you to have
two jprims with the same full name, so you must provide a unique name.
4. Adams View connects one part at the I marker to the other at the J marker.
constraint 177
constraint modify primitive_joint perpendicular
Format:
Constraint modify primitive_joint perpendicular
jprim_name = existing primitive joint name
new_jprim_name = new name for existing jprim
adams_id = geom_id
comments = string
i_marker_name = existing marker name
j_marker_name = existing marker name
Example:
constraint modify primitive_joint perpendicular &
jprim_name = JPRIM__1 &
new_jprim_name = MY_JPRIM &
i_marker_name = MARKER_1 &
j_marker_name = MARKER_11
Description:
Extended Definition:
1. Adams View will not allow you to have two jprims with the same full name, so you must provide a
unique name.
Normally, entity names are composed of alphabetic, numeric, or '_' (underscore) characters, and start
with an alphabetic or '_' character. They may be any length.
By enclosing the name in double quotes, you may use other printable characters, or start the name
with a numeral. If a name contains characters, or starts with a numeral, you must always quote the
name when entering it.
Note that you can specify the parentage of an entity (for example, what part "owns" a marker or a
geometry element) when you CREATE it by changing the name. If you enter just the entity name,
then the default parent will be assigned by Adams View. If you type in the full name, then you may
over ride the default parent. In most cases, when creating an entity, Adams View will provide a default
name. The default name that Adams View provides will specify the parentage that it has assumed.
You may, or course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
2. When you use the FILE ADAMS_DATA_SET WRITE command, Adams View writes an Adams
data file for your model. Adams requires that each modeling element be identified by a unique integer
identifier. If you use this parameter to specify a non-zero identifier, Adams View will use it in the
corresponding statement in the Adams data file.
You may also enter zero as an identifier, either explicitly or by default. The next time you write an
Adams file, Adams View will replace the zero with a unique, internally-generated identifier.
Adams View will permanently store this identifier with the element just as if you had entered it
yourself.
Normally, you would let all identifiers default to zero, and Adams View would generate the identifiers
for you. You are never required to enter a non-zero identifier. You only need to specify it if, for some
reason, you wish to control the Adams file output.
3. A perpendicular joint primitive is a five-degree-of-freedom joint primitive that allows both
translational and rotational motion of one part with respect to another.
For a perpendicular primitive, Adams imposes a single rotational constraint on the I and the J markers
so that their z-axes remain perpendicular. This allows relative rotations about either z-axis, but does
not allow any relative rotation in the direction perpendicular to both z-axes.
Tips:
1. Adams View connects one part at the I marker to the other at the J marker.
constraint 179
constraint modify primitive_joint point_point
Format:
constraint modify primitive_joint point_point
jprim_name = an existing primitive joint name
new_jprim_name = a new primitive joint name
adams_id = integer
comments = string
i_marker_name = an existing marker
j_marker_name = an existing marker
offset = length
Example:
constraint modify primitive_joint point_point &
jprim_name = JPRIM__1 &
new_jprim_name = JPRIM__2 &
adams_id = 2 &
comments = "comment string" &
i_marker_name = marker_1 &
j_marker_name = marker_2
offset = 2
Description:
Extended Definition:
1. An point_point joint primitive constrains three translational DOF and allows three rotational DOF.
This jprim is diferent from a conventional spherical joint as it allows a constant non-zero distance
between i_marker and j_marker. This is similar to a dummy bar having spherical and hookes joint at
respective ends, but it does not specifically constrain any direction, just the total distance between I
and J.
2. You may identify a jprim by typing its name or by picking it from the screen. If the jprim is not visible
on the screen, you must type the name. You may also find it convenient to type the name even if the
jprim is displayed. If you created the jprim by reading an Adams data set or graphics file, the jprim
name is the letters JPR followed by the Adams data set jprim ID number. The name of Adams
JPRIM/101 is JPR101, for example. If you created the jprim during preprocessing, you gave it a
name at that time. If a jprim is available by default, you may identify it by entering its name only. If
it is not, you must enter its full name. To identify a jprim under an analysis, for instance, you may
need to enter the analysis name as well. For example, you may specify jprim 101 from the analysis
named test by entering ".test.jpr101". You must separate multiple jprim names by commas. If the
jprim is visible in one of your views, you may identify it by picking on any of the graphics associated
with it. You need not separate multiple jprim picks by commas.
3. Normally, entity names like the jprim_name are composed of alphabetic, numeric, or '_' (underscore)
characters, and start with an alphabetic or '_' character. They may be any length. By enclosing the
name in double quotes, you may use other printable characters, or start the name with a numeral. If
a name contains characters, or starts with a numeral, you must always quote the name when entering
it. Note that you can specify the parentage of an entity (for example, what part "owns" a marker or a
geometry element) when you CREATE it by changing the name. If you enter just the entity name, then
the default parent will be assigned by Adams View. If you type in the full name, then you may over
ride the default parent. In most cases, when creating an entity, Adams View will provide a default
name. The default name that Adams View provides will specify the parentage that it has assumed.
You may, or course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME". The number of levels
used varies from case to case and the parentage must exist before an entity can be assigned to it.
4. When you use the FILE ADAMS_DATA_SET WRITE command, Adams View writes an Adams data
file for your model. Adams requires that each modeling element be identified by a unique integer
identifier. If you use this parameter to specify a non-zero identifier, Adams View will use it in the
corresponding statement in the Adams data file. You may also enter zero as an identifier, either
explicitly or by default. The next time you write an Adams file, Adams View will replace the zero with
constraint 181
constraint modify user_defined
a unique, internally-generated identifier. Adams View will permanently store this identifier with the
element just as if you had entered it yourself. Normally, you would let all identifiers default to zero,
and Adams View would generate the identifiers for you. You are never required to enter a non-zero
identifier. You only need to specify it if, for some reason, you wish to control the Adams file output.
5. When an Adams Solver data file (.adm) is read into Adams View, all comments associated with a
statement (from the end of the previous statement through the end of the current statement) are
stored with the object. Comments in the data file can be associated with model. These comments
must follow the title statement and be followed by the comment 'END OF MODEL COMMENTS'. This
string must be uppercase. When an Adams Solver data file is written, the comments for an object are
written before the statement corresponding to the object.
Tips:
1. If you type a "?", Adams View will list the jprims available by default.
2. You use the jprim_name parameter to identify the existing jprim to affect with this command.
3. You may use the newjprim_name later to refer to this jprim. Adams View will not allow you to have
two jprims with the same full name, so you must provide a unique name.
4. You may use the newjprim_name later to refer to this jprim. Adams View will not allow you to have
two jprims with the same full name, so you must provide a unique name.
Format:
constraint modify user_defined
user_constraint_name = existing user constraint
new_user_constraint_name = new name for the user constraint
adams_id = geom._id
comments = string
user_function = function
182 Adams View Commands
constraint modify user_defined
Description:
Extended Definition:
1. When you use the FILE ADAMS_DATA_SET WRITE command, Adams View writes an Adams
data file for your model. Adams requires that each modeling element be identified by a unique integer
identifier. If you use this parameter to specify a non-zero identifier, Adams View will use it in the
corresponding statement in the Adams data file.
You may also enter zero as an identifier, either explicitly or by default. The next time you write an
Adams file, Adams View will replace the zero with a unique, internally-generated identifier. Adams
View will permanently store this identifier with the element just as if you had entered it yourself.
Normally, you would let all identifiers default to zero, and Adams View would generate the identifiers
for you. You are never required to enter a non-zero identifier. You only need to specify it if, for some
reason, you wish to control the Adams file output.
2. A user-defined constraint describes a system constraint as a function of time and as many as thirty
variables. Each of these variables must be the displacement or the velocity of a part. For any part at
any point in time, six displacements define its position, and six velocities define its velocity. The six
displacements are the x, y, and z translations and the three Euler angle rotations. The six velocities are
the x, y, and z translational velocities and the time derivatives of the three Euler angles. Adams
measures all of these displacements and velocities at the origin of the principal axes with respect to the
global coordinate system. A USER DEFINED constraint is only used when a constraint is needed
that is not definable by any of the other constraint types.
contact 1
contact copy
contact
contact copy
Allows you to copy an existing contact and creates an identical new contact with a different name, which is
to be specified by the user.
Format:
contact copy
contact_name = An existing contact
new_contact_name = A new contact
Example:
contact copy &
contact_name = contact__1 &
new_contact_name = contact__2
Description:
Tips:
1. On typing “contact delete” followed by a “?” in the command window, the option “contact_name =”
is automatically displayed. If you need to find out the various contacts already present, type ? once
again. This will result in all the existing contact names that can be deleted being displayed in the
command window.
contact create
Allows you to create a contact force between two geometries. You will need to specify the two
parts/geometries/flexible bodies using their marker, geometry or flexible body names.
2 Adams View Commands
contact create
Format:
contact create
contact_name = a new contact
adams_id = integer
comments = string
type = string
i_marker_name = an existing marker
i_geometry_name = an existing geometry
j_geometry_name = an existing geometry
i_flex = an existing flexible body
j_flex = an existing flexible body
i_edge = an existing edge
j_edge = an existing edge
i_edge_index = an existing edge index
j_edge_index = an existing edge index
i_flip_normal = string
j_flip_normal = string
i_flip_geometry_name = existing contact_curve
j_flip_geometry_name = existing contact_curve
face_contact_bottom = True/False
face_contact_top = True/False
geometry_routines = string
stiffness = real
damping = real
dmax = real
exponent = real
penalty = real
restitution_coefficient = real
normal_function = real
normal_routine = string
augmented_lagrangian_formulation = yes/no
coulomb_friction = real
mu_static = real
mu_dynamic = real
contact 3
contact create
contact create
friction_transition_velocity = real
friction_function = real
friction_routine = string
no_friction = true_value
stiction_transition_velocity = real
Example:
contact create &
contact_name = contact__1 &
adams_id = 1 &
comments = "comment string" &
i_marker_name = marker_1 &
j_geometry_name = link_1 &
i_flip_normal = yes &
j_flip_normal = no &
geometry_routines = "routine 1" &
stiffness = 0.12 &
damping = 0.18 &
dmax = 0.11 &
exponent = 0.13 &
augmented_lagrangian_formulation = no &
mu_static = 0.15 &
mu_dynamic = 0.16 &
coulomb_friction = dynamics_only &
friction_transition_velocity = 0.15 &
stiction_transition_velocity = 0.15
Description:
solid_to_solid
curve_to_curve
point_to_curve
point_to_plane
curve_to_plane
sphere_to_plane
sphere_to_sphere
flex_to_solid
flex_to_flex
flex_edge_to_curve
flex_edge_to_flex_edge
flex_edge_to_plane
cylinder_to_cylinder
i_marker_name An Existing Either the I marker or the I geometry name needs to be
Marker specified to indicate the geometry participating in the contact.
i_geometry_name An Existing Specifies the name of the geometry participating in the
Geometry contact.
j_geometry_name An Existing Specifies the name of the other geometry participating in the
Geometry contact.
i_flex An Existing Specifies the name of the first flexible body participating in the
Flexible Body contact. This parameter should be used only with Adams
Solver (C++).
j_flex An Existing Specifies the name of the other flexible body participating in
Flexible Body the contact. This parameter can only exist if the I_flex
parameter is specified and used with Adams Solver (C++).
i_edge An Existing Specifies the name of the edge on the first flexible body
edge on participating in the contact. This parameter should be used
Flexible Body only with Adams Solver C++.
j_edge An Existing Specifies the name of the edge on the other flexible body
edge on participating in the contact. This parameter can only exist if
Flexible Body the i_edge parameter is specified and used with Adams Solver
C++.
i_edge_index An Existing Specifies edge index of the first edge participating in the
edge index contact. This parameter can only exist if the i_edge parameter
is specified and used with Adams Solver C++.
contact 5
contact create
Extended Definition:
1. For solids and curves, you can select more than one geometry as long as the geometry belongs to the
same part.
contact 7
contact create
2. For sphere-to-sphere and cylinder-to cylinder contacts, you can specify whether the contact should
be inside or outside the sphere or cylinder.
3. In general, the higher the stiffness, the more rigid or hard are the bodies in contact. Also note that the
higher the stiffness, the harder it is for an integrator to solve through the contact event.
4. Parameter dmax defines the penetration at which Adams Solver turns on full damping. Adams Solver
uses a cubic STEP function to increase the damping coefficient from zero, at zero penetration, to full
damping when the penetration is dmax. A reasonable value for this parameter is 0.01 mm. For more
information, refer to the IMPACT function.
5. Adams Solver (FORTRAN) models normal force as a nonlinear spring-damper. If PEN is the
instantaneous penetration between the contacting geometry, Adams Solver calculates the
contribution of the material stiffness to the instantaneous normal forces as STIFFNESS *
(PENALTY)**EXPONENT. For more information, see the IMPACT function. Exponent should
normally be set to 1.5 or higher.
6. A large value of PENALTY ensures that the penetration, of one geometry into another, will be small.
Large values, however, will cause numerical integration difficulties. A value of 1E6 is appropriate for
systems modeled in Kg-mm-sec. For more information on how to specify this value, see Extended
Definition. Range: PENALTY > 0
7. A value of zero for the restitution_coefficient specifies a perfectly plastic contact between the two
colliding bodies. A value of one specifies a perfectly elastic contact. There is no energy loss. The
coefficient of restitution is a function of the two materials that are coming into contact. For
information on material types versus commonly used values of the coefficient of restitution, see the
Material Contact Properties table.
8. The augmented_lagrangian_formulation parameter uses iterative refinement to ensure that
penetration between the geometries is minimal. It also ensures that the normal force magnitude is
relatively insensitive to the penalty or stiffness used to model the local material compliance effects.
You can use this formulation only with the POISSON model for normal force.
9. The friction model in CONTACT models dynamic friction but not stiction. The argument values,
on/off/dynamics_only, specify at run time whether the friction effects are to be included.
10. For information on material types versus commonly used values of the coefficient of static friction,
see the Material Contact Properties table. Excessively large values of mu_static can cause integration
difficulties.
11. For information on material types versus commonly used values of the coefficient of the dynamic
coefficient of friction, see the Material Contact Properties table. Excessively large values of mu_dynamic
can cause integration difficulties.
12. Adams Solver gradually transitions the coefficient of friction from mu_static to mu_dynamic as the
slip velocity at the contact point increases. When the slip velocity is equal to the value specified for
friction_transition_velocity, the effective coefficient of friction is set to mu_dynamic. For more
details, see Extended Definition.
13. Specifying i_flex and j_flex parameters for Adams Solver (FORTRAN) will result in a warning
message that the created contact is no longer compatible with the solver.
8 Adams View Commands
contact delete
14. i_edge and j_edge are the matrices consisting of the nodes of the free edges identified by the edge
index. You have to first, select a flexible body and then you will be asked to pick one of the free edges
generated (more than one free edge can exists) on the flexible body.
15. edge_index is an optional parameter. If you do not specify, it will be calculated internally.
16. If contact_type "solid-to-solid" is specified and the geometry supplied is capable of analytical contact
detection then Adams will automatically treat them analytically. See the Adams Solver CONTACT
statement documentation for details on which types of geometry are treated analytically.
17. Solid-to-solid contact is limited to external contact surfaces. So, to take advantage of analytical
contact detection for sphere or cylinder geometry and use an internal surface for contact one must
specify type = sphere_to_sphere or cylinder_to_cylinder.
Tips:
1. Small values for FRICTION_TRANSITION_VELOCITY cause the integrator difficulties. You
should specify this value as:
FRICTION_TRANSITION_VELOCITY > 5 * ERROR
where ERROR is the integration error used for the solution. Its default value is 1E-3.
contact delete
Allows you to delete an existing contact.
Format:
contact delete
contact_name = An existing contact
Example:
contact delete &
contact_name = contact_1
Description:
Tips:
1. On typing “contact delete” followed by a “?” in the command window, the option “contact_name =”
is automatically displayed. If you need to find out the various contacts already present, type ? once
again. This will result in all the existing contact names that can be deleted being displayed on the
command window.
contact 9
contact modify
contact modify
Allows you to modify a contact force between two geometries/flexible bodies.
Format:
contact modify
contact_name = existing contact
new_contact_name = a new contact
type = contact type
adams_id = integer
comments = string
i_marker_name = an existing marker
i_geometry_name = an existing geometry
j_geometry_name = an existing geometry
i_flex = an existing flexible body
j_flex = an existing flexible body
i_edge = an existing edge
j_edge = an existing edge
i_edge_index = an existing edge index
j_edge_index = an existing edge index
i_flip_normal = string
j_flip_normal = string
i_flip_geometry_name = existing contact_curve
j_flip_geometry_name = existing contact_curve
face_contact_bottom = True/False
face_contact_top = True/False
geometry_routines = string
stiffness = real
damping = real
dmax = real
exponent = real
penalty = real
restitution_coefficient = real
normal_function = real
normal_routine = string
10 Adams View Commands
contact modify
contact modify
augmented_lagrangian_formulation = yes/no
coulomb_friction = real
mu_static = real
mu_dynamic = real
friction_transition_velocity = real
friction_function = real
friction_routine = string
no_friction = true_value
stiction_transition_velocity = real
Example:
contact modify &
contact_name = contact__1 &
new_contact_name = contact__2 &
adams_id = 1 &
comments = "comment string" &
i_marker_name = Marker_1 &
j_geometry_name = Link_1 &
i_flip_normal = yes &
j_flip_normal = no &
geometry_routines = "routine 1" &
stiffness = 0.12 &
damping = 0.18 &
dmax = 0.11 &
exponent = 0.13 &
augmented_lagrangian_formulation = no &
mu_static = 0.15 &
mu_dynamic = 0.16 &
coulomb_friction = dynamics_only &
friction_transition_velocity = 0.15 &
stiction_transition_velocity = 0.15
contact 11
contact modify
Description:
solid_to_solid
curve_to_curve
point_to_curve
point_to_plane
curve_to_plane
sphere_to_plane
sphere_to_sphere
flex_to_solid
flex_to_flex
flex_edge_to_curve
flex_edge_to_flex_edge
flex_edge_to_plane
cylinder_to_cylinder
comments String Enters any relevant comments to describe the contact.
i_marker_name An Existing Either the I marker or the I geometry name needs to be
Marker specified to indicate the geometry participating in the contact.
i_geometry_name An Existing Specifies the name of the geometry participating in the
Geometry contact.
j_geometry_name An Existing Specifies the name of the other geometry participating in the
Geometry contact.
i_flex An Existing Specifies the name of the first flexible body participating in the
Flexible Body contact. This parameter should be used only with Adams
Solver (C++).
j_flex An Existing Specifies the name of the other flexible body participating in
Flexible Body the contact. This parameter can only exist if the I_flex
parameter is specified and used with Adams Solver (C++).
12 Adams View Commands
contact modify
Extended Definition:
1. For solids and curves, you can select more than one geometry as long as the geometry belongs to the
same part.
2. For sphere-to-sphere and cylinder-to cylinder contacts, you can specify whether the contact should
be inside or outside the sphere or cylinder.
3. In general, the higher the stiffness, the more rigid or hard are the bodies in contact. Also note that the
higher the stiffness, the harder it is for an integrator to solve through the contact event.
4. Parameter dmax defines the penetration at which Adams Solver turns on full damping. Adams Solver
uses a cubic STEP function to increase the damping coefficient from zero, at zero penetration, to full
damping when the penetration is dmax. A reasonable value for this parameter is 0.01 mm. For more
information, refer to the IMPACT function.
5. Adams Solver (FORTRAN) models normal force as a nonlinear spring-damper. If PEN is the
instantaneous penetration between the contacting geometry, Adams Solver calculates the
contribution of the material stiffness to the instantaneous normal forces as STIFFNESS *
(PENALTY)**EXPONENT. For more information, see the IMPACT function. Exponent should
normally be set to 1.5 or higher.
6. A large value of PENALTY ensures that the penetration, of one geometry into another, will be small.
Large values, however, will cause numerical integration difficulties. A value of 1E6 is appropriate for
systems modeled in Kg-mm-sec. For more information on how to specify this value, see Extended
Definition. Range: PENALTY > 0
7. A value of zero for the restitution_coefficient specifies a perfectly plastic contact between the two
colliding bodies. A value of one specifies a perfectly elastic contact. There is no energy loss. The
coefficient of restitution is a function of the two materials that are coming into contact. For
information on material types versus commonly used values of the coefficient of restitution, see the
Material Contact Properties table.
8. The augmented_lagrangian_formulation parameter uses iterative refinement to ensure that
penetration between the geometries is minimal. It also ensures that the normal force magnitude is
relatively insensitive to the penalty or stiffness used to model the local material compliance effects.
You can use this formulation only with the POISSON model for normal force.
9. The friction model in CONTACT models dynamic friction but not stiction. The argument values,
on/off/dynamics_only, specify at run time whether the friction effects are to be included.
contact 15
contact modify
10. For information on material types versus commonly used values of the coefficient of static friction,
see the Material Contact Properties table. Excessively large values of mu_static can cause integration
difficulties.
11. For information on material types versus commonly used values of the coefficient of the dynamic
coefficient of friction, see the Material Contact Properties table. Excessively large values of mu_dynamic
can cause integration difficulties.
12. Adams Solver gradually transitions the coefficient of friction from mu_static to mu_dynamic as the
slip velocity at the contact point increases. When the slip velocity is equal to the value specified for
friction_transition_velocity, the effective coefficient of friction is set to mu_dynamic. For more
details, see Extended Definition.
13. Specifying i_flex and j_flex parameters for Adams Solver (FORTRAN) will result in a warning
message that the created contact is no longer compatible with the solver.
14. i_edge and j_edge are the matrices consisting of the nodes of the free edges identified by the edge
index. You have to first, select a flexible body and then you will be asked to pick one of the free edges
generated (more than one free edge can exists) on the flexible body.
15. edge_index is an optional parameter. If you do not specify, it will be calculated internally.
16. If contact_type "solid-to-solid" is specified and the geometry supplied is capable of analytical contact
detection then Adams will automatically treat them analytically. See the Adams Solver CONTACT
statement documentation for details on which types of geometry are treated analytically.
17. Solid-to-solid contact is limited to external contact surfaces. So, to take advantage of analytical
contact detection for sphere or cylinder geometry and use an internal surface for contact one must
specify type = sphere_to_sphere or cylinder_to_cylinder.
Tips:
1. Small values for FRICTION_TRANSITION_VELOCITY cause difficulties for the integrator . You
should specify this value as:
FRICTION_TRANSITION_VELOCITY > 5 * ERROR
where ERROR is the integration error used for the solution. Its default value is 1E-3.
16 Adams View Commands
contact modify
continue 1
continue
Allows you to skip commands inside the innermost FOR or WHILE loop and continue with the next
iteration of the loop.
When Adams View encounters a CONTINUE command inside a loop, it skips over the remaining
commands of the loop and goes directly to the END of the innermost loop. Adams View tests the loop
condition and continues looping if the condition is still valid.
The CONTINUE command affects only the innermost FOR or WHILE loop.
Format:
CONTINUE
Example:
variable create variable_name=ip integer_value=0
while condition=(ip < 5)
variable modify variable_name=ip integer_value=(eval(ip+1))
if condition=(ip == 3)
continue
end
marker create marker_name=(eval("MAR"//ip)) &
location=(eval(ip-1)),0,0
end
variable delete variable_name=ip
In this example, Adams View creates four markers on the default part: MAR1, MAR2, MAR4, and MAR5.
Adams View skips MAR3, because when IP evaluates to 3, Adams View encounters the CONTINUE
command and skips to the END of the WHILE loop.
Results of CONTINUE Example
contour_plot legend
contour_plot legend create
Allows you to create a legend in the animation dashboard for a contoured plot of deformation, stress/strain
or modal forces while in Adams Flex, Adams Vibration or Adams Durability.
The dashboard in animation mode lets you play and control time and frequency_domain animations, record
them, and view contour and vector plots.
Depending on the Adams product you use to create and simulate your model, you display different types of
data as contour or vector plots: deformations, stress/strain, or modal forces. Contour plots display scalar data
a component at a time, such as a stress. You can select to animate the deformations, modal forces
(MFORCEs), or the stresses and strain acting on the flexible body as contour plots to better visualize a result
that is defined by its position on a body.
For example, when you analyze flexible bodies using Adams Flex, you can contour deformations using Adams
View or Adams PostProcessor.
In the Animation Dashboard - Contour Plots setting, you can set up the options for displaying contour_plots.
For each viewport, you can change the way contour plots display colors and values. Note that this allows you
to display different viewports at the same time but with different color values, which can be confusing because
a color value in one viewport may not be the same as in another.
Format:
contour_plot legend create
legend_name = a new contour_plot legend
animation_name = an existing animation
title = string
placement = placement_option
minimum_value = real
maximum_value = real
gradients = integer
colors = integer
visibility = on_off
scientific_notation = sci_notation
trailing_zeros = boolean
decimal_places = integer
2 Adams View Commands
contour_plot legend create
Example:
contour_plot legend create &
legend_name = contour_legend__1 &
animation_name = animation_1 &
title = this_is_title &
placement = bottom &
minimum_value = 0.1 &
maximum_value = 10 &
gradients = 10 &
colors = 255 &
visibility = on &
scientific_notation = 10 , 10 &
trailing_zeros = on &
decimal_places = 2
Description:
Extended Definition:
1. The title name to appear on the top of the legend can be specified by ‘title’. The existing animation
for which the contoured plot is to be shown is entered as ‘animation_name’. The legend_name should
be specified for creating a new legend.
2. The placement of the legend on the animation window can be on the left, right, top, or bottom,
specified by the parameter, ‘placement’.
3. Specify the minimum and maximum numbers for the legend range to be shown.
4. Similarly, the legend can be split into gradients where the number of gradients can be more than two
and less than or equal to 255. The number of colors used to show the contour can be chosen by the
parameter, ‘color’, which cannot be more than 255.
5. The default visibility of the legend bar is set to ON or OFF by the parameter ‘visibility’.
6. The scientific notation specifies the exponential form for scientific notation.
7. Adams PostProcessor display zeros after the numbers in the legend, if the ‘trailing_zeros’ is set to ‘yes’.
The number of zeros depends on the number of decimal points you selected for ‘decimal_places’.
Format:
contour_plot legend delete
legend_name = an exisitng contour_plot legend
Example:
contour_plot legend delete &
legend_name = contour_legend__1
Description:
Extended Definition:
This command deletes an existing contour_plot legend.
4 Adams View Commands
contour_plot legend modify
Format:
contour_plot legend modify
legend_name = an exisitng contour_plot legend
new_legend_name = a new contour_plot legend
title = string
placement = placement_option
minimum_value = real
maximum_value = real
gradients = integer
colors = integer
visibility = on_off
scientific_notation = sci_notation
trailing_zeros = boolean
decimal_places = integer
Example:
contour_plot legend modify &
legend_name = contour_legend__1 &
new_legend_name = modified_legend &
title = new_legend &
contour_plot legend 5
contour_plot legend modify
Description:
Extended Definition:
1. The title name to appear on the top of the legend can be specified by ‘title’. The ‘new_legend_name’,
if specified, replaces the existing legend name.
2. The placement of the legend on the animation window can be on the left, right, top, or bottom,
specified by the parameter, ‘placement’.
3. Specify the minimum and maximum numbers for the legend range to be shown.
4. Similarly, the legend can be split into gradients where the number of gradients can be more than two
and les than or equal to 255. The number of colors used to show the contour can be chosen by
parameter, ‘color’, which cannot be more than 255.
5. The default visibility of the legend bar is set to ON or OFF by the parameter, ‘visibility’.
6. The scientific notation specifies the the exponential form for scientific notation.
7. Adams PostProcessor displays zeros after the numbers in the legend, if the ‘trailing_zeros’ is set to
‘yes’. The number of zeros depends on the number of decimal points you selected for
‘decimal_places’.
Format:
contour_plot legend reset
legend_name = an exisitng contour_plot legend
Example:
contour_plot legend reset &
legend_name = contour_legend__1
contour_plot legend 7
contour_plot legend reset
Description:
Extended Definition:
This command resets the legend values based on the flexible bodies in the active view.
8 Adams View Commands
contour_plot legend reset
data_element 1
data_element attributes
data_element
data_element attributes
Allows the specification of attributes to be set on an individual data_elements or a group of data_elements.
Format:
data_element attributes
data_element_name = an existing var
visibility = on_off_with_toggle
color = an existing color
active = on_off_no_opinion
dependents_active = on_off_no_opinion
Example:
data_element attributes &
data_element_name = shaft_genstiff &
visibility = on &
color = blue &
active = on &
dependents_active = on
Description:
Extended Definition:
1. You can set the following attributes on a data_element.
VISIBILITY. You may set a data_element's visibility ON, OFF or TOGGLE the current setting.
When you set a data_element's visibility OFF, the data_element will not be drawn.
2 Adams View Commands
data_element attributes
When you set a data_element's visibility ON, you allow that data_element to be drawn.
COLOR. You may set the color of a data_element with this parameter.
If an entity does not have a GRAPHICS ATTRIBUTE setting, the value for that GRAPHIC
ATTRIBUTE may be inherited from another entity. INHERITANCE may be either TOP_DOWN
or BOTTOM_UP.
2. BOTTOM_UP and TOP_DOWN refer to the natural hierarchy of the Adams model. The hierarchy
is a tree structure with the model at the apex. Parts exist beneath the model, and markers exist beneath
the parts. If the icon size of the model is set to 0.1, and the default INHERITANCE is set to
TOP_DOWN, then all icons displayed within the model will be displayed at this size. However, if
the icon size of a model is set to 0.1, and then the default INHERITANCE is set to BOTTOM_UP,
then any icons set to a size other than the model's icon size will be displayed at their own size.
3. You may identify a data_element by typing its name or by picking it from the screen.
Since data_element do not have a geometric position, Adams View displays data_element icons at or
near the model origin. If the data_element icon is not visible on the screen, you must type the name.
You may also find it convenient to type the name even if the data_element icon is displayed.
You must separate multiple data_element names by commas.
If the data_element is visible in one of your views, you may identify it by picking on any of the
graphics associated with it.
You need not separate multiple data_element picks by commas.
4. The visibility parameter is used to control whether graphic entities, such as markers, joints, and parts,
are to be drawn in an Adams View viewport.The legal values for this parameter are: ON, OFF, and
TOGGLE. ON will make the desired entity visible. OFF will make the desired entity invisible.
TOGGLE will take the current state of an entities visibility and reverse it.
5. Adams View allows you to specify the following colors for modeling entities: BLACK, WHITE,
RED, GREEN, BLUE, CYAN, MAGENTA, YELLOW, and NO_COLOR
Specifying 'NO_COLOR' for a modeling entity, instructs Adams View to use the default color for
this entity, if there is no color present in its parent modeling entity.
Example 1:
.model -------------------------NO_COLOR
.part ---------------------- RED
.geometry(circle) ------- NO_COLOR
The circle will be RED.
Example 2:
.model -------------------------NO_COLOR
.part ---------------------- RED
.geometry(circle) ------- BLUE
If a parent modeling entity has a color previously specified, that color takes precedence. Adams View
will issue a warning message about color precedence. The circle will be RED.
Example 3:
.model -------------------------NO_COLOR
data_element 3
data_element copy
data_element copy
Allows you to create a replica DATA_ELEMENT within the same model.
Format:
data_element copy
data_element_name = an existing data_element
new_data_element_name = a new data_element
4 Adams View Commands
data_element copy
Example:
data_element copy &
data_element_name = string__1 &
new_ data_element_name = string__2
Description:
Extended Definition:
1. The replica DATA_ELEMENT will be identical to the original with the exception of the
DATA_ELEMENT name. DATA_ELEMENTs must have unique names relative to other
DATA_ELEMENTs in a given model. The replica will be completely independent of the original,
and may be modified without effecting the original.
2. Since data_element do not have a geometric position, Adams View displays data_element icons at or
near the model origin. If the data_element icon is not visible on the screen, you must type the name.
You may also find it convenient to type the name even if the data_element icon is displayed.
You must separate multiple data_element names by commas.
3. Normally, entity names are composed of alphabetic, numeric, or '_' (underscore) characters, and start
with an alphabetic or '_' character. They may be any length.
By enclosing the name in double quotes, you may use other printable characters, or start the name
with a numeral. If a name contains characters, or starts with a numeral, you must always quote the
name when entering it.
Note that you can specify the parentage of an entity (e.g. what part "owns" a marker or a geometry
element) when you CREATE it by changing the name. If you enter just the entity name, then the
default parent will be assigned by Adams View. If you type in the full name, then you may over ride
the default parent. In most cases, when creating an entity, Adams View will provide a default name.
The default name that Adams View provides will specify the parentage that it has assumed.
You may, or course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
Tips:
1. You may reverse this deletion at a later time with an UNDO command.
data_element 5
data_element create array general_array
2. If the data_element is visible in one of your views, you may identify it by picking on any of the
graphics associated with it.
3. You need not separate multiple data_element picks by commas.
Format:
data_element create array general_array
array_name = array_name
adams_id = integer
comments = string
size = integer
numbers = real
Example:
data_element create array general_array &
array_name = .model_1.array_1 &
adams_id = 1 &
size = 3 &
numbers = 2.1,3.4,5
Description:
Extended Definition:
1. Adams View will not allow you to have two arrays with the same full name, so you must provide a
unique name.
Normally, entity names are composed of alphabetic, numeric, or '_' (underscore) characters, and start
with an alphabetic or '_' character. They may be any length.
By enclosing the name in double quotes, you may use other printable characters, or start the name
with a numeral. If a name contains characters, or starts with a numeral, you must always quote the
name when entering it.
Note that you can specify the parentage of an entity (for example, what part "owns" a marker or a
geometry element) when you CREATE it by changing the name. If you enter just the entity name,
then the default parent will be assigned by Adams View. If you type in the full name, then you may
over ride the default parent. In most cases, when creating an entity, Adams View will provide a default
name. The default name that Adams View provides will specify the parentage that it has assumed.
You may, or course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
2. When you use the FILE ADAMS_DATA_SET WRITE command, Adams View writes an Adams
data file for your model. Adams requires that each modeling element be identified by a unique integer
identifier. If you use this parameter to specify a non-zero identifier, Adams View will use it in the
corresponding statement in the Adams data file.
You may also enter zero as an identifier, either explicitly or by default. The next time you write an
Adams file, Adams View will replace the zero with a unique, internally-generated identifier.
Adams View will permanently store this identifier with the element just as if you had entered it
yourself.
Normally, you would let all identifiers default to zero, and Adams View would generate the identifiers
for you. You are never required to enter a non-zero identifier. You only need to specify it if, for some
reason, you wish to control the Adams file output.
3. In cases where Adams calculates the SIZE differently from the SIZE that the user supplies, Adams
returns an error or warning message.
For the X_STATE_ARRAYs and Y_OUTPUT_ARRAYs, the corresponding systems modeling
element automatically determines the size of the array and checks it against the ARRAY command
SIZE parameter value (if given).
For the IC_ARRAY, the SIZE parameter is optional and Adams determines the actual size of the array
during parsing, as it counts the NUMBERS values. However, if you provide a value for SIZE , Adams
checks the count for consistency.
The SIZE argument, if used, should match the number of entries in the VARIABLE_NAME
parameter, the NUMBERS parameters, or the size needed for the associated systems element. Adams
View provides the SIZE parameter mainly for user convenience in model creation (it is not required).
For LINEAR_STATE_EQUATION arrays, the X_STATE_ARRAY size is the row dimension of the
data_element 7
data_element create array ic_array
Format:
data_element create array ic_array
array_name = array_name
adams_id = integer
comments = string
size = integer
numbers = real
Example:
data_element create array ic_array &
array_name = .model_1.array_1 &
adams_id = 1 &
size = 3 &
numbers = 2.1,3.4,5
Description:
Extended Definition:
1. Adams View will not allow you to have two arrays with the same full name, so you must provide a
unique name.
Normally, entity names are composed of alphabetic, numeric, or '_' (underscore) characters, and start
with an alphabetic or '_' character. They may be any length.
By enclosing the name in double quotes, you may use other printable characters, or start the name
with a numeral. If a name contains characters, or starts with a numeral, you must always quote the
name when entering it.
Note that you can specify the parentage of an entity (for example, what part "owns" a marker or a
geometry element) when you CREATE it by changing the name. If you enter just the entity name,
then the default parent will be assigned by Adams View. If you type in the full name, then you may
over ride the default parent. In most cases, when creating an entity, Adams View will provide a default
name. The default name that Adams View provides will specify the parentage that it has assumed.
You may, or course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
2. When you use the FILE ADAMS_DATA_SET WRITE command, Adams View writes an Adams
data file for your model. Adams requires that each modeling element be identified by a unique
integer identifier. If you use this parameter to specify a non-zero identifier, Adams View will use it
in the corresponding statement in the Adams data file.
You may also enter zero as an identifier, either explicitly or by default. The next time you write an
Adams file, Adams View will replace the zero with a unique, internally-generated identifier. Adams
View will permanently store this identifier with the element just as if you had entered it yourself.
Normally, you would let all identifiers default to zero, and Adams View would generate the identifiers
for you. You are never required to enter a non-zero identifier. You only need to specify it if, for some
reason, you wish to control the Adams file output.
3. In cases where Adams calculates the SIZE differently from the SIZE that the user supplies, Adams
returns an error or warning message.
For the X_STATE_ARRAYs and Y_OUTPUT_ARRAYs, the corresponding systems modeling
element automatically determines the size of the array and checks it against the ARRAY command
SIZE parameter value (if given).
data_element 9
data_element create array u_input_array
For the IC_ARRAY, the SIZE parameter is optional and Adams determines the actual size of the array
during parsing, as it counts the NUMBERS values. However, if you provide a value for SIZE , Adams
checks the count for consistency.
The SIZE argument, if used, should match the number of entries in the VARIABLE_NAME
parameter, the NUMBERS parameters, or the size needed for the associated systems element. Adams
View provides the SIZE parameter mainly for user convenience in model creation (it is not required).
For LINEAR_STATE_EQUATION arrays, the X_STATE_ARRAY size is the row dimension of the
A_STATE_MATRIX, and the Y_OUTPUT_ARRAY size is the row dimension of the
C_OUTPUT_MATRIX or the D_FEEDFORWARD_MATRIX. For TRANSFER_FUNCTION
arrays, the transformation from polynomial ratio type to canonical state space type internally
determines the X_STATE_ARRAY size; the Y_OUTPUT_ARRAY size is always 1. For
GENERAL_STATE_EQUATION arrays, the X_STATE_ARRAY size is the
STATE_EQUATION_COUNT as defined in the matching GENERAL_STATE_EQUATION
definition and Y_OUTPUT_ARRAY size is the OUTPUT_EQUATION_COUNT, as defined in
the same GENERAL_STATE_EQUATION definition.
Format:
data_element create array u_input_array
array_name = a new array
adams_id = adams_id
comments = string
size = integer
variable_name = an existing variable
Example:
data_element create array u_input_array &
array_name = array__2 &
adams_id = 2 &
comments = " a new u_input array" &
size = 1 &
variable_name = variable_1
10 Adams View Commands
data_element create array u_input_array
Description:
Extended Definition:
1. The U_INPUT_ARRAY command groups together a set of VARIABLE_NAMEs, normally to
define the inputs for a systems element, either LINEAR_STATE_EQUATION,
GENERAL_STATE_EQUATION , or TRANSFER_FUNCTION. When the you create a
U_INPUT_ARRAY, SIZE and VARIABLE_NAME are the only parameters available.
2. Adams View will not allow you to have two arrays with the same full name, so you must provide a
unique name.
Normally, entity names are composed of alphabetic, numeric, or '_' (underscore) characters, and start
with an alphabetic or '_' character. They may be any length.
By enclosing the name in double quotes, you may use other printable characters, or start the name
with a numeral. If a name contains characters, or starts with a numeral, you must always quote the
name when entering it.
Note that you can specify the parentage of an entity (for example, what part "owns" a marker or a
geometry element) when you CREATE it by changing the name. If you enter just the entity name,
then the default parent will be assigned by Adams View. If you type in the full name, then you may
over ride the default parent. In most cases, when creating an entity, Adams View will provide a default
name. The default name that Adams View provides will specify the parentage that it has assumed.
You may, or course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
3. When you use the FILE ADAMS_DATA_SET WRITE command, Adams View writes an Adams
data file for your model. Adams requires that each modeling element be identified by a unique integer
identifier. If you use this parameter to specify a non-zero identifier, Adams View will use it in the
corresponding statement in the Adams data file.
data_element 11
data_element create array u_input_array
You may also enter zero as an identifier, either explicitly or by default. The next time you write an
Adams file, Adams View will replace the zero with a unique, internally-generated identifier. Adams
View will permanently store this identifier with the element just as if you had entered it yourself.
Normally, you would let all identifiers default to zero, and Adams View would generate the identifiers
for you. You are never required to enter a non-zero identifier. You only need to specify it if, for some
reason, you wish to control the Adams file output.
4. When an Adams Solver data file (.adm) is read into Adams View, all comments associated with a
statement (from the end of the previous statement through the end of the current statement) are
stored with the object. Comments in the data file can be associated with model.
These comments must follow the title statement and be followed by the comment 'END OF
MODEL COMMENTS'. This string must be uppercase.
When an Adams Solver data file is written, the comments for an object are written before the
statement corresponding to the object.
5. For the X_STATE_ARRAYs and Y_OUTPUT_ARRAYs, the corresponding systems modeling
element automatically determines the size of the array and checks it against the ARRAY command
SIZE parameter value (if given).
For the IC_ARRAY, the SIZE parameter is optional and Adams determines the actual size of the array
during parsing, as it counts the NUMBERS values. However, if you provide a value for SIZE , Adams
checks the count for consistency.
The SIZE argument, if used, should match the number of entries in the VARIABLE_NAME
parameter, the NUMBERS parameters, or the size needed for the associated systems element. Adams
View provides the SIZE parameter mainly for user convenience in model creation (it is not required).
For LINEAR_STATE_EQUATION arrays, the X_STATE_ARRAY size is the row dimension of the
A_STATE_MATRIX, and the Y_OUTPUT_ARRAY size is the row dimension of the
C_OUTPUT_MATRIX or the D_FEEDFORWARD_MATRIX. For TRANSFER_FUNCTION
arrays, the transformation from polynomial ratio type to canonical state space type internally
determines the X_STATE_ARRAY size; the Y_OUTPUT_ARRAY size is always 1. For
GENERAL_STATE_EQUATION arrays, the X_STATE_ARRAY size is the
STATE_EQUATION_COUNT as defined in the matching GENERAL_STATE_EQUATION
definition and Y_OUTPUT_ARRAY size is the OUTPUT_EQUATION_COUNT, as defined in
the same GENERAL_STATE_EQUATION definition.
6. You enter variable names as input parameters for array elements (U_INPUT_ARRAY), plant input
and output definitions, and in function expressions. You may identify a variable by typing its name
or by picking it from the screen.
Since variable do not have a geometric position, Adams View displays variable icons at or near the
model origin. If the variable icon is not visible on the screen, you must type the name. You may also
find it convenient to type the name even if the variable icon is displayed.
If you created the variable by reading an Adams data set, the variable name is the letters VAR followed
by the Adams data set variable ID number. The name of Adams VARIABLE/101 is VAR101, for
example. If you created the variable during preprocessing, you gave it a name at that time.
12 Adams View Commands
data_element create array x_state_array
If a variable is owned by the default model, you may identify it by entering its name only. If it is not,
you must enter its full name. To identify a variable under a different model, for instance, you may
need to enter the model name as well. For example, you may specify variable 'fluid_volume' from
model 'hydro' by entering ".hydro.fluid_volume'". If you type a "?", Adams View will list the variable
available by default.
You must separate multiple variable names by commas.
Tips:
1. If the variable is visible in one of your views, you may identify it by picking on any of the graphics
associated with it.
2. You need not separate multiple variable picks by commas.
Format:
data_element create array x_state_array
array_name = a new array
adams_id = adams_id
comments = string
size = integer
Example:
data_element create array x_state_array &
array_name = array__1 &
adams_id = 1 &
comments = "a new x-state array" &
size = 4
Description:
Extended Definition:
1. An X_STATE_ARRAY defines a list of state variables (X) associated with system modeling elements
such as GSE, LSE, and TFSISO. To use this array, you must reference the array name as the state
variable array in a system element definition. You can use each X_STATE_ARRAY with only one
systems element in your model. When you define an X_STATE_ARRAY, the only other parameter
is SIZE. When you do not specify SIZE, the associated systems element automatically sets the size.
2. Adams View will not allow you to have two arrays with the same full name, so you must provide a
unique name.
Normally, entity names are composed of alphabetic, numeric, or '_' (underscore) characters, and start
with an alphabetic or '_' character. They may be any length.
By enclosing the name in double quotes, you may use other printable characters, or start the name
with a numeral. If a name contains characters, or starts with a numeral, you must always quote the
name when entering it.
Note that you can specify the parentage of an entity (for example, what part "owns" a marker or a
geometry element) when you CREATE it by changing the name. If you enter just the entity name,
then the default parent will be assigned by Adams View. If you type in the full name, then you may
over ride the default parent. In most cases, when creating an entity, Adams View will provide a default
name. The default name that Adams View provides will specify the parentage that it has assumed.
You may, or course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
3. When you use the FILE ADAMS_DATA_SET WRITE command, Adams View
writes an Adams data file for your model. Adams requires that each modeling element be identified
by a unique integer identifier. If you use this parameter to specify a non-zero identifier, Adams View
will use it in the corresponding statement in the Adams data file.
You may also enter zero as an identifier, either explicitly or by default. The next time you write an
Adams file, Adams View will replace the zero with a unique, internally-generated identifier. Adams
View will permanently store this identifier with the element just as if you had entered it yourself.
Normally, you would let all identifiers default to zero, and Adams View would generate the identifiers
for you. You are never required to enter a non-zero identifier. You only need to specify it if, for some
reason, you wish to control the Adams file output.
14 Adams View Commands
data_element create array y_output_array
4. When an Adams Solver data file (.adm) is read into Adams View, all comments associated with a
statement (from the end of the previous statement through the end of the current statement) are
stored with the object. Comments in the data file can be associated with model.
These comments must follow the title statement and be followed by the comment 'END OF
MODEL COMMENTS'. This string must be uppercase.
When an Adams Solver data file is written, the comments for an object are written before the
statement corresponding to the object.
5. For the X_STATE_ARRAYs and Y_OUTPUT_ARRAYs, the corresponding systems modeling
element automatically determines the size of the array and checks it against the ARRAY command
SIZE parameter value (if given).
For the IC_ARRAY, the SIZE parameter is optional and Adams determines the actual size of the array
during parsing, as it counts the NUMBERS values. However, if you provide a value for SIZE, Adams
checks the count for consistency.
The SIZE argument, if used, should match the number of entries in the VARIABLE_NAME
parameter, the NUMBERS parameters, or the size needed for the associated systems element. Adams
View provides the SIZE parameter mainly for user convenience in model creation (it is not required).
For LINEAR_STATE_EQUATION arrays, the X_STATE_ARRAY size is the row dimension of the
A_STATE_MATRIX, and the Y_OUTPUT_ARRAY size is the row dimension of the
C_OUTPUT_MATRIX or the D_FEEDFORWARD_MATRIX. For TRANSFER_FUNCTION
arrays, the transformation from polynomial ratio type to canonical state space type internally
determines the X_STATE_ARRAY size; the Y_OUTPUT_ARRAY size is always 1. For
GENERAL_STATE_EQUATION arrays, the X_STATE_ARRAY size is the
STATE_EQUATION_COUNT as defined in the matching GENERAL_STATE_EQUATION
definition and Y_OUTPUT_ARRAY size is the OUTPUT_EQUATION_COUNT, as defined in
the same GENERAL_STATE_EQUATION definition.
Format:
data_element create array y_output_array
array_name = a new array
adams_id = adams_id
comments = string
size = integer
data_element 15
data_element create array y_output_array
Example:
data_element create array y_output_array &
array_name = array__2 &
adams_id = 2 &
comments = "a new y_output_array" &
size = 1
Description:
Extended Definition:
1. A Y_OUTPUT_ARRAY specifies the output array for a systems element, either a
LINEAR_STATE_EQUATION, GENERAL_STATE_EQUATION, or
TRANSFER_FUNCTION. To use these arrays, the user must reference the array name as the output
array in the system element definition in the model. When you create a Y_OUTPUT_ARRAY, SIZE
is the only other parameter available. You can use each Y_OUTPUT_ARRAY with only a single
systems element. The SIZE value, if supplied, must be consistent with the associated systems element.
When you do not specify SIZE , the associated systems element automatically sets it.
2. Adams View will not allow you to have two arrays with the same full name, so you must provide a
unique name.
Normally, entity names are composed of alphabetic, numeric, or '_' (underscore) characters, and start
with an alphabetic or '_' character. They may be any length.
By enclosing the name in double quotes, you may use other printable characters, or start the name
with a numeral. If a name contains characters, or starts with a numeral, you must always quote the
name when entering it.
Note that you can specify the parentage of an entity (for example, what part "owns" a marker or a
geometry element) when you CREATE it by changing the name. If you enter just the entity name,
then the default parent will be assigned by Adams View. If you type in the full name, then you may
over ride the default parent. In most cases, when creating an entity, Adams View will provide a default
name. The default name that Adams View provides will specify the parentage that it has assumed.
You may, or course, delete this name and use your own. The form of a full name is:
16 Adams View Commands
data_element create curve
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
3. When you use the FILE ADAMS_DATA_SET WRITE command, Adams View writes an Adams
data file for your model. Adams requires that each modeling element be identified by a unique
integer identifier. If you use this parameter to specify a non-zero identifier, Adams View will use it in
the corresponding statement in the Adams data file.
You may also enter zero as an identifier, either explicitly or by default. The next time you write an
Adams file, Adams View will replace the zero with a unique, internally-generated identifier. Adams
View will permanently store this identifier with the element just as if you had entered it yourself.
Normally, you would let all identifiers default to zero, and Adams View would generate the identifiers
for you. You are never required to enter a non-zero identifier. You only need to specify it if, for some
reason, you wish to control the Adams file output.
4. When an Adams Solver data file (.adm) is read into Adams View, all comments associated with a
statement (from the end of the previous statement through the end of the current statement) are
stored with the object. Comments in the data file can be associated with model.
These comments must follow the title statement and be followed by the comment 'END OF
MODEL COMMENTS'. This string must be uppercase.
When an Adams Solver data file is written, the comments for an object are written before the
statement corresponding to the object.
5. For the X_STATE_ARRAYs and Y_OUTPUT_ARRAYs, the corresponding systems modeling
element automatically determines the size of the array and checks it against the ARRAY command
SIZE parameter value (if given).
For the IC_ARRAY, the SIZE parameter is optional and Adams determines the actual size of the array
during parsing, as it counts the NUMBERS values. However, if you provide a value for SIZE, Adams
checks the count for consistency.
The SIZE argument, if used, should match the number of entries in the VARIABLE_NAME
parameter, the NUMBERS parameters, or the size needed for the associated systems element. Adams
View provides the SIZE parameter mainly for user convenience in model creation (it is not required).
For LINEAR_STATE_EQUATION arrays, the X_STATE_ARRAY size is the row dimension of the
A_STATE_MATRIX, and the Y_OUTPUT_ARRAY size is the row dimension of the
C_OUTPUT_MATRIX or the D_FEEDFORWARD_MATRIX. For TRANSFER_FUNCTION
arrays, the transformation from polynomial ratio type to canonical state space type internally
determines the X_STATE_ARRAY size; the Y_OUTPUT_ARRAY size is always 1. For
GENERAL_STATE_EQUATION arrays, the X_STATE_ARRAY size is the
STATE_EQUATION_COUNT as defined in the matching GENERAL_STATE_EQUATION
definition and Y_OUTPUT_ARRAY size is the OUTPUT_EQUATION_COUNT, as defined in
the same GENERAL_STATE_EQUATION definition.
Format:
data_element create curve
curve_name = a new acurve
adams_id = adams_id
comments = string
closed = boolean
matrix_name = an existing matrix
fit_type = fit_type
segment_count = integer
user_function = real
minimum_parameter = real
maximum_parameter = real
Example:
data_element create curve &
curve_name = curve__1 &
adams_id = 1 &
comments = "a new curve" &
closed = yes &
matrix_name = biele_selnod &
fit_type = curve_points &
segment_count = 10
Description:
Extended Definition:
1. A CURVE element defines a three-dimensional parametric curve that may be referenced by
POINT_CURVE or CURVE_CURVE constraints, a geometry element called a BSPLINE, as well
as by FUNCTION expressions.
The x, y, and z coordinates of a point on a parametric curve are functions of an independent
parameter, u. As u varies from its minimum value to its maximum value, the functions x(u), y(u),
and z(u) sweep out points on the curve. A simple example of a parametric curve is the helix defined
by the following equations:
x = cos(u)
y = sin(u)
z = u
2. Adams View allows you to create curves in three ways: by entering control points for a uniform cubic
B-spline (FIT_TYPE=CONTROL_POINTS), by entering curve points that Adams will fit a curve
to (FIT_TYPE=CURVE_POINTS), or by writing a CURSUB evaluation subroutine to compute the
curve coordinates and derivatives.
3. A uniform B-spline is a piecewise cubic polynomial spline used in many CAD (computer-aided-
design) applications. A uniform B-spline is defined by control points which form a polygon in space.
The curve starts at the first control point and ends at the last. In between, it is attracted to, but does
not necessarily hit the intermediate control points. Adams parameterizes a B-spline starting at -1 and
ending at +1.
Generally, you will not create control points directly, but will construct the curve in another
application, such as a CAD program, and then transfer the control points to Adams.
4. A more direct way to define the curve is to supply curve points.
Adams will compute a uniform B-spline that will fit the curve points.
data_element 19
data_element create curve
Again, Adams parameterizes the curve from -1 to +1. If you specify the number of spline segments
(SEGMENT_COUNT) as three less than the number of curve points, the computed curve will
exactly match the curve points. If you specify fewer segments, Adams will use a least-squares fit to
compute the closest fit to the points. In general, fewer segments give a smoother curve, but do not
come as close to the data points.
5. In order to use a different type of curve, or to model an analytically-defined curve such as the helix,
you may write a CURSUB evaluation subroutine. When providing a CURSUB, you may also specify
MINPAR and MAXPAR to define the limits of the curve. These default to -1 and +1, respectively.
A curve can be open or closed. A CLOSED curve meets at the ends, connecting the curve at minimum
and maximum parameter values. Note for a closed curve defined by curve points, you can specify a
maximum of 5 segments less that the number of curve points. Note that because three segments less
than the number of curve points are required for an exact fit, a closed curve will not exactly fit the
curve points.
Adams will automatically move a POINT_CURVE or CURVE_CURVE contact point across the
closure of a CLOSED curve, if needed. For instance, you may model a cam profile as a CLOSED
curve, and Adams will allow the follower to move across the closure as the cam rotates.
Adams will stop the simulation if a POINT_CURVE or CURVE_CURVE contact point moves off
the end of curve. You should ensure that the curve defined includes the expected range of contact.
6. Normally, entity names are composed of alphabetic, numeric, or '_' (underscore) characters, and start
with an alphabetic or '_' character. They may be any length.
By enclosing the name in double quotes, you may use other printable characters, or start the name
with a numeral. If a name contains characters, or starts with a numeral, you must always quote the
name when entering it.
Note that you can specify the parentage of an entity (for example, what part "owns" a marker or a
geometry element) when you CREATE it by changing the name. If you enter just the entity name,
then the default parent will be assigned by Adams View. If you type in the full name, then you may
over ride the default parent. In most cases, when creating an entity, Adams View will provide a default
name. The default name that Adams View provides will specify the parentage that it has assumed.
You may, or course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
7. When you use the FILE ADAMS_DATA_SET WRITE command, Adams View writes an Adams
data file for your model. Adams requires that each modeling element be identified by a unique integer
identifier. If you use this parameter to specify a non-zero identifier, Adams View will use it in the
corresponding statement in the Adams data file.
You may also enter zero as an identifier, either explicitly or by default. The next time you write an
Adams file, Adams View will replace the zero with a unique, internally-generated identifier.
Adams View will permanently store this identifier with the element just as if you had entered it
yourself.
20 Adams View Commands
data_element create curve
Normally, you would let all identifiers default to zero, and Adams View would generate the identifiers
for you. You are never required to enter a non-zero identifier. You only need to specify it if, for some
reason, you wish to control the Adams file output.
8. When an Adams Solver data file (.adm) is read into Adams View, all comments associated with a
statement (from the end of the previous statement through the end of the current statement) are
stored with the object. Comments in the data file can be associated with model.
These comments must follow the title statement and be followed by the comment 'END OF
MODEL COMMENTS'. This string must be uppercase.
When an Adams Solver data file is written, the comments for an object are written before the
statement corresponding to the object.
9. If you set the parameter CLOSED to YES and you use the CURVE_POINTS FIT_TYPE,
AdamsAdams will attempt to compute a curve that meets at the ends and has continuous first and
second derivatives across the closure. If you set CLOSED to YES and use the CONTROL_POINTS
FIT_TYPE or a user-defined FUNCTION is specified, you must ensure that the defined curve meets
at the ends and has continuous first and second derivatives across the closure. During a simulation,
Adams will move a POINT_CURVE or CURVE_CURVE contact point across the closure, if
necessary. Any discontinuity could cause integration failure.
By setting CLOSED to NO, you specify that the curve does not meet at the ends. Adams will not
allow a POINT_CURVE or CURVE_CURVE contact point to move beyond the end of the curve.
10. If CONTROL_POINTS is specified, the matrix contains the x, y, and z coordinates of control
points for a uniform B-spline. (Adams uses a uniform knot vector with quadruple multiplicity at both
ends, ensuring that the curve will pass through starting and ending points.)
If CURVE_POINTS is specified, the matrix contains the x, y, and z coordinates of curve points
which the curve will pass through or near.
The matrix should have a row for each point and three columns containing the x, y, and z, coordinates
of the points. You must supply at least four control points or curve points.
You may identify a matrix by typing its name or by picking it from the screen.
Since a matrix does not have a geometric position, Adams View displays matrix icons at or near the
model origin. If the convenient to type the name even if the matrix icon is displayed.
If you created the matrix by reading an Adams data set or graphics file, the matrix name is the letters
MAT followed by the Adams data set matrix ID number. The name of Adams MATRIX/101 is
MAT101, for example. If you created the matrix during preprocessing, you gave it a name at that
time.
If a matrix is owned by the default model, you may identify it by entering its name only. If it is not,
you must enter its full name.
To identify a matrix under a different model, for instance, you may need to enter the model name as
well. For example, you may specify matrix 'control_points' from model 'road_surface' by entering
".road_surface.control_points'". If you type a "?", Adams View will list the matrix available by
default.
You must separate multiple matrix names by commas.
data_element 21
data_element create matrix file
11. If FIT_TYPE=CONTROL_POINTS then the MATRIX contains control points to will not
necessarily pass through the points). Specifically, the matrix contains the x, y, and z coordinates of
control points for a uniform B-spline. (Adams uses a uniform knot vector with quadruple multiplicity
at both ends, ensuring that the curve will pass through starting and ending points.)
If FIT_TYPE=CURVE_POINTS then the MATRIX contains data points on the curve and the curve
will be fit directly through the points (depending on the value of the SEGMENT_COUNT
parameter). Specifically, the matrix contains the x, y, and z coordinates of curve points which the
curve will pass through or near. The matrix should have a row for each point and three columns
containing the x, y, and z, coordinates of the points. You must supply at least four control points or
curve points.
12. Adams will default the segment_count to three segments less than the number of curve points, which
gives an exact fit to the curve points. Specifying fewer segments will result in a smoother curve, but
the curve will not pass exactly through the curve points.
More specifically, if you specify the SEGMENT_COUNT such that the spline segments is three less
than the number of curve points, the computed curve will exactly match the curve points. If you
specify fewer segments, Adams will use a least-squares fit to compute the closest fit to the points. In
general, fewer segments give a smoother curve, but do not come as close to the data points.
13. Adams uses the minimum_parameter value when drawing a curve graphic. For curves defined by
control points or curve points, the minimum parameter value is always -1.0.
Adams uses the maximum_parameter value when drawing a curve graphic. For curves defined by
control points or curve points, the maximum parameter value is always 1.0.
Cautions:
1. Adams View will not allow you to have two curves with the same full name, so you must provide a
unique name.
Tips:
1. If the matrix is visible in one of your views, you may identify it by picking on any of the graphics
associated with it.
2. You need not separate multiple matrix picks by commas.
3. See the Adams User's Manual for information on writing user-written subroutines.
in the FSAVE format of the MATRIXx software package. If the first record begins with the characters
MATSAVE, then the file is assumed to be in the MATSAVE format of the MATRIXx software package.
No other kinds of files are currently supported. However, the ADAMSMAT option is fairly general since the
format for reading in the data is specified within the file. See the section in the Adams Reference Manual on
the MATRIX statement for a description of the file format.
Format:
data_element create matrix file
matrix_name = new matrix
adams_id = integer
comments = string
file_name = string
name_of_matrix_in_file = string
units = string
Example:
data_element create matrix file &
matrix_name = matrix_read_from_file &
adams_id = 12 &
comments = ”example of a matrix read from a file” &
file_name = /home/staff/demo/prob.dat &
name_of_matrix_in_file = “trf” &
units = string
In the above command, the prob.dat is in the directory, /home/staff/demo, and contains the following data:
1 2 3 4 5 6 7 8
12345678901234567890123456789012345678901234567890123456789012345678901234567890
ADAMSMAT Floating platform example
3
TRF VALK STL
TRF FULL RORDER 4 2 8 ( 8F8.5 )
1.36400 0.00000 0.00000 0.00000 -3.54600 4.00800 0.00000 0.79900
VALK FULL CORDER 3 3 9 ( 3F6.3 )
1.970 0.000-3.440
0.000 4.510 6.020
-3.440 6.020 2.110
STL SPARSE 6 1 4 ( 2( 2I5, E14.6 ) )
1 1 0.169805E+02 2 1 -0.230745E+02
4 1 0.016390E+00 5 1 0.011271E+00
The second and third records are read with format I5 and 4(A8,10X), respectively. Then, the first record of
each of the blocks corresponding to the three matrices TRF, VALK, and STL is read with the format 3A8,
3I5, A41. Finally, as can be seen in the copy of the file shown above between the two strings of 80 characters
that mark the columns (which, of course, are not part of the file), the single record of data for the matrix TRF
data_element 23
data_element create matrix file
is read with the format 8F8.5; the three records for VALK are read with 3F6.3; and the two records for STL
with 2(2I5,E14.6).
Description:
Extended Definition:
1. You may use this name later to refer to this matrix. Adams View will not allow you to have two
matrices with the same full name, so you must provide a unique name.
Normally, entity names are composed of alphabetic, numeric, or '_' (underscore) characters, and start
with an alphabetic or '_' character. They may be any length.
By enclosing the name in double quotes, you may use other printable characters, or start the name
with a numeral. If a name contains characters, or starts with a numeral, you must always quote the
name when entering it.
Note that you can specify the parentage of an entity (for example, what part "owns" a marker or a
geometry element) when you CREATE it by changing the name. If you enter just the entity name,
then the default parent will be assigned by Adams View. If you type in the full name, then you may
over ride the default parent. In most cases, when creating an entity, Adams View will provide a default
name. The default name that AdamsAdams View provides will specify the parentage that it has
assumed.
You may, or course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
2. When you use the FILE ADAMS_DATA_SET WRITE command, Adams View writes an Adams
data file for your model. Adams requires that each modeling element be identified by a unique integer
identifier. If you use this parameter to specify a non-zero identifier, Adams View will use it in the
corresponding statement in the Adams data file.
You may also enter zero as an identifier, either explicitly or by default. The next time you write an
Adams file, Adams View will replace the zero with a unique, internally-generated identifier.
24 Adams View Commands
data_element create matrix full
Adams View will permanently store this identifier with the element just as if you had entered it
yourself.
Normally, you would let all identifiers default to zero, and Adams View would generate the identifiers
for you. You are never required to enter a non-zero identifier. You only need to specify it if, for some
reason, you wish to control the Adams file output.
3. The FILE argument may be used to read large matrices into Adams. There is no limit on the size of
an array read from a file.
The proper extension is the default but can be overridden by simply supplying a different extension.
You do not need to enclose the file name in quotes if it only contains alpha-numeric characters and
starts with a letter. If you want to include other characters, such as a '.' for an extension or '/' or '[]'
for directory paths, you must enclose the name in quotes.
The first record in the file contains an 80 character header of which the first seven or eight characters
are meaningful. If the first record begins with the characters ADAMSMAT, then the file is assumed
to be in a format used by Adams. If the first record begins with the characters MATRIXx, then the
file is assumed to be in the FSAVE format of the MATRIXx software package. If the first record
begins with the characters MATSAVE, then the file is assumed to be in the MATSAVE format of the
MATRIXx software package.
Note that the three specifications for the format of the data file are case sensitive. Capital letters and
a lower case x must be used to make a selection.
No other kinds of files are currently supported. However, the ADAMSMAT option is fairly general
since the format for reading in the data is specified within the file. See the section in the Adams
Reference Manual on the MATRIX statement for a description of the file format.
4. All three kinds of files, ADAMSMAT, MATRIXx, and MATSAVE, can contain data for more than
one matrix. The NAME_OF_MATRIX_IN_FILE parameter is used to select a particular matrix
from a file even if the file contains only one MATRIX. You must create additional MATRIX elements
in your Adams View model if multiple matrices are to be read from the same file.
Format:
data_element create matrix full
matrix_name = new matrix
adams_id = integer
comments = string
data_element 25
data_element create matrix full
Example:
If you want to enter the following matrix of values in full format:
Description:
Extended Definition:
1. A data element matrix is a general M x N array that can be a rectangular or square two-dimensional
matrix or a row or column matrix. You can enter the data in:
Full format - You list all the M x N values or specify the results of a simulation (result set
components).
Sparse format - You list the row position, column position, and value for only nonzero entry values.
External file - Enter a file containing a matrix.
If one-third or more of the entries in a matrix are nonzero, we recommend that you use full format
since it takes less time to create. If the matrix is mostly empty and entering each nonzero entry's row
position, column position, and value takes less time than entering all of the values, you should use the
sparse format.
2. Adams View will not allow you to have two matrices with the same full name, so you must provide a
unique name.
Normally, entity names are composed of alphabetic, numeric, or '_' (underscore) characters, and start
with an alphabetic or '_' character. They may be any length.
By enclosing the name in double quotes, you may use other printable characters, or start the name
with a numeral. If a name contains characters, or starts with a numeral, you must always quote the
name when entering it.
Note that you can specify the parentage of an entity (for example, what part "owns" a marker or a
geometry element) when you CREATE it by changing the name. If you enter just the entity name,
then the default parent will be assigned by Adams View. If you type in the full name, then you may
over ride the default parent. In most cases, when creating an entity, Adams View will provide a
default name. The default name that Adams View provides will specify the parentage that it has
assumed.
You may, or course, delete this name and use your own. The form of a full name is:
data_element 27
data_element create matrix sparse
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
3. The MATRIX to be defined is FULL therefore, the VALUES parameter specifies all of the M times
N entries in the matrix. The sequence of the values depends on the value of the INPUT_ORDER
parameter. If BY_ROW is specified, you enter the values row-by-row.
If BY_COLUMN is specified, you enter the values column-by-column.
4. A result set is a basic set of state variable data that Adams Solver calculates during a simulation. Adams
Solver outputs the data at each simulation output step. A component of a result set is a time series of
a particular quantity (for example, the x displacement of a part or the y torque in a joint).
5. The input_order parameter can take two values:
a. BY_ROW indicates the values are listed by row in the VALUES parameter (that is, starting with
the first row and proceeding to the second, and so on until the entire matrix is completely
defined).
b. BY_COLUMN indicates the values are listed by column (that is, starting with the first column
and proceeding to the second, and so on).
Default value is BY_COLUMN
6. Since this object can be used in a variety of contexts, Adams View can not determine what type of
units it should have. By telling Adams View what the unit type for this object is Adams View can
perform the proper conversions on the values you specify.
Format:
data_element create matrix sparse
matrix_name = New Sparse matrix
adams_id = integer
comments = String
row_index = integer
column_index = integer
28 Adams View Commands
data_element create matrix sparse
Example:
data_element create matrix sparse &
matrix_name = MATRIX__1 &
row_index = 2,3 &
column_index = 1,1 &
values = 3.456,4.567
Description:
Extended Definition:
1. Adams View will not allow you to have two matrices with the same full name, so you must provide a
unique name.
Normally, entity names are composed of alphabetic, numeric, or '_' (underscore) characters, and start
with an alphabetic or '_' character. They may be any length.
data_element 29
data_element create plant input
By enclosing the name in double quotes, you may use other printable characters, or start the name
with a numeral. If a name contains characters, or starts with a numeral, you must always quote the
name when entering it.
Note that you can specify the parentage of an entity (for example, what part "owns" a marker or a
geometry element) when you CREATE it by changing the name. If you enter just the entity name,
then the default parent will be assigned by Adams View. If you type in the full name, then you may
over ride the default parent. In most cases, when creating an entity, Adams View will provide a
default name. The default name that Adams View provides will specify the parentage that it has
assumed. You may, or course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
2. When an Adams Solver data file (.adm) is read into Adams View, all comments associated with a
statement (from the end of the previous statement through the end of the current statement) are
stored with the object. Comments in the data file can be associated with model. These comments
must follow the title statement and be followed by the comment 'END OF MODEL
COMMENTS'. This string must be uppercase.
When an Adams Solver data file is written, the comments for an object are written before the
statement corresponding to the object.
3. For each non-zero value in the SPARSE MATRIX each entry for this parameter defines to the
position in the matrix of the corresponding entry in the VALUES parameter. For example, the third
value entered for the ROW_INDEX parameter defines what matrix row the third value entered for
the VALUES parameter is located on.
4. For each non-zero value in the SPARSE MATRIX each entry for this parameter defines to the
position in the matrix of the corresponding entry in the VALUES parameter. For example, the forth
value entered for the COLUMN_INDEX parameter defines what matrix column the forth value
entered for the VALUES parameter is located on.
5. The MATRIX to be defined is SPARSE therefore, the VALUES parameter specifies only the entries
that may be non zero. That is, all entries in the M by N array not assigned values by the
ROW_INDEX, COLUMN_INDEX, and VALUES parameters are assumed to be equal to zero in
ADAMS. Therefore, the kth entry in the VALUES parameter is assigned to the row identified by the
kth entry in ROW_INDEX and to the column identified by the kth entry in COLUMN_INDEX
for k=1,2,...,n.
Format:
data_element create plant input
plant_input_name = a new pinput
adams_id = adams_id
comments = string
variable_name = an existing variable
Example:
data_element create plant input &
plant_input_name = pinput__1 &
plant_input_name = pinput__1 &
adams_id = 1 &
comments = " a new plant input" &
variable_name = variable_1
Description:
:
Extended Definition:
1. A PLANT INPUT element, along with a PLANT OUTPUT element, is required by the Adams
LINEAR/STATEMAT analysis.
\
Note: This analysis can be requested in Adams View through the use of the
ADAMS_COMMAND_FILE parameter with the analysis SUBMIT command. Use the
"ACF" button on the text editor and select the GENERATE_STATE_MATRIX option. You
will finally use a panel to select the PLANT INPUTs, PLANT OUTPUTs, and the format that
the state matrices should be generated in
data_element 31
data_element create plant input
A PLANT INPUT defines a set of inputs to the mechanical system and PLANT OUTPUT defines
the set of measured outputs from the system. The LINEAR/STATEMAT analysis linearizes the
system equations to the following form:
{x}= [A] {x} + [B] {u}
{y}= [C] {x} + [D] {u}
where x is the linearized system state, u is the system inputs defined by the PLANT INPUT element,
and y is the system outputs defined by the PLANT OUTPUT element. This form is commonly
referred to as the state space form of the system equations in control theory. Adams outputs the A,
B, C, and D matrices for use in a control-system design or any other linear system analysis software.
When you run an analysis type other than LINEAR/STATEMAT , the PLANT INPUT element acts
only as a pointer to the list of the specified VARIABLEs.
2. Both FUNCTION expressions and user-written subroutines can access the PLANT INPUT
information. FUNCTION expressions access the values by using the internal Adams function
PINVAL(i1 ,i2) where i1 specifies the PLANT INPUT name, and i2 specifies the i2-th VARIABLE
in the PLANT INPUT statement list. Note that i2 is not the name of the VARIABLE.
User-written subroutines call the subroutine SYSFNC to access single elements of the PLANT
INPUT list and call the subroutine SYSARY to access all values for a PLANT INPUT.
3. Normally, entity names are composed of alphabetic, numeric, or '_' (underscore) characters, and start
with an alphabetic or '_' character. They may be any length.
By enclosing the name in double quotes, you may use other printable characters, or start the name
with a numeral. If a name contains characters, or starts with a numeral, you must always quote the
name when entering it.
Note that you can specify the parentage of an entity (for example, what part "owns" a marker or a
geometry element) when you CREATE it by changing the name. If you enter just the entity name,
then the default parent will be assigned by Adams View. If you type in the full name, then you may
over ride the default parent. In most cases, when creating an entity, Adams View will provide a default
name. The default name that Adams View provides will specify the parentage that it has assumed.
You may, or course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
4. When you use the FILE ADAMS_DATA_SET WRITE command, Adams View writes an Adams
data file for your model. Adams requires that each modeling element be identified by a unique integer
identifier. If you use this parameter to specify a non-zero identifier, Adams View will use it in the
corresponding statement in the Adams data file.
You may also enter zero as an identifier, either explicitly or by default. The next time you write an
Adams file, Adams View will replace the zero with a unique, internally-generated identifier. Adams
View will permanently store this identifier with the element just as if you had entered it yourself.
Normally, you would let all identifiers default to zero, and Adams View would generate the identifiers
for you. You are never required to enter a non-zero identifier. You only need to specify it if, for some
reason, you wish to control the Adams file output.
32 Adams View Commands
data_element create plant output
5. When an Adams Solver data file (.adm) is read into Adams View, all comments associated with a
statement (from the end of the previous statement through the end of the current statement) are
stored with the object. Comments in the data file can be associated with model.
These comments must follow the title statement and be followed by the comment 'END OF
MODEL COMMENTS'. This string must be uppercase.
When an Adams Solver data file is written, the comments for an object are written before the
statement corresponding to the object.
6. You enter variable names as input parameters for array elements (U_INPUT_ARRAY), plant input
and output definitions, and in function expressions
You may identify a variable by typing its name or by picking it from the screen.
Since variable do not have a geometric position, Adams View displays variable icons at or near the
model origin. If the variable icon is not visible on the screen, you must type the name. You may also
find it convenient to type the name even if the variable icon is displayed.
If you created the variable by reading an Adams data set, the variable name is the letters VAR followed
by the Adams data set variable ID number. The name of Adams VARIABLE/101 is VAR101, for
example. If you created the variable during preprocessing, you gave it a name at that time.
If a variable is owned by the default model, you may identify it by entering its name only. If it is not,
you must enter its full name.
To identify a variable under a different model, for instance, you may need to enter the model name
as well. For example, you may specify variable 'fluid_volume' from model 'hydro' by entering
".hydro.fluid_volume'". If you type a "?", Adams View will list the variable available by default.
You must separate multiple variable names by commas.
Cautions:
1. Adams View will not allow you to have two plant_inputs with the same full name, so you must
provide a unique name.
Tips:
1. If the variable is visible in one of your views, you may identify it by picking on any of the graphics
associated with it.
2. You need not separate multiple variable picks by commas.
Format:
data_element create plant output
plant_output_name = a new poutput
adams_id = adams_id
comments = string
variable_name = an existing variable
Example:
data_element create plant output &
plant_output_name = poutput__1 &
adams_id = 1 &
comments = "a new plant output element" &
variable_name = variable_1
Description:
:
Extended Definition:
1. A PLANT OUTPUT element, along with a PLANT INPUT element, is required by the Adams
LINEAR/STATEMAT analysis.
Note: This analysis can be requested in Adams View through the use of the
ADAMS_COMMAND_FILE parameter with the analysis SUBMIT command. Use the
"ACF" button on the text editor and select the GENERATE_STATE_MATRIX option. You
will finally use a panel to select the PLANT INPUTs, PLANT OUTPUTs, and the format that
the state matrices should be generated in
34 Adams View Commands
data_element create plant output
PLANT OUTPUT defines the set of measured outputs from the mechanical system and PLANT
INPUT defines a set of inputs to the mechanical system. The LINEAR command linearizes the
system equations to the following form:
{x}= [A] {x} + [B] {u}
{y}= [C] {x} + [D] {u}
where x is the linearized system state (X_STATE_ARRAY), u is the system inputs defined by the
PLANT INPUT element (U_INPUT_ARRAY), and y is the system outputs defined by the PLANT
OUTPUT element (Y_OUTPUT_ARRAY). This form is commonly referred to as the state space
form of the system equations in control theory. Adams outputs the A, B, C, and D matrices (i.e.
A_STATE_MATRIX, B_INPUT_MATRIX, C_OUTPUT_MATRIX, and
D_FEEDFORWARD_MATRIX) for use in a control-system design or any other linear system
analysis software.
When the user runs an analysis type other than LINEAR , the PLANT OUTPUT element acts only
as a pointer to the list of VARIABLE specified.
2. Both FUNCTION expressions and user-written subroutines can access the PLANT OUTPUT
element. FUNCTION expressions access the values by using the internal Adams function
POUVAL(i1 ,i2) where i1 specifies the PLANT OUTPUT name , and i2 specifies the i2-th
VARIABLE entry in the PLANT INPUT parameter list. Note that i2 is not the name of the
VARIABLE.
User-written subroutines access single elements of the PLANT OUTPUT list and call the subroutine
SYSFNC to access all values for a PLANT OUTPUT by calling the subroutine SYSARY.
3. Normally, entity names are composed of alphabetic, numeric, or '_' (underscore) characters, and start
with an alphabetic or '_' character. They may be any length.
By enclosing the name in double quotes, you may use other printable characters, or start the name
with a numeral. If a name contains characters, or starts with a numeral, you must always quote the
name when entering it.
Note that you can specify the parentage of an entity (for example, what part "owns" a marker or a
geometry element) when you CREATE it by changing the name. If you enter just the entity name,
then the default parent will be assigned by Adams View. If you type in the full name, then you may
over ride the default parent. In most cases, when creating an entity, Adams View will provide a default
name. The default name that Adams View provides will specify the parentage that it has assumed.
You may, or course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
4. When you use the FILE ADAMS_DATA_SET WRITE command, Adams View writes an Adams
data file for your model. Adams requires that each modeling element be identified by a unique integer
identifier. If you use this parameter to specify a non-zero identifier, Adams View will use it in the
corresponding statement in the Adams data file.
You may also enter zero as an identifier, either explicitly or by default. The next time you write an
Adams file, Adams View will replace the zero with a unique, internally-generated identifier.
data_element 35
data_element create plant state
Adams View will permanently store this identifier with the element just as if you had entered it
yourself.
Normally, you would let all identifiers default to zero, and Adams View would generate the identifiers
for you. You are never required to enter a non-zero identifier. You only need to specify it
if, for some reason, you wish to control the Adams file output.
5. When an Adams Solver data file (.adm) is read into Adams View, all comments associated with a
statement (from the end of the previous statement through the end of the current statement) are
stored with the object. Comments in the data file can be associated with model.
These comments must follow the title statement and be followed by the comment 'END OF
MODEL COMMENTS'. This string must be uppercase.
When an Adams Solver data file is written, the comments for an object are written before the
statement corresponding to the object.
6. You enter variable names as input parameters for array elements (U_INPUT_ARRAY), plant input
and output definitions, and in function expressions
You may identify a variable by typing its name or by picking it from the screen.
Since variable do not have a geometric position, Adams View displays variable icons at or near the
model origin. If the variable icon is not visible on the screen, you must type the name. You may also
find it convenient to type the name even if the variable icon is displayed.
If you created the variable by reading an Adams data set, the variable name is the letters VAR followed
by the Adams data set variable ID number. The name of Adams VARIABLE/101 is VAR101, for
example. If you created the variable during preprocessing, you gave it a name at that time.
If a variable is owned by the default model, you may identify it by entering its name only. If it is not,
you must enter its full name.
To identify a variable under a different model, for instance, you may need to enter the model name
as well. For example, you may specify variable 'fluid_volume' from model 'hydro' by entering
".hydro.fluid_volume'". If you type a "?", Adams View will list the variable available by default.
You must separate multiple variable names by commas.
Cautions:
1. Adams View will not allow you to have two plant_outputs with the same full name, so you must
provide a unique name.
Tips:
1. If the variable is visible in one of your views, you may identify it by picking on any of the graphics
associated with it.
2. You need not separate multiple variable picks by commas.
Format:
data_element create plant state
plant_state_name = a new plant state
adams_id = adams_id
comments = string
variable_name = an existing variable
Example:
data_element create plant state &
plant_state_name = pstate__1 &
adams_id = 1 &
comments = "a new plant state element " &
variable_name = variable_1
Description:
Extended Definition:
1. Normally, entity names are composed of alphabetic, numeric, or '_' (underscore) characters, and start
with an alphabetic or '_' character. They may be any length.
By enclosing the name in double quotes, you may use other printable characters, or start the name
with a numeral. If a name contains characters, or starts with a numeral, you must always quote the
name when entering it.
Note that you can specify the parentage of an entity (for example, what part "owns" a marker or a
geometry element) when you CREATE it by changing the name. If you enter just the entity name,
then the default parent will be assigned by Adams View. If you type in the full name, then you may
over ride the default parent. In most cases, when creating an entity, Adams View will provide a default
name. The default name that Adams View provides will specify the parentage that it has assumed.
You may, or course, delete this name and use your own. The form of a full name is:
data_element 37
data_element create plant state
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
2. When you use the FILE ADAMS_DATA_SET WRITE command, Adams View writes an Adams
data file for your model. Adams requires that each modeling element be identified by a unique integer
identifier. If you use this parameter to specify a non-zero identifier, Adams View will use it in the
corresponding statement in the Adams data file.
You may also enter zero as an identifier, either explicitly or by default. The next time you write an
Adams file, Adams View will replace the zero with a unique, internally-generated identifier.
Adams View will permanently store this identifier with the element just as if you had entered it
yourself.
Normally, you would let all identifiers default to zero, and Adams View would generate the identifiers
for you. You are never required to enter a non-zero identifier. You only need to specify it if, for some
reason, you wish to control the Adams file output.
3. When an Adams Solver data file (.adm) is read into Adams View, all comments associated with a
statement (from the end of the previous statement through the end of the current statement) are
stored with the object. Comments in the data file can be associated with model.
These comments must follow the title statement and be followed by the comment 'END OF
MODEL COMMENTS'. This string must be uppercase.
When an Adams Solver data file is written, the comments for an object are written before the
statement corresponding to the object.
4. You enter variable names as input parameters for array elements (U_INPUT_ARRAY), plant input
and output definitions, and in function expressions You may identify a variable by typing its name or
by picking it from the screen.
Since variable do not have a geometric position, Adams View displays variable icons at or near the
model origin. If the variable icon is not visible on the screen, you must type the name. You may also
find it convenient to type the name even if the variable icon is displayed.
If you created the variable by reading an Adams data set, the variable name is the letters VAR followed
by the Adams data set variable ID number. The name of Adams VARIABLE/101 is VAR101, for
example. If you created the variable during preprocessing, you gave it a name at that time.
If a variable is owned by the default model, you may identify it by entering its name only. If it is not,
you must enter its full name.
To identify a variable under a different model, for instance, you may need to enter the model name
as well. For example, you may specify variable 'fluid_volume' from model 'hydro' by entering
".hydro.fluid_volume'". If you type a "?", Adams View will list the variable available by default.
You must separate multiple variable names by commas.
Cautions:
1. Adams View will not allow you to have two plant_states with the same full name, so you must provide
a unique name.
38 Adams View Commands
data_element create spline
Tips:
1. If the variable is visible in one of your views, you may identify it by picking on any of the graphics
associated with it.
2. You need not separate multiple variable picks by commas.
Format:
data_element create spline
spline_name = a new spline
adams_id = adams_id
comments = string
x_result_set_component_name = an existing component
x = real
y_result_set_component_name = an existing component
y= real
z_result_set_component_name = an existing component
z = real
linear_extrapolate = boolean
x_units = string
y_units = string
z_units = string
file_name = string
Example:
data_element create spline &
spline_name = spline__1 &
adams_id = 2 &
comments = "a new spline" &
linear_extrapolate = yes &
x_units = mm &
y_units = mm &
data_element 39
data_element create spline
Description:
Extended Definition:
1. A spline interpolates between discrete data for a user-provided function or a utility subroutine called
by a user-written subroutine.
40 Adams View Commands
data_element create spline
You use the spline to provide one or two independent variables and one dependent variable for each
data point you want to enter. Adams uses curve fitting techniques to interpolate between data points
to create a continuous function. If the spline data has one independent variable, Adams uses a cubic
polynomial to interpolate between points.
If the spline data has two independent variables, Adams first uses a cubic interpolation method to
interpolate between points of the first independent variable and then uses a linear method to
interpolate between curves of the second independent variable.
2. To use the discrete data input with a spline, you must write either a function expression that includes
one of the two Adams spline functions (AKISPL function and CUBSPL function) or a user-written
subroutine that calls one of the two spline utility subroutines (AKISPL subroutine and CUBSPL
subroutine).
3. These spline functions and utility subroutines use two different interpolation methods. The AKISPL
function and the AKISPL subroutine use the Akima method of interpolation. The Akima method is
a local cubic curve fitting technique. The CUBSPL function and the CUBSPL subroutine use the
traditional cubic method of interpolation. The traditional cubic method is a global cubic curve fitting
technique.
Both the Akima method and the traditional cubic method use cubic polynomials to interpolate values
that fall between two adjacent points on a curve. Both provide closer approximations than other curve
fitting techniques (for example, Lagrange polynomials, difference tables, and Fourier series). For data
with two independent variables, Adams uses a linear interpolation technique to interpolate values that
fall between curves.
4. If you have created a spline in Adams View, you may wish to plot the data points or the interpolated
curve to verify that you entered the data correctly and that the spline interpolates smoothly. To do
this, first use the 'NUMERIC_RESULTS CREATE SPLINE' command to create a result set from
the spline. This result set will contain components composed of the spline data points. You can then
plot the result set (that is, the spline data points) with the XY_PLOTS command. You may also use
the 'NUMERIC_RESULTS CREATE INTERPOLATION' command to interpolate more points
from the data-point result set, and then plot those.The Adams View CUBIC and AKIMA
interpolation options use the same methods as the Adams CUBSPL and AKISPL functions,
respectively.
5. Normally, entity names are composed of alphabetic, numeric, or '_' (underscore) characters, and start
with an alphabetic or '_' character. They may be any length.
By enclosing the name in double quotes, you may use other printable characters, or start the name
with a numeral. If a name contains characters, or starts with a numeral, you must always quote the
name when entering it.
Note that you can specify the parentage of an entity (for example, what part "owns" a marker or a
geometry element) when you CREATE it by changing the name. If you enter just the entity name,
then the default parent will be assigned by Adams View. If you type in the full name, then you may
over ride the default parent. In most cases, when creating an entity, Adams View will provide a
default name. The default name that Adams View provides will specify the parentage that it has
assumed.
You may, or course, delete this name and use your own. The form of a full name is:
data_element 41
data_element create string
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
6. When you use the FILE ADAMS_DATA_SET WRITE command, Adams View writes an Adams
data file for your model. Adams requires that each modeling element be identified by a unique
integer identifier. If you use this parameter to specify a non-zero identifier, Adams View will use it
in the corresponding statement in the Adams data file.
You may also enter zero as an identifier, either explicitly or by default. The next time you write an
Adams file, Adams View will replace the zero with a unique, internally-generated identifier.
Adams View will permanently store this identifier with the element just as if you had entered it
yourself.
Normally, you would let all identifiers default to zero, and Adams View would generate the identifiers
for you. You are never required to enter a non-zero identifier. You only need to specify it if, for some
reason, you wish to control the Adams file output.
7. When an Adams Solver data file (.adm) is read into Adams View, all comments associated with a
statement (from the end of the previous statement through the end of the current statement) are
stored with the object. Comments in the data file can be associated with model.
These comments must follow the title statement and be followed by the comment 'END OF
MODEL COMMENTS'. This string must be uppercase.
When an Adams Solver data file is written, the comments for an object are written before the
statement corresponding to the object.
8. You must supply a Y value corresponding to each combination of X and Z values. First list the
component with values for each X value at the first Z value, then the component with values for each
X value at the second Z value, and so on.
9. Since this object can be used in a variety ov contexts, AdamsAdams View can not determine what
type of units it should have. By telling Adams View what the unit type for this object is Adams View
can preform the proper conversions on the values you specify.
10. In the Adams View database and command language, units specification for splines can be done in
either of two ways: via parameters "x_units", "y_units" and "z_units"; or by a single "units"
parameter. If the Spline has this "units" parameter defined, it will be mapped to the Y Units field in
this dialog.
Cautions:
1. Adams View will not allow you to have two splines with the same full name, so you must provide a
unique name.
Format:
data_element create string
string_name = a new astring
adams_id = adams_id
comments = string
string = string
Example:
data_element create string &
string_name = string__1 &
adams_id = 1 &
comments = " a new string" &
string = "sample string"
Description:
Extended Definition:
1. A STRING element defines a character string that may be referred to later in the execution of Adams.
The character string cannot be broken and continued on the following line; however, the STRING
element can be longer than a single line. A GTSTRG subroutine can be used to retrieve this character
string in a user-written subroutine.
2. Normally, entity names are composed of alphabetic, numeric, or '_' (underscore) characters, and start
with an alphabetic or '_' character. They may be any length.
By enclosing the name in double quotes, you may use other printable characters, or start the name
with a numeral. If a name contains characters, or starts with a numeral, you must always quote the
name when entering it.
data_element 43
data_element create variable
Note that you can specify the parentage of an entity (e.g. what part "owns" a marker or a geometry
element) when you CREATE it by changing the name. If you enter just the entity name, then the
default parent will be assigned by Adams View. If you type in the full name, then you may over ride
the default parent. In most cases, when creating an entity, Adams View will provide a default name.
The default name that Adams View provides will specify the parentage that it has assumed.
You may, or course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
3. When you use the FILE ADAMS_DATA_SET WRITE command, Adams View writes an Adams
data file for your model. Adams requires that each modeling element be identified by a unique
integer identifier. If you use this parameter to specify a non-zero identifier, Adams View will use it
in the corresponding statement in the Adams data file.
You may also enter zero as an identifier, either explicitly or by default. The next time you write an
Adams file, Adams View will replace the zero with a unique, internally-generated identifier.
Adams View will permanently store this identifier with the element just as if you had entered it
yourself.
Normally, you would let all identifiers default to zero, and Adams View would generate the identifiers
for you. You are never required to enter a non-zero identifier. You only need to specify it if, for some
reason, you wish to control the Adams file output.
4. When an Adams Solver data file (.adm) is read into Adams View, all comments associated with a
statement (from the end of the previous statement through the end of the current statement) are
stored with the object. Comments in the data file can be associated with model.
These comments must follow the title statement and be followed by the comment 'END OF
MODEL COMMENTS'. This string must be uppercase.
When an Adams Solver data file is written, the comments for an object are written before the
statement corresponding to the object.
5. The character string cannot be broken and continued on the following line; however, the STRING
element can be longer than a single line. An Adams interactive STRING command can be used to
alter or review this character string. A GTSTRG subroutine can be used to retrieve this character
string in a user-written subroutine.
Cautions:
1. Adams View will not allow you to have two strings with the same full name, so you must provide a
unique name.
Format:
data_element create variable
variable_name = a new solvar
adams_id = adams_id
comments = string
initial_condition = real
function = function
user_function = real
routine = string
Example:
data_element create variable &
variable_name = variable__10 &
adams_id = 5 &
comments = "comment string" &
initial_condition = 0.121 &
function = cos( 10 )
Description:
Extended Definition:
1. You create VARIABLEs to define scalar algebraic equations for independent use, or as part of the
PLANT INPUT, PLANT OUTPUT, or ARRAY elements. The computed value of the VARIABLE
may depend on almost any Adams system variable. Note that you cannot access reaction forces from
user defined, POINT_CURVE, and CURVE_CURVE constraints (Adams UCONs, PTCV, CVCV
statements). You can define the computed value of a VARIABLE by either writing a FUNCTION
expression in the model or by calling a VARSUB user-written subroutine. The Adams Reference
Manual chapter on "Function Expressions," discusses the attributes of FUNCTION expressions, and
the chapter on "Subroutines," discusses user-written subroutines and accessible utility subroutines.
2. FUNCTION expressions and user-written subroutines can access the computed value of the
VARIABLE with the Adams View function VARVAL(variable_name) to represent the value, where
variable_name specifies the name you gave the VARIABLE when it was created. User-written
subroutines access single VARIABLE statement values by calling the subroutine SYSFNC.
Caution should be used when defining VARIABLEs that are dependent on other VARIABLEs or on
Adams View elements that contains functions. If a defined system of equations does not have a stable
solution, convergence may fail for the entire Adams model. The following example refers to this type
of VARIABLE statement:
VARIABLE/1, FUNCTION= VARVAL(1)+1
When looked at as an algebraic equation, it looks like the following:
V=V+1.
However, when Adams tries to solve this equation using the Newton-Raphson iteration, the solution
diverges and a message appears on the screen indicating that the solution has failed to converge.
3. Adams View will not allow you to have two variables with the same full name, so you must provide
a unique name.
Normally, entity names are composed of alphabetic, numeric, or '_' (underscore) characters, and start
with an alphabetic or '_' character. They may be any length.
By enclosing the name in double quotes, you may use other printable characters, or start the name
with a numeral. If a name contains characters, or starts with a numeral, you must always quote the
name when entering it.
Note that you can specify the parentage of an entity (e.g. what part "owns" a marker or a geometry
element) when you CREATE it by changing the name. If you enter just the entity name, then the
default parent will be assigned by Adams View. If you type in the full name, then you may over ride
the default parent. In most cases, when creating an entity, Adams View will provide a default name.
The default name that Adams View provides will specify the parentage that it has assumed.
You may, or course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
46 Adams View Commands
data_element delete
4. When you use the FILE ADAMS_DATA_SET WRITE command, Adams View writes an Adams
data file for your model. Adams requires that each modeling element be identified by a unique
integer identifier. If you use this parameter to specify a non-zero identifier, Adams View will use it
in the corresponding statement in the Adams data file.
You may also enter zero as an identifier, either explicitly or by default. The next time you write an
Adams file, Adams View will replace the zero with a unique, internally-generated identifier.
Adams View will permanently store this identifier with the element just as if you had entered it
yourself.
Normally, you would let all identifiers default to zero, and Adams View would generate the identifiers
for you. You are never required to enter a non-zero identifier. You only need to specify it if, for some
reason, you wish to control the Adams file output.
5. When an Adams Solver data file (.adm) is read into AdamsAdams View, all comments associated with
a statement (from the end of the previous statement through the end of the current statement) are
stored with the object. Comments in the data file can be associated with model.
These comments must follow the title statement and be followed by the comment 'END OF
MODEL COMMENTS'. This string must be uppercase.
When an Adams Solver data file is written, the comments for an object are written before the
statement corresponding to the object.
6. The first value is the value of the user- defined variable at the start of the simulation. If you have
entered an implicit equation, the second value may also need to be specified, which is an approximate
value of the time derivative of the user-defined variable at the start of the simulation. Adams may
adjust the value of the time derivative when it performs an initial conditions analysis. Entering an
initial value for the time derivative may help Adams converge to an initial
conditions solution. If you enter an explicit equation, you do not need to supply the second value
since Adams can compute the initial time derivative directly from the equation.
7. To enter a function expression you enter a series of quoted strings.
The easiest way to enter a function expression in Adams View is to use the text editor in combination
with the function builder. To invoke the text editor for entering a function expression, highlight the
function field and then either pick the "EDIT" button at the top of the panel or type a ^t (control-
t). The Adams View "function builder" is discussed below.
The syntactical correctness of a function expression can be investigated by using the "VERIFY"
button at the upper right of the text editor. If there is a syntax error, a message is printed and the
cursor is put near the problem. Proper unit consistency is not checked during function expression
verification.
Tips:
1. See the Adams User's Manual for information on writing user-written subroutines.
data_element delete
Allows you to delete an existing DATA_ELEMENT.
data_element 47
data_element modify array general_array
Format:
data_element delete
data_element_name = an existing data_element
Example:
data_element delete &
data_element_name = string__1
Description:
Extended Definition:
1. You must enter the name of the DATA_ELEMENT you wish to delete by either picking it from the
screen or specifying the full name.
2. Since data_element do not have a geometric position, Adams View displays data_element icons at or
near the model origin. If the data_element icon is not visible on the screen, you must type the name.
You may also find it convenient to type the name even if the data_element icon is displayed.
You must separate multiple data_element names by commas.
Tips:
1. You may reverse this deletion at a later time with an UNDO command.
2. If the data_element is visible in one of your views, you may identify it by picking on any of the
graphics associated with it.
3. You need not separate multiple data_element picks by commas.
Format:
data_element modify array general_array
array_name = array_name
new_array_name = new array_name
48 Adams View Commands
data_element modify array general_array
Example:
data_element modify array general_array &
array_name = .model_1.array_1 &
new_array_name = .model.real_array_1 &
adams_id = 1 &
size = 3 &
numbers = 2.1,3.4,5
Description:
Extended Definition:
1. Adams View will not allow you to have two arrays with the same full name, so you must provide a
unique name.
Normally, entity names are composed of alphabetic, numeric, or '_' (underscore) characters, and start
with an alphabetic or '_' character. They may be any length.
By enclosing the name in double quotes, you may use other printable characters, or start the name
with a numeral. If a name contains characters, or starts with a numeral, you must always quote the
name when entering it.
data_element 49
data_element modify array general_array
Note that you can specify the parentage of an entity (e.g. what part "owns" a marker or a geometry
element) when you CREATE it by changing the name. If you enter just the entity name, then the
default parent will be assigned by Adams View. If you type in the full name, then you may over ride
the default parent. In most cases, when creating an entity, Adams View will provide a default name.
The default name that Adams View provides will specify the parentage that it has assumed.
You may, or course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
2. When you use the FILE ADAMS_DATA_SET WRITE command, Adams View writes an Adams
data file for your model. Adams requires that each modeling element be identified by a unique
integer identifier. If you use this parameter to specify a non-zero identifier, Adams View will use it
in the corresponding statement in the Adams data file.
You may also enter zero as an identifier, either explicitly or by default. The next time you write an
Adams file, Adams View will replace the zero with a unique, internally-generated identifier.
Adams View will permanently store this identifier with the element just as if you had entered it
yourself.
Normally, you would let all identifiers default to zero, and Adams View would generate the identifiers
for you. You are never required to enter a non-zero identifier. You only need to specify it if, for some
reason, you wish to control the Adams file output.
3. In cases where Adams calculates the SIZE differently from the SIZE that the user supplies, Adams
returns an error or warning message.
For the X_STATE_ARRAYs and Y_OUTPUT_ARRAYs, the corresponding systems modeling
element automatically determines the size of the array and checks it against the ARRAY command
SIZE parameter value (if given).
For the IC_ARRAY, the SIZE parameter is optional and Adams determines the actual size of the array
during parsing, as it counts the NUMBERS values. However, if you provide a value for SIZE , Adams
checks the count for consistency.
The SIZE argument, if used, should match the number of entries in the VARIABLE_NAME
parameter, the NUMBERS parameters, or the size needed for the associated systems element. Adams
View provides the SIZE parameter mainly for user convenience in model creation (it is not required).
For LINEAR_STATE_EQUATION arrays, the X_STATE_ARRAY size is the row dimension of the
A_STATE_MATRIX, and the Y_OUTPUT_ARRAY size is the row dimension of the
C_OUTPUT_MATRIX or the D_FEEDFORWARD_MATRIX. For TRANSFER_FUNCTION
arrays, the transformation from polynomial ratio type to canonical state space type internally
determines the X_STATE_ARRAY size; the Y_OUTPUT_ARRAY size is always 1. For
GENERAL_STATE_EQUATION arrays, the X_STATE_ARRAY size is the
STATE_EQUATION_COUNT as defined in the matching GENERAL_STATE_EQUATION
definition and Y_OUTPUT_ARRAY size is the OUTPUT_EQUATION_COUNT, as defined in
the same GENERAL_STATE_EQUATION definition.
50 Adams View Commands
data_element modify array ic_array
Format:
data_element modify array ic_array
array_name = array_name
new_array_name = new array_name
adams_id = integer
comments = string
size = integer
numbers = real
Example:
data_element modify array ic_array &
array_name = .model_1.array_1 &
new_array_name = .model.real_array_1 &
adams_id = 1 &
size = 3 &
numbers = 2.1,3.4,5.9
Description:
Extended Definition:
1. Adams View will not allow you to have two arrays with the same full name, so you must provide a
unique name.
Normally, entity names are composed of alphabetic, numeric, or '_' (underscore) characters, and start
with an alphabetic or '_' character. They may be any length.
By enclosing the name in double quotes, you may use other printable characters, or start the name
with a numeral. If a name contains characters, or starts with a numeral, you must always quote the
name when entering it.
Note that you can specify the parentage of an entity (for example, what part "owns" a marker or a
geometry element) when you CREATE it by changing the name. If you enter just the entity name,
then the default parent will be assigned by Adams View. If you type in the full name, then you may
over ride the default parent. In most cases, when creating an entity, Adams View will provide a
default name. The default name that Adams View provides will specify the parentage that it has
assumed.
You may, or course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
2. When you use the FILE ADAMS_DATA_SET WRITE command, Adams View writes an ADAMS
data file for your model. ADAMS requires that each modeling element be identified by a unique
integer identifier. If you use this parameter to specify a non-zero identifier, Adams View will use it
in the corresponding statement in the ADAMS data file.
You may also enter zero as an identifier, either explicitly or by default. The next time you write an
ADAMS file, Adams View will replace the zero with a unique, internally-generated identifier.
Adams View will permanently store this identifier with the element just as if you had entered it
yourself.
Normally, you would let all identifiers default to zero, and Adams View would generate the identifiers
for you. You are never required to enter a non-zero identifier. You only need to specify it if, for some
reason, you wish to control the ADAMS file output.
3. In cases where ADAMS calculates the SIZE differently from the SIZE that the user supplies, ADAMS
returns an error or warning message.
52 Adams View Commands
data_element modify array u_input_array
Format:
data_element modify array u_input_array
array_name = an existing array
new_array_name = a new array
adams_id = adams_id
comments = string
size = integer
variable_name = an existing variable
Example:
data_element modify array u_input_array &
array_name = array__1 &
new_array_name = array__2 &
adams_id = 2 &
comments = " a modified u_input array" &
data_element 53
data_element modify array u_input_array
Description:
Extended Definition:
1. The U_INPUT_ARRAY command groups together a set of VARIABLE_NAMEs , normally to
define the inputs for a systems element, either LINEAR_STATE_EQUATION,
GENERAL_STATE_EQUATION , or TRANSFER_FUNCTION. When the you create a
U_INPUT_ARRAY, SIZE and VARIABLE_NAME are the only parameters available.
2. Adams View will not allow you to have two arrays with the same full name, so you must provide a
unique name.
Normally, entity names are composed of alphabetic, numeric, or '_' (underscore) characters, and start
with an alphabetic or '_' character. They may be any length.
By enclosing the name in double quotes, you may use other printable characters, or start the name
with a numeral. If a name contains characters, or starts with a numeral, you must always quote the
name when entering it.
Note that you can specify the parentage of an entity (for example, what part "owns" a marker or a
geometry element) when you CREATE it by changing the name. If you enter just the entity name,
then the default parent will be assigned by Adams View. If you type in the full name, then you may
over ride the default parent. In most cases, when creating an entity, Adams View will provide a default
name. The default name that Adams View provides will specify the parentage that it has assumed.
You may, or course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
54 Adams View Commands
data_element modify array u_input_array
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
3. When you use the FILE ADAMS_DATA_SET WRITE command, Adams View writes an Adams
data file for your model. Adams requires that each modeling element be identified by a unique
integer identifier. If you use this parameter to specify a non-zero identifier, Adams View will use it
in the corresponding statement in the Adams data file.
You may also enter zero as an identifier, either explicitly or by default. The next time you write an
Adams file, Adams View will replace the zero with a unique, internally-generated identifier.
Adams View will permanently store this identifier with the element just as if you had entered it
yourself.
Normally, you would let all identifiers default to zero, and Adams View would generate the identifiers
for you. You are never required to enter a non-zero identifier. You only need to specify it if, for some
reason, you wish to control the Adams file output.
4. When an Adams Solver data file (.adm) is read into Adams View, all comments associated with a
statement (from the end of the previous statement through the end of the current statement) are
stored with the object. Comments in the data file can be associated with model.
These comments must follow the title statement and be followed by the comment 'END OF
MODEL COMMENTS'. This string must be uppercase.
When an Adams Solver data file is written, the comments for an object are written before the
statement corresponding to the object.
5. For the X_STATE_ARRAYs and Y_OUTPUT_ARRAYs, the corresponding systems modeling
element automatically determines the size of the array and checks it against the ARRAY command
SIZE parameter value (if given). For the IC_ARRAY, the SIZE parameter is optional and Adams
determines the actual size of the array during parsing, as it counts the NUMBERS values. However,
if you provide a value for SIZE , Adams checks the count for consistency.
The SIZE argument, if used, should match the number of entries in the VARIABLE_NAME
parameter, the NUMBERS parameters, or the size needed for the associated systems element. Adams
View provides the SIZE parameter mainly for user convenience in model creation (it is not required).
For LINEAR_STATE_EQUATION arrays, the X_STATE_ARRAY size is the row dimension of the
A_STATE_MATRIX, and the Y_OUTPUT_ARRAY size is the row dimension of the
C_OUTPUT_MATRIX or the D_FEEDFORWARD_MATRIX. For TRANSFER_FUNCTION
arrays, the transformation from polynomial ratio type to canonical state space type internally
determines the X_STATE_ARRAY size; the Y_OUTPUT_ARRAY size is always 1. For
GENERAL_STATE_EQUATION arrays, the X_STATE_ARRAY size is the
STATE_EQUATION_COUNT as defined in the matching GENERAL_STATE_EQUATION
definition and Y_OUTPUT_ARRAY size is the OUTPUT_EQUATION_COUNT, as defined in
the same GENERAL_STATE_EQUATION definition.
6. You enter variable names as input parameters for array elements (U_INPUT_ARRAY), plant input
and output definitions, and in function expressions
You may identify a variable by typing its name or by picking it from the screen.
data_element 55
data_element modify array x_state_array
Since variable do not have a geometric position, Adams View displays variable icons at or near the
model origin. If the variable icon is not visible on the screen, you must type the name. You may also
find it convenient to type the name even if the variable icon is displayed.
If you created the variable by reading an Adams data set, the variable name is the letters VAR followed
by the Adams data set variable ID number. The name of Adams VARIABLE/101 is VAR101, for
example. If you created the variable during preprocessing, you gave it a name at that time.
If a variable is owned by the default model, you may identify it by entering its name only. If it is not,
you must enter its full name.
To identify a variable under a different model, for instance, you may need to enter the model name
as well. For example, you may specify variable 'fluid_volume' from model 'hydro' by entering
".hydro.fluid_volume'". If you type a "?", Adams View will list the variable available by default.
You must separate multiple variable names by commas.
Tips:
1. If the variable is visible in one of your views, you may identify it by picking on any of the graphics
associated with it.
2. You need not separate multiple variable picks by commas.
Format:
data_element modify array x_state_array
new_array_name = an existing array
array_name = a new array
adams_id = adams_id
comments = string
size = integer
Example:
data_element modify array x_state_array &
array_name = array__1 &
adams_id = 1 &
comments = "modified x-state array" &
size = 4
56 Adams View Commands
data_element modify array x_state_array
Description:
::
Extended Definition:
1. An X_STATE_ARRAY defines a list of state variables (X) associated with system modeling elements
such as GSE , LSE , and TFSISO. To use this array, you must reference the array name as the state
variable array in a system element definition. You can use each X_STATE_ARRAY with only one
systems element in your model. When you define an X_STATE_ARRAY , the only other parameter
is SIZE. When you do not specify SIZE , the associated systems element automatically sets the size.
2. Adams View will not allow you to have two arrays with the same full name, so you must provide a
unique name.
Normally, entity names are composed of alphabetic, numeric, or '_' (underscore) characters, and start
with an alphabetic or '_' character. They may be any length.
By enclosing the name in double quotes, you may use other printable characters, or start the name
with a numeral. If a name contains characters, or starts with a numeral, you must always quote the
name when entering it.
Note that you can specify the parentage of an entity (for example, what part "owns" a marker or a
geometry element) when you CREATE it by changing the name. If you enter just the entity name,
then the default parent will be assigned by Adams View. If you type in the full name, then you may
over ride the default parent. In most cases, when creating an entity, Adams View will provide a
default name. The default name that Adams View provides will specify the parentage that it has
assumed.
You may, or course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
3. When you use the FILE ADAMS_DATA_SET WRITE command, Adams View writes an Adams
data file for your model. Adams requires that each modeling element be identified by a unique
integer identifier. If you use this parameter to specify a non-zero identifier, Adams View will use it
in the corresponding statement in the Adams data file.
data_element 57
data_element modify array y_output_array
You may also enter zero as an identifier, either explicitly or by default. The next time you write an
Adams file, Adams View will replace the zero with a unique, internally-generated identifier.
Adams View will permanently store this identifier with the element just as if you had entered it
yourself.
Normally, you would let all identifiers default to zero, and Adams View would generate the identifiers
for you. You are never required to enter a non-zero identifier. You only need to specify it if, for some
reason, you wish to control the Adams file output.
4. When an Adams Solver data file (.adm) is read into Adams View, all comments associated with a
statement (from the end of the previous statement through the end of the current statement) are
stored with the object. Comments in the data file can be associated with model.
These comments must follow the title statement and be followed by the comment 'END OF
MODEL COMMENTS'. This string must be uppercase.
When an Adams Solver data file is written, the comments for an object are written before the
statement corresponding to the object.
5. For the X_STATE_ARRAYs and Y_OUTPUT_ARRAYs, the corresponding systems modeling
element automatically determines the size of the array and checks it against the ARRAY command
SIZE parameter value (if given).
For the IC_ARRAY, the SIZE parameter is optional and Adams determines the actual size of the array
during parsing, as it counts the NUMBERS values. However, if you provide a value for SIZE , Adams
checks the count for consistency.
The SIZE argument, if used, should match the number of entries in the VARIABLE_NAME
parameter, the NUMBERS parameters, or the size needed for the associated systems element. Adams
View provides the SIZE parameter mainly for user convenience in model creation (it is not required).
For LINEAR_STATE_EQUATION arrays, the X_STATE_ARRAY size is the row dimension of the
A_STATE_MATRIX, and the Y_OUTPUT_ARRAY size is the row dimension of the
C_OUTPUT_MATRIX or the D_FEEDFORWARD_MATRIX. For TRANSFER_FUNCTION
arrays, the transformation from polynomial ratio type to canonical state space type internally
determines the X_STATE_ARRAY size; the Y_OUTPUT_ARRAY size is always 1. For
GENERAL_STATE_EQUATION arrays, the X_STATE_ARRAY size is the
STATE_EQUATION_COUNT as defined in the matching ENERAL_STATE_EQUATION
definition and Y_OUTPUT_ARRAY size is the OUTPUT_EQUATION_COUNT, as defined in
the same GENERAL_STATE_EQUATION definition.
Format:
data_element modify array y_output_array
array_name = an existing array
new_array_name = a new array
58 Adams View Commands
data_element modify array y_output_array
Example:
data_element modify array y_output_array &
array_name = array__1 &
new_array_name = array__2 &
adams_id = 2 &
comments = "a modified y_output_array" &
size = 2
Description:
Extended Definition:
1. A Y_OUTPUT_ARRAY specifies the output array for a systems element, either a
LINEAR_STATE_EQUATION, GENERAL_STATE_EQUATION, or
TRANSFER_FUNCTION. To use these arrays, the user must reference the array name as the
output array in the system element definition in the model. When you create a
Y_OUTPUT_ARRAY, SIZE is the only other parameter available. You can use each
Y_OUTPUT_ARRAY with only a single systems element. The SIZE value, if supplied, must be
consistent with the associated systems element. When you do not specify SIZE , the associated
systems element automatically sets it.
2. Adams View will not allow you to have two arrays with the same full name, so you must provide a
unique name.
data_element 59
data_element modify array y_output_array
Normally, entity names are composed of alphabetic, numeric, or '_' (underscore) characters, and start
with an alphabetic or '_' character. They may be any length.
By enclosing the name in double quotes, you may use other printable characters, or start the name
with a numeral. If a name contains characters, or starts with a numeral, you must always quote the
name when entering it.
Note that you can specify the parentage of an entity (for example, what part "owns" a marker or a
geometry element) when you CREATE it by changing the name. If you enter just the entity name,
then the default parent will be assigned by Adams View. If you type in the full name, then you may
over ride the default parent. In most cases, when creating an entity, Adams View will provide a
default name. The default name that Adams View provides will specify the parentage that it has
assumed.
You may, or course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
3. When you use the FILE ADAMS_DATA_SET WRITE command, Adams View writes an Adams
data file for your model. Adams requires that each modeling element be identified by a unique
integer identifier. If you use this parameter to specify a non-zero identifier, Adams View will use it
in the corresponding statement in the Adams data file.
You may also enter zero as an identifier, either explicitly or by default. The next time you write an
Adams file, Adams View will replace the zero with a unique, internally-generated identifier.
Adams View will permanently store this identifier with the element just as if you had entered it
yourself.
Normally, you would let all identifiers default to zero, and Adams View would generate the identifiers
for you. You are never required to enter a non-zero identifier. You only need to specify it if, for some
reason, you wish to control the Adams file output.
4. When an Adams Solver data file (.adm) is read into Adams View, all comments associated with a
statement (from the end of the previous statement through the end of the current statement) are
stored with the object. Comments in the data file can be associated with model.
These comments must follow the title statement and be followed by the comment 'END OF
MODEL COMMENTS'. This string must be uppercase.
When an Adams Solver data file is written, the comments for an object are written before the
statement corresponding to the object.
5. For the X_STATE_ARRAYs and Y_OUTPUT_ARRAYs, the corresponding systems modeling
element automatically determines the size of the array and checks it against the ARRAY command
SIZE parameter value (if given).
For the IC_ARRAY, the SIZE parameter is optional and Adams determines the actual size of the array
during parsing, as it counts the NUMBERS values. However, if you provide a value for SIZE , Adams
checks the count for consistency.
60 Adams View Commands
data_element modify curve
The SIZE argument, if used, should match the number of entries in the VARIABLE_NAME
parameter, the NUMBERS parameters, or the size needed for the associated systems element. Adams
View provides the SIZE parameter mainly for user convenience in model creation (it is not required).
For LINEAR_STATE_EQUATION arrays, the X_STATE_ARRAY size is the row dimension of the
A_STATE_MATRIX, and the Y_OUTPUT_ARRAY size is the row dimension of the
C_OUTPUT_MATRIX or the D_FEEDFORWARD_MATRIX. For TRANSFER_FUNCTION
arrays, the transformation from polynomial ratio type to canonical state space type internally
determines the X_STATE_ARRAY size; the Y_OUTPUT_ARRAY size is always 1. For
GENERAL_STATE_EQUATION arrays, the X_STATE_ARRAY size is the
STATE_EQUATION_COUNT as defined in the matching GENERAL_STATE_EQUATION
definition and Y_OUTPUT_ARRAY size is the OUTPUT_EQUATION_COUNT, as defined in
the same GENERAL_STATE_EQUATION definition.
Format:
data_element modify curve
curve_name = an existing curve
new_curve_name = a new acurve
adams_id = adams_id
comments = string
closed = boolean
matrix_name = an existing matrix
fit_type = fit_type
segment_count = integer
user_function = real
minimum_parameter = real
maximum_parameter = real
Example:
data_element modify curve &
curve_name = curve__1 &
new_curve_name = curve__2 &
adams_id = 1 &
comments = "a modified curve" &
closed = yes &
data_element 61
data_element modify curve
Description:
Extended Definition:
1. A CURVE element defines a three-dimensional parametric curve that may be referenced by
POINT_CURVE or CURVE_CURVE constraints, a geometry element called a BSPLINE, as well
as by FUNCTION expressions.
The x, y, and z coordinates of a point on a parametric curve are functions of an independent
parameter, u. As u varies from its minimum value to its maximum value, the functions x(u), y(u),
and z(u) sweep out points on the curve. A simple example of a parametric curve is the helix defined
by the following equations:
62 Adams View Commands
data_element modify curve
x = cos(u)
y = sin(u)
z = u
2. Adams View allows you to create curves in three ways: by entering control points for a uniform cubic
B-spline (FIT_TYPE=CONTROL_POINTS), by entering curve points that Adams will fit a curve
to (FIT_TYPE=CURVE_POINTS), or by writing a CURSUB evaluation subroutine to compute the
curve coordinates and derivatives.
3. A uniform B-spline is a piecewise cubic polynomial spline used in many CAD (computer-aided-
design) applications. A uniform B-spline is defined by control points which form a polygon in space.
The curve starts at the first control point and ends at the last. In between, it is attracted to, but does
not necessarily hit the intermediate control points. Adams parameterizes a B-spline starting at -1 and
ending at +1.
Generally, you will not create control points directly, but will construct the curve in another
application, such as a CAD program, and then transfer the control points to Adams.
4. A more direct way to define the curve is to supply curve points.
Adams will compute a uniform B-spline that will fit the curve points.
Again, Adams parameterizes the curve from -1 to +1. If you specify the number of spline segments
(SEGMENT_COUNT) as three less than the number of curve points, the computed curve will
exactly match the curve points. If you specify fewer segments, Adams will use a least-squares fit to
compute the closest fit to the points. In general, fewer segments give a smoother curve, but do not
come as close to the data points.
5. In order to use a different type of curve, or to model an analytically-defined curve such as the helix,
you may write a CURSUB evaluation subroutine. When providing a CURSUB, you may also specify
MINPAR and MAXPAR to define the limits of the curve. These default to -1 and +1, respectively.
A curve can be open or closed. A CLOSED curve meets at the ends, connecting the curve at
minimum and maximum parameter values. Note for a closed curve defined by curve points, you can
specify a maximum of 5 segments less that the number of curve points. Note that because three
segments less than the number of curve points are required for an exact fit, a closed curve will not
exactly fit the curve points.
Adams will automatically move a POINT_CURVE or CURVE_CURVE contact point across the
closure of a CLOSED curve, if needed. For instance, you may model a cam profile as a CLOSED
curve, and Adams will allow the follower to move across the closure as the cam rotates.
Adams will stop the simulation if a POINT_CURVE or CURVE_CURVE contact point moves off
the end of curve. You should ensure that the curve defined includes the expected range of contact.
6. Normally, entity names are composed of alphabetic, numeric, or '_' (underscore) characters, and start
with an alphabetic or '_' character. They may be any length.
By enclosing the name in double quotes, you may use other printable characters, or start the name
with a numeral. If a name contains characters, or starts with a numeral, you must always quote the
name when entering it.
data_element 63
data_element modify curve
Note that you can specify the parentage of an entity (for example, what part "owns" a marker or a
geometry element) when you CREATE it by changing the name. If you enter just the entity name,
then the default parent will be assigned by Adams View. If you type in the full name, then you may
over ride the default parent. In most cases, when creating an entity, Adams View will provide a
default name. The default name that Adams View provides will specify the parentage that it has
assumed.
You may, or course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
7. When you use the FILE ADAMS_DATA_SET WRITE command, Adams View writes an Adams
data file for your model. Adams requires that each modeling element be identified by a unique
integer identifier. If you use this parameter to specify a non-zero identifier, Adams View will use it
in the corresponding statement in the Adams data file.
You may also enter zero as an identifier, either explicitly or by default. The next time you write an
Adams file, Adams View will replace the zero with a unique, internally-generated identifier.
Adams View will permanently store this identifier with the element just as if you had entered it
yourself.
Normally, you would let all identifiers default to zero, and Adams View would generate the identifiers
for you. You are never required to enter a non-zero identifier. You only need to specify it if, for some
reason, you wish to control the Adams file output.
8. When an Adams Solver data file (.adm) is read into Adams View,all comments associated with a
statement (from the end of the previous statement through the end of the current statement) are
stored with the object. Comments in the data file can be associated with model.
These comments must follow the title statement and be followed by the comment 'END OF
MODEL COMMENTS'. This string must be uppercase.
When an Adams Solver data file is written, the comments for an object are written before the
statement corresponding to the object.
9. If you set the parameter CLOSED to YES and you use the CURVE_POINTS FIT_TYPE, Adams
will attempt to compute a curve that meets at the ends and has continuous first and second derivatives
across the closure. If you set CLOSED to YES and use the CONTROL_POINTS FIT_TYPE or a
user-defined FUNCTION is specified, you must ensure that the defined curve meets at the ends and
has continuous first and second derivatives across the closure. During a simulation, Adams will move
a POINT_CURVE or CURVE_CURVE contact point across the closure, if necessary. Any
discontinuity could cause integration failure.
By setting CLOSED to NO, you specify that the curve does not meet at the ends. Adams will not
allow a POINT_CURVE or CURVE_CURVE contact point to move beyond the end of the curve.
10. If CONTROL_POINTS is specified, the matrix contains the x, y, and z coordinates of control
points for a uniform B-spline. (Adams uses a uniform knot vector with quadruple multiplicity at both
ends, ensuring that the curve will pass through starting and ending points.)
64 Adams View Commands
data_element modify curve
If CURVE_POINTS is specified, the matrix contains the x, y, and z coordinates of curve points
which the curve will pass through or near.
The matrix should have a row for each point and three columns containing the x, y, and z, coordinates
of the points. You must supply at least four control points or curve points.
You may identify a matrix by typing its name or by picking it from the screen.
Since a matrix does not have a geometric position, Adams View displays matrix icons at or near the
model origin. If the matrix icon is not visible on the screen, you must type the name. You may also
find it convenient to type the name even if the matrix icon is displayed.
If you created the matrix by reading an Adams data set or graphics file, the matrix name is the letters
MAT followed by the Adams data set matrix ID number. The name of Adams MATRIX/101 is
MAT101, for example. If you created the matrix during preprocessing, you gave it a name at that
time.
If a matrix is owned by the default model, you may identify it by entering its name only. If it is not,
you must enter its full name.
To identify a matrix under a different model, for instance, you may need to enter the model name as
well. For example, you may specify matrix 'control_points' from model 'road_surface' by entering
".road_surface.control_points'". If you type a "?", Adams View will list the matrix available by
default.
You must separate multiple matrix names by commas.
11. If FIT_TYPE=CONTROL_POINTS then the MATRIX contains control points to define a
uniform B-spline based on cubic polynomials (i.e. the curve will not necessarily pass through the
points). Specifically, the matrix contains the x, y, and z coordinates of control points for a uniform
B-spline. (Adams uses a uniform knot vector with quadruple multiplicity at both ends, ensuring that
the curve will pass through starting and ending points.)
If FIT_TYPE=CURVE_POINTS then the MATRIX contains data points on the curve and the
curve will be fit directly through the points (depending on the value of the SEGMENT_COUNT
parameter). Specifically, the matrix contains the x, y, and z coordinates of curve points which the
curve will pass through or near. The matrix should have a row for each point and three columns
containing the x, y, and z, coordinates of the points. You must supply at least four control points or
curve points.
12. Adams will default the segment_count to three segments less than the number of curve points, which
gives an exact fit to the curve points. Specifying fewer segments will result in a smoother curve, but
the curve will not pass exactly through the curve points.
More specifically, if you specify the SEGMENT_COUNT such that the spline segments is three less
than the number of curve points, the computed curve will exactly match the curve points. If you
specify fewer segments, Adams will use a least-squares fit to compute the closest fit to the points. In
general, fewer segments give a smoother curve, but do not come as close to the data points.
13. Adams uses the minimum_parameter value when drawing a curve graphic. For curves defined by
control points or curve points, the minimum parameter value is always -1.0.
Adams uses the maximum_parameter value when drawing a curve graphic. For curves defined by
control points or curve points, the maximum parameter value is always 1.0.
data_element 65
data_element modify matrix file
Cautions:
Adams View will not allow you to have two curves with the same full name, so you must provide a
unique name.
Tips:
1. If the matrix is visible in one of your views, you may identify it by picking on any of the graphics
associated with it.
2. You need not separate multiple matrix picks by commas.
3. See the Adams User's Manual for information on writing user-written subroutines.
Format:
data_element modify matrix file
matrix_name = existing matrix
new_matrix_name = new matrix name
adams_id = integer
comments = string
file_name = string
name_of_matrix_in_file = string
units = string
Example:
:
In the above command, the prob.dat is in the directory, /home/staff/demo, and contains the following data:
1 2 3 4 5 6 7 8
12345678901234567890123456789012345678901234567890123456789012345678901234567890
ADAMSMAT Floating platform example
3
TRF VALK STL
TRF FULL RORDER 4 2 8 ( 8F8.5 )
1.36400 0.00000 0.00000 0.00000 -3.54600 4.00800 0.00000 0.79900
VALK FULL CORDER 3 3 9 ( 3F6.3 )
1.970 0.000-3.440
0.000 4.510 6.020
-3.440 6.020 2.110
STL SPARSE 6 1 4 ( 2( 2I5, E14.6 ) )
1 1 0.169805E+02 2 1 -0.230745E+02
4 1 0.016390E+00 5 1 0.011271E+00
The second and third records are read with format I5 and 4(A8,10X), respectively. Then, the first record of
each of the blocks corresponding to the three matrices TRF, VALK, and STL is read with the format 3A8,
3I5, A41. Finally, as can be seen in the copy of the file shown above between the two strings of 80 characters
that mark the columns (which, of course, are not part of the file), the single record of data for the matrix TRF
is read with the format 8F8.5; the three records for VALK are read with 3F6.3; and the two records for STL
with 2(2I5,E14.6).
Description:
Extended Definition:
1. You may use this name later to refer to this matrix. Adams View will not allow you to have two
matrices with the same full name, so you must provide a unique name.
Normally, entity names are composed of alphabetic, numeric, or '_' (underscore) characters, and start
with an alphabetic or '_' character. They may be any length.
By enclosing the name in double quotes, you may use other printable characters, or start the name
with a numeral. If a name contains characters, or starts with a numeral, you must always quote the
name when entering it.
Note that you can specify the parentage of an entity (e.g. what part "owns" a marker or a geometry
element) when you CREATE it by changing the name. If you enter just the entity name, then the
default parent will be assigned by Adams View. If you type in the full name, then you may over ride
the default parent. In most cases, when creating an entity, Adams View will provide a default name.
The default name that Adams View provides will specify the parentage that it has assumed.
You may, or course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
2. When you use the FILE ADAMS_DATA_SET WRITE command, Adams View writes an Adams
data file for your model. Adams requires that each modeling element be identified by a unique
integer identifier. If you use this parameter to specify a non-zero identifier, Adams View will use it
in the corresponding statement in the Adams data file.
You may also enter zero as an identifier, either explicitly or by default. The next time you write an
Adams file, Adams View will replace the zero with a unique, internally-generated identifier.
Adams View will permanently store this identifier with the element just as if you had entered it
yourself.
Normally, you would let all identifiers default to zero, and Adams View would generate the identifiers
for you. You are never required to enter a non-zero identifier. You only need to specify it if, for some
reason, you wish to control the Adams file output.
3. The FILE argument may be used to read large matrices into Adams. There is no limit on the size of
an array read from a file.
The proper extension is the default but can be overridden by simply supplying a different extension.
You do not need to enclose the file name in quotes if it only contains alpha-numeric characters and
starts with a letter. If you want to include other characters, such as a '.' for an extension or '/' or '[]'
for directory paths, you must enclose the name in quotes.
The first record in the file contains an 80 character header of which the first seven or eight characters
are meaningful. If the first record begins with the characters ADAMSMAT, then the file is assumed
to be in a format used by Adams. If the first record begins with the characters MATRIXx, then the
file is assumed to be in the FSAVE format of the MATRIXx software package. If the first record
begins with the characters MATSAVE, then the file is assumed to be in the MATSAVE format of the
MATRIXx software package.
68 Adams View Commands
data_element modify matrix full
Note that the three specifications for the format of the data file are case sensitive. Capital letters and
a lower case x must be used to make a selection.
No other kinds of files are currently supported. However, the ADAMSMAT option is fairly general
since the format for reading in the data is specified within the file. See the section in the Adams
Reference Manual on the MATRIX statement for a description of the file format.
4. All three kinds of files, ADAMSMAT, MATRIXx, and MATSAVE, can contain data for more than
one matrix. The NAME_OF_MATRIX_IN_FILE parameter is used to select a particular matrix
from a file even if the file contains only one MATRIX. You must create additional MATRIX
elements in your Adams View model if multiple matrices are to be read from the same file.
Format:
data_element modify matrix full
matrix_name = existing matrix
new_matrix_name = new name for the matrix
adams_id = integer
comments = string
row_count = integer
column_count = integer
values = real
result_set_component_names = existing component
input_order = matrix_input_order
units = string
Example:
If you want to modify the following matrix of values in full format such that the second row second column
will have value 1.200 instead of 0.000 then you can use the following commands:
data_element 69
data_element modify matrix full
Description:
Extended Definition:
1. A data element matrix is a general M x N array that can be a rectangular or square two-dimensional
matrix or a row or column matrix. You can enter the data in:
• Full format - You list all the M x N values or specify the results of a simulation (result set
components).
• Sparse format - You list the row position, column position, and value for only nonzero entry
values.
• External file - Enter a file containing a matrix.
If one-third or more of the entries in a matrix are nonzero, we recommend that you use full format
since it takes less time to create. If the matrix is mostly empty and entering each nonzero entry's row
position, column position, and value takes less time than entering all of the values, you should use the
sparse format.
2. Adams View will not allow you to have two matrices with the same full name, so you must provide a
unique name.
Normally, entity names are composed of alphabetic, numeric, or '_' (underscore) characters, and start
with an alphabetic or '_' character. They may be any length.
By enclosing the name in double quotes, you may use other printable characters, or start the name
with a numeral. If a name contains characters, or starts with a numeral, you must always quote the
name when entering it.
Note that you can specify the parentage of an entity (e.g. what part "owns" a marker or a geometry
element) when you CREATE it by changing the name. If you enter just the entity name, then the
default parent will be assigned by Adams View. If you type in the full name, then you may over ride
the default parent. In most cases, when creating an entity, Adams View will provide a default name.
The default name that Adams View provides will specify the parentage that it has assumed.
You may, or course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
data_element 71
data_element modify matrix sparse
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
3. The MATRIX to be defined is FULL therefore, the VALUES parameter specifies all of the M times
N entries in the matrix. The sequence of the values depends on the value of the INPUT_ORDER
parameter. If BY_ROW is specified, you enter the values row-by-row.
If BY_COLUMN is specified, you enter the values column-by-column.
4. A result set is a basic set of state variable data that Adams Solver calculates during a simulation. Adams
Solver outputs the data at each simulation output step. A component of a result set is a time series of
a particular quantity (for example, the x displacement of a part or the y torque in a joint).
5. The input_order parameter can take two values:
a. BY_ROW indicates the values are listed by row in the VALUES parameter (that is, starting with
the first row and proceeding to the second, and so on until the entire matrix is completely
defined).
b. BY_COLUMN indicates the values are listed by column (that is, starting with the first column
and proceeding to the second, and so on).
Default value is BY_COLUMN
6. Since this object can be used in a variety of contexts, Adams View can not determine what type of
units it should have. By telling Adams View what the unit type for this object is Adams View can
perform the proper conversions on the values you specify.
Format:
data_element modify matrix sparse
matrix_name = existing sparse matrix
new_matrix_name = new name for the matrix
new_matrix_name = new name for the matrix
adams_id = integer
comments = string
row_index = integer
column_index = integer
72 Adams View Commands
data_element modify matrix sparse
Example:
data_element modify matrix sparse &
matrix_name = matrix__1 &
new_matrix_name = sparse_matrix_ex &
row_index = 2,3 &
column_index = 1,1 &
values = 3.456,4.567
Description:
Extended Definition:
1. Adams View will not allow you to have two matrices with the same full name, so you must provide a
unique name.
Normally, entity names are composed of alphabetic, numeric, or '_' (underscore) characters, and start
with an alphabetic or '_' character. They may be any length.
By enclosing the name in double quotes, you may use other printable characters, or start the name
with a numeral. If a name contains characters, or starts with a numeral, you must always quote the
name when entering it.
data_element 73
data_element modify plant input
Note that you can specify the parentage of an entity (e.g. what part "owns" a marker or a geometry
element) when you CREATE it by changing the name. If you enter just the entity name, then the
default parent will be assigned by Adams View. If you type in the full name, then you may over ride
the default parent. In most cases, when creating an entity, Adams View will provide a default name.
The default name that Adams View provides will specify the parentage that it has assumed.
You may, or course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
2. When an Adams Solver data file (.adm) is read into Adams View, all comments associated with a
statement (from the end of the previous statement through the end of the current statement) are
stored with the object. Comments in the data file can be associated with model.
These comments must follow the title statement and be followed by the comment 'END OF
MODEL COMMENTS'. This string must be uppercase.
When an Adams Solver data file is written, the comments for an object are written before the
statement corresponding to the object.
3. For each non-zero value in the SPARSE MATRIX each entry for this parameter defines to the
position in the matrix of the corresponding entry in the VALUES parameter. For example, the third
value entered for the ROW_INDEX parameter defines what matrix row the third value entered for
the VALUES parameter is located on.
4. For each non-zero value in the SPARSE MATRIX each entry for this parameter defines to the
position in the matrix of the corresponding entry in the VALUES parameter. For example, the forth
value entered for the COLUMN_INDEX parameter defines what matrix column the forth value
entered for the VALUES parameter is located on.
5. The MATRIX to be defined is SPARSE therefore, the VALUES parameter specifies only the entries
that may be non zero. That is, all entries in the M by N array not assigned values by the
ROW_INDEX, COLUMN_INDEX, and VALUES parameters are assumed to be equal to zero in
Adams. Therefore, the kth entry in the VALUES parameter is assigned to the row identified by the
kth entry in ROW_INDEX and to the column identified by the kth entry in COLUMN_INDEX
for k=1,2,...,n.
Format:
data_element modify plant input
plant_input_name = an existing pinput
new_plant_input_name = a new pinput
adams_id = adams_id
74 Adams View Commands
data_element modify plant input
Example:
data_element modify plant input &
plant_input_name = pinput__1 &
new_plant_input_name = pinput__2 &
adams_id = 1 &
comments = " a modified plant input" &
variable_name = variable_1
Description:
Extended Definition:
1. A PLANT INPUT element, along with a PLANT OUTPUT element, is required by the Adams
LINEAR/STATEMAT analysis.
Note: This analysis can be requested in Adams View through the use of the
ADAMS_COMMAND_FILE parameter with the analysis SUBMIT command. Use
the "ACF" button on the text editor and select the GENERATE_STATE_MATRIX
option. You will finally use a panel to select the PLANT INPUTs, PLANT OUTPUTs,
and the format that the state matrices should be generated in
A PLANT INPUT defines a set of inputs to the mechanical system and PLANT OUTPUT defines
the set of measured outputs from the system. The LINEAR/STATEMAT analysis linearizes the
system equations to the following form:
data_element 75
data_element modify plant input
5. When an Adams Solver data file (.adm) is read into Adams View, all comments associated with a
statement (from the end of the previous statement through the end of the current statement) are
stored with the object. Comments in the data file can be associated with model.
These comments must follow the title statement and be followed by the comment 'END OF
MODEL COMMENTS'. This string must be uppercase.
When an Adams Solver data file is written, the comments for an object are written before the
statement corresponding to the object.
6. You enter variable names as input parameters for array elements (U_INPUT_ARRAY), plant input
and output definitions, and in function expressions
You may identify a variable by typing its name or by picking it from the screen.
Since variable do not have a geometric position, Adams View displays variable icons at or near the
model origin. If the variable icon is not visible on the screen, you must type the name. You may also
find it convenient to type the name even if the variable icon is displayed.
If you created the variable by reading an Adams data set, the variable name is the letters VAR followed
by the Adams data set variable ID number. The name of Adams VARIABLE/101 is VAR101, for
example. If you created the variable during preprocessing, you gave it a name at that time.
If a variable is owned by the default model, you may identify it by entering its name only. If it is not,
you must enter its full name.
To identify a variable under a different model, for instance, you may need to enter the model name
as well. For example, you may specify variable 'fluid_volume' from model 'hydro' by entering
".hydro.fluid_volume'". If you type a "?", Adams View will list the variable available by default.
You must separate multiple variable names by commas.
Cautions:
Adams View will not allow you to have two plant_inputs with the same full name, so you must
provide a unique name.
Tips:
1. If the variable is visible in one of your views, you may identify it by picking on any of the graphics
associated with it.
2. You need not separate multiple variable picks by commas.
Format:
data_element modify plant output
plant_output_name = an existing poutput
new_plant_output_name = a new poutput
adams_id = adams_id
comments = string
variable_name = an existing variable
Example:
data_element modify plant output &
plant_output_name = poutput__1 &
new_plant_output_name = poutput__2 &
adams_id = 1 &
comments = "a modified plant output element " &
variable_name = variable_1
Description:
Extended Definition:
1. A PLANT OUTPUT element, along with a PLANT INPUT element, is required by the Adams
LINEAR/STATEMAT analysis.
78 Adams View Commands
data_element modify plant output
Note: This analysis can be requested in Adams View through the use of the
ADAMS_COMMAND_FILE parameter with the analysis SUBMIT command. Use
the "ACF" button on the text editor and select the GENERATE_STATE_MATRIX
option. You will finally use a panel to select the PLANT INPUTs, PLANT OUTPUTs,
and the format that the state matrices should be generated in
PLANT OUTPUT defines the set of measured outputs from the mechanical system and PLANT
INPUT defines a set of inputs to the mechanical system. The LINEAR command linearizes the
system equations to the following form:
{x}= [A] {x} + [B] {u}
{y}= [C] {x} + [D] {u}
where x is the linearized system state (X_STATE_ARRAY), u is the system inputs defined by the
PLANT INPUT element (U_INPUT_ARRAY), and y is the system outputs defined by the PLANT
OUTPUT element (Y_OUTPUT_ARRAY). This form is commonly referred to as the state space
form of the system equations in control theory. Adams outputs the A, B, C, and D matrices (i.e.
A_STATE_MATRIX, B_INPUT_MATRIX, C_OUTPUT_MATRIX, and
D_FEEDFORWARD_MATRIX) for use in a control-system design or any other linear system
analysis software.
When the user runs an analysis type other than LINEAR , the PLANT OUTPUT element acts only
as a pointer to the list of VARIABLE specified.
2. Both FUNCTION expressions and user-written subroutines can access the PLANT OUTPUT
element. FUNCTION expressions access the values by using the internal Adams function
POUVAL(i1 ,i2) where i1 specifies the PLANT OUTPUT name , and i2 specifies the i2-th
VARIABLE entry in the PLANT INPUT parameter list. Note that i2 is not the name of the
VARIABLE.
User-written subroutines access single elements of the PLANT OUTPUT list and call the subroutine
SYSFNC to access all values for a PLANT OUTPUT by calling the subroutine SYSARY.
3. Normally, entity names are composed of alphabetic, numeric, or '_' (underscore) characters, and start
with an alphabetic or '_' character. They may be any length.
By enclosing the name in double quotes, you may use other printable characters, or start the name
with a numeral. If a name contains characters, or starts with a numeral, you must always quote the
name when entering it.
Note that you can specify the parentage of an entity (for example, what part "owns" a marker or a
geometry element) when you CREATE it by changing the name. If you enter just the entity name,
then the default parent will be assigned by Adams View. If you type in the full name, then you may
over ride the default parent. In most cases, when creating an entity, Adams View will provide a
default name. The default name that Adams View provides will specify the parentage that it has
assumed.
You may, or course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
data_element 79
data_element modify plant output
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
4. When you use the FILE ADAMS_DATA_SET WRITE command, Adams View writes an Adams
data file for your model. Adams requires that each modeling element be identified by a unique
integer identifier. If you use this parameter to specify a non-zero identifier, Adams View will use it
in the corresponding statement in the Adams data file.
You may also enter zero as an identifier, either explicitly or by default. The next time you write an
Adams file, Adams View will replace the zero with a unique, internally-generated identifier. Adams
View will permanently store this identifier with the element just as if you had entered it yourself.
Normally, you would let all identifiers default to zero, and Adams View would generate the identifiers
for you. You are never required to enter a non-zero identifier. You only need to specify it if, for some
reason, you wish to control the Adams file output.
5. When an Adams Solver data file (.adm) is read into Adams View, all comments associated with a
statement (from the end of the previous statement through the end of the current statement) are
stored with the object. Comments in the data file can be associated with model.
These comments must follow the title statement and be followed by the comment 'END OF
MODEL COMMENTS'. This string must be uppercase.
When an Adams Solver data file is written, the comments for an object are written before the
statement corresponding to the object.
6. You enter variable names as input parameters for array elements (U_INPUT_ARRAY), plant input
and output definitions, and in function expressions
You may identify a variable by typing its name or by picking it from the screen.
Since variable do not have a geometric position, Adams View displays variable icons at or near the
model origin. If the variable icon is not visible on the screen, you must type the name. You may also
find it convenient to type the name even if the variable icon is displayed.
If you created the variable by reading an Adams data set, the variable name is the letters VAR followed
by the Adams data set variable ID number. The name of Adams VARIABLE/101 is VAR101, for
example. If you created the variable during preprocessing, you gave it a name at that time.
If a variable is owned by the default model, you may identify it by entering its name only. If it is not,
you must enter its full name.To identify a variable under a different model, for instance, you may
need to enter the model name as well. For example, you may specify variable 'fluid_volume' from
model 'hydro' by entering ".hydro.fluid_volume'". If you type a "?", Adams View will list the variable
available by default.
You must separate multiple variable names by commas.
Cautions:
1. Adams View will not allow you to have two plant_outputs with the same full name, so you must
provide a unique name.
80 Adams View Commands
data_element modify plant state
Tips:
1. If the variable is visible in one of your views, you may identify it by picking on any of the graphics
associated with it.
2. You need not separate multiple variable picks by commas.
Format:
data_element modify plant state
adams_id = adams_id
comments = string
variable_name = an existing variable
plant_state_name = a new plant state
Example:
data_element modify plant state &
plant_state_name = pstate__1 &
adams_id = 1 &
comments = "a modified plant state element " &
variable_name = variable_1
Description:
Extended Definition:
1. Normally, entity names are composed of alphabetic, numeric, or '_' (underscore) characters, and start
with an alphabetic or '_' character. They may be any length.
By enclosing the name in double quotes, you may use other printable characters, or start the name
with a numeral. If a name contains characters, or starts with a numeral, you must always quote the
name when entering it.
Note that you can specify the parentage of an entity (e.g. what part "owns" a marker or a geometry
element) when you CREATE it by changing the name. If you enter just the entity name, then the
default parent will be assigned by Adams View. If you type in the full name, then you may over ride
the default parent. In most cases, when creating an entity, Adams View will provide a default name.
The default name that Adams View provides will specify the parentage that it has assumed.
You may, or course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
2. When you use the FILE ADAMS_DATA_SET WRITE command, Adams View writes an Adams
data file for your model. Adams requires that each modeling element be identified by a unique
integer identifier. If you use this parameter to specify a non-zero identifier, Adams View will use it
in the corresponding statement in the Adams data file.
You may also enter zero as an identifier, either explicitly or by default. The next time you write an
Adams file, Adams View will replace the zero with a unique, internally-generated identifier.
Adams View will permanently store this identifier with the element just as if you had entered it
yourself.
Normally, you would let all identifiers default to zero, and Adams View would generate the identifiers
for you. You are never required to enter a non-zero identifier. You only need to specify it if, for some
reason, you wish to control the Adams file output.
3. When an Adams Solver data file (.adm) is read into Adams View, all comments associated with a
statement (from the end of the previous statement through the end of the current statement) are
stored with the object. Comments in the data file can be associated with model.
These comments must follow the title statement and be followed by the comment 'END OF
MODEL COMMENTS'. This string must be uppercase.
When an Adams Solver data file is written, the comments for an object are written before the
statement corresponding to the object.
4. You enter variable names as input parameters for array elements (U_INPUT_ARRAY), plant input
and output definitions, and in function expressions
You may identify a variable by typing its name or by picking it from the screen.
Since variable do not have a geometric position, Adams View displays variable icons at or near the
model origin. If the variable icon is not visible on the screen, you must type the name. You may also
find it convenient to type the name even if the variable icon is displayed.
82 Adams View Commands
data_element modify spline
If you created the variable by reading an Adams data set, the variable name is the letters VAR followed
by the Adams data set variable ID number. The name of Adams VARIABLE/101 is VAR101, for
example. If you created the variable during preprocessing, you gave it a name at that time.
If a variable is owned by the default model, you may identify it by entering its name only. If it is not,
you must enter its full name.
To identify a variable under a different model, for instance, you may need to enter the model name
as well. For example, you may specify variable 'fluid_volume' from model 'hydro' by entering
".hydro.fluid_volume'". If you type a "?", Adams View will list the variable available by default.
You must separate multiple variable names by commas.
Cautions:
Adams View will not allow you to have two plant_states with the same full name, so you must
provide a unique name.
Tips:
1. if the variable is visible in one of your views, you may identify it by picking on any of the graphics
associated with it.
2. You need not separate multiple variable picks by commas.
Format:
data_element modify spline
spline_name = an existing spline
new_spline_name = a new spline
adams_id = adams_id
comments = string
x_result_set_component_name = an existing component
x = real
y_result_set_component_name = an existing component
y = real
z_result_set_component_name = an existing component
z= real
linear_extrapolate = boolean
x_units = string
y_units = string
data_element 83
data_element modify spline
Example:
data_element modify spline &
spline_name = spline__1 &
new_spline_name = spline__2 &
adams_id = 2 &
comments = "a modified spline" &
linear_extrapolate = yes &
x_units = mm &
y_units = mm &
z_units = degree &
file_name = "c:\spline.txt"
Description:
Extended Definition:
1. A spline interpolates between discrete data for a user-provided function or a utility subroutine called
by a user-written subroutine.
You use the spline to provide one or two independent variables and one dependent variable for each
data point you want to enter. Adams uses curve fitting techniques to interpolate between data points
to create a continuous function. If the spline data has one independent variable, Adams uses a cubic
polynomial to interpolate between points.
If the spline data has two independent variables, Adams first uses a cubic interpolation method to
interpolate between points of the first independent variable and then uses a linear method to
interpolate between curves of the second independent variable.
2. To use the discrete data input with a spline, you must write either a function expression that includes
one of the two Adams spline functions (AKISPL function and CUBSPL function) or a user-written
subroutine that calls one of the two spline utility subroutines (AKISPL subroutine and CUBSPL
subroutine).
3. These spline functions and utility subroutines use two different interpolation methods. The AKISPL
function and the AKISPL subroutine use the Akima method of interpolation. The Akima method is
a local cubic curve fitting technique. The CUBSPL function and the CUBSPL subroutine use the
traditional cubic method of interpolation. The traditional cubic method is a global cubic curve fitting
technique.
Both the Akima method and the traditional cubic method use cubic polynomials to interpolate values
that fall between two adjacent points on a curve. Both provide closer approximations than other curve
fitting techniques (for example, Lagrange polynomials, difference tables, and Fourier series). For data
with two independent variables, Adams uses a linear interpolation technique to interpolate values that
fall between curves.
4. If you have created a spline in Adams View, you may wish to plot the data points or the interpolated
curve to verify that you entered the data correctly and that the spline interpolates smoothly. To do
this, first use the 'NUMERIC_RESULTS CREATE SPLINE' command to create a result set from
the spline. This result set will contain components composed of the spline data points. You can then
data_element 85
data_element modify spline
plot the result set (i.e. the spline data points) with the XY_PLOTS command. You may also use the
'NUMERIC_RESULTS CREATE INTERPOLATION' command to interpolate more points from
the data-point result set, and then plot those. The Adams View CUBIC and AKIMA interpolation
options use the same methods as the Adams CUBSPL and AKISPL functions, respectively.
5. Normally, entity names are composed of alphabetic, numeric, or '_' (underscore) characters, and start
with an alphabetic or '_' character. They may be any length.
By enclosing the name in double quotes, you may use other printable characters, or start the name
with a numeral. If a name contains characters, or starts with a numeral, you must always quote the
name when entering it.
Note that you can specify the parentage of an entity (for example, what part "owns" a marker or a
geometry element) when you CREATE it by changing the name. If you enter just the entity name,
then the default parent will be assigned by Adams View. If you type in the full name, then you may
over ride the default parent. In most cases, when creating an entity, Adams View will provide a
default name. The default name that Adams View provides will specify the parentage that it has
assumed.
You may, or course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
6. . When you use the FILE ADAMS_DATA_SET WRITE command, Adams View writes an Adams
data file for your model. Adams requires that each modeling element be identified by a unique
integer identifier. If you use this parameter to specify a non-zero identifier, Adams View will use it
in the corresponding statement in the Adams data file.
You may also enter zero as an identifier, either explicitly or by default. The next time you write an
Adams file, Adams View will replace the zero with a unique, internally-generated identifier.
Adams View will permanently store this identifier with the element just as if you had entered it
yourself.
Normally, you would let all identifiers default to zero, and Adams View would generate the identifiers
for you. You are never required to enter a non-zero identifier. You only need to specify it if, for some
reason, you wish to control the Adams file output.
7. When an Adams Solver data file (.adm) is read into Adams View, all comments associated with a
statement (from the end of the previous statement through the end of the current statement) are
stored with the object. Comments in the data file can be associated with model.
These comments must follow the title statement and be followed by the comment 'END OF
MODEL COMMENTS'. This string must be uppercase.
When an Adams Solver data file is written, the comments for an object are written before the
statement corresponding to the object.
8. You must supply a Y value corresponding to each combination of X and Z values. First list the
component with values for each X value at the first Z value, then the component with values for each
X value at the second Z value, and so on.
86 Adams View Commands
data_element modify string
9. Since this object can be used in a variety ov contexts, Adams View can not determine what type of
units it should have. By telling Adams View what the unit type for this object is Adams View can
preform the proper conversions on the values you specify.
10. In the Adams View database and command language, units specification for splines can be done in
either of two ways: via parameters "x_units", "y_units" and "z_units"; or by a single "units"
parameter. If the Spline has this "units" parameter defined, it will be mapped to the Y Units field in
this dialog.
Cautions:
1. Adams View will not allow you to have two splines with the same full name, so you must provide a
unique name.
Format:
data_element modify string
string_name = an existing astring
new_string_name = a new astring
adams_id = adams_id
comments = string
string = string
Example:
data_element modify string &
string_name = string__1 &
string_name = string__2 &
adams_id = 1 &
comments = " a modified string" &
string = "sample string modified"
data_element 87
data_element modify string
Description:
Extended Definition:
1. A STRING element defines a character string that may be referred to later in the execution of Adams.
The character string cannot be broken and continued on the following line; however, the STRING
element can be longer than a single line. A GTSTRG subroutine can be used to retrieve this character
string in a user-written subroutine.
2. Normally, entity names are composed of alphabetic, numeric, or '_' (underscore) characters, and start
with an alphabetic or '_' character. They may be any length.
By enclosing the name in double quotes, you may use other printable characters, or start the name
with a numeral. If a name contains characters, or starts with a numeral, you must always quote the
name when entering it.
Note that you can specify the parentage of an entity (for example, what part "owns" a marker or a
geometry element) when you CREATE it by changing the name. If you enter just the entity name,
then the default parent will be assigned by Adams View. If you type in the full name, then you may
over ride the default parent. In most cases, when creating an entity, Adams View will provide a
default name. The default name that Adams View provides will specify the parentage that it has
assumed.
You may, or course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
3. When you use the FILE ADAMS_DATA_SET WRITE command, Adams View writes an Adams
data file for your model. Adams requires that each modeling element be identified by a unique
integer identifier. If you use this parameter to specify a non-zero identifier, Adams View will use it
in the corresponding statement in the Adams data file.
You may also enter zero as an identifier, either explicitly or by default. The next time you write an
Adams file, Adams View will replace the zero with a unique, internally-generated identifier.
Adams View will permanently store this identifier with the element just as if you had entered it
yourself.
88 Adams View Commands
data_element modify variable
Normally, you would let all identifiers default to zero, and Adams View would generate the identifiers
for you. You are never required to enter a non-zero identifier. You only need to specify it if, for some
reason, you wish to control the Adams file output.
4. When an Adams Solver data file (.adm) is read into Adams View, all comments associated with a
statement (from the end of the previous statement through the end of the current statement) are
stored with the object. Comments in the data file can be associated with model.
These comments must follow the title statement and be followed by the comment 'END OF
MODEL COMMENTS'. This string must be uppercase.
When an Adams Solver data file is written, the comments for an object are written before the
statement corresponding to the object.
5. The character string cannot be broken and continued on the following line; however, the STRING
element can be longer than a single line. An Adams interactive STRING command can be used to
alter or review this character string. A GTSTRG subroutine can be used to retrieve this character
string in a user-written subroutine.
Cautions:
1. Adams View will not allow you to have two strings with the same full name, so you must provide a
unique name.
Format:
data_element modify variable
variable_name = an existing solvar
new_variable_name = a new solvar
adams_id = adams_id
comments = string
initial_condition = real
function = function
user_function = real
routine = string
Example:
data_element modify variable &
variable_name = variable__10 &
adams_id = 5 &
data_element 89
data_element modify variable
Description:
Extended Definition:
1. You create VARIABLEs to define scalar algebraic equations for independent use, or as part of the
PLANT INPUT, PLANT OUTPUT, or ARRAY elements. The computed value of the VARIABLE
may depend on almost any Adams system variable. Note that you cannot access reaction forces from
user defined, POINT_CURVE, and CURVE_CURVE constraints (Adams UCONs, PTCV, CVCV
statements). You can define the computed value of a VARIABLE by either writing a FUNCTION
expression in the model or by calling a VARSUB user-written subroutine. The Adams Reference
Manual chapter on "Function Expressions," discusses the attributes of FUNCTION expressions, and
the chapter on "Subroutines," discusses user-written subroutines and accessible utility subroutines.
2. FUNCTION expressions and user-written subroutines can access the computed value of the
VARIABLE with the Adams View function VARVAL(variable_name) to represent the value, where
variable_name specifies the name you gave the VARIABLE when it was created.
User-written subroutines access single VARIABLE statement values by calling the subroutine
SYSFNC.
90 Adams View Commands
data_element modify variable
Caution should be used when defining VARIABLEs that are dependent on other VARIABLEs or on
Adams View elements that contains functions. If a defined system of equations does not have a stable
solution, convergence may fail for the entire Adams model. The following example refers to this type
of VARIABLE statement:
VARIABLE/1, FUNCTION= VARVAL(1)+1
When looked at as an algebraic equation, it looks like the following:
V=V+1.
However, when Adams tries to solve this equation using the Newton-Raphson iteration, the solution
diverges and a message appears on the screen indicating that the solution has failed to converge.
3. Adams View will not allow you to have two variables with the same full name, so you must provide
a unique name.
Normally, entity names are composed of alphabetic, numeric, or '_' (underscore) characters, and start
with an alphabetic or '_' character. They may be any length.
By enclosing the name in double quotes, you may use other printable characters, or start the name
with a numeral. If a name contains characters, or starts with a numeral, you must always quote the
name when entering it.
Note that you can specify the parentage of an entity (for example, what part "owns" a marker or a
geometry element) when you CREATE it by changing the name. If you enter just the entity name,
then the default parent will be assigned by Adams View. If you type in the full name, then you may
over ride the default parent. In most cases, when creating an entity, Adams View will provide a default
name. The default name that Adams View provides will specify the parentage that it has assumed.
You may, or course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
4. When you use the FILE ADAMS_DATA_SET WRITE command, Adams View writes an Adams
data file for your model. Adams requires that each modeling element be identified by a unique integer
identifier. If you use this parameter to specify a non-zero identifier, Adams View will use it in the
corresponding statement in the Adams data file.
You may also enter zero as an identifier, either explicitly or by default. The next time you write an
Adams file, Adams View will replace the zero with a unique, internally-generated identifier.
Adams View will permanently store this identifier with the element just as if you had entered it
yourself.
Normally, you would let all identifiers default to zero, and Adams View would generate the identifiers
for you. You are never required to enter a non-zero identifier. You only need to specify it if, for some
reason, you wish to control the Adams file output.
5. When an Adams Solver data file (.adm) is read into Adams View, all comments associated with a
statement (from the end of the previous statement through the end of the current statement) are
stored with the object. Comments in the data file can be associated with model.
data_element 91
data_element modify variable
These comments must follow the title statement and be followed by the comment 'END OF
MODEL COMMENTS'. This string must be uppercase.
When an Adams Solver data file is written, the comments for an object are written before the
statement corresponding to the object.
6. The first value is the value of the user- defined variable at the start of the simulation. If you have
entered an implicit equation, the second value may also need to be specified, which is an approximate
value of the time derivative of the user-defined variable at the start of the simulation. Adams may
adjust the value of the time derivative when it performs an initial conditions analysis. Entering an
initial value for the time derivative may help Adams converge to an initial conditions solution. If you
enter an explicit equation, you do not need to supply the second value since Adams can compute the
initial time derivative directly from the equation.
7. To enter a function expression you enter a series of quoted strings.
The easiest way to enter a function expression in Adams View is to use the text editor in combination
with the function builder. To invoke the text editor for entering a function expression, highlight the
function field and then either pick the "EDIT" button at the top of the panel or type a ^t (control-
t). The Adams View "function builder" is discussed below.
The syntactical correctness of a function expression can be investigated by using the "VERIFY"
button at the upper right of the text editor. If there is a syntax error, a message is printed and the
cursor is put near the problem.Proper unit consistency is not checked during function expression
verification.
Tips:
See the Adams User's Manual for information on writing user-written subroutines.
92 Adams View Commands
data_element modify variable
defaults 1
defaults adams_output
defaults
defaults adams_output
The ADAMS_OUTPUT command is used to set parameters that control the organization and statement
format of Adams datasets written by VIEW.
Format:
defaults adams_output
statement_order = statement_order
arguments_per_line = argument_count
text_case = text_case
indent_spaces = integer
write_default_values = on/off
scientific_notation = integer
trailing_zeros = on/off
decimal_places = integer
zero_threshold = real
round_off = on/off
significant_figures = integer
Example:
Defaults adams_output &
statement_order = markers_with_parts &
arguments_per_line = single
This statement specifies that in the dataset markers are written as a group after the part to which they belong.
Graphics that belong to a single part are written after the markers for that part, and graphics that connect one
or more parts are written after all the parts are written. Also only one argument will be written in one line as
shown below.
PART/1 , QG = 0.5, 0, 0 , REULER = 0D, 90D, 0D , MASS = 1.2
Description:
Extended Definition:
1. The default for statement order is AS_FOUND_IN_FILE, unless the model was originally created
in view, in which case the default is MARKERS_WITH_PARTS. Note that the order of the
arguments within a statement are written in a fixed order.
AS_FOUND_IN_FILE
The order of the statements in the original dataset is maintained when the model is written back to a
dataset. Any new statements added to the original model are written after all the original statements,
and both sections are labelled to indicate which statements came from the original dataset and which
statements are new.
MARKERS_WITH_PARTS
Markers are written as a group after the part to which they belong. Graphics that belong to a single
part are written after the markers for that part, and graphics that connect one or more parts are written
after all the parts are written.
Statements of the same type, such as JOINTs, JPRIMs, BUSHINGs, etc., are written as a group, in
order of ascending Adams id number.
In general, statements are written before other statements that depend on them. For example, markers
are written before the joints that use them, joints are written before any couplers that connect them,
etc.
MARKERS_WHERE_USED
Markers are written immediately after certain types of statements that depend on the existance of
those markers. The types of statements for which this is done is as follows:
BEAM BUSHING FIELD SFORCE SPRINGDAMPER VFORCE VTORQUE GFORCE
NFORCE JOINT JPRIM REQUEST MREQUEST CVCV PTCV
If a marker is not used by any of these statements, it is written after the part to which it belongs.
Graphics that belong to a single part are written after the markers for that part, and graphics that
connect one or more parts are written after all the parts are written.
Statements of the same type, such as JOINTs, JPRIMs, BUSHINGs, etc., are written as a group, in
order of ascending Adams id number.
In general, the order in which the different types of statements are written into the dataset is similar
to the order used in View 1.0 and 6.0.
2. For the arguments_per_line parameter,there are 2 choices:
SINGLE
Write only one argument and its values for each line of the statement. An example of how this would
look is as follows:
PART/1 , QG = 0.5, 0, 0 , REULER = 0D, 90D, 0D , MASS = 1.2
MARKER/101 , PART = 1 , QP = -0.5, 0, 0
MULTIPLE
Write as many arguments and their values that will fit within 80 columns for each line of the
statement. An example of how this would look is as follows:
4 Adams View Commands
defaults adams_output
defaults analysis
The DEFAULTS ANALYSIS command assigns a value to ANALYSIS_NAME which will be used as the
default for subsequent commands.
This default value is reset when a new file is read. Each time the file is read in (.GRA, .REQ, or .RES) the
ANALYSIS_NAME is set to the file name minus the extension (any preceding path is also stripped off ).
Format:
defaults analysis
defaults analysis analysis_name = existing_analysis
Example:
defaults analysis &
defaults analysis analysis_name = my_analysis
Description:
Extended Definition:
1. When Adams View reads a graphics file (.GRA), a request file (.REQ), or a results file (.RES) an
analysis name is created. By default, the name of the analysis is the file name excluding the extension.
Adams View requires that Adams simulations have unique names and the default name of an analysis
may be overridden when reading the file(s) using the file_name parameter. When referring to an
analysis name that already exists quotes are not necessary. When processing any command that
requires an analysis name the system will default to the default analysis name. The default analysis
name is set to the last analysis file read in (.GRA, .REQ, .RES, or all three). To change the default
analysis name without reading in an analysis file use the "defaults analysis" command.
Cautions:
1. Default name of an analysis may be overridden when reading the file(s) using the file_name
parameter.
defaults attributes
This command allows you to specify the GRAPHIC ATTRIBUTES INHERITANCE algorithm used by
Adams View.
6 Adams View Commands
defaults attributes
Format:
defaults attributes
inheritance = up_down
icon_visibility = on/off
size_of_icons = real number
grid_visibility = on/off
endcap_visibility = on/ off
spacing_for_grid = real number
screen_font = font name
postscript_font = font name
dimming_factor = real number
Example:
defaults attributes &
inheritance = bottom_up &
icon_visibility = on &
size_of_icons = 0.2 &
grid_visibility = on &
endcap_visibility = off &
spacing_for_grid = 0.2 &
screen_font = "--Arial-Normal " &
postscript_font = times_roman &
dimming_factor = 0.2
Description:
Extended Definition:
1. GRAPHIC ATTRIBUTES may be applied to almost any entity that may be created in Adams VIEW.
If an entity does not have a GRAPHICS ATTRIBUTE setting, the value for that GRAPHIC
ATTRIBUTE may be inherited from another entity.
2. The rules of INHERITANCE are either TOP_DOWN or BOTTOM_UP. This means that the
attributes are assumed from the children up to the parents (i.e. BOTTOM_UP), or, from the parents
down to the children (i.e. TOP_DOWN). For example, in INHERITANCE=BOTTOM_UP, if the
visibility of a marker is set on, it will override the visibility of the markers parent part when the part
visibility is set to off. Also, in INHERITANCE=TOP_DOWN, if the color of a part is set to red, it
will override the color set for a green marker and the marker will appear red.
3. GRAPHICS ATTRIBUTES include color, visibility, name visibility, render mode, and icon size.
4. Turning the default icon visibility off will result in no icons being displayed, even if they are set to
ON individually. If the default icon visibility is OFF, the visibility of each icon will be determined by
the visibility on that ICON.
5. If you set ICON_SIZE at the model level or at the lower modeling levels of part, marker, constraint,
and force, that values will take precedence.
6. If the visibility of the grid is set for a particular view with the VIEW MANAGE MODIFY
GRID_VISIBILITY command, that setting will be used instead of the default setting. To specify that
the default grid visibility is to be used, enter the command VIEW MANAGE MODIFY
GRID_VISIBILITY=NO_OPINION
7. If the spacing of the grid is set for a particular view with the VIEW MANAGE MODIFY
SPACING_FOR_GRID command, that setting will be used instead of the default setting. To specify
that the default grid visibility is to be used, enter the command VIEW MANAGE MODIFY
SPACING_FOR_GRID=0
8. Using question mark help (typing a '?' or selecting the ? button) for this parameter will display a list
of the available fonts. This parameter does not control the type of font that will be used for hardcopy
output. See the POSTSCRIPT_FONT parameter for information on controlling fonts for hardcopy
output.
8 Adams View Commands
defaults command_file
9. A zero value for the dimming factor will make the objects black, while a dimming factor of 1.0 will
cause deactivated objects to appear the same color as active objects.
defaults command_file
The DEFAULTS COMMAND_FILE command is used to specify what happens when an error is
encountered while reading a command file.
Format:
defaults command_file
on_error = error_action
echo_commands = on.off
update_screen = on/off
Example:
defaults command_file &
on_error = continue_command &
echo_commands = on &
update_screen = on
Description:
Extended Definition:
1. The three legal values for the on_error parameter are CONTINUE_COMMAND,
IGNORE_COMMAND, and ABORT_FILE. CONTINUE_COMMAND continues processing
the line as if it were typed interactively. This can be dangerous if there is no correction later on the
line, since the parser will keep issuing errors until a correction is made. The errors may continue
beyond the end of the line, even to the end of the file, if carriage-returns are invalid.
CONTINUE_COMMAND should only be used if the command file is a literal recording of your
key strokes, complete with backspaces, or other corrections, after mistakes. IGNORE_COMMAND
ignores the line the error was found on, and starts processing the next line as a new command. The
parser can usually recover and execute subsequent commands in the file. If subsequent commands
defaults 9
defaults coordinate_system
depend on the results of the invalid command, however, they may fail or give unexpected results.
ABORT_FILE immediately closes all the command files and returns to interactive input. This is the
most conservative setting, since it guarantees subsequent commands will cause no further errors or
unexpected results.
IGNORE_COMMAND is the default action.
2. If you select ON, for the echo_commands, the default, the commands will scroll through the Dialog
area and will be recorded as comments in the log file. If you select OFF, the commands will not be
displayed or logged. As a result, the command file will execute more quickly, and the log file will be
smaller.
3. For the update_screen parameter, if you select ON, the default, Adams View will update the display
after each command. If ECHO_COMMANDS is ON, you will see commands scrolling through the
Dialog area. If the command file changes the displayed geometry or plots, you will see the display
change as the commands are executed. If you select OFF, the display will not be updated until the
command file is finished executing. You will only see the final result. If the command file normally
generates many screen updates, especially of solid or shaded views, selecting OFF will make it execute
more quickly.
Tips:
1. The ON_ERROR parameter is useful to set modes for debugging command files.
defaults coordinate_system
Allows you to select the coordinate system that location coordinates and orientation angles are with respect
to by default.
Format:
defaults coordinate_system
default_coordinate_system = an existing model, part or marker
Example:
defaults coordinate_system &
default_coordinate_system = ground
Description:
Extended Definition:
1. You may also change this default by using the RELATIVE_TO parameter on commands that take
location and orientation parameters. If you do not use the RELATIVE_TO parameter, Adams View
assumes the coordinates and angles you enter are in the default coordinate system.
2. Initially, the default is the model, which is the global coordinate system. This is true for orienting
markers as well as parts. Note that this is different than Adams, where markers are specified relative
to the part, not the global system.
3. You use this command to change the default to any model, part, or marker.
Choosing any model as the default is the same as using global coordinates. By choosing a part or
marker, you may enter locations and orientations relative to that part or marker.
4. If you select a part as the default coordinate system, you then enter marker coordinates relative to that
part, just as in Adams. You can locate other parts relative to that part, as well, or choose a marker to
locate from.
Tips:
1. You may also change the default_coordinate_system by using the RELATIVE_TO parameter on
commands that take location and orientation parameters.
defaults expert_fields
Control the displaying of expert fields on panels.
Format:
defaults expert_fields
expert_mode = on/off
Example:
defaults expert_fields &
expert_mode = off
Description:
Extended Definition:
1. The DEFAULTS command is used set various parameters of the system. The values assigned to these
parameters will be the default for commands that use them throughout the system.Some of these
parameters are not allowed to default in every case where they are used. If this is true the user is
informed.
2. When expert_mode is on, all panel fields are displayed. When expert_mode is off, any panel fields
that are designated as expert fields will not be initially displayed. They may be displayed by selecting
the MORE button that is in the lower right corner of the panel.
defaults force_graphics
This command sets the defaults for the display of force graphics during an animation.
Format:
defaults force_graphics
force_scale = real
torque_scale = real
display_text = boolean
decimal_places = integer
display_wireframe = boolean
always_in_front = boolean
Example:
defaults force_graphics &
force_scale = 1.5 &
torque_scale = 2.5 &
decimal_places = 3 &
always_in_front = no &
display_text = yes
12 Adams View Commands
defaults geometry
Description:
Extended Definition:
1. The scale value will have a multiplicative effect on the current size of the force graphics. For example,
a scale value of 0.25 will make the force graphics appear one-fourth as large. A scale value of 2.0 will
make the force graphics appear twice as large.
defaults geometry
The DEFAULTS GEOMETRY command assigns a value to following DEFAULTS
GEOMETRY_PARAMETERS.
Format:
defaults geometry
defaults_geometry_parameter = real number
Example:
defaults geometry &
CurveChordToleranceScale = 0.3
Description:
defaults 13
defaults geometry
14 Adams View Commands
defaults geometry
If the curve chord tolerance scale is less than 0.3, the tessellation will be
finer. A value greater than 0.3 will result in a coarser tessellation.
defaults 15
defaults geometry
Lesser curve chord angle will result in a finer tessellation. Greater angle
will result in a coarser tessellation.
16 Adams View Commands
defaults geometry
If the surface plane tolerance scale is less than 0.3, the tessellation will be
finer. A value greater than 0.3 will result in a coarser tessellation.
defaults 17
defaults hardcopy
Lesser surface plane angle will result in a finer tessellation. Greater angle
will result in a coarser tessellation.
Extended Definition:
Editing these values through this command will reset the system defaults for this session and all existing
geometry or newly imported geometry in the session will be influenced by them. Once any of these values is
set, it will not be changed throughout session unless it is reset via this command or the File-Import dialog.
When using the File-Import dialog the values will only apply for the specific geometry imported with those
values.
Cautions:
CurveChordToleranceScale, CurveChordAngle, SurfacePlaneToleranceScale and SurfacePlaneAngle are
always positive real values.
defaults hardcopy
Allows the user to send screen output to hard copy file.
18 Adams View Commands
defaults hardcopy
Format:
defaults hardcopy
paper_type = hardcopy paper
orientation = hardcopy_orientation
send_to_printer = boolean
file_name = string
print_command = string
black_and_white_graphics = boolean
black_and_white_plot = boolean
language = hardcopy_language
image_height = real
image_width = real
Example:
defaults hardcopy &
paper_type = a1 &
orientation= portrait &
file_name = printtofile
Description:
B/ C/ D/ E/ F
orientation Landscape/ Portrait Specify the default orientation to be used.
send_to_printer Yes/no
file_name String Specifies the name of the file that is to be
read, written, or executed.
print_command String
black_and_white_graphi Yes/no Specifies if black and white graphics is
cs required.
black_and_white_plot Yes/no Specifies if black and white plot is required.
Language Bmp/ Xpm/ Jpg/ Tiff/ Png The LANGUAGE parameter is used to
specify plotting language is to be used for the
image sent to a hardcopy file.
defaults 19
defaults hardcopy
Extended Definition:
1. You do not need to enclose the file name in quotes if it only contains alpha-numeric characters and
starts with a letter. If you want to include other characters, such as a '.' for an extension or '/' or '[]'
for directory paths, you must enclose the name in quotes.
2. The legal values for the language parameter are: BMP, XPM, JPG, TIFF and PNG. The resulting file
should be printable on any device supporting those languages.
The LANGUAGE parameter is optional and if not entered, will be set to BMP.
3. The proper extensionof a file_name is the default but can be overridden by simply supplying a
different extension.
Cautions:
1. Care should be taken when performing a hardcopy. The choice of draw modes in the view (wireframe,
solid, shaded, set in the view manage modify command or from the control panel) will have impact
on the image sent to the hard copy file. If solid or shaded mode is "on" in the desired view, some
graphics may "seem" to disappear. This happens if the image of an entity is such that the edges of the
shaded entity obscured the shaded or filled area. To avoid this use wireframe draw mode or assure
"facet" interiors are visible before the hardcopy is attempted. The choice of background colors can
have a similar effect.
Tips:
1. The user may specify the view_name to be sent to the desired hardcopy file name. The FILE_NAME
parameter provides a means to specify the name of the hardcopy file the screen image(s) selected by
the user will be written to. The FILE_NAME is an optional parameter and if not entered, a default
name will be constructed. If entered file name must be enclosed in quotes.
2. The ORIENTATION parameter is used to specify how to orient the image sent to a hardcopy file.
There are two legal values for this parameter: LANDSCAPE and PORTRAIT.
3. The LANGUAGE parameter is used to specify plotting language is to be used for the image sent to a
hardcopy file. The legal values for the language parameter are: BMP, XPM, JPG, TIFF and PNG.
20 Adams View Commands
defaults icon_naming command
Format:
defaults icon_naming show_as = full_name, partial_name, adams_id
Example:
defaults icon_naming show_as = full_name
defaults icon_naming show_as = partial_name
defaults icon_naming show_as = adams_id
Parameter Description
full_name Displays full hierarchy minus model name (for example, PART.MARKER).
partial_name Displays focal object name only (for example, MARKER).
adams_id Displays Adams Solver ID number only.
default lights
This command sets the default settings for the lighting.
You can enhance the quality and realism of your animations by using focused lighting that comes from
different directions, and define the angle of that lighting (how far it is from the centerline). You can think of
this as if you were swinging a light boom across your model.
Format:
Default lights
Light = top_left, top, top_right, left, center, right, bottom_left, bottom, bottom_right
Enable_light = boolean
Example:
Default lights &
Light = top_right &
Enable_light = yes
defaults 21
default lights
Description:
Extended Definition:
1. Following are the various angles that can be used to define the lighting:
Figure 1 A. “Top_left” sets the light from upper left corner top as illustrated in the example below.
Figure 2 B. Top sets the light from the top as illustrated in the example below.
Figure 3 C. “Top_right” sets the light from the top right as illustrated in the example below
22 Adams View Commands
default lights
Figure 4 D. “left” sets the light from the left as illustrated in the example below.
Figure 5 E. “Right” sets the light from the right as illustrated in the example below.
defaults 23
default lights
Figure 6 F. “BOTTOM_LEFT” sets the light from the bottom left as illustrated in the example below.
Figure 7 F. “BOTTOM” sets the light from the bottom as illustrated in the example below.
24 Adams View Commands
defaults model
Figure 8 G. “BOTTOM_RIGHT” sets the light from the bottom right as illustrated in the example below.
defaults model
The defaults model command is used to set the location the parser uses when it is validating some object
name (that is marker, joint, and so on) when the user does not start at the root node.
Format:
defaults model
model_name = existing model
part_name = existing part
flexible_body_name = existing flex body
point_mass_name = existing point mass
defaults 25
defaults model
defaults model
marker_name = existing marker
joint_name = existing joint,
geometry_name = existing geometry
Example:
defaults model &
model_name = model_1 &
part_name = cam_part &
marker_name = marker_1
Description:
Extended Definition:
1. You may identify a model by typing its name or by picking it from the screen.
2. If the model is not visible on the screen, you must type the name.
3. You may also find it convenient to type the name even if the model is displayed.
• You must separate multiple model names by commas.
• If the model is visible in one of your views, you may identify it by picking on any of the graphics
associated with it.
• You need not separate multiple model picks by commas. This also applies to identification of
parts, flexible bodies, point masses, markers, joints and geometries.
26 Adams View Commands
defaults name_generation constraint
Caution: 1. If an entity of the specific type is created it becomes the default setting.
2. A flexible body may not have the same name as another flexible body in the same
model.
3. If you set some model default values in a model, for example, Model_1, then create and
navigate to another model, for example, Model_2, the default settings of Model_1 will
be replaced by those of Model_2. On navigating back to Model_1, the first part, flexible
body, and so on within Model_1 will be set as the default values and the original default
values set will be lost.
Format:
defaults name_generation constraint
coupler_prefix = string
gear_prefix = string
joint_prefix = string
jprim_prefix = string
motion_prefix = string
user_constraint_prefix = string
point_curve_prefix = string
curve_curve_prefix = string
Example:
defaults name_generation constraint &
coupler_prefix = my_coupler
After this command is executed all couplers created will have names My_COUPLER_2, MY_COUPLER_3
and so on.
defaults 27
defaults name_generation data_element
Description:
Extended Definition:
1. Normally, text strings are composed of alphabetic, numeric, or '_' (underscore) characters, and start
with an alphabetic or '_' character. They may be of any length.
By enclosing the text string in double quotes, you may use other printable characters, or start the
name with a numeral. If a text string contains other printable characters, or starts with a numeral, you
must always quote the text string when entering it.
Format:
defaults name_generation data_element
curve_prefix = string
spline_prefix = string
variable_prefix = string
array_prefix = string
matrix_prefix = string
28 Adams View Commands
defaults name_generation data_element
Example:
Defaults name_generation data_element &
curve_prefix = my_curve
Description:
Extended Definition:
1. Normally, text strings are composed of alphabetic, numeric, or '_' (underscore) characters, and start
with an alphabetic or '_' character. They may be of any length.
defaults 29
defaults name_generation force
By enclosing the text string in double quotes, you may use other printable characters, or start the
name with a numeral. If a text string contains other printable characters, or starts with a numeral, you
must always quote the text string when entering it.
Format:
defaults name_generation force
beam_prefix = string
bushing_prefix = string
field_prefix = string
single_component_force_prefix = string
spring_damper_prefix = string
multi_point_force_prefix = string
force_vector_prefix = string
torque_vector_prefix = string
general_force_prefix = string
Example:
defaults name_generation force &
beam_prefix = my_beam &
bushing_prefix = bush
Beams created will have names my_beam_2, my_beam_3, etc. and tires created will have names bush_2,
bush_3, etc.
Description:
Extended Definition:
1. Normally, text strings are composed of alphabetic, numeric, or '_' (underscore) characters, and start
with an alphabetic or '_' character. They may be of any length.
By enclosing the text string in double quotes, you may use other printable characters, or start the
name with a numeral. If a text string contains other printable characters, or starts with a numeral, you
must always quote the text string when entering it.
Format:
defaults name_generation geometry
arc_prefix = string
block_prefix = string
circle_prefix = string
cylinder_prefix = string
ellipsoid_prefix = string
frustum_prefix = string
force_prefix = string
spring_damper_prefix = string
torus_prefix = string
revolution_prefix = string
defaults 31
defaults name_generation geometry
Example:
defaults name_generation geometry &
arc_prefix = my_arc &
block_prefix = my_block &
torus_prefix = my_torus
After the above command is executed, all arcs created will have names MY_ARC_2, MY_ARC_3 and so on,
all blocks will have names MY_BLOCK_2, MY_BLOCK_3 and so on, and all toruses created will have
names MY_TORUS_2, MY_TORUS_3 and so on.
Description:
Extended Definition:
1. Normally, text strings are composed of alphabetic, numeric, or '_' (underscore) characters, and start
with an alphabetic or '_' character. They may be of any length.
By enclosing the text string in double quotes, you may use other printable characters, or start the
name with a numeral. If a text string contains other printable characters, or starts with a numeral, you
must always quote the text string when entering it.
Format:
defaults name_generation layout
prefix_active = yes/no
prefix_text = string
entity_prefix = yes/no
integer_id = yes/no
suffix_active = yes/no
suffix_text = string
Example:
defaults name_generation layout &
prefix_active = yes &
prefix_text = abc &
defaults 33
defaults name_generation layout
Description:
Extended Definition:
1. Adams View combines four components when automatically generating a name:
a general prefix
an entity-specific prefix
an integer entity identifier
a general suffix
You use this command to specify the general prefix and suffix, and to control which components are
included in the name. By default, Adams View uses only the entity-specific prefix and integer entity
identifier.
2. PREFIX_TEXT is a string that Adams View will add to the start of a database name.
Example
PREFIX_TEXT = "sla_"
PART_NAME = "wheel"
The resultant name would be "sla_wheel"
34 Adams View Commands
defaults name_generation marker
3. By enclosing the string for prefix_text in double quotes, you may use other printable characters, or
start the name with a numeral. If a name contains special characters, or starts with a numeral, you
must always quote the string when entering it.
4. Normally, text strings are composed of alphabetic, numeric, or '_' (underscore) characters, and start
with an alphabetic or '_' character. They may be of any length. By enclosing the text string in double
quotes, you may use other printable characters, or start the name with a numeral. If a text string
contains other printable characters, or starts with a numeral, you must always quote the text string
when entering it.
5. In the case of Adams modeling entities, this integer ID will be the ADAMS_ID. In the case of post-
processing entities, like plots, the integer ID is just an integer to make the name more unique.
Entering YES, will instruct Adams View to append integer IDs to all database names. Entering NO,
will instruct Adams View NOT to append integer IDs to all database names.
6. SUFFIX_TEXT is a string that Adams View will append at the end of a database name.
Example
SUFFIX_TEXT = "_sla"
PART_NAME = "wheel"
The resultant name would be "wheel_sla"
7. SUFFIX_TEXT is a string that Adams View will append at the end of a database name.
Example:
SUFFIX_TEXT = "_sla"
PART_NAME = "wheel"
The resultant name would be "wheel_sla"
Format:
defaults name_generation marker
marker_prefix = string
floating_marker_prefix = string
Example:
defaults name_generation marker &
marker_prefix = my_mar &
floating_marker_prefix = my_float_mar
defaults 35
defaults name_generation model
After this command is executed, all new markers created will be named My_MAR_2, MY_MAR_3, and so
on, and all new floating markers will be named MY_FLOAT_MAR_2, MY_FLOAT_MAR_3, and so on.
Description:
Extended Definition:
1. Normally, text strings are composed of alphabetic, numeric, or '_' (underscore) characters, and start
with an alphabetic or '_' character. They may be of any length.
By enclosing the text string in double quotes, you may use other printable characters, or start the
name with a numeral. If a text string contains other printable characters, or starts with a numeral, you
must always quote the text string when entering it.
Format:
defaults name_generation model
model_prefix = string
gravity_field_prefix = string
sensor_prefix = string
Example:
defaults name_generation model &
model_prefix = my_car_model
Once this command is executed, if we create a new model, the model will get the name,
MY_CAR_MODEL2. New models created after that get the names My_CAR_MODEL_3 and so on. If the
generated name is not unique, Adams View appends a '_2' to the name. If the name is still not unique,
Adams View increments the '2' to a '3'. Adams View will continue incrementing until it finds a unique
name.
36 Adams View Commands
defaults name_generation part
Description:
Extended Definition:
1. Normally, text strings are composed of alphabetic, numeric, or '_' (underscore) characters, and start
with an alphabetic or '_' character. They may be of any length.
By enclosing the text string in double quotes, you may use other printable characters, or start the
name with a numeral. If a text string contains other printable characters, or starts with a numeral, you
must always quote the text string when entering it.
Format:
defaults name_generation part
part_prefix = string
diff_prefix = string
transfer_function_prefix = string
linear_state_equation_prefix = string
general_state_equation_prefix = string
Example:
defaults name_generation part &
part_prefix = my_part
After this command is executed, all the parts will have part names with prefix “MY_PART”. For example,
MY_PART_2, MY_PART_3, and so on.
defaults 37
defaults name_generation postprocessing
Description:
Extended Definition:
1. Normally, text strings are composed of alphabetic, numeric, or '_' (underscore) characters, and start
with an alphabetic or '_' character. They may be of any length.
By enclosing the text string in double quotes, you may use other printable characters, or start the
name with a numeral. If a text string contains other printable characters, or starts with a numeral, you
must always quote the text string when entering it.
Format:
defaults name_generation postprocessing
plot_prefix = string
curve_prefix = string
complex_scatter_prefix = string
eigen_solution_prefix = string
request_prefix = string
femdata_prefix = string
mrequest_prefix = string
38 Adams View Commands
defaults orient_axis_and_plane
Example:
defaults name_generation postprocessing &
plot_prefix = plot &
mrequest_prefix = mreq
Description:
Extended Definition:
1. Normally, text strings are composed of alphabetic, numeric, or '_' (underscore) characters, and start
with an alphabetic or '_' character. They may be of any length.
By enclosing the text string in double quotes, you may use other printable characters, or start the
name with a numeral. If a text string contains other printable characters, or starts with a numeral, you
must always quote the text string when entering it.
defaults orient_axis_and_plane
Allows you to select the axis and plane controlled by the ALONG_AXIS_ORIENTATION and
IN_PLANE_ORIENTATION parameters.
Format:
defaults orient_axis_and_plane
axis_and_plane_setting = axis_setting
defaults 39
defaults page
Example:
defaults orient_axis_and_plane &
axis_and_plane_setting = z_axis_zx_plane
Description:
Extended Definition:
1. You use ALONG_AXIS_ORIENTATION to specify a part or marker coordinate axis,and use
IN_PLANE_ORIENTATION to specify an axis and coordinate plane.
2. You use this command to set which axis and plane you wish to control. The default is the Z axis and
XZ plane, meaning that ALONG_AXIS_ORIENTATION and IN_PLANE_ORIENTATION
work, as does the Adams x-point-z-point method. You direct the Z axis and, with
IN_PLANE_ORIENTATION, locate the XZ plane.
3. You may find it convenient to specify other combinations of axes and planes. However, it is the X axis
of a beam J marker, for example, that defines the centroidal axis of the beam. In this case, you may
wish to direct the X axis when creating the J marker.
You may choose to orient any axis, and either planes adjacent to that axis. For example, selecting
X_AXIS_XY_PLANE means you will subsequently be directing the X axis and locating the XY plane.
defaults page
Specifies the default page name that will be used when a page name is not specified.
Format:
defaults page
page_name = existing page
Example:
defaults page &
page_name = page_1
Now in subsequent commands even if page name is not specified, PAGE_1 will be used by default.
40 Adams View Commands
defaults plot
Description:
defaults plot
The DEFAULTS PLOT command is used to set the default plot or curve for subsequent xy plot template,
or curve commands.
Format:
defaults plot
plot_name = existing plot
curve_name = existing curve
Example:
defaults plot &
defaults plot plot_name = test &
xy_plots template modify hlim = 1,50
Note, in the template modify command, no plot name was given to override the default set in the previous
command.
Description:
Extended Definition:
1. Plot names are assigned when plots are created. After a plot has been created, it may be referenced by
its name until it is deleted. A plot may NOT have the same name as another plot.
A plot_name may be arbitrarily long and a combination of letters of the alphabet and numbers may
be used. The leading character must be a letter.
2. Curve names are assigned by the user when curves are created. After a curve has been created, it may
be referenced by its name until it is deleted. A curve may not have the same name as another curve
on the same plot. A curve is associated to a plot and may be referenced at any time with respect to the
plot. For example, a curve named "c1" on plot "p1" may be referenced by the full specification of
defaults 41
defaults plt_attributes
".p1.c1". This type of full name specification avoids the need to force a given plot to be the "current"
or "default" to the reference data (that is, a curve) associated with it. This is very useful when copying
a curve from one plot to another and so on. A curve_name may be arbitrarily long and a combination
of letters of the alphabet and numbers may be used. The leading character must be a letter.
defaults plt_attributes
This command allows the user to control various global attributes for XY plots.
Format:
defaults plt_attributes
grid_visibility = on_off
secondary_grid_visibility = on_off
tic_visibility = on_off
legend_visibility = on_off
simulation_legend_visibility = on_off
legend_border_visibility = on_off
simulation_legend_border_visibility = on_off
axis_label_visibility = on_off
symbol_visibility = on_off
border_line_type = line_style
border_thickness = real
title_color = an existing color
subtitle_color = an existing color
haxis_label_color = an existing color
vaxis_label_color = an existing color
axis_numbers_color = an existing color
grid_color = an existing color
secondary_grid_color = an existing color
tic_color = an existing color
border_color = an existing color
legend_border_color = an existing color
simulation_legend_border_color = an existing color
axis_color = an existing color
scientific_notation = integer
trailing_zeros = on_off
42 Adams View Commands
defaults plt_attributes
defaults plt_attributes
decimal_places = integer
legend_placement = plot_legend_place
simulation_legend_placement = plot_legend_place
legend_fill = on_off
simulation_legend_fill = on_off
legend_border_color =
simulation_legend_border_color =
legend_border_line_type = line_style
simulation_legend_border_line_type = line_style
graph_area = real
title_font_size = real
subtitle_font_size = real
legend_font_size = real
strip_chart_font_size = real
zero_line = on_off
Example:
defaults plt_attributes &
grid_visibility = on &
secondary_grid_visibility = off &
tic_visibility = on &
legend_visibility = on &
simulation_legend_visibility = on &
legend_border_visibility = on &
simulation_legend_border_visibility = off &
axis_label_visibility = on &
symbol_visibility = on &
border_line_type = solid &
border_thickness = 0.2 &
title_color = RED &
subtitle_color = GREEN &
haxis_label_color = BLACK &
vaxis_label_color = BLACK &
axis_numbers_color = BLUE &
defaults 43
defaults plt_attributes
Description:
Extended Definition:
1. The attributes set using this command will be used for any subsequently created plots. The attributes
that may be controlled are:
VISIBILITY for grid lines, tic marks, legends, axis labels, and plot curve symbols.
COLOR for the plot title, plot subtitle, horizontal and vertical axis labels, axis numbers, plot grid,
tic marks, and plot border.
NUMERICAL_FORMAT for controlling the limits for displaying numerical values in scientific
notation, whether trailing zeroes are displayed, and how many decimal places to display.
CONFIGURATION for the placement of legends and whether or not to display the zero line.
2. You may modify these attributes on an existing plot with the XY_PLOTSATTRIBUTES command.
3. Symbols are the graphic markers on a curve identifying the data points.
4. The default values for the scientific_notation parameter are -4 and 5, meaning that any number less
than or equal to 1.0E-04 or greater than or equal to 1.0E+05will be written in scientific notation.
46 Adams View Commands
defaults prompting_level
5. When the trailing_zeros parameter is enabled, all the digits after the decimal point will be printed,
whether they are zero or not. When disabled, any zeros at the end of the fractional part of the number
will be dropped, leaving the last digit as a non-zero digit.
defaults prompting_level
The DEFAULTS PROMPTING_LEVEL command is used to set the amount of prompting the parser does,
and whether it echoes defaults.
Format:
defaults prompting_level
level = prompting_level
echo_defaults = on/off
wildcard_messages = wldchar_msgs
Example:
defaults prompting_level &
level = required_only &
echo_defaults = on &
wildcard_messages = all
Description:
Extended Definition:
1. The LEVEL parameter is used to specify which of the command parameters the parser will prompt
for when only the keywords for a command is given. If one or more parameter is specified when the
command is entered, the parser will prompt for required parameters only, regardless of what the
prompting level is set at.
defaults 47
defaults report
2. The default for LEVEL is REQUIRED, which means that if only keywords are entered (no
parameters), then only the required parameters are prompted for. If FULL is specified, then all
parameters will be prompted for when only keywords are entered before the carriage return. If
DEFAULT_ONLY is specified then the required parameters and parameters which have default
values will be prompted for when only keywords are entered before the carriage return.
3. The ECHO_DEFAULTS parameter controls whether Adams View echoes the default parameter
values it assumes for a command. The default is OFF. If you set it ON, Adams View will list any
assumed defaults after you enter each command.
4. If you enter one or more parameter with the command, Adams View will prompt for required
parameters only. The default is REQUIRED, which means that if you enter only keywords (no
parameters), then Adams View prompts you for the required parameters only. If you specify FULL,
Adams View will prompt for all parameters. If you specify DEFAULT_ONLY, Adams View will
prompt for the required parameters and parameters which have default values.
5. For the echo_default parameter, the default is OFF. If you set it toON, Adams View will list any
assumed defaults after you enter each command.
6. The default for wildcard_messages is ALL, which causes all messages generated by the use of wildcards
to be output. If you set it to ERRORS_ONLY, only error messages will be output. NONE will
suppress all messages generated by wildcards on FOR commands.
defaults report
This command can be used to specify the default base font size to be used in reports.
Format:
defaults report
base_font_size = integer
Example:
defaults report &
base_font_size = 10
Description:
defaults solver
Default solver compatibility_checking checks compatibility of object with selected solver (C++/Fortran)
48 Adams View Commands
defaults sprintf_precision
Format:
defaults solver
compatibility_checking = existing page.
Example:
defaults solver &
compatibility_check = On
Description:
defaults sprintf_precision
Allows you to change the precision level of real number.
Default precision level is 10.
Format:
defaults sprintf_precision
defaults sprintf_precision precision = integer_precision
Example:
defaults analysis &
defaults sprintf_precision precision = 15
Description:
Extended Definition:
Default precision level is 10, so up to 1e-11 value can be processed without formatting. Input value less than
1e-11 will be formatted to zero. We can change this default precision level via this sprintf_precision
command.
CMD and TO files as well as Adams View GUI reflects the formatted number as per the set precision level.
Cautions:
1. Default precision level is 10
defaults units
Allows you to set the default length, angle, force, mass, time units, as well as the conventions for coordinates
and orientation angles.
Format:
defaults units
force = force_units
mass= mass_units
length = linear_units
time = time_units
angle = angular_units
frequency = frequency_units
coordinate_system_type = coordinate_system_type
orientation_type = orientation_type
Example:
defaults units &
force = newton &
mass = kg &
length = meter &
time = second &
angle = degrees &
frequency = hz &
coordinate_system_type = cartesian &
orientation_type = space313
50 Adams View Commands
defaults units
Description:
Extended Definition:
1. Adams View will use these units for any values you enter and any values it displays. Adams View also
assumes these units for values read from or written to a file, unless you override them with parameters
on the file read or write command. Adams View uses the coordinate and orientation conventions to
interpret values you enter for location and orientation parameters, such as LOCATION and
ORIENTATION on the 'MARKER CREATE' command.
2. You may select any force, mass, length, or time units you wish. For Adams results to be meaningful,
however, you or Adams View must compute a factor such that the equation
Force = (Mass / UNITS_CONSISTENCY_FACTOR) * Acceleration is
satisfied.
For example, if you use Newtons, kilograms, millimeters, and seconds,
UNITS_CONSISTENCY_FACTOR is 1000. Adams documentation and Data Set Language refer
to this factor as GC, on the ACCGRAV card.
3. By default, Adams View will compute the proper factor when you write an Adams data set. You may,
if you wish, specify it yourself using the 'FORCE CREATE BODY GRAVITATIONAL' command.
4. Adams View will use these units for any values you enter and any values it displays. Adams View also
assumes these units for values read from or written to a file, unless you override them with parameters
on the file read or write command.
5. If you do not specify UNITS_CONSISTENCY_FACTOR, or specify it as zero, Adams View will
calculate it for you when it writes the Adams data set. You may select any force, mass, length, or time
units you wish. For Adams results to be meaningful, however, you or Adams View must compute a
factor such that the Equation
defaults 51
defaults units
defaults vector_plots
Format:
defaults vector_plots
scale = real
display_torque = boolean
Example:
defaults vector_plots &
scale = 1.5 &
display_torque = yes
Description:
defaults view
The DEFAULTS command is used to set various parameters of the system. The values assigned to these
parameters will be the default for commands that use them throughout the system. Some of these parameters
are not allowed to default in every case where they are used. If this is true, the user is informed.
Format:
defaults view
view_name = name of an existing view
defaults 53
defaults view
Example:
defaults view &
view_name = .gui.def_view.view_1
Description:
Extended Definition:
1. Each view created has a name associated with it. The view_name parameter is used to identify a view
for a particular operation. In most cases, view_name=all is also a valid entry. The all option indicates
"all displayed views".
2. There are eight standard views available when the Adams View is started. These views are: front, top,
right, iso, bottom, left, and back. The first four of these standard views are displayed by default when
Adams View is started. The user may create new views using the 'VIEW MANAGEMENT
CREATE' command, and save/restore their attributes.
3. If the VIEW_NAME parameter is used, the desired view can be identified by picking in the window
or entering the name from the keyboard. Typing the name is the only way to identify a stored view
that is not displayed.
54 Adams View Commands
defaults view
display_attributes 1
display_attributes color constraint
display_attributes
display_attributes color constraint
The CONSTRAINT keyword indicates that you can specify a default color for all graphics associated with a
constraint.
Color set on a modeling entity will be enforced down the model hierarchy to any lower entities in the
hierarchy.
If an entity at a lower level has a color applied to it, and an entity above it in the model hierarchy has the same
attribute, the highest level entity's color will take precedence.
For example:
.model --------------- color = red
.part ------------ color = no_color
.marker ------- color = blue
The model's color attribute will be enforced on the entities below it, cancelling out the color attribute set on
the marker. Both, the part which has no color attribute and the marker's color, will be red.
Note: Adams View will issue a warning message, reminding you that the attribute has been stored,
but the attribute from an entity at a higher level will take precedence.
In the example, if the attribute is removed from the model, the attribute stored with the marker will be
enforced.
You remove a color attribute from a database entity by setting its color to NO_COLOR.
.model --------------- color = no_color
.part ------------ color = no_color
.marker ------- color = blue
The marker color will now be blue.
Format:
display_attributes color constraint
constraint_name = existing constraint
color = existing color
Example:
display_attributes color constraint &
constraint_name = joint_2 &
color = violetred &
2 Adams View Commands
display_attributes color constraint
Description:
Extended Definition:
1. You may identify constraint by typing its name or by picking it from the screen.
If the constraint is not visible on the screen, you must type the name.
You may also find it convenient to type the name even if the constraint is displayed.
If constraint is available by default, you may identify it by entering only its name. If it is not, you
must enter its full name. To identify constraint under another model, for instance, you may need to
enter the model and part names as well. For example, you may specify arc 'end' on part 'arm' in model
'susp' by entering ".susp.arm.end".
If you type a "?", Adams View will list the constraints available by default.
You must separate multiple constraint names by commas.
If the constraint is visible in one of your views, you may identify it by picking on any of the graphics
associated with it.
You need not separate multiple constraint picks by commas.
2. Adams View allows you to specify the following colors amongst others for modeling entities:
BLACK, WHITE, RED, GREEN, BLUE, CYAN, MAGENTA, YELLOW, and NO_COLOR
Specifying 'NO_COLOR' for a modeling entity, instructs Adams View to use the default color for
this entity, if there is no color present in its parent modeling entity.
Example 1: .
.model -------------------------NO_COLOR
.part ---------------------- RED
.geometry(circle) ------- NO_COLOR
The circle will be RED.
Example 2:
.model -------------------------NO_COLOR
.part ---------------------- RED
.geometry(circle) ------- BLUE
If a parent modeling entity has a color previously specified, that color takes precedence. Adams View
will issue a warning message about color precedence. The circle will be RED.
Example 3:
.model -------------------------NO_COLOR
.part ---------------------- NO_COLOR
.geometry(circle) ------- BLUE
The circle will be BLUE.
display_attributes 3
display_attributes color force
Note: Adams View will issue a warning message, reminding you that the attribute has been stored,
but the attribute from an entity at a higher level will take precedence.
In the example, if the attribute is removed from the model, the attribute stored with the marker will be
enforced.
You remove a color attribute from a database entity by setting its color to NO_COLOR.
.model --------------- color = no_color
.part ------------ color = no_color
.marker ------- color = blue
The marker color will now be blue.
Format:
display_attributes color force
constraint_name = existing constraint
color = existing color
Example:
display_attributes color force &
constraint_name = force_2 &
color = violetred &
4 Adams View Commands
display_attributes color force
Description:
Extended Definition:
1. You may identify the force by typing its name or by picking it from the screen.
If the force is not visible on the screen, you must type the name.
You may also find it convenient to type the name even if the constraint is displayed.
If force is available by default, you may identify it by entering only its name. If it is not, you must
enter its full name. To identify force under another model, for instance, you may need to enter the
model and part names as well. For example, you may specify arc 'end' on part 'arm' in model 'susp'
by entering ".susp.arm.end". If you type a "?", Adams View will list the constraints available by
default.
You must separate multiple force names by commas.
If the force is visible in one of your views, you may identify it by picking on any of the graphics
associated with it.
You need not separate multiple force picks by commas.
2. Adams View allows you to specify the following colors amongst others for modeling entities:
BLACK, WHITE, RED, GREEN, BLUE, CYAN, MAGENTA, YELLOW, and NO_COLOR
Specifying 'NO_COLOR' for a modeling entity, instructs Adams View to use the default color for
this entity, if there is no color present in its parent modeling entity.
Example 1:
.model -------------------------NO_COLOR
.part ---------------------- RED
.geometry(circle) ------- NO_COLOR
The circle will be RED.
Example 2:
.model -------------------------NO_COLOR
.part ---------------------- RED
.geometry(circle) ------- BLUE
If a parent modeling entity has a color previously specified, that color takes precedence. Adams View
will issue a warning message about color precedence. The circle will be RED.
Example 3:
.model -------------------------NO_COLOR
.part ---------------------- NO_COLOR
.geometry(circle) ------- BLUE
The circle will be BLUE.
display_attributes 5
display_attributes color geometry
Note: Adams View will issue a warning message, reminding you that the attribute has been stored,
but the attribute from an entity at a higher level will take precedence.
In the example, if the attribute is removed from the model, the attribute stored with the marker will be
enforced.
You remove a color attribute from a database entity by setting its color to NO_COLOR.
.model --------------- color = no_color
.part ------------ color = no_color
.marker ------- color = blue
The marker color will now be blue.
Format:
display_attributes color geometry
geometry_name = existing geometric entity
color = existing color
entity_scope = color_scope
Example:
display_attributes color geometry &
geometry_name = link_2 &
color = violetred &
entity_scope = fill_color
6 Adams View Commands
display_attributes color geometry
Color of link_2 will be VioletRed when it is shaded or viewed in the rendered mode.
Description:
Extended Definition:
1. You may identify geometry by typing its name or by picking it from the screen.
If the geometry is not visible on the screen, you must type the name.
You may also find it convenient to type the name even if the geometry is displayed.
If geometry is available by default, you may identify it by entering only its name. If it is not, you must
enter its full name. To identify geometry under another model, for instance, you may need to enter
the model and part names as well. For example, you may specify arc 'end' on part 'arm' in model
'susp' by entering ".susp.arm.end". If you type a "?", Adams View will list the geometrys available by
default.
You must separate multiple geometry names by commas.
If the geometry is visible in one of your views, you may identify it by picking on any of the graphics
associated with it.
You need not separate multiple geometry picks by commas.
2. Adams View allows you to specify the following colors, among others, for modeling entities: BLACK,
WHITE, RED, GREEN, BLUE, CYAN, MAGENTA, YELLOW, and NO_COLOR
Specifying 'NO_COLOR' for a modeling entity, instructs Adams View to use the default color for
this entity, if there is no color present in its parent modeling entity.
Example 1:
.model -------------------------NO_COLOR
.part ---------------------- RED
.geometry(circle) ------- NO_COLOR
The circle will be RED.
Example 2:
.model -------------------------NO_COLOR
.part ---------------------- RED
.geometry(circle) ------- BLUE
display_attributes 7
display_attributes color marker
If a parent modeling entity has a color previously specified, that color takes precedence. Adams View
will issue a warning message about color precedence. The circle will be RED.
Example 3:
.model -------------------------NO_COLOR
.part ---------------------- NO_COLOR
.geometry(circle) ------- BLUE
The circle will be BLUE.
3. The legal values for this parameter are FILL_COLOR, EDGE_COLOR, OUTLINE_COLOR, and
ALL.
FILL_COLOR is the color of those areas of a graphic that can be shaded (they include sides of a
cylinders, frustums, boxes, etc.). The EDGE_COLOR is the color of the lines making up the edges
of the facets (or areas filled by the FILL_COLOR) of a graphic that can be shaded.
The OUTLINE_COLOR represents the color of the lines that make up those graphics that cannot
be shaded or filled, like an outline graphic statement consisting of two points or the coil of a
springdamper.
Finally, the ALL value indicates that all three entity types, FILL_COLOR, EDGE_COLOR, and
OUTLINE_COLOR will be affected by the color change.
The ENTITY_SCOPE parameter is optional and if not entered, will be set to FILL_COLOR.
Format:
display_attributes color marker
marker_name = an existing par
color = an existing color
Example:
display_attributes color marker &
marker_name = part__1 &
color = BLUE
Description:
Extended Definition:
1. The MARKER keyword indicates that you can specify a default color for all graphics associated with
a marker.
You can specify a "scope" for the color you select using the ENTITY_SCOPE parameter. This scope
will limit the color's application to: FILL_COLOR, EDGE_COLOR, OUTLINE_COLOR, or
ALL_COLOR.
Color set on a modeling entity will be enforced down the model hierarchy, to any lower entities in
the hierarchy.
If an entity at a lower level has a color applied to it, and an entity above it in the model hierarchy has
the same attribute, the highest level entity's color will take precedence.
An example:
.model --------------- color = red
.part ------------ color = no_color
.marker ------- color = blue
The model's color attribute will be enforced on the entities below it, cancelling out the color attribute
set on the marker. Both the part, which has no color attribute, and the marker's color will be red.
Note: Adams View will issue a warning message, reminding you that the attribute has been
stored, but the attribute from an entity at a higher level will take precedence
In the example, if the attribute is removed from the model, the attribute stored with the marker will
be enforced.
You remove a color attribute from a database entity by setting its color to NO_COLOR.
.model --------------- color = no_color
.part ------------ color = no_color
.marker ------- color = blue
The marker color will now be blue.
2. You may identify a marker by typing its name or by picking it from the screen.
If the marker is not visible on the screen, you must type the name.
You may also find it convenient to type the name even if the marker is displayed.
If you created the marker by reading an Adams data set or graphics file, the marker name is the letters
MAR followed by the Adams data set marker ID number. For example, the name of Adams
MARKER/101 is MAR101. If you created the marker during preprocessing, you will have given it a
name at that time.
If a marker is available by default, you may identify it by entering only its name. If it is not, you must
enter its full name. To identify a marker under a different part, for instance, you may need to enter
the model and part names as well. For example, you may specify marker 'pivot' from model 'links',
part 'lower_arm' by entering ".links.lower_arm.pivot". If you type a "?", Adams View will list the
markers available by default.
You must separate multiple marker names by commas.
display_attributes 9
display_attributes color marker
3. Adams View allows you to specify the following colors for modeling.
entities: BLACK, WHITE, RED, GREEN, BLUE, CYAN, MAGENTA, YELLOW, and
NO_COLOR
Specifying 'NO_COLOR' for a modeling entity, instructs Adams View to use the default color for
this entity, if there is no color present in its parent modeling entity.
Example 1:
.model -------------------------NO_COLOR
.part ---------------------- RED
.geometry(circle) ------- NO_COLOR
The circle will be RED.
Example 2:
.model -------------------------NO_COLOR
.part ---------------------- RED
.geometry(circle) ------- BLUE
If a parent modeling entity has a color previously specified, that color takes precedence. Adams View
will issue a warning message about color precedence. The circle will be RED.
Example 3:
.model -------------------------NO_COLOR
.part ---------------------- NO_COLOR
.geometry(circle) ------- BLUE
The circle will be BLUE.
4. The legal values for the entity_scope parameter are FILL_COLOR, EDGE_COLOR,
OUTLINE_COLOR, and ALL.
FILL_COLOR is the color of those areas of a graphic that can be shaded (they include sides of a
cylinders, frustums, boxes, etc.) The EDGE_COLOR is the color of the lines making up the edges
of the facets (or areas filled by the FILL_COLOR) of a graphic that can be shaded.
The OUTLINE_COLOR represents the color of the lines that make up those graphics that cannot
be shaded or filled, like an outline graphic statement consisting of two points or the coil of a
springdamper.
Finally, the ALL value indicates that all three entity types, FILL_COLOR, EDGE_COLOR, and
OUTLINE_COLOR will be affected by the color change.
The ENTITY_SCOPE parameter is optional and if not entered, will be set to FILL_COLOR.
Tips:
1. 1. If the part is visible in one of your views, you may identify it by picking on any of the graphics
associated with it.
2. You need not separate multiple part picks by commas.
10 Adams View Commands
display_attributes color model
Format:
display_attributes color model
model_name = an existing model
color = an existing color
entity_scope = color_scope
Example:
display_attributes color model &
model_name = crankshaft &
color = blue &
entity_scope = edge_color
Description:
Extended Definition:
1. The MODEL keyword indicates that you can specify a default color for all graphics associated with
the model.
You can specify a "scope" for the color you select using the ENTITY_SCOPE parameter. This scope
will limit the color's application to: FILL_COLOR, EDGE_COLOR, OUTLINE_COLOR, or
ALL_COLOR.
Color set on a modeling entity will be enforced down the model hierarchy, to any lower entities in
the hierarchy.
If an entity at a lower level has a color applied to it, and an entity above it in the model hierarchy has
the same attribute, the highest level entity's color will take precedence.
For example:
.model --------------- color = red
.part ------------ color = no_color
.marker ------- color = blue
display_attributes 11
display_attributes color model
The model's color attribute will be enforced on the entities below it, cancelling out the color attribute
set on the marker. Both the part, which has no color attribute, and the marker's color will be red.
Note: Adams View will issue a warning message, reminding you that the attribute has been
stored, but the attribute from an entity at a higher level will take precedence.
In the example, if the attribute is removed from the model, the attribute stored with the marker will
be enforced.
You remove a color attribute from a database entity by setting its color to NO_COLOR.
.model --------------- color = no_color
.part ------------ color = no_color
.marker ------- color = blue
The marker color will now be blue
2. You may identify a model by typing its name or by picking it from the screen.
If the model is not visible on the screen, you must type the name. You may also find it convenient to
type the name even if the model is displayed.
You must separate multiple model names by commas.
If the model is visible in one of your views, you may identify it by picking on any of the graphics
associated with it.
You need not separate multiple model picks by commas.
3. Adams View allows you to specify the following colors for modeling entities: BLACK, WHITE,
RED, GREEN, BLUE, CYAN, MAGENTA, YELLOW, and NO_COLOR
Specifying 'NO_COLOR' for a modeling entity, instructs Adams View to use the default color for
this entity, if there is no color present in its parent modeling entity.
Example 1:
.model -------------------------NO_COLOR
.part---------------------- RED
.geometry(circle) ------- NO_COLOR
The circle will be RED.
Example 2:
.model -------------------------NO_COLOR
.part---------------------- RED
.geometry(circle) ------- BLUE
If a parent modeling entity has a color previously specified, that color takes precedence. Adams View
will issue a warning message about color precedence. The circle will be RED.
Example 3:
.model -------------------------NO_COLOR
.part ---------------------- NO_COLOR
.geometry(circle) ------- BLUE
The circle will be BLUE.
12 Adams View Commands
display_attributes color part
4. The legal values for the entity_scope parameter are FILL_COLOR, EDGE_COLOR,
OUTLINE_COLOR, and ALL.
FILL_COLOR is the color of those areas of a graphic that can be shaded (they include sides of a
cylinders, frustums, boxes, etc.). The EDGE_COLOR is the color of the lines making up the edges
of the facets (or areas filled by the FILL_COLOR) of a graphic that can be shaded.
The OUTLINE_COLOR represents the color of the lines that make up those graphics that can not
be shaded or filled, like an outline graphic statement consisting of two points or the coil of a
springdamper.
Finally, the ALL value indicates that all three entity types, FILL_COLOR, EDGE_COLOR, and
OUTLINE_COLOR will be affected by the color change.
The ENTITY_SCOPE parameter is optional and if not entered, will be set to FILL_COLOR.
Format:
display_attributes color part
part_name = an existing part
equation_name = an existing equ
color = an existing color
entity_scope = color_scope
Example:
display_attributes color part &
part_name = part__1 &
color = blue &
entity_scope = edge_color
Description:
Extended Definition:
1. The PART keyword indicates that the color of the graphic components associated to a particular part
are to be affected by the current command. The color of the graphics associated to a part can be
affected all at once or individually (The smallest graphic entity that can be affected is that defined by
the Adams GRAPHICS statement). The scope of the color change to a particular graphic entity can
be controlled as well. The ENTITY_SCOPE can be set to the FILL_COLOR, the EDGE_COLOR,
the LINE_COLOR, or ALL.
The part or graphic entity is identified by the ID label associated to the Adams PART or GRAPHICS
statement respectively. The desired part or graphic is communicated to the application either by
entering the label from the keyboard or picking the particular graphic from the terminal screen using
the cursor (mouse).
2. You may identify a part by typing its name or by picking it from the screen.
If the part is not visible on the screen, you must type the name. You may also find it convenient to
type the name even if the part is displayed.
If you created the part by reading an Adams data set or graphics file, the part name is the letters PAR
followed by the Adams data set part ID number. For example, the name of Adams PART/101 is
PAR101. If you created the part during preprocessing, you will have given it a name at that time.
If a part is available by default, you may identify it by entering only its name. If it is not, you must
enter its full name. To identify a part under another model, for instance, you may need to enter the
model name as well. For example, you may specify part 'arm' from model 'robot' by entering
".robot.arm". If you type a "?", Adams View will list the parts available by default.
You must separate multiple part names by commas.
3. You may identify an equation by typing its name or by picking it from the screen.
Since equations do not have a geometric position, Adams View displays equation icons at the model
origin. If the equation icon is not visible on the screen, you must type the name. You may also find
it convenient to type the name even if the equation icon is displayed.
If you created the equation by reading an Adams data set or graphics file, the equation name is the
letters DIF followed by the Adams data set equation ID number. For example, the name of Adams
DIFF/101 is DIF101. If you created the equation during preprocessing, you will have given it a
name at that time.
14 Adams View Commands
display_attributes color part
If a equation is available by default, you may identify it by entering its name only. If it is not, you
must enter its full name. To identify a equation under a different model, for instance, you may need
to enter the model name as well. For example, you may specify equation 'fluid_volume' from model
'hydro' by entering ".hydro.fluid_volume'". If you type a "?", Adams View will list the equations
available by default.
You must separate multiple equation names by commas.
4. Adams View allows you to specify the following colors for modeling entities: BLACK, WHITE,
RED, GREEN, BLUE, CYAN, MAGENTA, YELLOW, and NO_COLOR
Specifying 'NO_COLOR' for a modeling entity, instructs Adams View to use the default color for
this entity, if there is no color present in its parent modeling entity.
Example 1:
.model -------------------------NO_COLOR
.part---------------------- RED
.geometry(circle) ------- NO_COLOR
The circle will be RED.
Example 2: .
model -------------------------NO_COLOR
.part---------------------- RED
.geometry(circle) ------- BLUE
If a parent modeling entity has a color previously specified, that color takes precedence. Adams View
will issue a warning message about color precedence. The circle will be RED.
Example 3:
.model -------------------------NO_COLOR
.part ---------------------- NO_COLOR
.geometry(circle) ------- BLUE
The circle will be BLUE.
5. The legal values for the entity_scope parameter are FILL_COLOR, EDGE_COLOR,
OUTLINE_COLOR, and ALL. FILL_COLOR is the color of those areas of a graphic that can be
shaded (they include sides of a cylinders, frustums, boxes, etc.). The EDGE_COLOR is the color of
the lines making up the edges of the facets (or areas filled by the FILL_COLOR) of a graphic that can
be shaded.
The OUTLINE_COLOR represents the color of the lines that make up those graphics that can not
be shaded or filled, like an outline graphic statement consisting of two points or the coil of a
springdamper.
Finally, the ALL value indicates that all three entity types, FILL_COLOR, EDGE_COLOR, and
OUTLINE_COLOR will be affected by the color change.
The ENTITY_SCOPE parameter is optional and if not entered, will be set to FILL_COLOR.
Tips:
1. If the part is visible in one of your views, you may identify it by picking on any of the graphics
associated with it.
display_attributes 15
display_attributes icon_size constraint
Format:
display_attributes icon_size constraint
constraint_name = an existing constraint
scale_of_icons = real
size_of_icons = length
Example:
display_attributes icon_size constraint &
constraint_name = .crankshaft.drivermotion.motion_r2 &
size_of_icons = 0.9
Description:
Extended Definition:
1. You may set a specific size for icons in modeling units, or scale their present size with a unit-less scale
factor.
If no initial size is specified for Adams View icons, the default size will be one modeling LENGTH
unit. For example, if the modeling units are K/M/S, a revolute joint icon will be one meter in
diameter.
When you specify an ICON_SCALE, a new size is calculated by multiplying the current size, by the
scale, and storing the product as the new ICON_SIZE.
If a model has an ICON_SIZE set, and a constraint under that model has a different ICON_SIZE,
the model's ICON_SIZE will take precedence.
16 Adams View Commands
display_attributes icon_size constraint
For Example:
.model ---------------------- ICON_SIZE = .25 meters
.constraint-------------- ICON_SIZE = .125 meters
The constraint's icon will be .25 meters is size.
If the model has an ICON_SIZE of 0.0 set, and a constraint under the model has an ICON_SIZE
of .125, the constraint's ICON_SIZE will be used.
For Example:
.model ---------------------- ICON_SIZE = 0.0 meters
.constraint-------------- ICON_SIZE = .125 meters
The constraint's icon will be .125 meters is size.
2. You may identify a constraint by typing its name or by picking it from the screen.
If the constraint is not visible on the screen, you must type the name. You may also find it convenient
to type the name even if the constraint is displayed.
If you created the constraint by reading an Adams data set, the constraint name is the first three letters
of the Adams statement type followed by the Adams data set constraint ID number. For example,
the name of Adams JOINT/101 is JOI101. If you created the constraint during preprocessing, you
will have given it a name at that time.
If a constraint is available by default, you may identify it by entering only its name. If it is not, you
must enter its full name.
To identify a constraint under a different model, for instance, you may need to enter the model name
as well. For example, you may specify constraint 'servo_motor' from model 'test' by entering
".test.servo_motor". If you type a "?", Adams View will list the constraints available by default.
You must separate multiple constraint names by commas.
3. If no initial size is specified for Adams View icons, the default size will be one modeling LENGTH
unit. For example, if the modeling units are K/M/S, a part axes icon will have triad legs of one meter
in length.
When you specify SCALE_OF_ICONS, a new size is calculated by multipling the current size, by
the scale, and storing the product as the new ICON_SIZE.
4. If no initial size is specified for Adams View icons, the default size will be one modeling LENGTH
unit. For example, if the modeling units are K/M/S, a part axes icon will have triad legs of one meter
in length.
When you set SIZE_OF_ICONS at the model level, all Adams View icons used in creating a model
will use the size specified.
If the model has an SIZE_OF_ICONS set, and a part under that model has a different
SIZE_OF_ICONS, the model's ICONS_SIZE will take precedence.
For Example:
.model ---------------------- SIZE_OF_ICONS = .15 meters
.part-------------------- SIZE_OF_ICONS = .125 meters
The part's icon will be 1.5 meters is size.
display_attributes 17
display_attributes icon_size force
If the model has SIZE_OF_ICONS of set to 0.0 , and a part under that model has a
SIZE_OF_ICONS set to .125, the part's icon size will be used.
An Example:
.model ---------------------- SIZE_OF_ICONS = 0.0 meters
.part-------------------- SIZE_OF_ICONS = .125 meters
The part's icon will be .125 meters is size.
Tips:
1. If the constraint is visible in one of your views, you may identify it by picking on any of the graphics
associated with it.
2. You need not separate multiple constraint picks by commas.
Format:
display_attributes icon_size force
force_name = an existing constraint
scale_of_icons = real
size_of_icons = length
Example:
display_attributes icon_size force &
force_name = .crankshaft.DriverMotion.motion_r2 &
size_of_icons = 0.9
Description:
Extended Definition:
1. You may set a specific size for icons in modeling units, or scale their present size with a unit-less scale
factor. If no initial size is specified for Adams View icons, the default size will be one modeling
LENGTH unit. For example, if the modeling units are K/M/S, a translational force icon will be one
meter in length.
When you specify an ICON_SCALE, a new size is calculated by multipling the current size, by the
scale, and storing the product as the new ICON_SIZE.
If a model has an ICON_SIZE set, and a force under that model has a different ICON_SIZE, the
model's ICON_SIZE will take precedence.
For Example:
.model ---------------------- ICON_SIZE = .25 meters
.force------------------- ICON_SIZE = .125 meters
The force's icon will be .25 meters is size.
If the model has an ICON_SIZE of 0.0 set, and a force under the model has a ICON_SIZE of .125,
the force's ICON_SIZE will be used.
For Example:
.model ---------------------- ICON_SIZE = 0.0 meters
.force------------------- ICON_SIZE = .125 meters
The force's icon will be .125 meters is size.
2. You may identify a force by typing its name or by picking it from the screen.
If the force is not visible on the screen, you must type the name.
You may also find it convenient to type the name even if the force is displayed.
If you created the force by reading an Adams data set or graphics file, the force name is the first three
letters of the Adams statement followed by the Adams data set force ID number. For example, the
name of Adams SFORCE/101 is SFO101. If you created the force during preprocessing, you will
have given it a name at that time.
If a force is available by default, you may identify it by entering only its name. If it is not, you must
enter its full name. To identify a force under a preprocessing model, for instance, you may need to
enter the model name as well. For example, you may specify the force named 'bumper' from the
model named 'test' by entering ".test.bumper". If you type a "?", Adams View will list the forces
available by default.
You must separate multiple force names by commas.
3. If no initial size is specified for Adams View icons, the default size will be one modeling LENGTH
unit. For example, if the modeling units are K/M/S, a part axes icon will have triad legs of one meter
in length.
When you specify SCALE_OF_ICONS, a new size is calculated by multipling the current size, by
the scale, and storing the product as the new ICON_SIZE.
4. If no initial size is specified for Adams View icons, the default size will be one modeling LENGTH
unit. For example, if the modeling units are K/M/S, a part axes icon will have triad legs of one meter
in length.
display_attributes 19
display_attributes icon_size marker
5. When you set SIZE_OF_ICONS at the model level, all Adams View icons used in creating a model
will use the size specified.
If the model has a SIZE_OF_ICONS set, and a part under that model has a different
SIZE_OF_ICONS, the model's ICONS_SIZE will take precedence.
For Example:
.model ---------------------- SIZE_OF_ICONS = .15 meters
.part-------------------- SIZE_OF_ICONS = .125 meters
The part's icon will be 1.5 meters is size.
If the model has SIZE_OF_ICONS of set to 0.0 , and a part under that model has a
SIZE_OF_ICONS set to .125, the part's icon size will be used.
For Example:
.model ---------------------- SIZE_OF_ICONS = 0.0 meters
.part-------------------- SIZE_OF_ICONS = .125 meters
The part's icon will be .125 meters is size.
Tips:
1. If the force is visible in one of your views, you may identify it by picking on any of the graphics
associated with it.
2. You need not separate multiple force picks by commas.
Format:
display_attributes icon_size marker
marker_name = an existing constraint
scale_of_icons = real
size_of_icons = length
Example:
display_attributes icon_size marker &
marker_name = marker__1 &
size_of_icons = 0.9
20 Adams View Commands
display_attributes icon_size marker
Description:
Extended Definition:
1. You may set a specific size for icons in modeling units, or scale their present size with a unit-less scale
factor.
If no initial size is specified for Adams View icons, the default size will be one modeling LENGTH
unit. For example, if the modeling units are K/M/S, a marker axes icon will have triad legs of one
meter in length.
When you specify an ICON_SCALE, a new size is calculated by multipling the current size, by the
scale, and storing the product as the new ICON_SIZE.
If a part has an ICON_SIZE set, and a marker under that part has a different ICON_SIZE, the part's
ICON_SIZE will take precedence.
An Example:
.model ---------------------- ICON_SIZE = 0.0 meters
.part -------------------- ICON_SIZE = .125 meters
.marker ---------------- ICON_SIZE = .2 meters
The marker's icon will be .125 meters is size.
If the model, and part have an ICON_SIZE of 0.0 set, and a marker under the part has a
ICON_SIZE of .125, the marker's ICON_SIZE will be used.
For Example:
.model ---------------------- ICON_SIZE = 0.0 meters
.part -------------------- ICON_SIZE = 0.0 meters
.marker ---------------- ICON_SIZE = .2meters
The marker's icon will be .2 meters is size.
2. You may identify a marker by typing its name or by picking it from the screen.
If the marker is not visible on the screen, you must type the name.
You may also find it convenient to type the name even if the marker is displayed.
If you created the marker by reading an Adams data set or graphics file, the marker name is the letters
MAR followed by the Adams data set marker ID number. For example, the name of Adams
MARKER/101 is MAR101. If you created the marker during preprocessing, you will have given it
a name at that time.
display_attributes 21
display_attributes icon_size model
If a marker is available by default, you may identify it by entering only its name. If it is not, you must
enter its full name. To identify a marker under a different part, for instance, you may need to enter
the model and part names as well. For example, you may specify marker 'pivot' from model 'links',
part 'lower_arm' by entering ".links.lower_arm.pivot". If you type a "?", Adams View will list the
markers available by default.
You must separate multiple marker names by commas.
3. If no initial size is specified for Adams View icons, the default size will be one modeling LENGTH
unit. For example, if the modeling units are K/M/S, a part axes icon will have triad legs of one meter
in length.
When you specify SCALE_OF_ICONS, a new size is calculated by multipling the current size, by
the scale, and storing the product as the new ICON_SIZE.
4. If no initial size is specified for Adams View icons, the default size will be one modeling LENGTH
unit. For example, if the modeling units are K/M/S, a part axes icon will have triad legs of one meter
in length.
When you set SIZE_OF_ICONS at the model level, all Adams View icons used in creating a model
will use the size specified.
If the model has an SIZE_OF_ICONS set, and a part under that model has a different
SIZE_OF_ICONS, the model's ICONS_SIZE will take precedence.
For Example:
model ---------------------- SIZE_OF_ICONS = .15 meters
part -------------------- SIZE_OF_ICONS = .125 meters
The part's icon will be 1.5 meters is size.
If the model has SIZE_OF_ICONS of set to 0.0 , and a part under that model has a
SIZE_OF_ICONS set to .125, the part's icon size will be used.
An Example:
.model ---------------------- SIZE_OF_ICONS = 0.0 meters
.part -------------------- SIZE_OF_ICONS = .125 meters
The part's icon will be .125 meters is size.
Tips:
1. If the marker is visible in one of your views, you may identify it by picking on it.
2. You need not separate multiple marker picks by commas.
Format:
display_attributes icon_size model
model_name = an existing model
scale_of_icons = real
size_of_icons = length
Example:
display_attributes icon_size model &
model_name = piston &
size_of_icons = 0.9
Description:
Extended Definition:
1. You may set a specific size for icons in modeling units, or scale their present size with a unit-less scale
factor.
If no initial size is specified for Adams View icons, the default size will be one modeling LENGTH
unit. For example, if the modeling units are K/M/S, a part axes icon will have triad legs of one meter
in length.
When you specify an ICON_SCALE, a new size is calculated by multipling the current size, by the
scale, and storing the product as the new ICON_SIZE.
When you set ICON_SIZE at the model level, all Adams View icons used in creating a model will
use the size specified.
If the model has an ICON_SIZE set, and a part under that model has a different ICON_SIZE, the
model's ICONS_SIZE will take precedence.
For Example:
.model ---------------------- ICON_SIZE = .15 meters
.part-------------------- ICON_SIZE = .125 meters
The part's icon will be 1.5 meters is size.
display_attributes 23
display_attributes icon_size model
If the model has an ICON_SIZE of 0.0 set, and a part under that model has a ICON_SIZE of .125,
the part's ICON_SIZE will be used.
For Example:
.model ---------------------- ICON_SIZE = 0.0 meters
.part-------------------- ICON_SIZE = .125 meters
The part's icon will be .125 meters is size.
2. You may identify a model by typing its name or by picking it from the screen.
If the model is not visible on the screen, you must type the name. You may also find it convenient to
type the name even if the model is displayed.
You must separate multiple model names by commas.
If the model is visible in one of your views, you may identify it by picking on any of the graphics
associated with it.
You need not separate multiple model picks by commas.
3. If no initial size is specified for Adams View icons, the default size will be one modeling LENGTH
unit. For example, if the modeling units are K/M/S, a part axes icon will have triad legs of one meter
in length.
When you specify SCALE_OF_ICONS, a new size is calculated by multipling the current size, by
the scale, and storing the product as the new ICON_SIZE.
4. If no initial size is specified for Adams View icons, the default size will be one modeling LENGTH
unit. For example, if the modeling units are K/M/S, a part axes icon will have triad legs of one meter
in length.
When you set SIZE_OF_ICONS at the model level, all Adams View icons used in creating a model
will use the size specified.
If the model has an SIZE_OF_ICONS set, and a part under that model has a different
SIZE_OF_ICONS, the model's ICONS_SIZE will take precedence.
For Example:
.model ---------------------- SIZE_OF_ICONS = .15 meters
.part-------------------- SIZE_OF_ICONS = .125 meters
The part's icon will be 1.5 meters is size.
If the model has SIZE_OF_ICONS of set to 0.0 , and a part under that model has a
SIZE_OF_ICONS set to .125, the part's icon size will be used.
For Example:
.model ---------------------- SIZE_OF_ICONS = 0.0 meters
.part-------------------- SIZE_OF_ICONS = .125 meters
The part's icon will be .125 meters is size.
Tips:
1. If the model is visible in one of your views, you may identify it by picking on any of the graphics
associated with it.
24 Adams View Commands
display_attributes icon_size part
Format:
display_attributes icon_size part
part_name = an existing part
scale_of_icons = real
size_of_icons = length
Example:
display_attributes icon_size part &
part_name = piston &
size_of_icons = 0.9
Description:
Extended Definition:
1. You may set a specific size for icons in modeling units, or scale their present size with a unit-less scale
factor.
If no initial size is specified for Adams View icons, the default size will be one modeling LENGTH
unit. For example, if the modeling units are K/M/S, a part axes icon will have triad legs of one meter
in length.
When you specify an ICON_SCALE, a new size is calculated by multipling the current size, by the
scale, and storing the product as the new ICON_SIZE.
If a model has an ICON_SIZE set, and a part under that model has a different ICON_SIZE, the
model's ICON_SIZE will take precedence.
For Example:
display_attributes 25
display_attributes icon_size part
For Example:
.model ---------------------- SIZE_OF_ICONS = 0.0 meters
.part-------------------- SIZE_OF_ICONS = .125 meters
The part's icon will be .125 meters is size.
Tips:
1. If the part is visible in one of your views, you may identify it by picking on any of the graphics
associated with it.
2. You need not separate multiple part picks by commas.
display_attributes rendering_mode
This command specifies the rendering mode of individual or groups of graphic objects.
Format:
display_attributes rendering_mode
geometry_name = an existing geometric entity
type_of_geometry = geometry_type
render_mode = render_mode
Example:
display_attributes rendering_mode &
geometry_name = solid3 &
type_of_geometry = block &
render_mode = wireframe
Description:
Extended Definition:
1. This render mode is an attribute that is attached to each of the specific graphic entities and works in
tandem with a view's RENDER attribute.
There are two possible values for the RENDERING_MODE parameter:
WIREFRAME - Graphic objects that have a WIREFRAME rendering mode will ALWAYS be drawn
as wireframe geometry, regardless of how views are rendered (wireframe, solid, or shaded).
FILLED - Graphic objects that have a FILLED rendering mode will be drawn based upon the view's
RENDER parameter that the graphic is drawn in (wireframe, solids, shaded).
2. You may identify geometry by typing its name or by picking it from the screen.
If the geometry is not visible on the screen, you must type the name.
You may also find it convenient to type the name even if the geometry is displayed.
If geometry is available by default, you may identify it by entering only its name. If it is not, you must
enter its full name. To identify geometry under another model, for instance, you may need to enter
the model and part names as well. For example, you may specify arc 'end' on part 'arm' in model
'susp' by entering ".susp.arm.end".
If you type a "?", Adams View will list the geometrys available by default.
You must separate multiple geometry names by commas.
3. This parameter acts as a filter to decide which of the selected geometry objects will have their
rendering mode modified.
The possible values are: ARC, BOX, FRUSTUM, SPRINGDAMPER, OUTLINE, or ALL. The
ARC setting includes both arc and circle geometry. The FRUSTUM setting includes both, frustum
and cylinder geometry.
4. Graphic objects that can have their rendering mode altered include: arcs, outlines, boxes, circles,
cylinders, frustums, and spring damper graphics.
The selection of graphic objects can be based on association to a particular analysis, part, or by
individual graphic name. When the rendering mode of a part is specified, all graphic objects fixed to
that part are drawn with the rendering mode of the part. Graphics that span parts can only be selected
by graphic name.
Adams View supports WIREFRAME and FILLED rendering modes.
This command should not be confused with the VIEW MANAGEMENT... RENDER parameter.
The RENDER parameter in view control sets an attribute associated with a particular view. So, if the
view render mode is wireframe, all the graphics will be drawn in wireframe mode regardless of the
value of a specific graphic object's render mode attribute. However, if the view render mode is set to
SOLIDS or SHADED, then a specific graphic entity will be drawn in the mode specified by the
DISPLAY_ATTRIBUTES RENDER_MODE command. In other words, the view RENDER
parameter is an attribute of the view and the display_attribute render mode is an attribute of the
specific graphic element. Or, WIREFRAME is the dominant mode and regardless of how it is set
(either RENDER by view or RENDERING_MODE by graphic object).
28 Adams View Commands
display_attributes scale force_graphics
Tips:
1. If the geometry is visible in one of your views, you may identify it by picking on any of the graphics
associated with it.
2. You need not separate multiple geometry picks by commas.
Format:
display_attributes scale force_graphics
analysis_name = existing analysis
scale = real
Example:
display_attributes scale force_graphics &
analaysis_name = analysis_1 &
scale = 2.0
Force graphics in the analysis ANALYSIS_1 will appear twice as large as they used to, once the above
command is executed.
Description:
Extended Definition:
1. When Adams View reads a graphics file (.GRA), a request file (.REQ), or a results file (.RES), an
analysis name is created. By default, the name of the analysis is the file name excluding the extension.
display_attributes 29
display_attributes scale torque_graphics
Adams View requires that Adams simulations have unique names and the default name of an analysis
may be overridden when reading the file(s) using the file_name parameter. When referring to an
analysis name that already exists, quotes are not necessary. When processing any command that
requires an analysis name, the system will default to the default analysis name. The default analysis
name is set to the last analysis file read in (.GRA, .REQ, .RES, or all three). To change the default
analysis name without reading in an analysis file use the "defaults analysis" command.
2. The scale value will have a multiplicative effect on the current size of the graphic symbols. For
example, a scale value of 0.25 will make the graphic symbol appear one-fourth as large. A scale value
of 2.0 will make the graphic symbol appear twice as large. The scale value is a real number and must
be greater than zero. This parameter is optional and if not entered will default to 1.0.
Format:
display_attributes scale torque_graphics
analysis_name = existing analysis
scale = real
Example:
display_attributes scale torque_graphics &
analaysis_name = analysis_1 &
scale = 2.0
Torque graphic symbol in the analysis ANALYSIS_1 will appear twice as large as they used to, once the above
command is executed.
Description:
Extended Definition:
1. When Adams View reads a graphics file (.GRA), a request file (.REQ), or a results file (.RES) an
analysis name is created. By default, the name of the analysis is the file name excluding the extension.
Adams View requires that Adams simulations have unique names and the default name of an analysis
may be overridden when reading the file(s) using the file_name parameter. When referring to an
analysis name that already exists, quotes are not necessary. When processing any command that
requires an analysis name, the system will default to the default analysis name. The default analysis
name is set to the last analysis file read in (.GRA, .REQ, .RES, or all three). To change the default
analysis name without reading in an analysis file, use the "defaults analysis" command.
2. The scale value will have a multiplicative effect on the current size of the graphic symbols. For
example, a scale value of 0.25 will make the graphic symbol appear one-fourth as large. A scale value
of 2.0 will make the graphic symbol appear twice as large. The scale value is a real number and must
be greater than zero. This parameter is optional and if not entered, will default to 1.0.
Format:
display_attributes visibility constraint
constraint _name = an existing constraint
visibility = on_off_with_toggle
name_visibility = on_off_with_toggle
Description:
Extended Definition:
1. When you set an attribute on a modeling entity, that attribute gets stored with the entity in the
database. There are rules for the application of these attributes.
Visibility applied to any modeling entity will be enforced down the modeling hierarchy in the
following fashion.
display_attributes 31
display_attributes visibility constraint
Tips:
1. If the constraint is visible in one of your views, you may identify it by picking on any of the graphics
associated with it.
2. You need not separate multiple constraint picks by commas.
32 Adams View Commands
display_attributes visibility force
Format:
display_attributes visibility force
force_name = an existing force
visibility = on_off_with_toggle
name_visibility = on_off_with_toggle
Example:
display_attributes visibility force &
force_name = force__1 &
visibility = on &
name_visibility = on
Description:
Extended Definition:
1. When you set an attribute on a modeling entity, that attribute gets stored with the entity in the
database. There are rules for the application of these attributes.
Visibility applied to any modeling entity will be enforced down the modeling hierarchy, in the
following fashion.
A visibility attribute setting of ON, allows that entity to be drawn.
This means if you set visibility on for a marker, but its parent part has a visibility setting of off, the
marker will not be visible.
A visibility setting of OFF, turns that entity's visibility off and, has the effect of turning visibility off
for all modeling entities below it.
For Example:
.model ---------------- visibility = on
display_attributes 33
display_attributes visibility geometry
Tips:
1. If the force is visible in one of your views, you may identify it by picking on any of the graphics
associated with it.
2. You need not separate multiple force picks by commas.
Format:
display_attributes visibility geometry
geometry_name = an existing geometric entity
visibility = on_off_with_toggle
Example:
display_attributes visibility geometry &
geometry_name = solid3 &
visibility = on
Description:
Extended Definition:
1. The GEOMETRY keyword indicates that you can specify the visibility for a geometry entity.
When you set an attribute on a modeling entity, that attribute gets stored with the entity in the
database. There are rules for the application of these attributes.
Visibility applied to any modeling entity will be enforced down the modeling hierarchy, in the
following fashion.
A visibility attribute setting of ON, allows that entity to be drawn.
This means if you set visibility=on for a marker, but its parent part has a visibility setting of off, the
marker will not be visible.
A visibility setting of OFF, turns that entity's visibility off and has the effect of turning visibility off
for all modeling entities below it.
For Example:
.model ---------------- visibility = on
.part ------------- visibility = off
.marker -------- visibility = on
The marker will not be visible because the part is not visible.
By default, all entities have a visibility attribute of ON, when created.
2. You may identify geometry by typing its name or by picking it from the screen.
If the geometry is not visible on the screen, you must type the name.
display_attributes 35
display_attributes visibility marker
You may also find it convenient to type the name even if the geometry is displayed.
If geometry is available by default, you may identify it by entering only its name. If it is not, you must
enter its full name. To identify geometry under another model, for instance, you may need to enter
the model and part names as well. For example, you may specify arc 'end' on part 'arm' in model
'susp' by entering ".susp.arm.end".
If you type a "?", Adams View will list the geometrys available by default.
You must separate multiple geometry names by commas.
3. The visibility parameter is used to control whether graphic entities, such as markers, joints, and parts,
are to be drawn in an Adams View viewport.
The legal values for this parameter are: ON, OFF, and TOGGLE. ON will make the desired entity
visible. OFF will make the desired entity invisible. TOGGLE will take the current state of an entity’s
visibility and reverse it.
Tips:
1. If the geometry is visible in one of your views, you may identify it by picking on any of the graphics
associated with it.
2. You need not separate multiple geometry picks by commas.
Format:
display_attributes visibility marker
marker_name = an existing marker
visibility = on_off_with_toggle
name_visibility = on_off_with_toggle
Example:
display_attributes visibility marker &
marker_name = marker_1 &
visibility = on &
name_visibility = on
36 Adams View Commands
display_attributes visibility marker
Description:
Extended Definition:
1. The MARKER keyword is used to control whether a particular (or group of) markers(s) are to be
drawn in an Adams View viewport. The visibility of markers can be set using this command. The
scope of a particular marker visibility change can be controlled. This means that a single visibility
change can affect all markers in a particular analysis, on a particular part, or marker visibility can be
controlled individually.
2. You may identify a marker by typing its name or by picking it from the screen.
If the marker is not visible on the screen, you must type the name.
You may also find it convenient to type the name even if the marker is displayed.
If you created the marker by reading an Adams data set or graphics file, the marker name is the letters
MAR followed by the Adams data set marker ID number. For example, the name of Adams
MARKER/101 is MAR101. If you created the marker during preprocessing, you will have given it a
name at that time.
If a marker is available by default, you may identify it by entering only its name. If it is not, you must
enter its full name. To identify a marker under a different part, for instance, you may need to enter
the model and part names as well. For example, you may specify marker 'pivot' from model 'links',
part 'lower_arm' by entering ".links.lower_arm.pivot". If you type a "?", Adams View will list the
markers available by default.
You must separate multiple marker names by commas.
3. The visibility parameter is used to control whether graphic entities, such as markers, joints, and parts,
are to be drawn in an Adams View viewport.
The legal values for this parameter are: ON, OFF, and TOGGLE. ON will make the desired entity
visible. OFF will make the desired entity invisible. TOGGLE will take the current state of an entities
visibility and reverse it.
4. The legal values of the name_visibility parameter are ON and OFF. This is an optional parameter
and if not entered, the name will be visible (that is, will be ON).
Note that if the visibility of the view name is turned off, the only indication that a view is "active" will
be the color of the viewport border. This would be a problem on a black and white monitor.
display_attributes 37
display_attributes visibility model
Tips:
1. If the marker is visible in one of your views, you may identify it by picking on it.
2. You need not separate multiple marker picks by commas.
Format:
display_attributes visibility model
model_name = an existing model
visibility = on_off_with_toggle
name_visibility = on_off_with_toggle
Example:
display_attributes visibility model &
model_name = crankshaft &
visibility = on &
name_visibility = on
Description:
Extended Definition:
1. When you set an attribute on a modeling entity, that attribute gets stored with the entity in the
database. There are rules for the application of these attributes.
Visibility applied to any modeling entity will be enforced down the modeling hierarchy in the
following fashion.
A visibility attribute setting of ON, allows that entity to be drawn.
38 Adams View Commands
display_attributes visibility part
This means if you set visibility=on for a marker, but its parent part has a visibility setting of off, the
marker will not be visible.
A visibility setting of OFF, turns that entity's visibility off and has the effect of turning visibility off
for all modeling entities below it.
An Example:
.model ---------------- visibility = on
.part ------------- visibility = off
.marker -------- visibility = on
The marker will not be visible because the part is not visible.
By default, all entities have a visibility attribute of ON, when created.
2. You may identify a model by typing its name or by picking it from the screen.
If the model is not visible on the screen, you must type the name.
You may also find it convenient to type the name even if the model is displayed.
You must separate multiple model names by commas.
If the model is visible in one of your views, you may identify it by picking on any of the graphics
associated with it.
You need not separate multiple model picks by commas.
3. The visibility parameter is used to control whether graphic entities, such as markers, joints, and parts,
are to be drawn in an Adams View viewport.
The legal values for this parameter are: ON, OFF, and TOGGLE. ON will make the desired entity
visible. OFF will make the desired entity invisible. TOGGLE will take the current state of an entities
visibility and reverse it.
4. The legal values of the name_visibility parameter are ON and OFF. This is an optional parameter
and if not entered, the name will be visible (i.e. will be ON).
Note that if the visibility of the view name is turned off, the only indication that a view is "active" will
be the color of the viewport border. This would be a problem on a black and white monitor.
Format:
display_attributes visibility part
part_name = an existing part
part_name = an existing part
visibility = on_off_with_toggle
name_visibility = on_off_with_toggle
display_attributes 39
display_attributes visibility part
Example:
display_attributes visibility part &
part_name = piston &
visibility = on &
name_visibility = on
Description:
Extended Definition:
1. The PART keyword indicates that the visibility of the graphic components associated to a particular
part are to be affected by the current command. The visibility of the graphics associated to a part can
only be affected all at once (not individually).
The part is identified by the ID label associated to the Adams PART statement. The desired part is
communicated to the application either by entering the label from the keyboard or picking the
particular graphic from the terminal screen using the cursor (mouse).
2. You may identify a part by typing its name or by picking it from the screen.
If the part is not visible on the screen, you must type the name. You may also find it convenient to
type the name even if the part is displayed.
If you created the part by reading an Adams data set or graphics file, the part name is the letters PAR
followed by the Adams data set part ID number. For example, the name of Adams PART/101 is
PAR101. If you created the part during preprocessing, you will have given it a name at that time.
If a part is available by default, you may identify it by entering only its name. If it is not, you must
enter its full name. To identify a part under another model, for instance, you may need to enter the
model name as well. For example, you may specify part 'arm' from model 'robot' by entering
".robot.arm". If you type a "?", Adams View will list the parts available by default.
You must separate multiple part names by commas.
3. You may identify an equation by typing its name or by picking it from the screen.
40 Adams View Commands
display_attributes visibility plot
Since equations do not have a geometric position, Adams View displays equation icons at the model
origin. If the equation icon is not visible on the screen, you must type the name. You may also find
it convenient to type the name even if the equation icon is displayed.
If you created the equation by reading an Adams data set or graphics file, the equation name is the
letters DIF followed by the Adams data set equation ID number. For example, the name of Adams
DIFF/101 is DIF101. If you created the equation during preprocessing, you will have given it a name
at that time.
If a equation is available by default, you may identify it by entering only its name. If it is not, you
must enter its full name. To identify a equation under a different model, for instance, you may need
to enter the model name as well. For example, you may specify equation 'fluid_volume' from model
'hydro' by entering ".hydro.fluid_volume'". If you type a "?", Adams View will list the equations
available by default.
You must separate multiple equation names by commas.
If the equation is visible in one of your views, you may identify it by picking on any of the graphics
associated with it.
You need not separate multiple equation picks by commas.
4. The visibility parameter is used to control whether graphic entities, such as markers, joints, and parts,
are to be drawn in an Adams View viewport.
The legal values for this parameter are: ON, OFF, and TOGGLE. ON will make the desired entity
visible. OFF will make the desired entity invisible. TOGGLE will take the current state of an entity’s
visibility and reverse it.
5. The legal values of the name_visibility parameter are ON and OFF. This is an optional parameter
and if not entered, the name will be visible (i.e. will be ON).
Note that if the visibility of the view name is turned off, the only indication that a view is "active" will
be the color of the viewport border. This would be a problem on a black and white monitor.
Tips:
1. If the part is visible in one of your views, you may identify it by picking on any of the graphics
associated with it.
Format:
display_attributes visibility plot
plot_name = an existing plot
grid_lines = on /off
display_attributes 41
display_attributes visibility plot
Example:
display_attributes visibility plot &
plot_name = plot_1 &
grid_lines = on &
tic_marks = on &
legend = off &
axis_labels = on &
symbol = off
Description:
Extended Definition:
1. Plot names are assigned when plots are created. After a plot has been created, it may be referenced by
its name until it is deleted. A plot may NOT have the same name as another plot.
A plot_name may be arbitrarily long and a combination of letters of the alphabet and numbers may
be used. The leading character must be a letter.
2. Grid lines are a set of vertical and horizontal lines that are extensions of the tic marks on the vertical
and horizontal axes. Grid lines provide for more accurate interpretation of the data on an XY plot.
ON indicates that the grid lines will be visible, OFF indicates that the grid lines will be invisible. This
parameter is optional and if not entered, grid lines will be displayed on the xy_plot.
3. Tic marks are the small lines intersecting the axis. ON, the default, indicates that the tic marks will
be visible; OFF indicates that the tic marks will be invisible.
42 Adams View Commands
display_attributes visibility plot
4. The XY plot legend displays a label beside a key describing that curve. The label will be the Adams
request statement comment, if one is found. If no request comment is found, a label is created by
concatenating the data specified in the haxis_data and vaxis_data parameters that comprise that curve.
The key will look like the curve with respect to color, line type, and line thickness. The plot legend
is displayed at the top of the XY plot template. This parameter is optional and ON (the default)
indicates that the legend will be visible, OFF indicates that the legend will be invisible.
5. For the axis_labels parameter, ON indicates that the labels are to be visible; OFF indicates that the
labels are to be invisible. The vertical and horizontal axis labels are controlled by this parameter. This
parameter is optional and if not entered, axis_labels will be displayed on the xy_plot.
6. Symbols are the graphic markers on a curve, identifying the data points. ON, the default, indicates
that the symbols on a particular curve will be visible, OFF indicates that the symbols will be invisible.
else 1
else
Allows you to use the IF, ELSE, ELSEIF, and END commands to execute a group of commands conditionally.
The execution of commands bracketed by IF and END depends on the value of an expression.
You can use the IF command with or without the ELSE command.
Format:
else
if condition = (expression)...end
if condition = (expression)...else...end
Example:
if condition=(DB_EXISTS ("MAR1"))
marker modify marker=mar1 location=2,0,0
else
marker create marker=mar1 location=2,0,0
end
In the above example, if the marker MAR1 exists, Adams View modifies its location. If the marker does not
exist, Adams View creates it and sets its location.
Extended Definition:
1. The question-mark/colon (?:) operator, used in a conditional expression, replaces an IF/ELSE
command that distinguishes one of two values. The expression consists of three parts: a condition
whose truth determines which value is selected, and two expressions for the values.
condition expression ? expression a : expression b
When evaluated, the conditional operator takes on one of the two values. The expression that comes
before the question-mark is interpreted as boolean-valued. If it is true (non-zero), then expression a
is used as the value of the conditional operator, otherwise expression b is used as the value.
For example, consider the commands below:
if condition = (variable_a < variable_b)
variable set variable = variable_min real = (EVAL(variable_a))
else
variable set variable = variable_min real = (EVAL(variable_b))
end
This can be expressed more concisely by using a ?: conditional operator:
variable set variable = variable_min &
real = (EVAL((variable_a < variable_b)? variable_a : variable_b))
2 Adams View Commands
elseif 1
elseif
Allows you to use the IF, ELSE, ELSEIF, and END commands to execute a group of commands conditionally.
The execution of commands bracketed by IF and END depends on the value of an expression.
You can nest any combination of looping (FOR/END, WHILE/END) and conditional constructs
(IF/ELSEIF/ELSE/END).
Note: As with all Adams View commands, you can use the IF, ELSE, ELSEIF, and END commands
on the command line, in macros, and in command files.
Format:
elseif
if condition = (expression)
elseif condition = (expression)
else (optional)
end
Example:
! Bodies
variable create variable=object_type string=(eval(DB_TYPE(.MDI.obj)))
if condition=(object_type == "marker")
interface command_builder command="marker modify marker" initial=(.MDI.obj)
elseif condition=(object_type == "point")
interface dialog display dialog=.gui.main_objecttable parameter="Points"
elseif condition=(object_type == "flexible_body")
interface dialog display dialog=.gui.flx_dia_panel parameter=(.MDI.obj)
! Constraints - complex joints
elseif condition=(object_type == "coupler" )
interface dialog display dialog=.gui.coupler_cremod parameter=(.MDI.obj)
elseif condition=(object_type == "gear" )
interface command_builder command="constraint modify complex_joint gear"
initial=(.MDI.obj)
Description:
Tips:
1. You can have any number of ELSEIF CONDITION commands.
2. The question-mark/colon (?:) operator, used in a conditional expression, replaces an IF/ELSE
command that distinguishes one of two values. The expression consists of three parts: a condition
whose truth determines which value is selected, and two expressions for the values.
condition expression ? expression a : expression b
When evaluated, the conditional operator takes on one of the two values. The expression that comes
before the question-mark is interpreted as boolean-valued. If it is true (non-zero), then expression a
is used as the value of the conditional operator, otherwise expression b is used as the value.
For example, consider the commands below:
if condition = (variable_a < variable_b)
variable set variable = variable_min real = (EVAL(variable_a))
else
variable set variable = variable_min real = (EVAL(variable_b))
end
This can be expressed more concisely by using a ?: conditional operator:
variable set variable = variable_min &
real = (EVAL((variable_a < variable_b)? variable_a :
variable_b))
end 1
end
Allows you to use the IF, ELSE, ELSEIF, and END commands to execute a group of commands conditionally.
The execution of commands bracketed by IF and END depends on the value of an expression.
You can nest any combination of looping (FOR/END, WHILE/END) and conditional constructs
(IF/ELSEIF/ELSE/END).
Note: As with all Adams View commands, you can use the IF, ELSE, ELSEIF, and END commands
on the command line, in macros, and in command files.
Format:
end
if condition = (expression)
elseif condition = (expression)
else (optional)
end
Example:
! Bodies
variable create variable=object_type string=(eval(DB_TYPE(.MDI.obj)))
if condition=(object_type == "marker")
interface command_builder command="marker modify marker" initial=(.MDI.obj)
elseif condition=(object_type == "point")
interface dialog display dialog=.gui.main_objecttable parameter="Points"
elseif condition=(object_type == "flexible_body")
interface dialog display dialog=.gui.flx_dia_panel parameter=(.MDI.obj)
! Constraints - complex joints
elseif condition=(object_type == "coupler" )
interface dialog display dialog=.gui.coupler_cremod parameter=(.MDI.obj)
elseif condition=(object_type == "gear" )
interface command_builder command="constraint modify complex_joint gear"
initial=(.MDI.obj)
! Constraints - Higher Pair contact
elseif condition=(object_type == "curve_curve" )
interface command_builder command="constraint modify higher_pair_contact
curve_curve" init=(.MDI.obj)
elseif condition=(object_type == "point_curve" )
interface command_builder command="constraint modify higher_pair_contact
point_curve" init=(.MDI.obj)
end
The above example illustrates how to use ELSEIF to determine the type of object and then perform an
operation on the object based on the object's type. The example assumes that an Adams View variable named
.mdi.org exists and its type is database object.
2 Adams View Commands
entity 1
entity attributes
entity
entity attributes
Allows you to modify the attributes of an entity in the model database.
The display attributes of the entities in the model database like icon size, visibility, name_visibility,
transparency, color, line properties, and dependent properties are edited using this command.
Format:
entity attributes
entity_name = an existing entity
type_filter = ent
size_of_icons = length
scale_of_icons = real
expr_visibility = integer
visibility = on_off_with_toggle
name_visibility = on_off_with_toggle
transparency = integer
lod = integer
color = an_exisitng_color
entity_scope = color_scope
line_thickness = real
line_type = line_style
active = on_off_no_opinion
dependents_active = on_off_no_opinion
Example:
entity attributes &
entity_name = .copy_of_model.pendulum &
type_filter = part &
size_of_icons = 20&
visibility = on &
name_visibility = on &
transparency = 50 &
lod = 100 &
2 Adams View Commands
entity attributes
Description:
Extended Definition:
1. The ‘entity_name’ specifies any existing database entity. You may identify a database entity by typing
its name or by picking it from the screen. If the database entity is not visible on the screen, you must
type the name. You may also find it convenient to type the name even if the database entity is
displayed. If you created the database entity by reading an Adams data set or graphics file, the database
entity name is the first three letters of the Adams object, followed by the Adams data set database
entity ID number. For example, the name of ADAMS PART/101 is PAR101. If you created the
database entity during preprocessing, you will have given it a name at that time. If the database entity
is available by default, you may identify it by entering only its name. If it is not, you must enter its
full name. For example, to identify a part under an analysis, you may need to enter the analysis name
as well. You may specify the part named par101 from the analysis named test by entering
"/test/par101". If you type a "?", Adams Adams View will list the database entities available by default.
You must separate multiple database entity names by commas. If the database entity is visible in one
of your views, you may identify it by picking on any of the graphics associated with it. You need not
separate multiple database entity picks by commas.
2. The ‘type_filter’ specifies the type of objects allowed. When specifying the objects for this operation
a wild cards can be used, which may result in too many objects being found. For example, if all the
parts for model MOD1 are desired, specifying .MOD1.* will get not only the parts, but all children
of the model, like joints, forces, etc. Using the parameter TYPE_FILTER=part will result in only
the parts being processed by this command.
3. Size of icons specifies the size, in modeling units, the Adams View icons will appear in. If no initial
size is specified for Adams View icons, the default size will be one modeling LENGTH unit. For
example, if the modeling units are K/M/S, a part axes icon will have triad legs of one meter in length.
When you set SIZE_OF_ICONS at the model level, all Adams View icons used in creating a model
will use the size specified. If the model has an SIZE_OF_ICONS set, and a part under that model
has a different SIZE_OF_ICONS, the model's ICONS_SIZE will take precedence. For Example:
.model ---------------------- SIZE_OF_ICONS = .15 meters
.part -------------------- SIZE_OF_ICONS = .125 meters
The part's icon will be 1.5 meters is size.
If the model has SIZE_OF_ICONS of set to 0.0 , and a part under that model has a
SIZE_OF_ICONS set to .125, the part's icon size will be used.
For Example:
.model ---------------------- SIZE_OF_ICONS = 0.0 meters
.part-------------------- SIZE_OF_ICONS = .125 meters
The part's icon will be .125 meters is size.
4. Scale of icons specifies a unit-less scale factor to apply to the current icon size.If no initial size is
specified for Adams View icons, the default size will be one modeling LENGTH unit. For example,
if the modeling unitsare K/M/S, a part axes icon will have triad legs of one meter in length. When
you specify SCALE_OF_ICONS, a new size is calculated by multipling the current size, by the scale,
and storing the product as the new ICON_SIZE.
4 Adams View Commands
entity attributes
5. Visibility specifies the visibility of graphic entities. The visibility parameter is used to control whether
graphic entities, such as markers, joints, and parts, are to be drawn in an Adams View viewport. The
legal values for this parameter are: ON, OFF, and TOGGLE. ON will make the desired entity
visible. OFF will make the desired entity invisible. TOGGLE will take the current state of an entity’s
visibility and reverse it.
6. The NAME_VISIBILITY parameter provides control over the visibility of the view name displayed
at the top center position of a given view. The legal values of this parameter are ON and OFF. This
is an optional parameter and if not entered, the name will be visible (i.e. will be ON). Note that if the
visibility of the view name is turned off, the only indication that a view is "active" will be the color of
the viewport border. This could be a problem on a black and white monitor.
7. The ‘transparency’ sets the level of transparency of a graphic entity. The legal values range from 0 to
100, where a value of 100 will make the graphic entity fully transparent. The ‘lod’ gives the level of
details for a shell object. The range of values is from 0 to 100.
8. The color specifies the color the modeling entity should be drawn in. Adams View allows you to
specify the following colors for modeling entities: BLACK, WHITE, RED, GREEN, BLUE, CYAN,
MAGENTA, YELLOW, and NO_COLOR Specifying 'NO_COLOR' for a modeling entity,
instructs Adams View to use the default color for this entity, if there is no color present in its parent
modeling entity.
Example 1:
.model -------------------------NO_COLOR
.part---------------------- RED
.geometry(circle) ------- NO_COLOR
The circle will be RED.
Example 2:
.model -------------------------NO_COLOR
.part---------------------- RED
.geometry(circle) ------- BLUE
If a parent modeling entity has a color previously specified, that color takes precedence. Adams View
will issue a warning message about color precedence. The circle will be RED.
Example 3:
.model -------------------------NO_COLOR
.part---------------------- NO_COLOR
.geometry(circle) ------- BLUE
The circle will be BLUE.
9. The ENTITY_SCOPE parameter is used to control how a color modification is to affect a particular
graphic entity. The legal values for this parameter are FILL_COLOR, EDGE_COLOR,
OUTLINE_COLOR, and ALL. FILL_COLOR is the color of those areas of a graphic that can be
shaded (they include sides of a cylinders, frustums, boxes, etc.). The EDGE_COLOR is the color of
the lines making up the edges of the facets (or areas filled by the FILL_COLOR) of a graphic that can
be shaded. The OUTLINE_COLOR represents the color of the lines that make up those graphics
entity 5
entity attributes
that cannot be shaded or filled, like an outline graphic statement consisting of two points or the coil
of a springdamper. Finally, the ALL value indicates that all three entity types, FILL_COLOR,
EDGE_COLOR, and OUTLINE_COLOR will be affected by the color change. The
ENTITY_SCOPE parameter is optional and if not entered, will be set to FILL_COLOR.
10. The line thickness specifies the thickness of the line, whereas, the ‘line type’ parameter allows the
selection of the line type for a curve. The line type describes how the line will look when displayed
on a plot. Adams View supports solid, dash, dotdash, and dot.
Line Type Appearance
solid _______________
dash _ _ _ _ _ _ _ _
dotdash . _ . _ . _ . _
dot . . . . . . . .
11. When you set ACTIVE=NO, that element is written to the data set as a comment. When you set
the ACTIVE attribute on an object, you are also setting it on the children of the object. If you set
ACTIVE=NO on a part, but wish for a marker on that part to be on, then you must explicitly set
ACTIVE=YES on the marker, after setting activation on the part. The DEPENDENTS_ACTIVE
parameter acts in the same fashion, but sets the ACTIVE attribute for the dependents all the way
down the dependency chain. For example, if you execute the following command:
PART ATTRIBUTES PART=PAR1 DEPENDENTS_ACTIVE=NO
Where PAR1 has a marker MAR1 which is the I marker of a joint JOI1 (which has a J marker MAR2),
then JOI1 will be deactivated. Also, if the joint JOI1 is referenced in a request function, or if the I
marker is referenced by a request, then the request will be deactivated. Propagation of activation status
through groups is as if each element were to have its activation status changed indvidually.
Elements affected are:
• Group
• Part
• Differential Equation
• Marker
• Geometry
• Constraints
• Forces
• Data Elements
• Output Control
12. EXPR_ACTIVE allows you to set the activity of the group using an integer value, which allows
parameterization. Adams View at this time does not allow expressions when specifying option lists.
To allow the activity of a group to be set parametrically, the parameter EXPR_ACTIVE was added
to the GROUP CREATE and GROUP MODIFY commands. This parameter takes an integer value.
If the value is not set, either because the parameter was never used, or it was unset with the (none)
6 Adams View Commands
entity copy
expression, then the standard activity rules apply. If the EXPR_ACTIVE is set to an expression that
evaluates to zero (FALSE), the objects in the group will be in active (and will not be included by
Adams Solver in any simulation). If the value is the default or non-zero (TRUE), then the objects
will be active (and will be included in simulations).
entity copy
Allows you to copy the entities from a model database.
The entities in the model database like system_defaults, gui, sim_preferences, colors, icons, MDI,
SELECT_LIST, materials, VISIBILITY_LIST, model and plots can be copied as a new entity.
Format:
entity copy
entity_name = an existing entity
new_entity_name = a new entity
Example:
entity copy &
entity_name = model_1 &
new_entity_name = copy_of_model
Description:
Extended Definition:
1. The ‘entity_name’ specifies any existing database entity. You may identify a database entity by typing
its name or by picking it from the screen. If the database entity is not visible on the screen, you must
type the name. You may also find it convenient to type the name even if the database entity is
displayed. If you created the database entity by reading an Adams data set or graphics file, the database
entity name is the first three letters of the Adams object, followed by the Adams data set database
entity ID number. For example, the name of Adams PART/101 is PAR101. If you created the
database entity during preprocessing, you will have given it a name at that time. If the database entity
is available by default, you may identify it by entering only its name. If it is not, you must enter its
full name. For example, to identify a part under an analysis, you may need to enter the analysis name
as well. You may specify the part named par101 from the analysis named test by entering
entity 7
entity delete
"/test/par101". If you type a "?", Adams View will list the database entities available by default. You
must separate multiple database entity names by commas. If the database entity is visible in one of
your views, you may identify it by picking on any of the graphics associated with it. You need not
separate multiple database entity picks by commas.
2. The ‘new_entity_name’ is the name of a new entity to which the existing entity is copied.
entity delete
Allows you to delete the entity in the model database.
The entities in the model database like parts, joints, forces, markers, etc. can be deleted by using this
command applying a type filter as needsed
Format:
entity delete
entity_name = an existing entity
type_filter = ent
Example:
entity delete &
entity_name = pendulum &
type_filter = part
Description:
Extended Definition:
1. The ‘entity_name’ specifies any existing database entity. You may identify a database entity by typing
its name or by picking it from the screen. If the database entity is not visible on the screen, you must
type the name. You may also find it convenient to type the name even if the database entity is
displayed. If you created the database entity by reading an Adams data set or graphics file, the database
entity name is the first three letters of the Adams object, followed by the ADAMS data set database
entity ID number. For example, the name of Adams PART/101 is PAR101. If you created the
database entity during preprocessing, you will have given it a name at that time. If the database entity
is available by default, you may identify it by entering only its name. If it is not, you must enter its
full name. For example, to identify a part under an analysis, you may need to enter the analysis name
as well. You may specify the part named par101 from the analysis named test by entering
8 Adams View Commands
entity modify
"/test/par101". If you type a "?", Adams View will list the database entities available by default. You
must separate multiple database entity names by commas. If the database entity is visible in one of
your views, you may identify it by picking on any of the graphics associated with it. You need not
separate multiple database entity picks by commas.
2. The ‘type_filter’ specify the type of objects allowed. When specifying the objects for this operation a
wild cards can be used, which may result in too many objects being found. For example, if all the parts
for model MOD1 are desired, specifying .MOD1.* will get not only the parts, but all children of the
model, like joints, forces and so on. Using the parameter TYPE_FILTER=part will result in only the
parts being processed by this command.
entity modify
Allows you to modify the entity in the model database.
The entities in the model database like parts, joints, simulation, measures, etc. can be modified or renamed
by using this command.
Format:
entity modify
entity_name = an existing entity
new_entity_name = a new entity
adams_id = adams_id
comments = string
Example:
entity modify &
entity_name = .model_1.PART_3 &
new_entity_name = pendulum &
adams_id = 3 &
comments = simple_pendulum
Description:
Extended Definition:
1. The ‘entity_name’ specifies any existing database entities. You may identify a database entity by
typing its name or by picking it from the screen. If the database entity is not visible on the screen, you
must type the name. You may also find it convenient to type the name even if the database entity is
displayed. If you created the database entity by reading an Adams data set or graphics file, the database
entity name is the first three letters of the Adams object, followed by the Adams data set database
entity ID number. For example, the name of Adams Part/101 is PAR101. If you created the database
entity during preprocessing, you will have given it a name at that time. If the database entity is
available by default, you may identify it by entering only its name. If it is not, you must enter its full
name. For example, to identify a part under an analysis, you may need to enter the analysis name as
well. You may specify the part named par101 from the analysis named test by entering
"/test/par101". If you type a "?", Adams View will list the database entities available by default. You
must separate multiple database entity names by commas. If the database entity is visible in one of
your views, you may identify it by picking on any of the graphics associated with it. You need not
separate multiple database entity picks by commas.
2. The ‘new_entity_name’ will rename the existing entity.
3. The ‘adams_id’ specifies an integer used to identify this element in the Adams data file. When you
use the FILE ADAMS_DATA_SET WRITE command, Adams View writes an Adams data file for
your model. Adams requires that each modeling element be identified by a unique integer identifier.
If you use this parameter to specify a non-zero identifier, Adams View will use it in the corresponding
statement in the Adams data file. You may also enter zero as an identifier, either explicitly or by
default. The next time you write an Adams file, Adams View will replace the zero with a unique,
internally-generated identifier. Adams View will permanently store this identifier with the element
just as if you had entered it yourself. Normally, you would let all identifiers default to zero, and Adams
View would generate the identifiers for you. You are never required to enter a non-zero identifier. You
only need to specify it if, for some reason, you wish to control the Adams file output.
4. The parameter ‘comments’ specifies comments for the object being created or modified. When an
Adams Solver data file (.adm) is read into Adams View, all comments associated with a statement
(from the end of the previous statement through the end of the current statement) are stored with
the object. Comments in the data file can be associated with model. These comments must follow the
title statement and be followed by the comment 'END OF MODEL COMMENTS'. This string
must be uppercase. When an Adams Solver data file is written, the comments for an object are written
before the statement corresponding to the object.
10 Adams View Commands
entity modify
executive_control 1
executive_control attributes sensor
executive_control
executive_control attributes sensor
Allows you to change the color and visibility of a sensor icon.
Format:
executive_control attributes sensor
Sensor_name = existing sensor
Visbility = on/off/no_opinion/toggle
Color = an existing color
Active = on/off/no_opinion/toggle
Dependents_active = on/off/no_opinion/toggle
Example:
Executive_control attributes sensor &
Sensor_name = SENSOR_1 &
Visbility = on &
Color = RED &
Active = on &
Dependents_active = off
Description:
Extended Definition:
1. You may identify a sensor by typing its name or by picking it from the screen.
2 Adams View Commands
executive_control attributes sensor
Since sensors do not have a geometric position, Adams View displays sensor icons at or near the model
origin. If the sensor icon is not visible on the screen, you must type the name. You may also find it
convenient to type the name even if the sensor icon is displayed.
If you created the sensor by reading an Adams data set, the sensor name is the letters SEN followed
by the Adams data set sensor ID number. The name of Adams SENSOR/101 is SEN101, for
example. If you created the sensor during preprocessing, you gave it a name at that time.
If a sensor is owned by the default model, you may identify it by entering its name only. If it is not,
you must enter its full name. To identify a sensor under a different model, for instance, you may need
to enter the model name as well. For example, you may specify sensor 'fluid_volume_limit' from
model 'hydro' by entering ".hydro.fluid_volume_limit'". If you type a "?", Adams View will list the
sensor available by default.
You must separate multiple sensor names by commas.
If the sensor is visible in one of your views, you may identify it by picking on any of the graphics
associated with it.
You need not separate multiple sensor picks by commas.
2. The visibility parameter is used to control whether graphic entities, such as markers, joints, and parts,
are to be drawn in an Adams View viewport. The legal values for this parameter are: ON, OFF, and
TOGGLE. ON will make the desired entity visible. OFF will make the desired entity invisible.
TOGGLE will take the current state of an entities visibility and reverse it.
3. Adams View allows you to specify the following colors for modeling entities: BLACK, WHITE,
RED, GREEN, BLUE, CYAN, MAGENTA, YELLOW, and NO_COLOR
Specifying 'NO_COLOR' for a modeling entity, instructs Adams View to use the default color for
this entity, if there is no color present in its parent modeling entity.
Example 1: .model -------------------------NO_COLOR .part
---------------------- RED .geometry(circle) ------- NO_COLOR
The circle will be RED.
Example 2: .model -------------------------NO_COLOR .part
---------------------- RED .geometry(circle) ------- BLUE
If a parent modeling entity has a color previously specified, that color takes precedence. Adams View
will issue a warning message about color precedence. The circle will be RED.
Example 3: .model -------------------------NO_COLOR .part
---------------------- NO_COLOR .geometry(circle) ------- BLUE
The circle will be BLUE.
4. When you set the ACTIVE attribute on an object, you are also setting it on the children of the object.
If you set ACTIVE=NO on a part, but wish for a marker on that part to be on, then you must
explicitly set ACTIVE=YES on the marker, after setting activation on the part.
The DEPENDENTS_ACTIVE parameter acts in the same fashion, but sets the ACTIVE attribute
for the dependents, all the way down the dependency chain. For example, if you execute the
following command:
PART ATTRIBUTES PART=PAR1 DEPENDENTS_ACTIVE=NO
Where PAR1 has a marker MAR1 which is the I marker of a joint JOI1 (which has a J marker MAR2),
then JOI1 will be deactivated.
executive_control 3
executive_control copy sensor
Also, if the joint JOI1 is referenced in a request function, or if the I marker is referenced by a request,
then the request will be deactivated.
Propagation of activation status through groups is as if each element were to have its activation status
changed indvidually.
Elements affected are:
• Group
• Part
• Differential Equation
• Marker
• Geometry
• Constraints
• Forces
• Data Elements
• Output Control
Format:
executive_control copy sensor
sensor_name = Name of existing sensor
sew_sensor_name = Name of new sensor
Example:
executive_control copy sensor &
sensor_name = SENSOR_1 &
sew_sensor_name = My_Copied_Sensor
Description:
Extended Definition:
1. You may identify a sensor by typing its name or by picking it from the screen.
Since sensors do not have a geometric position, Adams View displays sensor icons at or near the model
origin. If the sensor icon is not visible on the screen, you must type the name. You may also find it
convenient to type the name even if the sensor icon is displayed.
If you created the sensor by reading an Adams data set, the sensor name is the letters SEN followed
by the Adams data set sensor ID number. For example, the name of Adams SENSOR/101 is
SEN101. If you created the sensor during preprocessing, you will have given it a name at that time.
If a sensor is owned by the default model, you may identify it by entering only its name. If it is not,
you must enter its full name. To identify a sensor under a different model, for instance, you may need
to enter the model name as well. For example, you may specify sensor 'fluid_volume_limit' from
model 'hydro' by entering ".hydro.fluid_volume_limit'". If you type a "?", Adams View will list the
sensor available by default.
You must separate multiple sensor names by commas.
If the sensor is visible in one of your views, you may identify it by picking on any of the graphics
associated with it.
You need not separate multiple sensor picks by commas.
Format:
executive_control create sensor
sensor_name= String
adams_id = geom._id
comments = string
compare = GE/EQ/LE
codgen = on/off
executive_control 5
executive_control create sensor
Example:
executive_control create sensor &
sensor_name = MY_SENSOR &
function = "1E2+3.4+6" &
comments = "Example Sensor" &
compare = ge &
codgen = on &
halt = on &
value = 50.9
6 Adams View Commands
executive_control create sensor
Description:
Extended Definition:
1. Adams View will not allow you to have two sensors with the same name, so you must provide a unique
name.
Normally, entity names are composed of alphabetic, numeric, or '_' (underscore) characters, and start
with an alphabetic or '_' character. They may be of any length.
By enclosing the name in double quotes, you may use other printable characters, or start the name
with a numeral. If a name contains characters, or starts with a numeral, you must always quote the
name when entering it.
Note that you can specify the parentage of an entity (for example, what part "owns" a marker or a
geometry element) when you CREATE it by changing the name. If you enter just the entity name,
then the default parent will be assigned by Adams View. If you type in the full name, then you may
override the default parent. In most cases, when creating an entity, Adams View will provide a default
name. The default name that Adams View provides will specify the parentage that it has assumed.
You may, ofcourse, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
2. When you use the FILE ADAMS_DATA_SET WRITE command, Adams View writes an Adams
data file for your model. Adams requires that each modeling element be identified by a unique integer
identifier. If you use this parameter to specify a non-zero identifier, Adams View will use it in the
corresponding statement in the Adams data file.
You may also enter zero as an identifier, either explicitly or by default. The next time you write an
Adams file, Adams View will replace the zero with a unique, internally-generated identifier. Adams
View will permanently store this identifier with the element just as if you had entered it yourself.
8 Adams View Commands
executive_control create sensor
Normally, you would let all identifiers default to zero, and Adams View would generate the identifiers
for you. You are never required to enter a non-zero identifier. You only need to specify it if, for some
reason, you wish to control the Adams file output.
3. The COMPARE type can take on the values EQ, GE, or LE:
EQ initiates action when the FUNCTION that Adams is sensing is from (VALUE - ERROR) to
(VALUE + ERROR).
GE initiates action when the FUNCTION that Adams is sensing is greater than VALUE - ERROR.
LE initiates action when the FUNCTION that Adams is sensing is less than VALUE + ERROR.
4. The Codgen parameter may help the integrator to produce more accurate data or to proceed more
smoothly at troublesome points in time. Adams generates a pivot sequence for matrix factorization
before starting the simulation. Then Adams does not generate a new pivot sequence unless the
CODGEN argument is used or it is necessary to reach convergence.
5. The easiest way to enter a function expression in Adams View is to use the text editor in combination
with the function builder. To invoke the text editor for entering a function expression, highlight the
function field and then either pick the "EDIT" button at the top of the panel or type a ^t (control-
t). The Adams View "function builder" is discussed below.
The syntactical correctness of a function expression can be investigated by using the "VERIFY"
button at the upper right side of the text editor. If there is a syntax error, a message is printed and the
cursor is put near the problem. Proper unit consistency is not checked during function expression
verification.
The remainder of this explanation will cover the components of FUNCTION expressions as
summarized in the following table.
Components Examples
Numbers FUNCTION = 1E2 + 3.4 + 6
Operators FUNCTION = 3*6/2 + 3 - 2**2
System Constants FUNCTION = PI + 20
System Variabless FUNCTION = AX(1040, 2010)
Arithmetic Ifs FUNCTION = IF(DX(3, 5): -1, 0, 1)
Fortran-77 Functions FUNCTION = ABS(NUM) - 6
Blanks FUNCTION = 1 + 2
Continuation Commas FUNCTION = 1 + 1 + 1 + 1 + 1 + 1 , + 1 + 1 + 1 + 1 + 1 + 1 + 1
Adams Functions FUNCTION = POLY(0, 0, 6.28)
NUMBERS
FUNCTION expressions can include integers, real numbers, and exponents. In other words, any
numbers that are legal in Adams are legal in a FUNCTION expression.
OPERATORS
executive_control 9
executive_control create sensor
In a FUNCTION expression, Adams allows any of the operators **, *, /, +, and -. Adams executes
these operators according to the following precedence rules:
• From greatest to least, the operators have the following priorities. ** then * / then + -. In other
words, Adams executes exponentiation (**) before all other operators and executes
multiplication (*) and division (/) before addition (+) and subtraction (-).
• When a statement has operators of the same priority, Adams executes them from left to right.
• You can use parentheses to alter the precedence of operators. For example, in the equation
FUNCTION = (1-TIME)*30/PI
Adams subtracts TIME from one before it performs multiplication and division.
SYSTEM CONSTANTS
You can include the following system constants in a FUNCTION expression:
• PI Value of pi (to eighteen significant digits)
• DTOR Value of pi/180 for converting degrees to radians
• RTOD Value of 180/pi for converting radians to degrees
The following example of a FUNCTION with a system constant, multiplies the system constant PI
by the displacement of marker 10 with respect to marker 14:
FUNCTION = PI*DM(10,14)
BLANKS
A FUNCTION expression can contain any number of blank spaces. Five consecutive blank spaces in
an expression do not terminate input of the expression (by indicating that what follows is a comment)
as they do in an Adams statement. However, you should remember these two restrictions.
• You cannot put a blank space in the middle of a number.
• Adams does not accept a blank space between a function and its left bracket. (This is true for
both, FORTRAN-77 functions and Adams functions.)
CONTINUATION COMMAS
You can use a comma to continue FUNCTION expressions. You can break the expression anywhere
except in the middle of a number, in the middle of a name, or between a function and its left bracket.
Put a continuation comma in column one of the following line before the rest of the expression. If
you break the expression at a comma that is part of the expression, you must use both, the expression
comma and the continuation comma. You may use more than one continuation comma to extend
an expression over several lines.
FUNCTION BUILDER
The FUNCTIONS button at the right side of the Adams View text editor provides a means for
constructing an Adams function string. These functions are briefly described below. Upon picking
the FUNCTIONS button, you will be presented with the list of available functions in the "selection
window". After you select the desired function, a panel will appear with fields representing the various
10 Adams View Commands
executive_control create sensor
parameters for the function. You will have full access to on-line help with this panel just like you have
with regular panels. After you have completed the panel and selected the DONE button on the panel,
the function string will be constructed and inserted at the current text cursor location in the text edit
window.
SYSTEM VARIABLES
A FUNCTION expression may access the current value of a system variable and use the value in
computations. These values are accessed through a collection of functions. The accessible system
variables include the following: Time, Mode, Displacements (Translational and Rotational),
Velocities (Translational and Rotational), Accelerations (Translational and Rotational), Forces
(Translational and Rotational), and User-defined variables. Invoke the text edit window and pick the
FUNCTIONS button to get a list of functions that can be accessed.
In general, you use a function character string (such as DM, VX, or FZ) and a list of values (e.g. i1,
i2, and i3) to access a system variable in an expression. For example, the value i1 may be the name of
the marker for which you want to measure a quantity (such as displacement, velocity, acceleration, or
force), i2 is the name of the marker with respect to which you want to measure the quantity, and i3
is the name of the marker you want to use to resolve the components of the quantity. If you do not
specify marker i3, Adams computes the result in the ground reference frame.
ARITHMETIC IFS
Arithmetic IFs allow you to conditionally define FUNCTION. The format for arithmetic IFs is as
follows:
IF (expression 1: expression 2, expression 3, expression 4)
Adams evaluates expression 1. If expression 1 is less than zero, the arithmetic IF equals expression 2;
if expression 1 equals zero, the arithmetic IF equals expression 3; and if expression 1 is greater than
zero, the arithmetic IF equals expression 4.
A FUNCTION expression with an arithmetic IF and its four expressions, is given below:
FUNCTION = 6 * IF(VR(10,31): 0 , 0 , 100)
If the radial velocity between markers 10 and 31 is less than or equal to zero, the value of the
FUNCTION expression is zero; but if the radial velocity between markers 10 and 31 is greater than
zero, the value of the FUNCTION expression is six hundred.
In some ways, you may treat IF as a variable. For example, you can place it anywhere in the
expression. In addition, you can nest arithmetic IFs nine levels deep.
FORTRAN-77 FUNCTIONS
You can use the FORTRAN functions ABS, ATAN, ATAN2, COS, EXP, LOG, LOG10, MIN,
MAX, SIN, SQRT, and TAN in your expression. For more information about these functions, see
a FORTRAN reference manual. Invoke the text edit window and pick the FUNCTIONS button to
get a list of functions that can be accessed.
ADAMS FUNCTIONS
In general, an Adams function evaluates a mathematical equation and returns a value to your
FUNCTION expression. The following table lists all the Adams functions and their purposes.
Invoke the text edit window and pick the FUNCTIONS button to make a list of functions that can
be accessed.
executive_control 11
executive_control delete sensor
Names Purposes
AKISPL Accesses the data in a SPLINE statement and uses the Akima cubic method
to fit a cubic curve(a spline) to the data.
BISTOP Evaluates a force restricting displacement of a part in two opposite
directions
CHEBY Evaluates a Chebyshev polynomial
CUBSPL Accesses the data in a SPLINE statement and uses the traditional cubic
method to fit a cubic curve (a spline) to the data.
FORCOS Evaluates a Fourier cosine series
FORSIN Evaluates a Fourier sine series
HAVSIN Evaluates a haversine function
IMPACT Evaluates a force restricting displacement of a part in one direction
POLY Evaluates a polynomial
SHF Evaluates a simple harmonic function
STEP Approximates a step function with a cubic polynomial
6. To define the sensor with a user-written subroutine, enter the values (r1[,...,r30]) that you want
Adams to pass to the user-written subroutine SENSUB. The Adams Users Manual discusses more
details about the use of the "SENSUB" subroutine.
Cautions:
1. The SENSOR function must be continuous because Adams tries to adjust the step size to find the
exact time the sensor becomes active. This process is inaccurate and time consuming when the
function is discontinuous. For that reason, functions of time or displacements work best for sensors;
functions of velocities, accelerations, and forces are less desirable.
Any sensor will set the simulation control each time Adams tests the sensor and finds it to be active.
Adams tests the sensor after every successful time step. If the sensor becomes active, Adams sets the
simulation control and does not test the sensor again until it has taken three successful time steps.
Then Adams again tests the sensor after every successful time step.
If you want Adams to take an action, you should be sure to include one of the action arguments
(CODGEN, DT, HALT, PRINT, RESTART, RETURN, STEPSIZE, and YYDUMP) in the
SENSOR definition. The sensor can become active even if one of the action arguments is not
included. However, Adams does not, of course, take any action unless one is specified.
You may reverse this deletion at a later time with an UNDO command.
Format:
executive_control delete sensor
Sensor_name= Name of existing sensor
Example:
executive_control delete sensor &
Sensor_name = SENSOR_1
Description:
Extended Definition:
1. You may identify a sensor by typing its name or by picking it from the screen.
Since sensors do not have a geometric position, Adams View displays sensor icons at or near the model
origin. If the sensor icon is not visible on the screen, you must type the name. You may also find it
convenient to type the name even if the sensor icon is displayed.
If you created the sensor by reading an Adams data set, the sensor name is the letters SEN followed
by the Adams data set sensor ID number. For example, the name of Adams SENSOR/101 is
SEN101. If you created the sensor during preprocessing, you will have given it a name at that time.
If a sensor is owned by the default model, you may identify it by entering only its name. If it is not,
you must enter its full name. To identify a sensor under a different model, for instance, you may need
to enter the model name as well. For example, you may specify sensor 'fluid_volume_limit' from
model 'hydro' by entering ".hydro.fluid_volume_limit'". If you type a "?", Adams View will list the
sensor available by default.
You must separate multiple sensor names by commas.
If the sensor is visible in one of your views, you may identify it by picking on any of the graphics
associated with it.
You need not separate multiple sensor picks by commas.
A SENSOR monitors the Adams simulation for a user-defined event and effects a set of simulation controls
when the event occurs. The simulation controls and modifies the integration and the output step sizes, to
output additional diagnostic information, and to alter the simulation end time.
You define the event by creating a function and comparing it against a given value. The function the
SENSOR uses may depend on distance, velocity, acceleration, and force between markers, on user-defined
variables, and on simulation time. Adams evaluates the function after every successful integration step when
doing dynamic analysis, and after every successful solution step when doing other types of analysis. To define
the function, use a FUNCTION expression or a user-written subroutine.
Format:
executive_control modify sensor
sensor_name= String
new_sensor_name = string
adams_id = geom._id
comments = string
compare = GE/EQ/LE
codgen = on/off
dt = real
halt = on/off
bisection= real
time_error= real
value= real
error = real
angular_value= real
angular_error= real
print= on/off
restart= on/off
return= on/off
stepsize= real
yydump= on/off
function= Function
user_function= real
routine= string
evaluate= Run time function
user_evaluate= real
evaluate_routine= string
14 Adams View Commands
executive_control modify sensor
Example:
executive_control modify sensor &
sensor_name = MY_SENSOR &
new_sensor_name = HALT_WHEN_F1_REACHED&
function = "1E2+3.4+6" &
comments = "Example Sensor" &
compare = ge&
codgen = on &
halt = on &
value = 50.9
Description:
Extended Definition:
1. Adams View will not allow you to have two sensors with the same name, so you must provide a unique
name.
Normally, entity names are composed of alphabetic, numeric, or '_' (underscore) characters, and start
with an alphabetic or '_' character. They may be of any length.
By enclosing the name in double quotes, you may use other printable characters, or start the name
with a numeral. If a name contains characters, or starts with a numeral, you must always quote the
name when entering it.
16 Adams View Commands
executive_control modify sensor
Note that you can specify the parentage of an entity (e.g. what part "owns" a marker or a geometry
element) when you CREATE it by changing the name. If you enter just the entity name, then the
default parent will be assigned by Adams View. If you type in the full name, then you may override
the default parent. In most cases, when creating an entity, Adams View will provide a default name.
The default name that Adams View provides will specify the parentage that it has assumed. You may,
of course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
2. When you use the FILE ADAMS_DATA_SET WRITE command, Adams View writes an Adams
data file for your model. Adams requires that each modeling element be identified by a unique integer
identifier. If you use this parameter to specify a non-zero identifier, Adams View will use it in the
corresponding statement in the Adams data file.
You may also enter zero as an identifier, either explicitly or by default. The next time you write an
Adams file, Adams View will replace the zero with a unique, internally-generated identifier. Adams
View will permanently store this identifier with the element just as if you had entered it yourself.
Normally, you would let all identifiers default to zero, and Adams View would generate the identifiers
for you. You are never required to enter a non-zero identifier. You only need to specify it if, for some
reason, you wish to control the Adams file output.
3. The COMPARE type can take on the values EQ, GE, or LE:
EQ initiates action when the FUNCTION that Adams is sensing is from (VALUE - ERROR) to
(VALUE + ERROR).
GE initiates action when the FUNCTION that Adams is sensing is greater than VALUE - ERROR.
LE initiates action when the FUNCTION that Adams is sensing is less than VALUE + ERROR.
4. The Codgen parameter may help the integrator to produce more accurate data or to proceed more
smoothly at troublesome points in time. Adams generates a pivot sequence for matrix factorization
before starting the simulation. Then Adams does not generate a new pivot sequence unless the
CODGEN argument is used or it is necessary to reach convergence.
5. The easiest way to enter a function expression in Adams View is to use the text editor in combination
with the function builder. To invoke the text editor for entering a function expression, highlight the
function field and then either pick the "EDIT" button at the top of the panel or type a ^t (control-
t). The Adams View "function builder" is discussed below.
The syntactical correctness of a function expression can be investigated by using the "VERIFY"
button at the upper right side of the text editor. If there is a syntax error, a message is printed and the
cursor is put near the problem. Proper unit consistency is not checked during function expression
verification.
The remainder of this explanation will cover the components of FUNCTION expressions as
summarized in the following table:
executive_control 17
executive_control modify sensor
Components Examples
Numbers FUNCTION = 1E2 + 3.4 + 6
Operators FUNCTION = 3*6/2 + 3 - 2**2
System Constants FUNCTION = PI + 20
System Variables FUNCTION = AX(1040, 2010)
Arithmetic Ifs FUNCTION = IF(DX(3, 5): -1, 0, 1)
Fortran-77 Functions FUNCTION = ABS(NUM) - 6
Blanks FUNCTION = 1 + 2
Continuation Commas FUNCTION = 1 + 1 + 1 + 1 + 1 + 1 , + 1 + 1 + 1 + 1 + 1 + 1 + 1
Adams Functions FUNCTION = POLY(0, 0, 6.28)
NUMBERS
FUNCTION expressions can include integers, real numbers, and exponents. In other words, any
numbers that are legal in Adams are legal in a FUNCTION expression.
OPERATORS
In a FUNCTION expression, Adams allows any of the operators **, *, /, +, and -. Adams executes
these operators according to the following precedence rules:
• From greatest to the least, the operators have the following priorities. ** then * / then + -. In other
words, Adams executes exponentiation (**) before all other operators and executes
multiplication (*) and division (/) before addition (+) and subtraction (-).
• When a statement has operators of the same priority, Adams executes them from left to right.
• You can use parentheses to alter the precedence of operators. For example, in the equation,
FUNCTION = (1-TIME)*30/PI
Adams subtracts TIME from one before it performs multiplication and division.
SYSTEM CONSTANTS
You can include the following system constants in a FUNCTION expression:
• PI Value of pi (to eighteen significant digits)
• DTOR Value of pi/180 for converting degrees to radians
• RTOD Value of 180/pi for converting radians to degrees
The following example of a FUNCTION with a system constant multiplies the system constant PI
by the displacement of marker 10 with respect to marker 14:
FUNCTION = PI*DM(10,14)
BLANKS
18 Adams View Commands
executive_control modify sensor
A FUNCTION expression can contain any number of blank spaces. Five consecutive blank spaces in
an expression do not terminate input of the expression (by indicating that what follows is a comment)
as they do in an Adams statement. However, you should remember these two restrictions.
• You cannot put a blank space in the middle of a number.
• Adams does not accept a blank space between a function and its left bracket. (This is true for
both, FORTRAN-77 functions and Adams functions.)
CONTINUATION COMMAS
You can use a comma to continue FUNCTION expressions. You can break the expression anywhere
except in the middle of a number, in the middle of a name, or between a function and its left bracket.
Put a continuation comma in column one of the following line before the rest of the expression. If
you break the expression at a comma that is part of the expression, you must use both, the expression
comma and the continuation comma. You may use more than one continuation comma to extend
an expression over several lines.
FUNCTION BUILDER
The FUNCTIONS button at the right side of the Adams View text editor provides a means for
constructing an Adams function string. These functions are briefly described below. Upon picking
the FUNCTIONS button, you will be presented with the list of available functions in the "selection
window". After you select the desired function, a panel will appear with fields representing the
various parameters for the function. You will have full access to on-line help with this panel just like
you have with regular panels. After you have completed the panel and selected the DONE button on
the panel, the function string will be constructed and inserted at the current text cursor location in
the text edit window.
SYSTEM VARIABLES
A FUNCTION expression may access the current value of a system variable and use the value in
computations. These values are accessed through a collection of functions. The accessible system
variables include the following: Time, Mode, Displacements (Translational and Rotational),
Velocities (Translational and Rotational), Accelerations (Translational and Rotational), Forces
(Translational and Rotational), and User-defined variables. Invoke the text edit window and pick the
FUNCTIONS button to get a list of functions that can be accessed.
In general, you use a function character string (such as DM, VX, or FZ) and a list of values (e.g. i1,
i2, and i3) to access a system variable in an expression. For example, the value i1 may be the name of
the marker for which you want to measure a quantity (such as displacement, velocity, acceleration, or
force), i2 is the name of the marker with respect to which you want to measure the quantity, and i3
is the name of the marker you want to use to resolve the components of the quantity. If you do not
specify marker i3, Adams computes the result in the ground reference frame.
ARITHMETIC IFS
Arithmetic IFs allow you to conditionally define FUNCTION. The format for arithmetic IFs
follows.
IF (expression 1: expression 2, expression 3, expression 4)
executive_control 19
executive_control modify sensor
Adams evaluates expression 1. If expression 1 is less than zero, the arithmetic IF equals expression 2;
if expression 1 equals zero, the arithmetic IF equals expression 3; and if expression 1 is greater than
zero, the arithmetic IF equals expression 4.
A FUNCTION expression with an arithmetic IF and its four expressions is as given below:
FUNCTION = 6 * IF(VR(10,31): 0 , 0 , 100)
If the radial velocity between markers 10 and 31 is less than or equal to zero, the value of the
FUNCTION expression is zero; but if the radial velocity between markers 10 and 31 is greater than
zero, the value of the FUNCTION expression is six hundred.
In some ways, you may treat IF as a variable. For example, you can place it anywhere in the
expression. In addition, you can nest arithmetic IFs nine levels deep.
FORTRAN-77 FUNCTIONS
You can use the FORTRAN functions ABS, ATAN, ATAN2, COS, EXP, LOG, LOG10, MIN,
MAX, SIN, SQRT, and TAN in your expression. For more information about these functions, see
a FORTRAN reference manual. Invoke the text edit window and pick the FUNCTIONS button to
get a list of functions that can be accessed.
ADAMS FUNCTIONS
In general, an Adams function evaluates a mathematical equation and returns a value to your
FUNCTION expression. The following table lists all the Adams functions and their purposes.
Invoke the text edit window and pick the FUNCTIONS button to make a list of functions that can
be accessed.
Names Purposes
AKISPL Accesses the data in a SPLINE statement and uses the Akima cubic method to fit
a cubic curve(a spline) to the data.
BISTOP Evaluates a force restricting displacement of a part in two opposite directions
CHEBY Evaluates a Chebyshev polynomial
CUBSPL Accesses the data in a SPLINE statement and uses the traditional cubic method to
fit a cubic curve (a spline) to the data.
FORCOS Evaluates a Fourier cosine series
FORSIN Evaluates a Fourier sine series
HAVSIN Evaluates a haversine function
IMPACT Evaluates a force restricting displacement of a part in one direction.
POLY Evaluates a polynomial
SHF Evaluates a simple harmonic function
STEP Approximates a step function with a cubic polynomial
20 Adams View Commands
executive_control set dynamics_parameters coord_partitioning_parameters
6. To define the sensor with a user-written subroutine, enter the values (r1[,...,r30]) that you want
Adams to pass to the user-written subroutine SENSUB. The Adams Users Manual discusses more
details about the use of the "SENSUB" subroutine.
Cautions:
1. The SENSOR function must be continuous because Adams tries to adjust the step size to find the
exact time the sensor becomes active. This process is inaccurate and time consuming when the
function is discontinuous. For that reason, functions of time or displacements work best for sensors;
functions of velocities, accelerations, and forces are less desirable.
Any sensor will set the simulation control each time Adams tests the sensor and finds it to be active.
Adams tests the sensor after every successful time step. If the sensor becomes active, Adams sets the
simulation control and does not test the sensor again until it has taken three successful time steps.
Then Adams again tests the sensor after every successful time step.
If you want Adams to take an action, you should be sure to include one of the action arguments
(CODGEN, DT, HALT, PRINT, RESTART, RETURN, STEPSIZE, and YYDUMP) in the
SENSOR definition. The sensor can become active even if one of the action arguments is not
included. However, Adams does not, of course, take any action unless one is specified.
Description:
NO_FAILURE_IN
_ITERATION,
CONDITION,
NO_CONDITIO
N,
REPARTITION,
NO_REPARTITI
ON, DOF,
NO_DOF, ALL,
NONE
Extended Definition:
1. You may identify a model by typing its name or by picking it from the screen.
If the model is not visible on the screen, you must type the name. You may also find it convenient to
type the name even if the model is displayed.
You must separate multiple model names by commas.
If the model is visible in one of your views, you may identify it by picking on any of the graphics
associated with it.
You need not separate multiple model picks by commas.
2. In general, for efficiency reasons, the coordinates are re-partitioned whenever:
A matrix inverse condition number gets too small
The displacment iterations do not converge
A part rotation occurs
A matrix becomes numerically singular, or
The unit energy ratio is less than its original value times the value of
REPARTITION_THRESHOLD.
executive_control 23
executive_control set dynamics_parameters dynamic_solver
3. The relative error will be bounded by a minimum of AL_RELATIVE_ERROR and one tenth of the
integration error tolerance.
4. The absolute error will be bounded by a minimum of AL_ABSOLUTE_ERROR and one tenth of
the integration error tolerance.
5. The WATCH_PARTITIONING_PERF only affects diagnostics, not results.
ERROR_IN_ITERATION: The value of the error and the component of the state vector,
contributing the most to the size of the error after every iteration of the algorithm of the dependent
displacements and for the accelerations and the constraint forces.
FAILURE_IN_ITERATION: The value of the error and the component of the state vector,
contributing the most to the size of the error when the algorithm for the dependent displacements
and for the accelerations and the constraint forces fails to converge.
CONDITION: An estimate of the condition number of the Jacobian matrix for the corrector
algorithm each time it is reevaluated.
REPARTITION: An indication that the current choice for the independent coordinates is no longer
acceptable and the coordinates will be re-partitioned.
DOF: A list of the degrees-of-freedom (i.e. the independent coordinates) each time the partitioning
is done.
ALL: All options are on.
NONE: All options are off.
Description:
Extended Definition:
1. You may identify a model by typing its name or by picking it from the screen.
If the model is not visible on the screen, you must type the name. You may also find it convenient to
type the name even if the model is displayed.
You must separate multiple model names by commas.
If the model is visible in one of your views, you may identify it by picking on any of the graphics
associated with it.
You need not separate multiple model picks by commas.
2. For the 7.0 release, STANDARD_INDEX_THREE is the only option. The full system of 2n + m +
p differential equations consists of the following:
n Euler-Lagrange differential equations (one for each generalized coordinate);
m constraint equations;
n equations of the form x - u = 0 (one for each generalized coordinate) to reduce the differential
equations to first order; and
executive_control 25
executive_control set dynamics_parameters integrator_parameters
p state equations, first-order differential equations, or other algebraic equations that may have been
added to the problem.
Description:
FAILURE_IN_INT
EGRATOR,
NO_FAILURE_IN
_INTEGRATOR,
STEPSIZE,
NO_STEPSIZE,
NEWSTEP,
NO_NEWSTEP,
OUTPUT,
NO_OUTPUT,
ALL, NONE
reconcile ALL, Corrects interpolated results before Adams writes them to
DISPLACEMENTS the output files to satisfy the constraint equations.
, NONE
Extended Definition:
1. You may identify a model by typing its name or by picking it from the screen.
If the model is not visible on the screen, you must type the name. You may also find it convenient to
type the name even if the model is displayed.
You must separate multiple model names by commas.
If the model is visible in one of your views, you may identify it by picking on any of the graphics
associated with it.
You need not separate multiple model picks by commas.
2. The relative error tolerance will be bounded by a minimum of:
RELATIVE_ERROR, if a value is specified for it.
(5.0 * 0.1**r), where r is the value specified by the command
>> EXECUTIVE_CONTROL SET EASY_DYNAMICS &
>& MODEL_NAME = <model_name> &
executive_control 27
executive_control set equilibrium_parameters
>& DIGITS_OF_PRECISION = r
if no value is specified for RELATIVE_ERROR.
3. After STEP_MAXIMUM integration steps, the simulation will stop and return to the command
level. This feature is provided as a precaution against a simulation that is taking too much CPU time.
4. The WATCH_INTEGRATOR_PERF argument only affects diagnostics, not results.
The values can be:
MONITOR: The time, step size, and function-evaluation count at ten equally spaced output times
during the simulation.
ERROR_IN_INTEGRATOR: The integration error after every time step.
FAILURE_IN_INTEGRATOR: The integration error when the code has to repeat the step because
the calculated solution failed to meet the error criteria.
STEPSIZE: The step size and order after every integration step.
NEWSTEP: The step size and order only when the values are changed.
OUTPUT: An indication that another output record is being written to the output files.
ALL: All options are on.
NONE: All options are off.
5. The values for RECONCILE can be:
DISPLACEMENTS: Only the displacements are corrected to satisfy the constraints.
ALL: The displacements are corrected to satisfy the constraints and the velocities and accelerations are
corrected to satisfy the constraint derivatives.
NONE: The integration step size is adjusted to force the integrator to compute the solution at every
output step. In this situation, INTERPOLATE must be set to NO.
Cautions:
1. Note that interpolation is not yet available when the EXECUTIVE_CONTROL SET
DYNAMICS_PARAMETERS BDF_PARAMETER command specifies FIXED or VARIABLE
coefficients for the PREDICTOR_COEFFICIENTS argument.
Format:
executive_control set equilibrium_parameters
model_name = an existing model
dynamic = yes/no
alimit = real
error = real
imbalance = real
maxit = integer
pattern_for_jacobian = string
stability = real
tlimit = real
global_damping = real
settling_time = real
acceleration_error = real
kinetic_energy_error = real
static_method = original/advanced/aggressive/all
atol = real
rtol = real
maxitl = integer
etamax = real
eta = real
Example:
executive_control set equilibrium_parameters &
model_name = .model_1 &
dynamic = no &
static_method = all &
atol = 1.0e-005 &
rtol = 1.0e-007 &
maxitl = 30 &
etamax = 0.8 &
eta = 1.0e-003
executive_control 29
executive_control set equilibrium_parameters
Description:
Extended Definition:
1. You use model_name parameter to identify the existing model to be affected with this command. You
may identify a model by typing its name or by picking it from the screen. If the model is not visible
on the screen, you must type the name. You may also find it convenient to type the name even if the
model is displayed. You must separate multiple model names by commas. If the model is visible in
one of your views, you may identify it by picking on any of the graphics associated with it.
2. The default for alimit parameter is 100 and the range is alimit > 0. You should specify the value in
current modeling units (degrees by default).
3. The iterative process carried out during the equilibrium analysis can not converge prior to all relevant
relative corrections being smaller than the value specified by error parameter. The default for this
parameter is 1.0E-04 and the range is error > 0.
4. The iterative process carried out during the equilibrium analysis can not converge prior to each
equation imbalance being smaller than the value specified by imbalance parameter. The default for
this parameter is 1.0E-04 and the range is imbalance > 0.
5. The default for maxit parameter is 25 and the range is maxit > 0.
6. Often the stiffness matrix is singular for a system because the system is neutrally stable (for example,
the system moves in certain directions without affecting the potential energy). Adding a fraction of
the mass and damping matrices to the stiffness matrix removes this singularity and makes it possible
to solve for equilibrium positions. The value of parameter stability does not affect the accuracy of the
solution, but it does affect the rate of convergence of the iteration process. The default is 1.0E-05 and
the range is stability ≥ 0 .
7. The default for tlimit parameter is 20 and the range is tlimit > 0.
8. The default for global_damping parameter is 0 and the range is global_damping ≥ 0 .
9. The default for settling_time is 100 and the range is > 0.
10. The default for acceleration_error is 1.0e-2 and the range is > 0.
11. The default for kinetic_energy_error is 1.0e-2 and the range is > 0.
12. The static_method parameter chooses the method to perform static equilibrium analysis as follows:
• ORIGINAL, for running only the ORIGINAL Solver
• ADVANCED, runs, in order, the following methods until one shows progress:
ORIGINAL
ORIGINAL+Krylov
ORIGINAL+UMF
Newton+Krylov
Tensor-Krylov block-3
Tensor-Krylov block-2+
• AGGRESSIVE, runs, in order, the following methods until one shows progress:
executive_control 31
executive_control set equilibrium_parameters
ORIGINAL
ORIGINAL+Krylov
ORIGINAL+UMF
Newton+Krylov
Tensor-Krylov block-3
Tensor-Krylov block-2+
Broyden-Armijo
Trust-Region
• ALL, runs, in order, all the available methods, until one shows progress:
ORIGINAL
ORIGINAL+Krylov
ORIGINAL+UMF
Newton+Krylov
Tensor-Krylov block-3
Tensor-Krylov block-2+
Broyden-Armijo
Trust-Region
Hooke-Jeeves
Default: ORIGINAL
13. The default for atol is 1.0e-6 and the range is 0.0 ≤ atol < 1.0 .
14. The default for rtol is 0.0 and the range is 0.0 ≤ rtol < 1.0 .
15. For all solvers, except ORIGINAL and ORIGINAL+Krylov, the tolerance is defined as :
TOL=ATOL+||xIC||*RTOL.
For ORIGINAL and ORIGINAL+Krylov solvers the tolerance is equal to error.
16. ORIGINAL, ORIGINAL+Krylov and ORIGINAL+UMF solver methods ignore maxitl parameter.
For Hooke-Jeeves method, allowed budget of function evaluations is set to maxitl*N, where N is the
size of the problem (number of unknowns).
17. The default for maxitl is 40 and the range is maxitl ≥ 1 .
32 Adams View Commands
executive_control set easy_dynamics
18. The parameter etamax specifies the maximum threshold for the error tolerance of the linear Krylov
solver (for Newton+Krylov and Tensor-Krylov methods) that solves the linear systems required by
Krylov algorithm. Maximum error tolerance for residual in inner iteration. The inner iteration
terminates when the relative linear residual is smaller than eta*| F(x_c) |. eta is determined by the
modified Eisenstat-Walker formula if etamax > 0. If etamax < 0, then eta = |etamax| for the entire
iteration.
19. The default for etamax is 0.9 and the range is 0.0 ≤ etamax < 1.0 .
20. The parameter eta specifies the initial residual tolerance for the linear Krylov Solver for
Tensor_Krylov method. The Tensor-Krylov eta parameter is maintained adaptively by the Krylov
algorithm but eta is the indicated starting value, while etamax is the maximum threshold for eta. The
default for eta is 1.0e-4 and the range is 0.0 ≤ eta < 1.0 .
21. The parameter eta specifies the dimensionless radius of the trust-region for Trust-region method.
The smaller the value, the more the refinement of Trust-region solution (hence more work). The
range is 0.0 ≤ eta ≤ 0.25 .
Format:
executive_control set easy_dynamics
Model_name = string
Significant_digits = real
Dynamic_attribute = stiff/high_frequencies/smooth
executive_control 33
executive_control set integrator_parameters dstiff
Description:
Extended Definition:
1. You may identify a model by typing its name or by picking it from the screen.
If the model is not visible on the screen, you must type the name. You may also find it convenient
to type the name even if the model is displayed.
You must separate multiple model names by commas.
If the model is visible in one of your views, you may identify it by picking on any of the graphics
associated with it.
You need not separate multiple model picks by commas.
2. The value of DYNAMIC_ATTRIBUTE can be:
STIFF: Causes Adams to begin integration with the BDF integrator with VARIABLE coefficients.
HIGH_FREQUENCIES: Causes Adams to begin integration with coordinate partitioned equations
and the Adams-Bashforth-Moulton integrator. If you specify PERSISTENCE on the
SOLUTION_PRIORITY argument, Adams switches integrators after a convergence failure,
regardless of the value of DYNAMIC_ATTRIBUTE.
coefficients computed for the WSTIFF integrator in Adams. In general, for problems with behavior that do
not exhibit severe gradients in the solution, the savings in CPU time need not be sacrificed for the more stable
methods.
A second distinguishing feature of DSTIFF is that it is able to interpolate output data between integration
steps. By default, DSTIFF also corrects the interpolated output data to be consistent with the system
constraints (see the RECONCILE_VEL_AND_ACC parameter). While GSTIFF and WSTIFF must
integrate exactly to an output step in order to generate output data, DSTIFF may take an integration step
past an output time and interpolate the output data. This allows DSTIFF to adjust the integration step based
solely on the error criteria, and take larger integration step than output step when possible. As a result,
DSTIFF may be able to complete a simulation with fewer integration steps than would GSTIFF or WSTIFF.
This may result in speed improvement (although the interpolation and correction require some computation
as well).
As described in the various sections covering the ERROR_TOLERANCE parameter for the GSTIFF,
DSTIFF, and WSTIFF commands, the only other significant differences between the integrators in Adams
involve the error control algorithms.
For an analysis with the EQUILIBRIUM, IC, or KINEMATICS commands, the ALIMIT parameter
controls the maximum angular increment per iteration and the TLIMIT parameter controls the maximum
translational increment per iteration. The DSTIFF, GSTIFF, and WSTIFF commands do not allow you to
control either the maximum angular increment per iteration or the maximum translational increment per
iteration. Because large rotational displacements often cause problems for dynamic simulations, Adams
limits the maximum angular increment per iteration to 0.5 rads (~ 29 deg.). However, because large
translational displacements do not generally cause problems during dynamic simulations, Adams imposes no
limit on the maximum translational increment per iteration. Format:
Description:
INTFAIL,
NO_INTFAIL,
CORFAIL,
NO_CORFAIL,
MATRIX,
NO_MATRIX,
STEPSIZE,
NO_STEPSIZE,
NEWSTEP,
NO_NEWSTEP,
OUTPUT,
NO_OUTPUT,
ALL, NONE
reconcile_vel_and_acc YES/NO Reconciles the values of the displacements with the
constraint equations in the problem.
Extended Definition:
1. You may identify a model by typing its name or by picking it from the screen.
If the model is not visible on the screen, you must type the name. You may also find it convenient to
type the name even if the model is displayed.
You must separate multiple model names by commas.
If the model is visible in one of your views, you may identify it by picking on any of the graphics
associated with it.
You need not separate multiple model picks by commas.
36 Adams View Commands
executive_control set integrator_parameters dstiff
Format:
executive_control set kinematics_parameters
model_name= model_name
alimit = real_number
error = real_number
maxit = integer_number
aerror = real_number
amaxit = integer_number
tlimit = real_number
hmax = real_number
pattern_for_jacobian = yes/no
apattern_for_jacobian = yes/no
Example:
executive_control set kinematics_parameters &
model_name= model_1 &
pattern_for_jacobian = yes &
apattern_for_jacobian = yes
38 Adams View Commands
executive_control set kinematics_parameters
Description:
Extended Definition:
1. Kinematics parameters include error tolerances and other parameters for kinematic analyses. You
would set these parameters only when you are requesting a kinematic analysis and you want to change
one or more of the tolerances andparameters from the default values.
2. A kinematic analysis is only appropriate when a system has zero degrees-of-freedom. A kinematic
analysis solves for the displacements, velocities, accelerations, and forces (if any) at a series of points
in time. To find the displacements, Adams uses Newton-Raphson iteration to solve a nonlinear set of
algebraic equations. After finding the displacements, Adams solves linear equations without iteration
to find the velocities, accelerations, and forces. Adams repeats this procedure at successively later times
until it obtains results over the period of time specified in the Adams SIMULATE command.
executive_control 39
executive_control set numerical_integration_parameters
3. You may identify a model by typing its name or by picking it from the screen. If the model is not
visible on the screen, you must type the name. You may also find it convenient to type the name even
if the model is displayed. You must separate multiple model names by commas. If the model is visible
in one of your views, you may identify it by picking on any of the graphics associated with it.
4. The parameter PATTERN_FOR_JACOBIAN specifies as many as ten character strings that together
establish the pattern for evaluating the Jacobian matrix during Newton-Raphson iteration. For each
iteration, T or TRUE indicates that Adams is to evaluate the Jacobian, or F or FALSE indicates that
Adams is not to evaluate the Jacobian. Thus cj determines whether or not Adams is to evaluate the
Jacobian at the jth iteration. If necessary, Adams repeats the pattern of evaluation until it reaches the
maximum number of iterations (MAXIT). The number of Y's or Yes’s and N's or No's, together,
must be at least one and no more than ten. PATTERN defaults to Y:Y:Y:Y:Y:Y:Y:Y:Y:Y, i.e. to
evaluating the Jacobian at every iteration.
5. The parameter APATTERN_FOR_JACOBIAN specifies as many as ten character strings that
together establish the pattern for Jacobian evaluations during acceleration solution. For each iteration,
T or TRUE indicates that Adams is to evaluate the Jacobian, or F or FALSE indicates that Adams is
not to evaluate the Jacobian. Thus cj determines whether or not Adams is to evaluate the Jacobian at
the jth iteration. If necessary, Adams repeats the pattern of evaluation until it reaches the maximum
number of iterations (AMAXIT). The number of Y's or Yes’s and N's or No's, together, must be at
least one and no more than ten. PATTERN defaults to Y:Y:Y:Y:Y:Y:Y:Y:Y:Y, i.e. to evaluating the
Jacobian at every iteration.
Cautions:
1. AERROR must be greater than zero, and defaults to 1.0E-04.
Extended Definition:
1. You may identify a model by typing its name or by picking it from the screen.
If the model is not visible on the screen, you must type the name. You may also find it convenient to
type the name even if the model is displayed.
You must separate multiple model names by commas.
If the model is visible in one of your views, you may identify it by picking on any of the graphics
associated with it.
You need not separate multiple model picks by commas.
2. The values for RECONCILE can be:
DISPLACEMENTS: Only the displacements are corrected to satisfy the constraints.
ALL: The displacements are corrected to satisfy the constraints and the velocities and accelerations are
corrected to satisfy the constraint derivatives.
NONE: The integration step size is adjusted to force the integrator to compute the solution at every
output step. In this situation,
INTERPOLATE must be set to NO.
3. In general, for efficiency reasons, the coordinates are re-partitioned whenever:
• A matrix inverse condition number gets too small
• The displacement iterations do not converge
• A part rotation occurs
• A matrix becomes numerically singular, or
• The unit energy ratio is less than its original value times the value of
REPARTITION_THRESHOLD.
Cautions:
1. Note that interpolation is not yet available when the EXECUTIVE_CONTROL SET
DYNAMICS_PARAMETERS BDF_PARAMETER command specifies FIXED or VARIABLE
coefficients for the PREDICTOR_COEFFICIENTS argument.
Format:
executive_control set preferences
model_name = Name of existing model
status_message = on/off
contact_geometry_library = default library/parasolids
42 Adams View Commands
executive_control set preferences
contact_faceting_tolerance = real_number
thread_count = integer_number
library_path = string
flex_limit_check = none/skin/selnod
flex_limit_check_action = halt/return/message_only
Example:
executive_control set preferences &
model_name = .model_1 &
status_message = on &
contact_geometry_library = default_library &
flex_limit_check = none &
flex_limit_check_action = halt
Description:
Extended Definition:
1. Status_message controls the presence of two status messages in the .msg file produced by Adams
Solver (C++). These status messages mimic status messages produced by Adams Solver (FORTRAN).
This preference has no effect on Adams Solver (FORTRAN).
executive_control 43
executive_control set preferences
If it is set to ON, the first status message is sent after every simulation and has the form “Simulate
status =i”. The second message is sent when Adams Solver (C++) terminates and has the form
“Termination status = i”. In both cases, “i” is an integer number reporting the status.
2. For many models, the Default Library can substantially reduce simulation time for contact
operations. Because it is polygon-based, however, it is not always as accurate as the Parasolid geometry
engine. Parasolid is an exact boundary-representation geometric modeler, which makes it highly
accurate, but not as fast as a polygon-based engine. For these reasons, you can switch from one to the
other depending on your needs.
3. The faceting tolerance is defined as the maximum error between the true surface and the surface of
the faceted representation of the geometry. The maximum error is guaranteed not to exceed (1/value)
* the minimum dimension of each geometry's bounding box.
The default value of this parameter is 300.
4. The number of threads, must be an integer in the range of 1 to 8. The default value is 1.
By executing multiple threads in parallel across multiple processors, Adams Solver (C++) can reduce
the wall time required for a simulation. Typically, the optimal number of threads is between N and
2N, where N is the number of processors (including virtual processors, such as Pentium processors
supporting HyperThreading). Note that this option has no effect on IRIX architectures.
Note: The Intel® Pentium® 4 processor introduced a feature called Hyper Threading, where
a single physical processor can support more than one logical instruction stream,
simulating multiple logical processors on a single physical processor. For many
applications and environments, this capability may offer performance improvements
over non-Hyper Threading processors. If multiple analysis jobs are running
concurrently, however, there may be performance degradations. If an installation
determines this to be the case, hyper threading should be disabled. This can be done
on a permanent basis through BIOS operations or, for Windows platforms, hyper
threading may be disabled on a process by process basis using the “hyperthreads”
keyword.
Format:
executive_control set solver_parameters
model_name= model_name
solver_type = solver_identifer_string
Example:
executive_control set solver_parameters &
model_name = model_1 &
solver_type = calahan
Description:
Extended Definition:
1. Specifies the model that is to be modified. You use this parameter to identify the existing model to be
affected with this command. You may identify a model by typing its name or by picking it from the
screen. If the model is not visible on the screen, you must type the name. You may also find it
convenient to type the name even if the model is displayed. You must separate multiple model names
by commas. If the model is visible in one of your views, you may identify it by picking on any of the
graphics associated with it.
2. Solver types
a. CALAHAN
Specifies that Adams Solver (FORTRAN) is to use the CALAHAN solver exclusively. The
Calahan solver is usually faster than the Harwell solver, but it cannot analyze systems with
redundant constraints.
b. HARWELL
Specifies that Adams Solver (FORTRAN) is to use the HARWELL solver exclusively. The
Harwell solver can analyze systems with redundant constraints, but is usually slower than the
Calahan solver. The CALAHAN and HARWELL solvers use somewhat different strategies for
picking pivots during the linear solution.
If one solver is experiencing difficulties solving an ill-conditioned model, you may try the other
solver. One may work better on a particular model than the other. Even though you deactivate all
your redundant constraints, Adams Solver (FORTRAN) does not allow you to use the Calahan
solver. If (under these circumstances) you issue the LSOLVER/CALAHAN command, Adams
Solver (FORTRAN) returns the message: “Changing to the CALAHAN solver is not allowed for this
model due to the presence of redundant constraints.” To avoid this problem, deactivate all your
redundant constraints, run a short simulation, and then issue the LSOLVER/CALAHAN
command.
c. UMF
Specifies that Adams Solver (C++) is to use the UMF solver exclusively. The UMF solver is
typically faster for models with very large number of equations (>4000).
d. AUTO
Specifies that Adams Solver(C++) is permitted to decide which solver to use based on the number
of equations in the model and the amount of Jacobian fill.
46 Adams View Commands
executive_control set solver_parameters
file 1
file adams_data_set merge
file
file adams_data_set merge
Allows you to merge one Adams data set file or model with another Adams data set file.
Format:
file adams_data_set merge
file_name = string
model_name = an existing model
length = linear_units
force = force_units
mass = mass_units
time = time_units
Example:
file adams_data_set merge &
file_name = "c:\mydir\desktop\merge1" &
model_name = model_2
Description:
Extended Definition:
1. Adams Solver IDs, referenced but not defined in the Adams Solver dataset file being merged, are
assumed to be already existing in that file. For example, the following marker definition references to
a part, Adams Solver ID 99. If there is a part 99 in the Adams Solver dataset file, it is assumed that
the reference is to that part. If, however, there is no such part in the Adams Solver dataset file, Adams
View will use the part, Adams Solver ID 99, in the model as the parent of this marker. References to
Adams Solver IDs in the model may also be used for the definition of constraints and forces.
****** adams_view_name='rocker_1' ******
MARKER/9901 , PART = 99 , QP = 100, 75, 0 , REU = 3.14159, 0, 0
Adams View names, that are specified in the Adams Solver dataset file and are not unique with respect
to the model, will be ignored. Adams View will provide a name for the entity using the default name
generation. See the DEFAULT NAME_GENERATION command for more information. For
example, if you read an Adams Solver dataset file with the following marker defined:
****** adams_view_name='rocker_1' ******
MARKER/9901 , PART = 99 , QP = 100, 75, 0 , REU = 3.14159, 0, 0
and the model already existing in Adams View contained an entity named rocker_1 on the PART
with Adams Solver ID 99, the marker would be named using the default name generation. Instead of
being named .MOD1.PAR99.rocker_1, it would be named .MOD1.PAR99.MAR9901. If the
Adams Solver ID specified for the marker 9901 was not unique, a default Adams Solver ID would be
assigned. The default Adams Solver ID is one more (greater by 1) than the highest Adams Solver ID
already in the model.
You cannot merge two existing models in Adams View. To merge two models in Adams View, you
must first write one to an Adams Solver dataset file using the FILE ADAMS_DATA_SET WRITE
command, then read the file back in, using the FILE ADAMS_DATA_SET MERGE command.
2. The proper extension is the default, but can be overridden simply by supplying a different extension.
You do not need to enclose the file name in quotes if it contains only alpha-numeric characters and
starts with a letter. If you want to include other characters, such as a '.' for an extension or '/' or '[]'
for directory paths, you must enclose the name in quotes.
3. The model specified is considered the parent model and all Adams IDs and Adams View names in
this model will take precedence over the Adams IDs and the Adams View names specified in the
Adams dataset file.
You may identify a model by typing its name or by picking it from the screen. If the model is not
visible on the screen, you must type the name. You may also find it convenient to type the name even
if the model is displayed. You must separate multiple model names by commas.
If the model is visible in one of your views, you may identify it by picking on any of the graphics
associated with it.
You need not separate multiple model picks by commas.
4. If you do not use the length parameter, Adams View will read or write the file using your default
modeling units. You only need to enter this parameter when you wish to read or write a file with
different units than those you are currently using.
file 3
file adams_data_set write
Specifying this parameter does not change your default modeling units, it only overrides them during
the file read or write operation. Use the DEFAULT UNITS command if you wish to change your
default modeling units.
5. If you do not use the force parameter, Adams View will read or write the file using your default
modeling units. You only need to enter this parameter when you wish to read or write a file with units
different than those you are currently using.
Specifying this parameter does not change your default modeling units, it only overrides them during
the file read or write operation. Use the DEFAULT UNITS command if you wish to change your
default modeling units.
6. If you do not use the mass parameter, Adams View will read or write the file using your default
modeling units. You only need to enter this parameter when you wish to read or write a file with units
different than those you are currently using.
Specifying this parameter does not change your default modeling units, it only overrides them during
the file read or write operation. Use the DEFAULT UNITS command if you wish to change your
default modeling units.
7. If you do not use the time parameter, Adams View will read or write the file using your default
modeling units. You only need to enter this parameter when you wish to read or write a file with units
different than those you are currently using.
Specifying this parameter does not change your default modeling units, it only overrides them during
the file read or write operation. Use the DEFAULT UNITS command if you wish to change your
default modeling units.
Format:
file adams_data_set write
model_name = an existing model
file_name = string
write_to_terminal = the constant default value will be used if this
parameter is omitted =
angle = angular_units
length = linear_units
force = force_units
mass = mass_units
time =
4 Adams View Commands
file adams_data_set write
Example:
file adams_data_set write &
file_name = "c:\model.adm" &
model_name = model_1 &
length = mm
Description:
Extended Definition:
1. Adams View will preserve the database names you have chosen, by writing them as comments in the
Adams data set. This will allow you to read the data set at a later date, and still have the original
database names.
The AdamsAdams View model does not have to be complete to be written out in the form of an
Adams data set. If you want to check your model for completeness and consistency, use the 'MODEL
VERIFY' command before writing the data set.
Writing an Adams data set is a convenient method to transfer a Adams View model from one
computing platform to another computing platform from a different hardware vendor.
2. You may identify a model by typing its name or by picking it from the screen.
If the model is not visible on the screen, you must type the name.
You may also find it convenient to type the name even if the model is displayed.
file 5
file adams_data_set write
Specifying this parameter does not change your default modeling units, it only overrides them during
the file read or write operation. Use the DEFAULT UNITS command if you wish to change your
default modeling units.
Note: If you choose to edit the time-date stamps, make sure that the output files came from similar
simulations. Otherwise, result processing may lead to erroneous information.
Format:
file analysis read
file_name = string
model_name = new or existing analysis
analysis_name = new or existing analysis
length = linear_units
force = force_units
mass = mass_units
time = time_units
Example:
file analysis read&
file_name = “c:\analysis_files\my_analysis_1.gra” &
model_name = my_model &
length = mm &
file 7
file analysis read
Description:
Extended Definition:
1. The proper extension is the default, but you can override it by supplying a different extension. You
can only read in multiple files if you associate them with a model.
It is not necessary to enclose the file name in quotes if it only contains alphanumeric characters and
starts with a letter. If you want to include other characters, such as a '.' for an extension or '/' or '[]'
for directory paths, you must enclose the file name in quotes.
2. You can enter multiple files in the file_name parameter if you select to store them under a model.
3. When Adams View reads a request, graphics, and results files (.req, .gra, and .res, respectively) with
the file analysis read command, it stores it in an analysis. By default, the name of the analysis is the
file name, excluding the extension.
Adams View requires that simulations have unique names. Therefore, if an analysis already exists with
the same name as your files, use this parameter to assign a unique name at the time of reading the
file(s).
8 Adams View Commands
file analysis write
4. If you do not specify the length parameter, Adams View reads or writes the file using your default
modeling units.
If you want to read or write a file with units other than those you are currently using, you must specify
this parameter. Specifying this parameter, however, does not change your default modeling units; it
only overrides them during the file read or write operation.
If you want to change your default modeling units, use the defaults units command.
Format:
file analysis write
analysis_name = existing analysis
file_name = string
entity_name = existing entity
Example:
file analysis write &
analysis_name = last_run &
file_name = “c:\analysis\analysis_1”
Description:
Extended Definition:
1. When Adams View reads a request, graphics, and results files (.req, .gra, and .res, respectively) with
the file analysis read command, it stores it in an analysis. By default, the name of the analysis is the
file name, excluding the extension. Adams View requires that simulations have unique names.
Therefore, if an analysis already exists with the same name as your files, use this parameter to assign
a unique name at the time of reading the file(s).
file 9
file binary read
2. The proper extension for the file_name parameter is the default, but you can override it by supplying
a different extension.
It is not necessary to enclose the file name in quotes if it only contains alphanumeric characters and
starts with a letter. If you want to include other characters, such as a '.' for an extension or '/' or '[]'
for directory paths, you must enclose the file name in quotes.
Format:
file binary read
file_name = string
alert = boolean
Example:
file binary read &
file_name = "c:\mydir\desktop\model_1.bin" &
alert = yes
Description:
Extended Definition:
1. The proper extension is the default but can be overridden by simply supplying a different extension.
You do not need to enclose the file name in quotes if it only contains alpha-numeric characters and
starts with a letter. If you want to include other characters, such as a '.' for an extension or '/' or '[]'
for directory paths, you must enclose the name in quotes.
2. Specifies whether or not to alert the user before reading the binary file if there is data that has been
modified since the last save operation. The alert box provides the user with the options to continue
with the read or to cancel the read.
10 Adams View Commands
file binary write
Note: There is no restriction on the size of the binary file. While there is no theoretical limit to .bin
file size, practically speaking, the size of a .bin file will be limited to the amount of RAM
available to the Adams session.
Format:
file binary write
file_name = string
demo_version = real
alert_if_exists = boolean
Example:
file binary write &
file_name = "c:\mydir\desktop\model_1.bin" &
alert_if_exists = yes
Description:
Extended Definition:
1. IT IS IMPORTANT TO NOTE that the binary file is not transferable to different machines from
different hardware vendors. For example, you cannot read in an Adams View binary file written on a
Silicon Graphics workstation, into Adams View on a Digital Equipment Corp. VaxStation. Also some
machines from the same hardware vendor write incompatible binary files. An example of this is a
file 11
file command read
binary file written on a SUN 4/x and a binary file written on SUN 3/x. To transfer preprocessing
models from Adams View on one hardware vendor’s machine to a different hardware vendor’s
machine, you should use the FILE COMMAND WRITE command. The default extension for the
binary file is ".bin", but this is not necessary.
2. The proper extension is the default, but you can override it by supplying a different extension.
It is not necessary to enclose the file name in quotes if it only contains alphanumeric characters and
starts with a letter. If you want to include other characters, such as a '.' for an extension or '/' or '[]'
for directory paths, you must enclose the file name in quotes.
3. Specifies whether or not to issue an alert before writing the file, if a file with the same name already
exists. The alert box provides you with the options to cancel the write, overwrite the existing file, or
to back up the existing file, and then perform the write.
Format:
file command read
file_name = string
Example
file command read &
file_name = “C:\mydir\mymodel_1.cmd”
Description:
Extended Definition:
1. The proper extension for the file_name parameter is the default (.cmd), but you can override it by
supplying a different extension.
2. It is not necessary to enclose the file name in quotes if it only contains alpha-numeric characters and
starts with a letter. If you want to include other characters, such as a '.' for an extension or '/' or '[ ]'
for directory paths, you must enclose the file name in quotes.
12 Adams View Commands
file command write
Format:
file command write
entity_name = an existing model
file_name = string
use_parasolid = as_is/full
Example
file command write &
entity_name = .model_1 &
file_name = mymodel_1.cmd &
use_parasolid = as_is
Description:
Extended Definition:
1. The proper extension in the file_name parameter is the default (.cmd), but you can override it by
supplying a different extension.
It is not necessary to enclose the file name in quotes if it only contains alpha-numeric characters and
starts with a letter. If you want to include other characters, such as a '.' for an extension or '/' or '[ ]'
for directory paths, you must enclose the file name in quotes.
2. You may identify a model by typing its name or by picking it from the screen. If the model is not
visible on the screen, you must type the name. You may also find it convenient to type the name even
if the model is displayed.
file 13
file dac read
You must separate multiple model names by commas. If the model is visible in one of your views, you
may identify it by picking on any of the graphics associated with it. You need not separate multiple
model picks by commas.
3. For the use_parasolid value select either:
a. As is - Adams View exports any geometry that was imported from a Parasolid file out to a
Parasolid file when it writes the command file. The command file references the newly created
Parasolid file. All other geometry (for example, cylinder, shell, and spring-dampers) are defined
using Adams View command language and included in the command file.
b. Full - Adams View exports all static geometry to Parasolid files instead of using Adams View
command language. This includes cylinders, shells, Parasolid, solids, and so on. It does not
include dynamic outlines, spring-damper graphics, and graphic force vectors. These graphics
continue to be defined in the Adams View command language.
4. The commands written to the file may or may not be in the order you originally entered them. Adams
View writes out the commands in the following order.
a. Units for the model.
b. The model create command.
c. The Parts
The attributes of the part.
The markers belonging to the part.
The attributes of the marker.
The geometry belonging to the part.
The attributes of the geometry.
d. The constraints.
The attributes of the constraint.
e. The Forces.
The attributes of the force.
f. The Dynamic geometry. Geometry that spans two different parts.
The attributes of the geometry.
g. Acceleration due to gravity.
h. Adams Analysis Settings.
and other DAC-compatible programs. This topic contains an overview of the DAC format. For a detailed
description of the DAC format, see the nSoft data File Formats document from nCode International.
DAC files are binary, sequential, and fixed-length with 512-byte records. The data represents a fixed sample
rate or time step. Real numbers are single-precision (4-byte) values. Each file has header, data, and footer
regions. Adams Durability supports both old (pre version 5.0) and new (version 5.0+) DAC formats with a
single channel of time series data.
In general, DAC files are not portable from platform to platform. For example, files created by Adams
Durability on a Windows platform are not readable by Adams Durability or other programs on Linux
platforms. nCode provides an nSoft utility to convert DAC files from one platform to another. However, this
utility does not have a specification for the Linux platform. When using Adams Durability or Adams View
on a Linux platform, use DAC files that have been converted to Windows or INTEL (Windows DAC files
are compatible with Linux). Note that Linux-generated DAC files can be processed on Windows and vice
versa.
Format:
file dac read
file_name = file_name
dac_object_name = dac_file_object_name
Description:
Extended Definition:
The proper extension in the file_name parameter is the default, but you can override it by supplying a
different extension.
It is not necessary to enclose the file name in quotes if it only contains alphanumeric characters and starts
with a letter. If you want to include other characters, such as a '.' for an extension or '/' or '[]' for directory
paths, you must enclose the file name in quotes.
format. With this DAC format, you can input data from durability test machines and output data to nSoft
and other DAC-compatible programs. This topic contains an overview of the DAC format. For a detailed
description of the DAC format, see the nSoft data File Formats document from nCode International.
DAC files are binary, sequential, and fixed-length with 512-byte records. The data represent a fixed sample
rate or time step. Real numbers are single-precision (4-byte) values. Each file has header, data, and footer
regions. Adams Durability supports both old (pre version 5.0) and new (version 5.0+) DAC formats with a
single channel of time series data.
In general, DAC files are not portable from platform to platform. For example, files created by Adams
Durability on a Windows platform are not readable by Adams Durability or other programs on Linux
platforms. nCode provides an nSoft utility to convert DAC files from one platform to another. However, this
utility does not have a specification for the Linux platform. When using Adams Durability or Adams View
on a Linux platform, use DAC files that have been converted to Windows or INTEL (Windows DAC files
are compatible with Linux). Note that Linux-generated DAC files can be processed on Windows and vice
versa.
Format:
file dac write
file_name = file_name
result_set_component = existing result_set
Example:
file dac write &
file_name = c:\data\dac_format &
result_set_component = my_result_set
Description:
Extended Definition:
1. The proper extension in the file_name parameter is the default, but you can override it by supplying
a different extension.
It is not necessary to enclose the file name in quotes if it only contains alphanumeric characters and
starts with a letter. If you want to include other characters, such as a '.' for an extension or '/' or '[]'
for directory paths, you must enclose the file name in quotes.
16 Adams View Commands
file dac write
2. For example, assume you read a request file named shift.req, and this request file contains the result
set REQ1. If you want to refer to the X component in the result set REQ1, enter .SHIFT.REQ1.X
(you can omit .SHIFT. if SHIFT is the current analysis_name). SHIFT refers to the analysis name
from which the result set came (or is stored under).
Result sets are associated with an analysis and can be identified as such. A result set associated with
request 101 from an analysis named test can be referred to as .test.req101.
The table illustrates the default names assigned to result sets and result set components read from
request (.req) and results (.res) files.
Result set naming
Result set type: Result set name: Component names: File that result is from:
part PARxxx... x y z e1 e2 e3 e4 mag results file
vx vy vz wx wy wz
Format:
Example:
Description:
Extended Definition:
The suppress_cpp option is no longer supported since Adams no longer includes a third party copy of the C
preprocessor, cpp. Commands with or without this argument specified now always behave as though
suppress_cpp=yes.
Format:
Example:
Description:
Note: EDS file format is not portable between versions of Adams View.
Format:
file fea_loads write
marker_name = an existing marker
flexible_body_name = an existing flexible body
analysis_name = an existing analysis
file_name = string
header = string
no_inertia = yes/no
node_id = integers
locations = locations
start_time = real
end_time = real
time = reals
tolerance = real
format = Ansys/nastran/abaqus/adams_fem/dac/rpc/marc
Example:
file fea_loads write &
file_name = "c:/mydir/desktop/fea_loads.dat" &
analysis_name = Last_Run &
flexible_body_name = FLEX_BODY_1 &
format = nastran
20 Adams View Commands
file fea_loads write
Extended Definition:
The proper extension is the default, but you can override it by supplying a different extension. It is not
necessary to enclose the file name in quotes if it only contains alphanumeric characters and starts with a letter.
If you want to include other characters, such as a '.' for an extension or '/' or '[]' for directory paths, you must
enclose the file name in quotes.
Format:
file geometry read
type_of_geometry = geometry_file_type
file_name = string
option_file_name = string
part_name = an existing part
model_name = an existing model
geometry_type = iges_geometry_type
blanked_entities = boolean
level = integer
create_geometry = geom_create_type
scale = real
22 Adams View Commands
file geometry read
Example:
file geometry read &
type_of_geometry = igs &
file_name = "c:\data.igs" &
part_name = part_2 &
mesh_density = 10 &
relative_to = ground &
blanked_entities = yes &
tolerance = 0.001
Description:
Extended Definition:
1. The type_of_geometry parameter acts as a filter to decide which of the selected geometry objects will
have their rendering mode modified. The possible values are: arc, box, frustum, springdamper,
outline, or all. The arc setting includes both arc and circle geometry. The frustum setting includes
both frustum and cylinder geometry.
Values are: igs, stp.
file 25
file geometry read
2. The proper extension of the file is the default, but you can override it by supplying a different
extension.
It is not necessary to enclose the file name in quotes if it only contains alphanumeric characters and
starts with a letter. If you want to include other characters, such as a '.' for an extension or '/' or '[]'
for directory paths, you must enclose the file name in quotes.
3. The options file contains all translation options for that specific geometry format and the specific
operation (either import or export but not both). The options file is an easier way of specifying a
complete set of translation options at once during an operation. The file can be generated beforehand,
using the 'Manage Geometry Translation Options' dialog box, accessible from the main menu
(Settings → Geometry Translation).
4. You can specify any combination of these values for the geometry_type parameter:
• Point - Only include vertices of geometric entities
• Wireframe - Include lines, arcs, curves, and splines
• Surface - Include surfaces. The IGES translator supports all the standard surfaces. In the case of
trimmed and bounded surfaces, the untrimmed surfaces and the associated model space trimming
curves are processed, but no trimming is performed.
• Text - Include annotation entities including leader lines, arrows, dimensions, and alphanumeric
characters. The entire annotation data is stroked, so the relative size of most fonts is represented
accurately. Stroked text is translated to View as polylines, allowing for a more accurate
representation of the size of the text in the IGES file, but requires more memory than translating
all text to one font. Large amounts of text may adversely affect performance of the IGES translator
and View.
• All - Include all entities.
Example: The following command translates surfaces and text from the IGES file to View:
5. Any IGES entity encountered in the IGES file can be blanked by the program that created the IGES
file. This is similar to View visibility.
If you specify No for the blanked_entities parameter, the blanked entities are not translated to View.
If you specify Yes, the blanked entities are translated to View and are made invisible.
The IGES entities that are blanked are typically construction entities that are used in the definition
of another geometric entity. For example, a line may be used as the center of rotation of another line
in the definition of a cylinder. The center line, and the sweep line rotated about the center line, would
both be blanked because they are temporary entities used in the construction of the cylinder.
Once you translated blanked entities to View, there is no distinction between construction entities
and other geometry. You can use the display_attributes command to turn on the visibility of the
blanked entities.
26 Adams View Commands
file geometry read
Note that specifying a mesh requires less computation than letting the translator default to a
polygonalization (i.e. not setting the mesh_density parameter), but the polylines generated for a mesh
may not be shaded in View. The polylines generated for a polygonalization are closed (polygons) and
therefore may be shaded in View.
10. The tolerance value is the measure of the midpoint chordal distance from the approximated
curve/surface to the true curve/surface.
11. The coordinates specified by the location parameter can be relative to any other coordinate system
defined in the model.
By default, you enter Cartesian (x,y,z) coordinates. You can change the convention for entering
translational positions.
12. The orientation coordinates can be relative to any other coordinate system defined in the model.
View orients the coordinate system starting from the initial coordinate system and applying three
successive rotations. By default, you supply body-fixed 313 angles. You can change the convention
for entering orientation angles.
13. If you do not specify the ‘relative_to’ parameter, View uses the default coordinate system. The default
coordinate system is initially your model, that is. the global coordinate system. You can change the
default coordinate system using the default coordinate_system command.
Cautions:
Be careful when specifying the tolerance. You should have advanced knowledge of the units and size
of the geometry in the CAD file before setting the tolerance. If you do not know the size of the
geometry in the file, Exchange may translate the geometry so it is too coarse, or too fine. A tolerance
that is too fine can potentially cause Exchange to use excessive computing power and memory.
Format:
file geometry write
type_of_geometry = geometry_file_type
file_name = string
option_file_name = string
explode = boolean
model_name = an existing model
analysis_name = an existing analysis
frame_number = integer
28 Adams View Commands
file geometry write
Example:
file geometry write &
type_of_geometry = stp &
file_name = "c:\data.stp" &
explode = yes &
analysis_name = last_run &
frame_number = 10
Description:
Extended Definition:
1. The ‘type_of_geometry’ parameter acts as a filter to decide which of the selected geometry objects will
have their rendering mode modified. The possible values are: arc, box, frustum, springdamper,
outline, or all. The arc setting includes both arc and circle geometry. The frustum setting includes
both frustum and cylinder geometry.
Values are: igs, stp.
2. The proper extension for the file specified by the ‘file_name’ parameter is the default, but you can
override it by supplying a different extension.
It is not necessary to enclose the file name in quotes if it only contains alphanumeric characters and
starts with a letter. If you want to include other characters, such as a '.' for an extension or '/' or '[]'
for directory paths, you must enclose the file name in quotes.
3. All geometry written to the IGES file is defined with respect to the global coordinate system of the
Adams View model.
4. The options file contains all translation options for that specific geometry format and the specific
operation (either import or export but not both). The options file is an easier way of specifying a
complete set of translation options at once during an operation. The file can be generated beforehand,
using the 'Manage Geometry Translation Options' dialog box, accessible from the main menu
(Settings → Geometry Translation).
5. This analysis_name parameter is helpful for transferring position data of an Adams View model to a
drafting program to prepare drawings of the mechanism at various states of operation. Adams View
writes all parts and geometry to the CAD file in the same relative position as they appear in a single
frame
6. If you specify the ‘frame_number’ parameter, it must be a positive integer corresponding to the
desired frame (output time step), and the default value is initially 1. If you enter a new value, it will
be remembered and will be the default next time the command is used. If you enter a value greater
than the last frame number, Adams displays the last frame.
7. The geometry will be defined with respect to the global reference frame within the geometry file.
You can identify a part by typing its name or by picking it from the screen:
30 Adams View Commands
file geometry write
If the part is not visible on the screen, you must type the name (you may find it convenient to type
the name even if the part is visible). If you created the part by reading a dataset or graphics file, the
part name is the letters par followed by the dataset part ID number. For example, the name of Adams
PART/101 is PAR101. If you created the part during preprocessing, you will have given it a name at
that time. If a part is available by default, you can identify it by entering only its name. If it is not,
you must enter its full name.
To identify a part under another model, for example, you may need to enter the model name, as well.
For example, you may specify part arm from model robot by entering .robot.arm. If you type a ?,
Adams View will list the parts available by default.
You must separate multiple part names with commas.
If the part is visible in one of your views, you can identify it by picking on any of the graphics
associated with it. It is not necessary to separate multiple part picks with commas.
8. The FRAME_NUMBER parameter is used to specify the frame number (Adams simulation output
time step) at which to configure a model during the single_frame_display command. If entered, the
frame_number must be a positive integer corresponding to the desired frame (output time step) and
the default value is initially 1. If a new value is entered, this value will be remembered and be the
default next time the command is used. If a value greater than the last frame number is entered, the
system will display the last frame.
This parameter is optional and mutually exclusive with the CONFIGURATION and TIME
parameters. If none of the three are entered, the first frame will be displayed.
Special Note: Even if only one view_name is provided, the frame number will be applied to the
specified view and any other views that contain the same model (the model indicated by
analysis_name parameter). If only analysis_name is provided (view_name parameter is omitted), any
views that contain the model indicated by analysis_name will be affected.
9. Specifies the name of the Adams PART from which the geometry is written to the IGES file. The
geometry will be defined with respect to the global reference frame within the IGES file.
You may identify a part by typing its name or by picking it from the screen.
If the part is not visible on the screen, you must type the name. You may also find it convenient to
type the name even if the part is displayed. If you created the part by reading an Adams data set or
graphics file, the part name is the letters PAR followed by the Adams data set part ID number. For
example, the name of Adams PART/101 is PAR101. If you created the part during preprocessing,
you will have given it a name at that time.
If a part is available by default, you may identify it by entering only its name. If it is not, you must
enter its full name. To identify a part under another model, for instance, you may need to enter the
model name as well. For example, you may specify part 'arm' from model 'robot' by entering
".robot.arm".
You must separate multiple part names by commas.
If the part is visible in one of your views, you may identify it by picking on any of the graphics
associated with it.
You need not separate multiple part picks by commas.
file 31
file graphics read
Tips:
If you type a "?", Adams View will list the parts available by default.
Format:
file graphics read
model_name = an existing model
analysis_name = an existing analysis
file_name = string
length = linear_units
mass = mass_units
time = time_units
force = force_units
Example:
file graphics read &
file_name = "c:\model_1.gra" &
analysis_name = last_run &
disk_based_results = yes
Description:
Extended Definition:
1. You may identify a model by typing its name or by picking it from the screen.
If the model is not visible on the screen, you must type the name.
You may also find it convenient to type the name even if the model is displayed.
You must separate multiple model names by commas.
If the model is visible in one of your views, you may identify it by picking on any of the graphics
associated with it.
You need not separate multiple model picks by commas.
2. When Adams View reads a graphics file (.GRA), a request file (.REQ), a results file (.RES), or all three
with the FILE ANALYSIS READ, it stores them in an analysis. By default, the name of the analysis
is the file name excluding the extension.
Adams View requires that Adams simulations have unique names, therefore, if an analysis already
exists with the same name as your files, use this parameter to assign a unique name at the time of
reading the file(s).
3. The proper extension for the file is the default but can be overridden by simply supplying a different
extension.
You do not need to enclose the file name in quotes if it only contains alpha-numeric characters and
starts with a letter. If you want to include other characters, such as a '.' for an extension or '/' or '[]'
for directory paths, you must enclose the name in quotes.
4. If you do not use the length/mass/time parameter, Adams View will read or write the file using your
default modeling units. You only need to enter this parameter when you wish to read or write a file
with different units than those you are currently using.
Specifying this parameter does not change your default modeling units, it only overrides them during
the file read or write operation. Use the DEFAULT UNITS command if you wish to change your
default modeling units.
Format:
file graphics write
analysis_name = an existing analysis
file_name = string
Example:
file graphics write &
analysis_name = last_run &
file_name = "c:\model_1.gra"
Description:
Extended Definition:
1. The analysis_name parameter specifies the name of the analysis to store the Adams output in. When
Adams View reads a graphics file (.GRA), a request file (.REQ), a results file (.RES), or all three with
the FILE ANALYSIS READ, it stores them in an analysis. By default, the name of the analysis is the
file name excluding the extension.
Adams View requires that Adams simulations have unique names, therefore if an analysis already
exists with the same name as your files, use this parameter to assign a unique name at the time of
reading the file(s).
2. The file has a .gra extension by default, but you can override it by supplying a different extension.It's
not necessary to enclose the file name in quotes if it only contains alphanumeric characters and starts
with a letter. If you want to include other characters, such as a '.' for an extension or '/' or '[]' for
directory paths, you must enclose the file name in quotes.
Format:
file html write
file_name = file
output_directory = string
title = string
author = string
date = date
comment = string
model_name = existing model
page_name = existing page
title_image_file_name = file
image_width = integer
image_height = integer
image_format = png/jpg
movie_format = png/ jpg/ avi/mpg
export_animations = boolean
avi_frames_per_second = integer
avi_quality = integer
avi_keyframe_every = integer
mpeg_ngop = integer
mpeg_round_size = boolean
include_points = boolean
include_markers = boolean
Example:
File Html Write &
File=(.gui.ppt_file_export.c_html.c_tabs.c_file.file_var.string_value) &
Output_directory =(.gui.ppt_file_export.c_html.c_tabs.c_file.dir_var) &
Page_name =Page_1 &
Title=(.gui.ppt_file_export.c_html.c_tabs.c_title.title_var) &
Model_name=.model_1 &
Comment="This Report Is For Analysis_1 In Model Model_1" &
Date=(.gui.ppt_file_export.c_html.c_tabs.c_title.date_var) &
Author=(.gui.ppt_file_export.c_html.c_tabs.c_title.author_var) &
Title_image_file_name=(.gui.ppt_file_export.c_html.c_tabs.c_title.image_var)
&
Image_format =Png &
Image_height =423 &
Image_width =834 &
Export_animations =Yes &
Movie_format =Avi &
file 35
file html write
Avi_compression=(Eval(.gui.ppt_file_export.c_html.c_tabs.c_pages.o_movie_for
mat.current_choice) == "Compressed Avi" ? "Yes" : "No") &
Avi_keyframe_every = 500 &
Avi_frames_per_sec = 10 &
Avi_quality = 75
Include_markers = Yes
Description:
Extended Definition:
1. For the file_name parameter,the proper extension is the default .htm, but you can override it by
supplying a different extension. There will be several other files and subdirectoreis exported in the
report.
It is not necessary to enclose the file name in quotes if it only contains alphanumeric characters and
starts with a letter. If you want to include other characters, such as a '.' for an extension or '/' or '[]'
for directory paths, you must enclose the file name in quotes.
2. When you export model information, you output information about the model objects: parts,
constraints, forces, measures, requests, and assembly objects. Adams View creates a folder for each
model and objects in the model, grouped by type.
3. By default, Adams PostProcessor maintains the aspect ratio of the images so if you enter a value for
image_width, Adams PostProcessor automatically calculates the height based on the current aspect
ratio, and the reverse.
If you leave image_width and image_height blank, Adams View uses their default size in Adams
PostProcessor.
4. For the movie_format parameter,
• If you select jpg or png, Adams Processor, exports each frame as an png or jpg file, and then plays
them as a movie.
• If you select compressed AVI format, set avi_frames_per_second.
• If you select .mpg, you can also set mpeg_ngop or mpeg_round_size.
file 37
file iges read
5. For the “mpeg_ngop” parameter, the smaller the number, the larger the file. Some movie players
cannot handle compression; in that case, set to 1.
Format:
file iges read
file_name = string
part_name = an existing part
geometry_type = iges_geometry_type
blanked_entities = boolean
level = integer
create_geometry = iges_create_type
scale = real
mesh_density = integer
tolerance = real
single_shell = shell_opt
location = location
orientation = orientation
relative_to = an existing model, part or marker
Example:
file iges read &
file_name = "c:\data.igs" &
geometry_type = all &
location = 10 , 10 , 10 &
orientation = 0 , 0 , 0&
relative_to = ground
38 Adams View Commands
file iges read
Description:
Extended Definition:
1. The Adams IGES translator is an optional module for Adams View. Adams IGES imports standard
IGES geometry files from any CAD software package and operates on this data to convert it into a
set of Adams View geometry elements. These elements can correspond either to standard Adams
GRAPHICS statements or polylines. You associate the IGES geometry with any rigid body part of
the Adams View model prior to, or subsequent to an Adams simulation.
2. Include the complete path name unless the file currently resides in the directory from which you are
running Adams View.
If the files that you want to read into Adams View are not in the directory in which you are running
AdamsAdams View, use the complete path name of the files. Enclose the full path name in double
quotation marks ("") because the full path name includes special characters; characters other than
alphabetic, numeric, or underscore characters.
If you want to include other characters, such as a '.' for an extension or '/' or '[]' for directory paths,
you must enclose the name in quotes.
Adams View assumes that the file extension is ".igs." Therefore, you do not have to include the file
extension if it is ".igs."
3. The geometry may be placed upon a part and used for preprocessing and postprocessing. Markers
created by the IGES translator will be located on the part specified in this parameter.
You may identify a part by typing its name or by picking it from the screen.
If the part is not visible on the screen, you must type the name. You may also find it convenient to
type the name even if the part is displayed.
If you created the part by reading an Adams data set or graphics file, the part name is the letters PAR
followed by the Adams data set part ID number. For example, the name of Adams PART/101 is
PAR101. If you created the part during preprocessing, you will have given it a name at that time.
If a part is available by default, you may identify it by entering only its name. If it is not, you must
enter its full name. To identify a part under another model, for instance, you may need to enter the
model name, as well. For example, you may specify part 'arm' from model 'robot' by entering
".robot.arm".
You must separate multiple part names by commas.
40 Adams View Commands
file iges read
If the part is visible in one of your views, you may identify it by picking on any of the graphics
associated with it.
You need not separate multiple part picks by commas.
4. Admissible values for the geometry_type parameter are:
Wireframe - This general type of geometry includes lines, arcs, curves, and splines.
Surface--The IGES translator supports all the standard surfaces. In the case of trimmed and bounded
surfaces, the untrimmed surfaces and the associated model space trimming curves are processed, but
no trimming is performed.
Text-Text implies annotation entities including leader lines, arrows, dimensions as well as alpha-
numeric characters. All annotation data is stroked, so the relative size of most fonts is represented
accurately. Stroked text is translated to Adams View as polylines. This allows for a more accurate
representation of the size of the text in the IGES file but requires more memory than translating all
text to one font.
Large amounts of text may adversely affect the performance of the IGES translator and Adams View.
All-All supported entities are translated to Adams View.
Any combination of these values may be specified. For example, the following command will translate
surfaces and text from the IGES file to Adams View.
FILE IGES READ FILE="cylinder.igs"&
GEOMETRY_TYPE=Surface,Text PART_NAME=.mod1.ground
5. Any IGES entity encountered in the IGES file may be blanked by the program that created the IGES
file. This is similar to Adams View visibility. If you specify No for the BLANKED_ENTITIES
parameter, then the blanked entities are not translated to Adams View. If you specify Yes for the
BLANKED_ENTITIES parameter, then the blanked entities are translated to Adams View and they
are made to be invisible.
IGES entities that are blanked are typically construction entities that are used in the definition of
another geometric entity. For example, a line may be used as the center of rotation of another line in
the definition of a cylinder. The center line, and the sweep line rotated about the center line, would
both be blanked because they are temporary entities used in the construction of the cylinder.
Once blanked entities have been translated to Adams View, there is no distinction between
construction entities and other geometry. The DISPLAY_ATTRIBUTES commands may be used to
turn the visibility of the blanked entities on.
6. An IGES level is a means of associating geometry into a group. These groups may be manipulated as
a single entity for purposes of visibility and color. IGES levels are defined by the program that
generates the IGES file and are labeled with integers greater than or equal to zero. Levels are typically
used to organize data for viewing and are similar to layers in the CAD sense. Adams View will read
all levels by default if the LEVEL parameter is not specified.
Adams View allows specification of one level or a range of levels to be translated from the IGES file.
The following command translates levels 10,11,12,13,14, and 15 from the IGES file to Adams View.
FILE IGES READ FILE="engine.igs"LEVEL=10,15&
PART_NAME=.coupe.block
file 41
file iges read
7. A subset of the geometric entities read by the IGES translator may be converted to outlines and
markers in Adams View. Refer to the table below for a complete list of entities that may be translated
into outlines and markers or polylines.
If CREATE_GEOMETRY is specified with the value 'outline', the entities listed below will be
translated into Adams outlines with a marker created at each vertex. These markers will have an
orientation parallel to the lprf of the PART selected in the PART_NAME parameter.
If CREATE_GEOMETRY is specified with the value of 'polyline', the above mentioned entities will
be translated into Adams View polylines. No markers are created when polylines are generated.
Generating outlines has the advantage of having markers created at each vertex. These markers are
standard Adams View markers that may be used for the definition of constraints, forces, mass
properties, and other Adams View geometry. The outlines and markers may also be written to an
Adams data set file. The disadvantage of using outlines is the increased memory requirements.
Geometry translated to polylines will not have markers and requires about one third of the memory
to store the equivalent outline. Polylines are not written to an Adams data set file.
In addition to the entities listed below, outlines may be created for any geometry or annotation entity
that results in a linear approximation of two points. In this case, a line is created.
Outlines may also be created for surfaces that are polygonalized.
8. The default scale factor is 1.0. If the scale factor of 1.0 is used, the geometry created in the Adams
VIEW will be the same size as the geometry in the IGES file. A scale factor less than 1.0 will reduce
the size of geometry and a scale factor greater than 1.0 will increase the size of the geometry. For
example, assume the scale factor specified is 0.5, a cylinder of length 2 meters and diameter .5 meters
would be translated to Adams View with the length of 1 meter and diameter of .25 meters. The
distance from geometry to the RELATIVE_TO coordinate system will be scaled accordingly. If the
previously mentioned cylinder was located at 3,2,0 in the IGES file, it would be located at 1.5,1,0
after it is translated to Adams View.
The orientation of the geometry is not affected by the SCALE parameter.
file 43
file iges read
+++
+ | +
+ |tolerance +
+ ___________|_____________+
+ /
+ /
+ /
+ / + = true curve
/
+ / __ = approximate curve
/ /
+ /
44 Adams View Commands
file iges read
/
+/
Caution should be used when specifying the TOLERANCE parameter. Since you specify the
tolerance value, advance knowledge of the units and size of the geometry in the IGES file is necessary.
If the size of the geometry in the IGES file is not known the geometry translated to Adams View may
be created too coarse, or worse, too fine. A tolerance that is too fine can potentially cause the IGES
translator to use excessive CPU and memory.
The TOLERANCE parameter becomes more significant if the MESH_DENSITY parameter is not
specified. If the MESH_DENSITY parameter is not specified, the IGES translator will polygonalize
any surfaces encountered in the IGES file. If the IGES file contains a large number of surfaces, the
IGES translator might generate a large amount of data, degrading the performance of Adams View.
If the translation appears to be taking too much time, try increasing the value specified for the
TOLERANCE. Try reading the IGES file with the TOLERANCE increased by a factor of 10. If the
speed degradation is caused by a tolerance that is too fine, you will see a dramatic improvement with
a larger value specified for the TOLERANCE parameter.
The tolerance reported in the log file and in the LIST_INFO is the tolerance of the data defined in
the IGES file. This is the maximum tolerance available in the IGES file and is usually too fine for
efficient translation to Adams View. It is recommended to try a tolerance several orders of magnitude
greater than the tolerance specified in the IGES file.
11. The coordinates specified by the LOCATION parameter can be relative to any other coordinate
system defined in the Adams View model (See the RELATIVE_TO parameter for this command).
By default, you supply Cartesian (x, y, z) coordinates. You may use the 'defaults units
coordinate_system_type =' command to change this convention. For example, selecting 'cylindrical'
means you will subsequently be supplying r, theta, and z coordinates.
12. The orientation coordinates can be relative to any other coordinate system defined in the Adams
View model (See the RELATIVE_TO parameter for this command).
Adams View will orient the coordinate system by starting from the initial coordinate system and
applying three successive rotations.
Depending on the convention you have selected, the rotations may occur about space-fixed or body-
fixed axes in any meaningful combination of the x, y, and z axes.
By default, you supply Euler (known as body313, or body-fixed z, x, z) angles. You may change this
convention with the 'DEFAULTS UNITS ORIENTATION_TYPE=' command. For example,
selecting SPACE123 means you will subsequently be supplying space-fixed x, y, and z, angles.
AdamsAdams View applies your orientation angles starting from the coordinate system you identify
with the RELATIVE_TO parameter. The default for the RELATIVE_TO parameter is the default
coordinate system.
Refer to the Appendix on "Specifying Locations and Orientations in Adams View" in the Adams
View Users Manual for more information on the ORIENTATION parameter.
Tip: If you type a "?", Adams View will list the parts available by default.
file 45
file log_file
file log_file
The log_file is an ASCII file Adams View creates, that becomes a record of Adams View session.
Format:
file log_file
file_name = string
write_switch = on_off
messages_include = on_off
commands_include = on_off
expand_commands = on_off
Example:
file log_file &
write_switch = on &
messages_include = on &
commands_include = on
Description:
Extended Definition:
1. All commands, messages, and prompts are sent to the log file. The name of this file is defaulted to
aview.log.
The default name may be overridden using the file_name parameter of the LOG_FILE command.
The log_file command allows modification of the behavior of the log file that is generated when
Adams View is running. These modifications include:
• Specification of the name of the log file
46 Adams View Commands
file log_file
• A switch to turn off the log file write (slight system performance improvement)
• A switch for inclusion or exclusion of system messages
• A switch to include or exclude commands entered
• A switch for the expansion of abbreviated commands
The log file is also useful for reproducing a session (e.g. recreating a session after a system crash or
other such catastrophic failure) and for creation of command macros (see help for the
expand_commands parameter). Log files are command files generated by the Adams View containing
all commands executed as well as diagnostics generated (All diagnostics and messages are written to
the log file as comments.
This allows the log file to be executed directly as a command file).
Log files may be read in and executed in the same fashion as other command files. Each time Adams
View is run, a new log file is generated. If you wish to save the log file after finishing a session, make
sure the log file is renamed, otherwise it may be replaced the next time the application is started.
2. The proper extension is the default but can be overridden by simply supplying a different extension.
You do not need to enclose the file name in quotes if it only contains alpha-numeric characters and
starts with a letter. If you want to include other characters, such as a '.' for an extension or '/' or '[]'
for directory paths, you must enclose the name in quotes.
3. Turning off the log file will result in a slight performance improvement. The name of the log file is
defaulted to aview.log. The default name may be overridden using the file_name parameter. By
default, Adams View generates a log file that may be played back at a later time. Each time Adams
View is run a new log file is generated.
If this parameter is turned Off, Adams View will not generate a log file. It is recommended that the
log file remain activated because it represents a record of the session. A log file may be executed as a
command file in order to reproduce a session. This is useful in recreating a session after a system crash
or other such catastrophic failure.
4. By default, all messages from Adams View are sent to the log file. This allows a more complete
representation of the session in the log file and provides more information to someone who is reading
the log file.
Messages are stored as comments in the log file, and are therefore ignored by the command processor
if the log file is read in as a command file.
5. commands_include parameter allows you to specify whether the command entered during an Adams
View session should be echoed to the log file. If the value of the COMMANDS_INCLUDE
parameter is Off, no commands entered by the user or a command file will be printed to the log file.
ON, the default, indicates all commands will be echoed to the log file.
If the user wishes to use the log file as a command file, this parameter should be set to ON. Also, the
EXPAND_COMMANDS parameter should be set as well.
file 47
file mnfxform mirror
Note: If a command file is executed, these commands will be sent to the log file as comments.
This is because if the command that executes the command file, as well as the commands
in the command file are both left as executable in the log file, then the commands will
be executed twice! Once, by calling the same command file, and next, as logged when
the file was read the first time.
6. expand_commands allows you to specify whether the commands entered should be written to the log
file as they are entered (possibly abbreviated) or expanded to full length. If EXPAND_COMMANDS
is turned ON, entire command keywords and parameter names are written to the log file even if only
abbreviations are entered. The default setting is OFF. This provides a very efficient way to create
command procedures. For example, the user can interactively enter the abbreviated commands to
quickly create an xy plot. (Entering the abbreviated commands is much faster but can create a log file
that is not very readable.) With the EXPAND_COMMANDS parameter set to "on", the fully
expanded commands are written to the log file. This log file can be renamed and executed as a
command file to repeat a given action, such as recreating the xy plot for subsequent analysis runs.
Also, once created, the converted log file can be edited to perform similar yet different functions. You
may expand commands in an existing command file by first placing the command "file log_file
expand_commands=on commands_include=on" at the beginning of the file. If you then execute the
command file, the resulting log file will contain an expanded copy of the commands.
Example:
file mnfxform mirror &
modal_neutral_file_name = "D:\MSC.Software\Adams\flex\examples\mnf\lin
k.mnf" &
output_file_type = mnf &
output_file_name = "D:\mirroring.mnf" &
orientation = Global Z &
location = 0,0,100 &
mnfwrite_options = single
Example:
file mnfxform rotate &
modal_neutral_file_name = "D:\MSC.Software\Adams\flex\examples\MSCNASTR
AN\demo\plate.MASTER" &
output_file_type = md db &
output_file_name = "D:\rotation.MASTER" &
orientation = Global Z &
location = 0,0,100 &
angle = 60 &
id_list = 10,50,70
Example:
file mnfxform translate &
modal_neutral_file_name = "D:\MSC.Software\Adams\flex\examples\mnf\link
.mnf" &
output_file_type = mnf &
output_file_name = "D:\translation.mnf" &
orientation = Global Y &
v_distance = 100 &
node_number_offset = 1000 &
mnfwrite_options = fast_invar, MKS, strip_face
Format:
file parasolid write
file_name = string
type = ascii/binary/neutral
model_name = existing model
analysis_name = existing analysis
frame_number = integer
part_name = existing part
file 57
file parasolid write
Description:
Extended Definition:
1. It is not necessary to enclose the file name in quotes if it only contains alphanumeric characters and
starts with a letter. If you want to include other characters, such as a '.' for an extension or '/' or '[]'
for directory paths, you must enclose the file name in quotes.
2. The analysis_name parameter is helpful for transferring position data of an Adams View model to a
drafting program to prepare drawings of the mechanism at various states of operation. Adams View
writes all parts and geometry to the CAD file in the same relative position as they appear in a single
frame display.
3. If you specify the frame_number parameter, it must be a positive integer corresponding to the desired
frame (output time step), and the default value is initially 1. If you enter a new value, it will be
remembered and be the default next time the command is used. If you enter a value greater than the
last frame number, the system will display the last frame.
This parameter is optional and mutually exclusive with the CONFIGURATION and TIME
parameters. If none of the three are entered, the first frame will be displayed
Note: Even if you only provide one view_name, the frame number will be applied to the
specified view and any other views that contain the same model (the model indicated by
the analysis_name parameter). If you only provide analysis_name (view_name
parameter is omitted), any views that contain the model indicated by analysis_name will
be affected.
58 Adams View Commands
file parasolid read
4. The geometry specified in the part_name parameter will be defined with respect to the global
reference frame within the iges file.
You can identify a part by typing its name or by picking it from the screen.
If the part is not visible on the screen, you must type the name (you may find it convenient to type
the name even if the part is visible). If you created the part by reading a dataset or graphics file, the
part name is the letters par followed by the dataset part ID number.
For example, the name of Adams PART/101 is PAR101. If you created the part during preprocessing,
you will have given it a name at that time. If a part is available by default, you can identify it by
entering only its name. If it is not, you must enter its full name.
To identify a part under another model, for example, you may need to enter the model name as well.
For example, you may specify part arm from model robot by entering .robot.arm. If you type a ?,
Adams View will list the parts available by default.
You must separate multiple part names with commas.
If the part is visible in one of your views, you can identify it by picking on any of the graphics
associated with it. It is not necessary to separate multiple part picks with commas.
Format:
file parasolid read
file_name = string
type = parasolid_file_type
model_name = new or existing model
part_name = new or existing body
location = location
orientation = orientation
relative_to = existing model,part or marker
file 59
file parasolid read
Example:
file parasolid read &
file_name = "d:/examples/engine/crankshaft.xmt_txt" &
type = ascii &
model_name = .model_1 &
explode_assemblies = boolean
Description:
Extended Definition:
1. The proper extension for the file_name parameter is the default, but you can override it by supplying
a different extension.
file 61
file postprocessing
It's not necessary to enclose the file name in quotes if it only contains alphanumeric characters and
starts with a letter. If you want to include other characters, such as a '.' for an extension or '/' or '[]'
for directory paths, you must enclose the file name in quotes.
2. The coordinates specified in the location parameter can be relative to any other coordinate system
defined in the Adams View model.
By default, you supply Cartesian (x, y, z) coordinates. You can use the defaults units
coordinate_system_type = command to change this convention. For example, selecting cylindrical
means that you will subsequently be supplying r, theta, and z coordinates.
3. Adams View orients the coordinate system by starting from the initial coordinate system and applying
three successive rotations. Depending on the convention you have selected, the rotations may occur
about space-fixed or body-fixed axes in any meaningful combination of the x-, y-, and z-axes.
By default, you supply Euler (known as body313, or body-fixed z, x, z) angles. You can change this
convention with the defaults units orientation_type = command. For example, selecting space123
means you will subsequently be supplying space-fixed x, y, and z, angles.
Adams View applies your orientation angles starting from the coordinate system you identify with the
relative_to parameter. The default for the relative_to parameter is the default coordinate system.
4. If you don't specify the “relative_to” parameter, Adams View uses the default coordinate system. The
default coordinate system is initially your model, that is, the global coordinate system. You can change
the default coordinate system using the defaults coordinate_system command.
file postprocessing
Allows you to export data from Adams View for use with a stand-alone version of Adams PostProcessor. When
you export Adams PostProcessor files, Adams View generates a command file (.cmd) and all required
supporting files, including:
Dataset (.adm) file
Shell (.shl) files needed for geometry representation
Matrix (.mtx) files for use with the .adm file, if needed
The command file also contains commands to read in the other files when you import the command file into
Adams PostProcessor.
Adams View names the command file ModelName_to_ppt.cmd, where ModelName is the name of the
model.
Format:
file postprocessing
model_names = existing models
62 Adams View Commands
file render read
Example:
file postprocessing &
model_names = suspension14
This will create a file called suspension14_to_ppt.cmd which can be used with Adams postprocessor.
Description:
Cautions:
The simulation results are not referenced in the command file. You must import the analysis files (graphics,
request, and results files) separately into Adams PostProcessor.
Example:
file render read &
file_name = “c:\users\ashish\render” &
part_name = ground &
scale = 2
file 63
file render read
Description:
Extended Definition:
1. It is not necessary to enclose the file name in quotes if it only contains alphanumeric characters and
starts with a letter. If you want to include other characters, such as a '.' for an extension or '/' or '[]'
for directory paths, you must enclose the file name in quotes.
2. You can place the geometry upon a part and use it for preprocessing and postprocessing. Markers
created by the iges translator will be located on the part you specify in this parameter.
You can identify a part by typing its name or by picking it from the screen. If the part is not visible
on the screen, you must type the name (you may find it convenient to type the name even if the part
is visible).
If you created the part by reading a dataset or graphics file, the part name is the letters par followed
by the dataset part ID number. For example, the name of Adams PART/101 is PAR101. If you
created the part during preprocessing, you will have given it a name at that time.
If a part is available by default, you can identify it by entering only its name. If it is not, you must
enter its full name. To identify a part under another model, for example, you may need to enter the
model name as well. For example, you may specify part arm from model robot by entering .robot.arm.
If you type a ?, Adams View will list the parts available by default.
You must separate multiple part names with commas.
If the part is visible in one of your views, you can identify it by picking on any of the graphics
associated with it. It is not necessary to separate multiple part picks with commas.
3. The default scale factor is 1.0.
Scale factor influences geometry created in Adams View with respect to the geometry in the imported
file, as follows:
• A scale factor of 1.0 - Geometry will be the same size.
• A scale factor of less than 1.0 - Reduces the size of geometry.
64 Adams View Commands
file request read
You can overwrite the default analysis name using the file_name parameter. The name of each result set will
be req with the request statement ID appended to it. For example, request/1508 would produce a result set
name of req1508.
Format:
file request read
file_name = string
model_name = new or existing model
analysis_name = new or existing analysis
length = linear_units
force = force_units
mass = mass_units
time = time_units
request_ids = integer
disk_based_results = boolean
Example:
file request read &
file_name = "c:\\my documents\last_run.req" &
model_name = model_1 &
disk_based_results = yes &
request_ids = 5 &
time_step_skip = 1 &
length = meter &
mass = kg &
time = millisecond &
force = newton
Description:
Extended Definition:
1. For the filename parameter, The .req extension is the default, but you can override it by supplying a
different extension.
It is not necessary to enclose the file name in quotes if it only contains alphanumeric characters and
starts with a letter. If you want to include other characters, such as a '.' for an extension or '/' or '[]'
for directory paths, you must enclose the file name in quotes.
2. You can identify a model by typing its name or by picking it from the screen:
If the model is not visible on the screen, you must type the name (you may find it convenient to type
the name even if the model is visible). You must separate multiple model names with commas.
If the model is visible in one of your views, you can identify it by picking on any of the graphics
associated with it. It is not necessary to separate multiple model picks with commas.
3. When Adams View reads a request, graphics, and results file (.req, .gra, and .res, respectively) with
the file analysis read command, it stores it in an analysis. By default, the name of the analysis is the
file name, excluding the extension.
Adams View requires that simulations have unique names. Therefore, if an analysis already exists with
the same name as your files, use this parameter to assign a unique name at the time of reading the
file(s).
file 67
file request write
4. If you do not specify the “length”,”mass”,“time” or “force” parameter, Adams View reads or writes
the file using your default modeling units.
If you want to read or write a file with units other than those you are currently using, you must specify
this parameter. Specifying this parameter, however, does not change your default modeling units; it
only overrides them during the file read or write operation.
If you want to change your default modeling units, use the defaults units command.
5. If you specify yes for the “disk_based_results” parameter, only the header information from the file is
made memory resident, the bulk of the data remains on disk. This can significantly slow down
operations for small files where leaving on disk merely adds overhead, but for very large files, it can
have the opposite effect and improve performance due to the reduced memory footprint.
6. If you have a large request file with unnecessary fine time resolution, specifying a time_step_skip can
significantly reduce the amount of memory used to store the data.
For example, if you specify time_step_skip = 1, the pattern starts at 1, skips one, takes step 3, and so
on: 1,3,5,7,... A value of 2 would result in 1,4,7,10,13,...
Format:
file request write
analysis_name = existing analysis
file_name = string
Example:
file request write &
analysis_name = last_run &
file_name = “c:\analysis\analysis_1”
Description:
Extended Definition:
1. The proper extension for the file_name parameter is the default, but you can override it by supplying
a different extension.
It is not necessary to enclose the file name in quotes if it only contains alphanumeric characters and
starts with a letter. If you want to include other characters, such as a '.' for an extension or '/' or '[]'
for directory paths, you must enclose the file name in quotes.
Format:
file results read
model_name = an existing model
analysis_name = an existing analysis
file_name = string
length = linear_units
mass = mass_units
time = time_units
force = force_units
Skip_time_interval = integer
Skip_contact_interval = integer
Example:
file results read &
file_name = "c:\model_1.res" &
analysis_name = last_run &
disk_based_results = yes
file 69
file results read
Description:
Extended Definition:
1. You may identify a model by typing its name or by picking it from the screen.
If the model is not visible on the screen, you must type the name.
You may also find it convenient to type the name even if the model is displayed.
You must separate multiple model names by commas.
If the model is visible in one of your views, you may identify it by picking on any of the graphics
associated with it.
You need not separate multiple model picks by commas.
2. When Adams View reads a graphics file (.GRA), a request file (.REQ), a results file (.RES), or all three
with the FILE ANALYSIS READ, it stores them in an analysis. By default, the name of the analysis
is the file name excluding the extension.
Adams View requires that Adams simulations have unique names, therefore if an analysis already
exists with the same name as your files, use this parameter to assign a unique name at the time of
reading the file(s).
3. The proper extension for the file is the default but can be overridden by simply supplying a different
extension.
70 Adams View Commands
file results write
You do not need to enclose the file name in quotes if it only contains alpha-numeric characters and
starts with a letter. If you want to include other characters, such as a '.' for an extension or '/' or '[]'
for directory paths, you must enclose the name in quotes.
4. If you do not use the length/mass/time parameter, Adams View will read or write the file using your
default modeling units. You only need to enter this parameter when you wish to read or write a file
with different units than those you are currently using.
Specifying this parameter does not change your default modeling units, it only overrides them during
the file read or write operation. Use the DEFAULT UNITS command if you wish to change your
default modeling units.
5. If you have a large result file with unnecessary fine time resolution, specifying a skip_time_interval
and skip_contact_interval can significantly reduce the amount of memory used to store the data as
well as reduce the reading time.
If the skip_time_interval and skip_contact_interval are not provided or if their values are both 1 then
the entire result file is read as usual. If the skip_time_interval is for example 3, and the
skip_contact_interval is 4 for a result file with the name test.res, then every 3rd step (not including
initialCondition, input and contact step) and every fourth contact step is included in the new results
file with the name test_3_4.res. This file after shrinking is read into Adams View instead of the original
file. This file is stored in the same location as the original result file.
Format:
file results write
analysis_name = an existing analysis
file_name = string
Example:
file results write &
analysis_name = last_run &
file_name = "c:\model_1.res"
Description:
Extended Definition:
1. The analysis_name parameter specifies the name of the analysis to store the Adams output in. When
Adams View reads a graphics file (.GRA), a request file (.REQ), a results file (.RES), or all three with
the FILE ANALYSIS READ, it stores them in an analysis. By default, the name of the analysis is the
file name excluding the extension.
Adams View requires that Adams simulations have unique names, therefore if an analysis already
exists with the same name as your files, use this parameter to assign a unique name at the time of
reading the file(s).
2. The results file has a .res extension by default, but you can override it by supplying a different
extension.
It is not necessary to enclose the file name in quotes if it only contains alphanumeric characters and
starts with a letter. If you want to include other characters, such as a '.' for an extension or '/' or '[]'
for directory paths, you must enclose the file name in quotes.
Format:
file rpc read
file_name = file_name
rpc_object_name = dac_file_object_name
Description:
Extended Definition:
The proper extension in the file_name parameter is the default, but you can override it by supplying a
different extension.
It is not necessary to enclose the file name in quotes if it only contains alphanumeric characters and starts
with a letter. If you want to include other characters, such as a '.' for an extension or '/' or '[]' for directory
paths, you must enclose the file name in quotes.
Adams View and Adams Durability can read any of the binary formats, so from the point of view of an Adams
user, these files are portable between platforms. These products can also write RPC III files in the
BINARY_IEEE_LITTLE_END format because MTS only provides RPC III software for the Windows
platform.
The RPC III file format supports multi-channel time history data with a fixed sample rate or time step.
Adams View and Adams Durability support an unlimited number of channels. These binary files map real
data into a short (2-byte) signed integer with the header providing a scaling factor for each channel. Because
the scaling factor essentially determines where the decimal point appears in these signed numbers, the
maximum resolution of data in an RPC III file is 0.0000305 () when the scaling factor is 1.
A key point to remember is that data that varies less than the magnitude of the channel resolution will not be
reflected in an RPC III file. For example, with a scaling factor of 1, changes less than ±0.0000305 will not
register in the RPC III data file.
Format:
file rpc write
file_name = file_name
result_set_component = existing result_set
Example:
file rpc write &
file_name = c:\data\rpc_format &
result_set_component = my_result_set
Description:
Extended Definition:
1. The proper extension in the file_name parameter is the default, but you can override it by supplying
a different extension.
It is not necessary to enclose the file name in quotes if it only contains alphanumeric characters and
starts with a letter. If you want to include other characters, such as a '.' for an extension or '/' or '[]'
for directory paths, you must enclose the file name in quotes.
74 Adams View Commands
file rpc write
2. For example, assume you read a request file named shift.req, and this request file contains the result
set REQ1. If you want to refer to the X component in the result set REQ1, enter .SHIFT.REQ1.X
(you can omit .SHIFT. if SHIFT is the current analysis_name). SHIFT refers to the analysis name
from which the result set came (or is stored under).
Result sets are associated with an analysis and can be identified as such. A result set associated with
request 101 from an analysis named test can be referred to as .test.req101.
The table illustrates the default names assigned to result sets and result set components read from
request (.req) and results (.res) files.
Result set naming
Result set type: Result set name: Component names: File that result is from:
part PARxxx... x y z e1 e2 e3 e4 mag results file
vx vy vz wx wy wz
Format:
file shell write
file_name = string
shell_name = existing shell
Example:
file shell write &
file_name = "c:\mydir\desktop\shell"
Description:
Extended Definition:
The proper extension is the default, but you can override it by supplying a different extension.
It is not necessary to enclose the file name in quotes if it only contains alphanumeric characters and starts
with a letter. If you want to include other characters, such as a '.' for an extension or '/' or '[]' for directory
paths, you must enclose the file name in quotes.
Format:
file spread_sheet write
file_name = string
result_set_name = an existing result set
Example:
file spread_sheet write &
file_name = "c:\mydir\desktop\shell"
76 Adams View Commands
file spread_sheet write
Description:
Extended Definition:
1. Any result set in Adams View that was created by reading in a REQUEST, or RESULTS file can be
output into tab delimited spread sheet format.
You will be required to specify a file name and the result set name you wish to be written out.
Example:
FILE SPREAD_SHEET WRITE FILE_NAME=REQ5.sps RESULT_SET_NAME=REQ5
2. The proper extension is the default but can be overridden by simply supplying a different
extension.You do not need to enclose the file name in quotes if it only contains alpha-numeric
characters and starts with a letter. If you want to include other characters, such as a '.' for an extension
or '/' or '[]' for directory paths, you must enclose the name in quotes.
3. A result set is a storage place for any kind of numeric tabular data. A result set can contain "n"
components. A component is most usually set up to contain vector components of values like
displacement, velocity, acceleration, force, etc. However, in this case, a result set is completely general
and can store any numeric value in a component with only a few exceptions. These exceptions are
those cases when the user asks the system to mix incompatible value types like complex in the same
component as real values.
This is a required parameter and the result set name given must be within a particular analysis. A result
set name may be arbitrarily long and a combination of letters of the alphabet and numbers may be
used. The leading character must be a letter.
Result Sets are associated with an analysis run and can be identified as such. A result set associated
with request 101 from an analysis named "test" is referred to as .test.req101.
Several predefined result set types are created when Adams request and result files are read into Adams
View. For example, assume you have read a request file called "SHIFT.REQ", and this request file
contains the result information for the Adams statement REQUEST/1. The result set will be named
REQ1, and may also be referred to relative to the analysis name .shift.req1. If you wish to refer to a
component in the same result set the full name for the X component would be .SHIFT.REQ1.X.
The following table illustrates the default names assigned to result sets and result set components read from
request (.REQ) and results (.RES) files.
file 77
file spread_sheet write
Result set type: Result set name: Component names: File that result is from:
part PARxxx... x y z e1 e2 e3 e4 mag results file
vx vy vz wx wy wz
Format:
file stereo_lithography read
file_name = string
part_name = an existing part
scale = real
relative_to = an existing model, part or marker
orientation = orientation
location = location
Example:
file stereo_lithography read &
file_name = "c:\mydir\desktop\steriolitho" &
part_name = ground &
scale = 2 &
location = 2,90,50
Description:
Extended Definition:
1. The proper extension is the default but can be overridden by simply supplying a different extension.
You do not need to enclose the file name in quotes if it only contains alpha-numeric characters and
starts with a letter. If you want to include other characters, such as a '.' for an extension or '/' or '[]'
for directory paths, you must enclose the name in quotes.
2. The geometry may be placed upon a part and used for preprocessing and postprocessing. Markers
created by the IGES translator will be located on the part specified in this parameter.
You may identify a part by typing its name or by picking it from the screen.
If the part is not visible on the screen, you must type the name. You may also find it convenient to
type the name even if the part is displayed.
If you created the part by reading an Adams data set or graphics file, the part name is the letters PAR
followed by the Adams data set part ID number. For example, the name of Adams PART/101 is
PAR101. If you created the part during preprocessing, you will have given it a name at that time.
If a part is available by default, you may identify it by entering only its name. If it is not, you must
enter its full name. To identify a part under another model, for instance, you may need to enter the
model name as well. For example, you may specify part 'arm' from model 'robot' by entering
".robot.arm". If you type a "?", Adams View will list the parts available by default.
You must separate multiple part names by commas.
If the part is visible in one of your views, you may identify it by picking on any of the graphics
associated with it.
You need not separate multiple part picks by commas.
3. The default scale factor is 1.0. If the scale factor of 1.0 is used the geometry created in the Adams
VIEW will be the same size as the geometry in the IGES file. A scale factor less than 1.0 will reduce
the size of geometry and a scale factor greater than 1.0 will increase the size of the geometry. For
example, assume the scale factor specified is 0.5, a cylinder of length 2 meters and diameter .5 meters
would be translated to Adams View with the length of 1 meter and diameter of .25 meters. The
distance from geometry to the RELATIVE_TO coordinate system will be scaled accordingly. If the
previously mentioned cylinder was located at 3,2,0 in the IGES file, it would be located at 1.5,1,0
after it is translated to Adams View.
The orientation of the geometry is not affected by the SCALE parameter.
4. These coordinates can be relative to any other coordinate system defined in the Adams View model
(See the RELATIVE_TO parameter for this command).
By default, you supply Cartesian (x, y, z) coordinates. You may use the 'defaults units
coordinate_system_type =' command to change this convention. For example, selecting 'cylindrical'
means you will subsequently be supplying r, theta, and z coordinates.
5. These orientation coordinates can be relative to any other coordinate system defined in the Adams
View model (See the RELATIVE_TO parameter for this command).
Adams View will orient the coordinate system by starting from the initial coordinate system and
applying three successive rotations. Depending on the convention you have selected, the rotations
may occur about space-fixed or body-fixed axes in any meaningful combination of the x, y, and z axes.
80 Adams View Commands
file table write
By default, you supply Euler (known as body313, or body-fixed z, x, z) angles. You may change this
convention with the 'DEFAULTS UNITS ORIENTATION_TYPE=' command. For example,
selecting SPACE123 means you will subsequently be supplying space-fixed x, y, and z, angles.
Adams View applies your orientation angles starting from the coordinate system you identify with the
RELATIVE_TO parameter. The default for the RELATIVE_TO parameter is the default coordinate
system.
6. Refer to the Appendix on "Specifying Locations and Orientations in Adams View" in the Adams
View Users Manual for more information on the ORIENTATION parameter.
7. If relative_to parameter is not specified, the default coordinate system is used. The default coordinate
system is initially your model, that is, the global coordinate system. You may change the default
coordinate system using the 'defaults coordinate_system' command
.
Format:
file table write
plot_name = existing plot
file_name = string
format = string
Example:
file table write &
write plot_name = plot_1 &
file_name = "c:\mydir\desktop\table" &
format = html
Description:
Extended Definition:
1. HTML is the default. If you specify spreadsheet, then the command is the same as the file spreadsheet
write command except that it takes its data from a plot curve.
82 Adams View Commands
file temporary_settings apply
Format:
file temporary_settings apply
file_name = String
model = String
Example:
file temporary_settings apply &
file_name = "c:\mydir\desktop\easy_model.tsf" &
model = Model_1
Description:
Extended Definition:
1. The default file extension is .tsf but it can be overridden by simply supplying a different extension.
2. You do not need to enclose the file name in quotes if it only contains alpha-numeric characters and
starts with a letter. If you want to include other characters, such as a '.' for an extension or '/' or '[]'
for directory paths, you must enclose the name in quotes.
3. To apply multiple temporary settings files at once with this command separate the file names in the
File_name argument commas like so: "c:\mydir\desktop\easy_model.tsf",
"c:\myotherdir\files\moderate_model.tsf", "c:\mydir\other_files\aggressive.tsf"
4. The same object property or solver setting can be specified more than once in single apply command
because it appears more than once within a single .tsf file and/or within the set of .tsf files specified in
a single apply command. However, Adams View will apply only the value specified nearest the
bottom of the last .tsf file in the list of files supplied through this apply command in which the
redundant property/setting has been specified.
5. If an invalid value is specified for a given object property or solver setting, then Adams View will
ignore this and move on to the next setting within the .tsf
file 83
file temporary_settings write
6. The properties set via a "file temporary_settings apply" command can be returned to their original
values using the "file temporary_settings revert" command
7. The revert command only reverts the settings from the most recently issued "file temporary_settings
apply" command. So, be aware that issuing two (or more) apply commands without revert commands
in between makes the changes from all but the last apply command unresponsive to the revert
command.
Format:
file temporary_settings write
file_name = String
object_properties = Strings
Values = Strings
solver_properties = Strings
Settings= Strings
Example:
file temporary_settings write &
file_name = "c:\mydir\desktop\model_x.tsf" &
object_properties = "DV_1.value", "JOINT_1.j_marker_name", "motion_1.function" &
Values = "11.0", ".MODEL_1.ground.MARKER_4", "PI*30" &
Solver_properties = "debug.dump", "equilibrium.alimit", "integrator.formulation",
"linear_solver.solver" &
Settings = "True", "9.0", "i3", "auto"
84 Adams View Commands
file temporary_settings revert
Description:
Format:
file temporary_settings revert
model = String
Example:
file temporary_settings revert &
model = Model_1
file 85
file testdata read measures
Description:
Format:
file testdata read measures
model_name = a new or existing model
analysis_name = a new or existing analysis
use_file_column_labels = boolean
units = string
independent_column_index = integer
file_name = string
Example:
file testdata read measures &
model_name = model_1 &
use_file_column_labels = yes
Description:
Extended Definition:
1. You may identify a model by typing its name or by picking it from the screen.
If the model is not visible on the screen, you must type the name.
You may also find it convenient to type the name even if the model is displayed.
You must separate multiple model names by commas.
If the model is visible in one of your views, you may identify it by picking on any of the graphics
associated with it.
You need not separate multiple model picks by commas.
2. You may identify an analysis by typing its name or by picking it from the screen.
An analysis may be picked from the screen if you have read an Adams Graphics file, and use the
GRAPHIC_RESULTS command to display it. If the analysis is not visible on the screen, you must
type the name. You may also find it convenient to type the name even if the analysis is displayed.
You may have explicitly named the analysis when you created it by reading one or more Adams output
files. By default, the name of the analysis is the root name of the Adams output files. If you created
the analysis by reading an Adams Graphics file, for instance, the analysis name is the name of the
graphics file without the .gra extension.
You may get a list of analysis by typing a "?" in response to a parameter that requires an analysis name
be entered.
You must separate multiple analysis names by commas.
If the analysis is visible in one of your views, you may identify it by picking on any of the graphics
associated with it.
You need not separate multiple analysis picks by commas.
See Also getting_started - for naming syntax and wildcards.
3. If there are textual column headers in the file, select yes. Adams uses the column header text as the
names of each measure. Values are: yes and no.
4. Since this object can be used in a variety ov contexts, Adams View cannot determine what type of
units it should have. By telling Adams View what the unit type for this object is Adams View can
perform the proper conversions on the values you specify.
5. Enter the column number. Adams uses all other columns as the y-axis data. It is used as the
independent data for the measure.
6. The proper extension is the default but can be overridden by simply supplying a different extension.
You do not need to enclose the file name in quotes if it only contains alpha-numeric characters and
starts with a letter. If you want to include other characters, such as a '.' for an extension or '/' or '[]'
for directory paths, you must enclose the name in quotes.
file 87
file testdata read splines
Example:
file testdata read splines &
model_name = model_1 &
use_file_column_labels = yes &
independent_column_index = 3
Description:
Extended Definition:
1. You may identify a model by typing its name or by picking it from the screen.
If the model is not visible on the screen, you must type the name.
You may also find it convenient to type the name even if the model is displayed.
You must separate multiple model names by commas.
If the model is visible in one of your views, you may identify it by picking on any of the graphics
associated with it.
88 Adams View Commands
file text close
Format:
file text close
file_name = string
Example:
file text close &
file_name = “C:\Model_Data.txt”
Description:
Extended Definition:
1. If you do not specify a file_name parameter, then the last opened, or written file is assumed. After a
file has been closed, any attempts to write to it will cause an error.
2. The proper extension for file_name parameter is the default (.txt) but can be overridden by simply
supplying a different extension.
file 89
file text open
You do not need to enclose the file name in quotes if it only contains alpha-numeric characters and
starts with a letter. If you want to include other characters, such as a '.' for an extension or '/' or '[]'
for directory paths, you must enclose the name in quotes.
Format:
file text open
file_name = string
open_mode = open_mode
Example:
file text open &
file_name = "c:\data.txt" &
open_mode = append
Description:
Extended Definition:
1. Depending upon the open_mode the file can either be overwritten completely or appended.
2. You may use the file_name later in file text write or file text close commands to indicate
which file you wish to operate upon.
The proper extension for file_name parameter is the default (.txt) but can be overridden simply by
supplying a different extension.
You do not need to enclose the file name in quotes if it only contains alpha-numeric characters and
starts with a letter. If you want to include other characters, such as a '.' for an extension or '/' or '[]'
for directory paths, you must enclose the name in quotes.
3. If the file is opened with open_mode=OVERWRITE, any existing file with the name given in the
file_name parameter is deleted at the time of the OPEN. If the file is opened with
open_mode=APPEND, then any existing file is appended by subsequent WRITEs (the file need not
exist for the APPEND mode to work).
90 Adams View Commands
file text write
Format:
file text write
file_name = string
variable_name = an existing vvar
format_for_output = string
values_for_output = string
newline = boolean
Example:
file text write &
format_for_output = "the varmint is a %s, kill it %s." &
values_for_output = "snake", "now"
Description:
Extended Definition:
1. The destination depends on what you specify, a file_name or a variable_name. You may specify
neither, one, or both destinations. If writing to a file, you must open it first.
If you specify neither, Adams View assumes the last opened or written file as the intended destination.
If you specify just the file_name, Adams View writes the output to that file. If you specify just the
variable_name, Adams View assigns the text string to that variable. If you specify both, Adams View
performs both actions.
file 91
file text write
2. The proper extension for file_name parameter is the default (.txt) but can be overridden by simply
supplying a different extension.
You do not need to enclose the file name in quotes if it only contains alpha-numeric characters and
starts with a letter. If you want to include other characters, such as a '.' for an extension or '/' or '[]'
for directory paths, you must enclose the name in quotes.
3. Output formats are a mixture of text and conversion specifications. Each conversion specification
usually has a matching argument in the values_for_output parameter. A conversion specification
begins with a percent sign, '%', and is terminated by a letter or another percent sign.
FILE TEXT WRITE &
FORMAT_FOR_OUTPUT="The varmint is a %s, kill it %s." &
VALUES_FOR_OUTPUT="snake", "now"
Generates the string "The varmint is a snake, kill it now." to be written to the
appropriate file or variable. Note that there are two conversion specifications (both '%s') and two
values for output.
The conversion specifications provided by Adams View are a subset of those used in the ANSI-C
programming language.
Valid conversion specifiers are:
• % literal percent sign ("%%" is output as "%")
• d integer in base 10, 1 or 123
• e exponential floating point, 1.23e-04
• E exponential floating point, 1.23E-04
• f fixed point real, 345.67
• g general fixed or floating point (depending upon magnitude)
• G general fixed or floating point (depending upon magnitude)
• i same as d, above
• o unsigned integer in base 8 (o is for octal)
• s character string
• u unsigned integer in base 10
• x unsigned integer in base 16 (decimal 10 is 'a', 11 is 'b', etc.)
• X unsigned integer in base 16 (decimal 10 is 'A', 11 is 'B', etc.)
Most conversion specifications may contain flags between the leading percent sign and the
terminating conversion specifier. These flags allow you to tune the format of your output further.
Some of the valid flags are:
- Indicates that the output is to be left justified in the field, with the default being right justification.
This is only useful when the field width is specified, see below.
+ Force a sign to be output for all numeric values.
... FORMAT="%+d %+d" VALUES=(-1), (1)produces -1 +1
0 Forces output of leading zeros when a field width is specified.
92 Adams View Commands
file wavefront read
Field width is specified by prefixing the conversion specifier with a number. It determines how much
space is to be reserved for the output text. The following format and values
... FORMAT="%03d%6d" VALUES=(5),(6) generates"005.....6"as
output, where '.' denotes blank space (in this example only).
You specify precision with a number and decimal point following the field width prefix. For instance,
... FORMAT="%5.2f %010.3e" VALUES=(2.3),(5.4)produces the
output:
" 2.30 05.400e+00"
Adams View converts the values for output to the appropriate type for the conversion specifier. Use
of expressions is extremely useful here.
4. If newline is NO, then subsequent WRITEs will produce output along the same line. If newline is
YES , then any succeeding WRITE command will write on a new line. This parameter is optional and
has a default value of YES.
Format:
file wavefront read
file_name = string
model_name = new or existing model
part_name = new or existing body
geometry_placed = wave_geom_place
scale_factor = real
set_read_only = boolean
file 93
file wavefront read
Description:
Extended Definition:
1. The proper extension is the default but can be overridden by simply supplying a different extension.
You do not need to enclose the file name in quotes if it only contains alpha-numeric characters and
starts with a letter. If you want to include other characters, such as a '.' for an extension or '/' or '[]'
for directory paths, you must enclose the name in quotes.
2. Adams View will create a new part for each unique group name in the .obj file. If the same group name
appears more than once, a separate shell object will be added to the part with the same name as the
group.
You may identify a part by typing its name or by picking it from the screen.
If the part is not visible on the screen, you must type the name. You may also find it convenient to
type the name even if the part is displayed.
If you created the part by reading an Adams data set or graphics file, the part name is the letters PAR
followed by the Adams data set part ID number. For example, the name of Adams PART/101 is
PAR101. If you created the part during preprocessing, you will have given it a name at that time.
94 Adams View Commands
file wavefront write
If a part is available by default, you may identify it by entering its name only. If it is not, you must
enter its full name. To identify a part under another model, for instance, you may need to enter the
model name as well. For example, you may specify part 'arm' from model 'robot' by entering
".robot.arm". If you type a "?", Adams View will list the parts available by default.
You must separate multiple part names by commas.
If the part is visible in one of your views, you may identify it by picking on any of the graphics
associated with it.
You need not separate multiple part picks by commas.
3. Adams View will create a separate shell graphic object on the part for each occurrence of a group in
the .obj file.
You may identify a part by typing its name or by picking it from the screen.
If the part is not visible on the screen, you must type the name. You may also find it convenient to
type the name even if the part is displayed.
If you created the part by reading an Adams data set or graphics file, the part name is the letters PAR
followed by the Adams data set part ID number. For example, the name of Adams PART/101 is
PAR101. If you created the part during preprocessing, you will have given it a name at that time.
If a part is available by default, you may identify it by entering its name only. If it is not, you must
enter its full name. To identify a part under another model, for instance, you may need to enter the
model name as well. For example, you may specify part 'arm' from model 'robot' by entering
".robot.arm". If you type a "?", Adams View will list the parts available by default.
You must separate multiple part names by commas.
If the part is visible in one of your views, you may identify it by picking on any of the graphics
associated with it.
You need not separate multiple part picks by commas.
The values in the channel file are x, y, and z translation and body 123 rotation. Note that the orientation of
the parts are not defined in body 323 (Euler angles). The file name will be the name of the part with the .chnl
extension. For example, the part named 'crank' would have a channel file crank.chnl. There will be one
channel file created for each part in your analysis.
.set
The set file contains information to initialize the Advanced Visualizer including camera and lights. The file
name will be the name of the model with a .set extension. For example, a model named 'piston' would have
a set file piston.set. There will only be one set file created.
.cmd
This file is the Advanced Visualizer command file that will load the object files and channel files into the
Advanced Visualizer when executed. Note that this command file is not compatible with Adams View. The
file name will be the name of the model with the .cmd extension. For example, a model named 'piston' would
have a command file 'piston.cmd'. There will only be one command file created.
The graphic Spring Damper, Graphic Force and Outlines that connect markers on more than one part are
not supported.
Graphic attributes associated with geometry, parts, and models are not supported.
Format:
file wavefront write
model_name = existing_model
analysis_name = existing analysis
part_name = existing part
reference = local or global
Example:
file wavefront write &
model_name = model_1
Description:
Extended Definition:
1. You can identify a model by typing its name or by picking it from the screen:
• If the model is not visible on the screen, you must type the name (you may find it convenient to
type the name even if the model is visible). You must separate multiple model names with
commas.
If the model is visible in one of your views, you can identify it by picking on any of the graphics
associated with it. It is not necessary to separate multiple model picks with commas.
2. You can identify an analysis by typing its name or by picking it from the screen:
• You can pick an analysis from the screen if you have read a graphics file, and use the
graphic_results command to display it. If the analysis is not visible on the screen, you must type
the name (you may find it convenient to type the name even if the analysis is displayed).
• You may have explicitly named the analysis when you created it by reading one or more output
files. By default, the name of the analysis is the root name of the output files. If you created the
analysis by reading a graphics file, for example, the analysis name is the name of the graphics file
without the .gra extension.
• You can get a list of analyses by typing a ? in response to a parameter that requires an analysis
name.You must separate multiple analysis names with commas.
• If the analysis is visible in one of your views, you may identify it by picking on any of the graphics
associated with it. It is not necessary to separate multiple analysis picks with commas.
floating_marker 1
floating_marker copy
floating_marker
floating_marker copy
Allows copying an existing floating marker.
Floating marker specifies a site for applying forces or constraints to parts. The force or constraint dictates the
location and orientation of the floating marker. Therefore, you do not specify a position for a floating marker.
This allows the floating marker’s location and orientation to change with respect to its body coordinate system
during the simulation, as dictated by the force or constraint.
The marker can be copied by using this command.
Format:
floating_marker copy
floating_marker_name = an existing fmarker
new_floating_marker_name = a new fmarker
Example:
floating_marker copy &
floating_marker_name = FMARKER_12 &
new_floating_marker_name = fmarker_121
Description:
Extended Definition:
1. The floating marker has no position or orientation specified. The position and orientation of the
floating marker changes while simulation according to the mode of application of force or constraint
or location of the force on the moving body. For example, the orientation of the force may be set as
moving with the body, fixed in space or between two bodies, which decides the position and
orientation of the force while simulation.
2. The floating marker can be copied to a new floating marker, where a new name can be specified for
the same.
2 Adams View Commands
floating_marker create
floating_marker create
Allows creation of a floating marker.
Floating marker specifies a site for applying forces or constraints to parts. The force or constraint dictates the
location and orientation of the floating marker. Therefore, you do not specify a position for a floating marker.
This allows the floating marker’s location and orientation to change with respect to its body coordinate system
during the simulation, as dictated by the force or constraint.
Format:
floating_marker create
floating_marker_name = a new fmarker
adams_id = adams_id
node_ID = integer
comments = string
Example:
floating_marker create &
floating_marker_name = .model_1.PART_3.FMARKER_12 &
adams_id = 12 &
node_id = 10 &
comments = floating_marker_for_part_3
Description:
Extended Definition:
1. 1. The floating marker has no position specified. The position and orientation of the floating marker
changes while simulation according to the mode of application of force or constraint or location of
the force on the moving body. For example, the orientation of the force may be set as moving with
the body, fixed in space or between two bodies, which decides the position and orientation of the
force while simuation.
floating_marker 3
floating_marker delete
The ‘adams_id’ specifies an integer used to identify this element in the Adams data file. When you
use the FILE ADAMS_DATA_SET WRITE command, Adams View writes an Adams data file for
your model. Adams requires that each modeling element be identified by a unique integer identifier.
If you use this parameter to specify a non-zero identifier, Adams View will use it in the corresponding
statement in the Adams data file.
You may also enter zero as an identifier, either explicitly or by default. The next time you write an
Adams file, Adams View will replace the zero with a unique, internally-generated identifier. Adams
View will permanently store this identifier with the element just as if you had entered it yourself.
Normally, you would let all identifiers default to zero, and Adams View would generate the identifiers
for you. You are never required to enter a non-zero identifier. You only need to specify it if, for some
reason, you wish to control the Adams file output.
2. The ‘comment’ specifies comments for the object being created or modified. When an Adams Solver
data file (.adm) is read into Adams View, all comments associated with a statement (from the end of
the previous statement through the end of the current statement) are stored with the object.
Comments in the data file can be associated with model. These comments must follow the title
statement and be followed by the comment 'END OF MODEL COMMENTS'. This string must
be uppercase. When an Adams Solver data file is written, the comments for an object are written
before the statement corresponding to the object. The ‘node_id’ refers to the attachment point of
node on a flexible body.
3. When applied to flexible bodies, a floating marker can be either associated with a node or not (via the
“node_id” argument). Because a floating marker is often moving across the body to which it belongs,
it typically does not make sense to associate a flexible body’s floating marker with any particular node.
Be advised, that this means the reaction loads from the force object which the floating marker
supports will be applied to the rigid body motion of the flexible body and not on a modal basis
deforming the part locally at the nodes near the force application point.
floating_marker delete
Allows deleting a floating marker.
Floating marker specifies a site for applying forces or constraints to parts. The force or constraint dictates the
location and orientation of the floating marker. Therefore, you do not specify a position for a floating marker.
This allows the floating marker’s location and orientation to change with respect to its body coordinate system
during the simulation, as dictated by the force or constraint.
Format:
floating_marker delete
floating_marker_name = an existing fmarker
Example:
floating_marker delete &
floating_marker_name = FMARKER_11
4 Adams View Commands
floating_marker modify
Description:
Extended Definition:
1. The floating marker has no position or orientation specified. The position and orientation of the
floating marker changes while simulation according to the mode of application of force or constraint
or location of the force on the moving body. For example, the orientation of the force may be set as
moving with the body, fixed in space or between two bodies, which decides the position and
orientation of the force while simulation.
2. The floating marker can be deleted by providing the appropriate floating marker name while the
‘delete’ command
floating_marker modify
Allows modifying of a floating marker.
Floating marker specifies a site for applying forces or constraints to parts. The force or constraint dictates the
location and orientation of the floating marker. Therefore, you do not specify a position for a floating marker.
This allows the floating marker’s location and orientation to change with respect to its body coordinate system
during the simulation, as dictated by the force or constraint.
Format:
floating_marker modify
floating_marker_name = an existing fmarker
new_floating_marker_name = a new floating marker
adams_id = adams_id
node_ID = integer
comments = string
Example:
floating_marker modify &
floating_marker_name = .model_1.PART_3.FMARKER_12 &
new_floating_marker_name = .model_1.PART_3.FMARKER_13 &
adams_id = 12 &
node_id = 10 &
comments = floating_marker_for_part_3
floating_marker 5
floating_marker modify
Description:
Extended Definition:
1. The floating marker has no position specified. The position and orientation of the floating marker
changes while simulation according to the mode of application of force or constraint or location of
the force on the moving body. For example, the orientation of the force may be set as moving with
the body, fixed in space or between two bodies, which decides the position and orientation of the
force while simulation.
The ‘adams_id’ specifies an integer used to identify this element in the Adams data file. When you
use the FILE ADAMS_DATA_SET WRITE command, Adams View writes an Adams data file for
your model. Adams requires that each modeling element be identified by a unique integer identifier.
If you use this parameter to specify a non-zero identifier, Adams View will use it in the corresponding
statement in the Adams data file.
You may also enter zero as an identifier, either explicitly or by default. The next time you write an
Adams file, Adams View will replace the zero with a unique, internally-generated identifier. Adams
View will permanently store this identifier with the element just as if you had entered it yourself.
Normally, you would let all identifiers default to zero, and Adams View would generate the identifiers
for you. You are never required to enter a non-zero identifier. You only need to specify it if, for some
reason, you wish to control the Adams file output.
2. The ‘comment’ specifies comments for the object being created or modified. When an Adams Solver
data file (.adm) is read into Adams View, all comments associated with a statement (from the end of
the previous statement through the end of the current statement) are stored with the object.
Comments in the data file can be associated with model. These comments must follow the title
statement and be followed by the comment 'END OF MODEL COMMENTS'. This string must
be uppercase. When an Adams Solver data file is written, the comments for an object are written
before the statement corresponding to the object. The ‘node_id’ refers to the attachement point of
node on a flexible body.
6 Adams View Commands
floating_marker modify
3. When applied to flexible bodies, a floating marker can be either associated with a node or not (via the
“node_id” argument). Because a floating marker is often moving across the body to which it belongs,
it typically does not make sense to associate a flexible body’s floating marker with any particular node.
Be advised, that this means the reaction loads from the force object which the floating marker
supports will be applied to the rigid body motion of the flexible body and not on a modal basis
deforming the part locally at the nodes near the force application point.
for 1
for
The FOR and END commands allow you to execute a group of commands a fixed set of times. You can use
FOR either to perform numeric iteration or to operate on a set of Adams View objects, such as markers or
parts. Adams View executes the commands bracketed by FOR and END for each value of a variable in the
specified range or upon the specified set of objects.
You can nest any combination of looping (FOR/END, WHILE/END) and conditional constructs
(IF/ELSEIF/ELSE/END).
Format:
for
variable_name = variable
object_name = existing object
start_value = real
end_value = real
type_filter = object_type
group_name = existing group
echo_all_loops = yes/no
end
Example:
In this example, Adams View creates 10 markers, MAR1 through MAR10, on the default part, and locates
them one unit apart on the x-axis of the part's coordinate system.
Description:
Extended Definition:
1. When the FOR statement is operated on objects, the object_name parameter is used.
FOR VARIABLE_NAME=var OBJECT_NAMES=objects &
TYPE=database_object_type
...
END
For this type of FOR loop, Adams View creates a temporary Adams View variable named var of type
OBJECT and successively assigns the value of each object in the set to the variable. The commands
inside the FOR/END pair can use var as they would any other Adams View variable of type OBJECT.
Adams View deletes the variable when the loop terminates.
2. Consider the following example in which Adams View renumbers the Adams IDs of markers
belonging to the part follower, starting at 5000, and incrementing by one for each marker in the set.
variable create variable_name=ip integer_value=5000
for variable_name=the_marker object_names=.fourbar.follower.*
type=marker
marker modify marker_name=(eval(the_marker)) adams_id=(eval(ip))
variable modify variable_name=ip integer_value=(eval(ip+1))
end
variable delete variable_name=ip
You can use the EVAL function to get the instantaneous value of an expression rather than assigning
the expression itself. An expression's value changes whenever the value of any variable in it changes.
Sometimes you want this behavior; other times you do not. Using EVAL avoids this behavior.
As shown, you can use wildcards to specify the objects for the OBJECT_NAME parameter. The
TYPE parameter applies a filter to the set of objects, in this case, matching only children of the part
that are markers.
If you use a more general wildcard, Adams View may execute the command more slowly than if you
use a more specific wildcard. For example, if you want all the markers in the model MOD1, use
OBJECT_NAME=.MOD1.* type=MARKER instead of OBJECT_NAME=* type=MARKER.
force 1
force attributes
force
force attributes
Allows you to specify the attributes to be set on an individual force or a group of forces.
You can set the following attributes on a force:
SIZE_OF_ICONS / SCALE_OF_ICONS: These two parameters are mutually exclusive. You may
set the size of an icon used for the force representation in modeling units, or you may scale the size of
the icon by a non-unit scale factor.
VISIBILITY: You may set the visibility of a force ON, OFF or TOGGLE the current setting.
When you set the visibility OFF, the force will not be drawn. When you set the visibility ON, you
allow that force to be drawn.
NAME_VISIBILITY: You may set the name label visibility of a force ON, OFF or TOGGLE the
current setting with this parameter.
COLOR: You may set the color of a force with this parameter.
If an entity does not have a GRAPHICS ATTRIBUTE setting, the value for that GRAPHIC ATTRIBUTE
may be inherited from another entity. INHERITANCE may either be TOP_DOWN or BOTTOM_UP.
BOTTOM_UP and TOP_DOWN refer to the natural hierarchy of the Adams model. The hierarchy is a tree
structure with the model at the apex. Parts exist beneath the model, and markers exist beneath the parts. If
the icon size of the model is set to 0.1, and the default INHERITANCE is set to TOP_DOWN, then all
icons displayed within the model will be displayed at this size. However, if the icon size of a model is set to
0.1, and then the default INHERITANCE is set to BOTTOM_UP, then any icons set to a size other than
the model's icon size will be displayed at their own size.
Format:
force attributes
force_name = existing force
scale_of_icons = real number
size_of_icons = real number
visibility = on/off/no_opinion/toggle
name_visibility = on/off/no_opinion/toggle
color = existing color
active = on/off/no_opinion
dependents_active = on/off/no_opinion
2 Adams View Commands
force attributes
Example:
force attributes &
Force_name = FORCE_1 &
Color = RED &
Name_visibility = OFF &
Active = On &
Dependents_active = OFF
Description:
Extended Definition:
1. You may identify a force by typing its name or by picking it from the screen.
If the force is not visible on the screen, you must type the name. You may also find it convenient to
type the name even if the force is displayed.
force 3
force attributes
If you created the force by reading an Adams data set or graphics file, the force name is the first three
letters of the Adams statement followed by the Adams data set force ID number. For example, the
name of Adams SFORCE/101 is SFO101. If you created the force during preprocessing, you will
have given it a name at that time.
If a force is available by default, you may identify it by entering only its name. If it is not, you must
enter its full name. To identify a force under a preprocessing model, for instance, you may need to
enter the model name as well. For example, you may specify the force named 'bumper' from the
model named 'test' by entering ".test.bumper". If you type a "?", Adams View will list the forces
available by default.
You must separate multiple force names by commas.
If the force is visible in one of your views, you may identify it by picking on any of the graphics
associated with it.
You need not separate multiple force picks by commas.
2. If no initial size is specified for Adams View icons, the default size will be one modeling LENGTH
unit. For example, if the modeling units are K/M/S, a part axes icon will have triad legs of one meter
in length.
When you specify SCALE_OF_ICONS, a new size is calculated by multipling the current size, by
the scale, and storing the product as the new ICON_SIZE.
3. If no initial size is specified for Adams View icons, the default size will be one modeling LENGTH
unit. For example, if the modeling units are K/M/S, a part axes icon will have triad legs of one meter
in length.
When you set SIZE_OF_ICONS at the model level, all Adams View icons used in creating a model
will use the size specified.
If the model has a SIZE_OF_ICONS set, and a part under that model has a different
SIZE_OF_ICONS, the ICONS_SIZE of the model will take precedence.
An Example:
model ---------------------- SIZE_OF_ICONS = .15 meters .part
-------------------- SIZE_OF_ICONS = .125 meters
The icon of the part will be 1.5 meters is size.
If the model has SIZE_OF_ICONS set to 0.0, and a part under that model has a SIZE_OF_ICONS
set to .125, the icon size of the part will be used.
An Example:
model ---------------------- SIZE_OF_ICONS = 0.0 meters .part
-------------------- SIZE_OF_ICONS = .125 meters
The icon of the part will be .125 meters is size.
4. The visibility parameter is used to control whether graphic entities, such as markers, joints, and parts,
are to be drawn in an Adams View viewport. The legal values for this parameter are: ON, OFF, and
TOGGLE. ON will make the desired entity visible. OFF will make the desired entity invisible.
TOGGLE will take the current state of visibility of an entity and reverse it.
4 Adams View Commands
force attributes
5. The legal values of the name_visibility parameter are ON and OFF. This is an optional parameter
and if not entered, the name will be visible (i.e. will be ON).
Note that if the visibility of the view name is turned off, the only indication that a view is "active" will
be the color of the viewport border. This would be a problem on a black and white monitor.
6. Adams View allows you to specify the following colors for modeling entities: BLACK, WHITE,
RED, GREEN, BLUE, CYAN, MAGENTA, YELLOW, and NO_COLOR
Specifying 'NO_COLOR' for a modeling entity, instructs Adams View to use the default color for
this entity, if there is no color present in its parent modeling entity.
Example 1:
.model -------------------------NO_COLOR
.part---------------------- RED
.geometry(circle) ------- NO_COLOR
The circle will be RED.
Example 2:
.model -------------------------NO_COLOR
.part---------------------- RED
.geometry(circle) ------- BLUE
If a parent modeling entity has a color previously specified, that color takes precedence. Adams View
will issue a warning message about color precedence. The circle will be RED.
Example 3:
.model -------------------------NO_COLOR
.part---------------------- NO_COLOR
.geometry(circle) ------- BLUE
• Group
• Part
• Differential Equation
• Marker
• Geometry
• Constraints
• Forces
• Data Elements
• Output Control
force copy
Allows you to create a replica force within the same model.
This replica force will be identical to the original with the exception of the force name. Forces must have
unique names relative to other forces in a given model. The replica will be completely independent of the
original, and may be modified without affecting the original.
The replica force will use the same markers to define it. The first step after the copy operation may be to
modify the replica to use different markers.
Forces may not be copied from model to model.
Format:
force copy
force_name = Existing force
new_force_name = new force name
Example:
force copy &
force_name = FORCE_1 &
New_force_name = FORCE_1_COPY
Description:
Extended Definition:
1. You may identify a force by typing its name or by picking it from the screen.
If the force is not visible on the screen, you must type the name. You may also find it convenient to
type the name even if the force is displayed.
If you created the force by reading an Adams data set or graphics file, the force name is the first three
letters of the Adams statement followed by the Adams data set force ID number. For example, the
name of Adams SFORCE/101 is SFO101. If you created the force during preprocessing, you will
have given it a name at that time.
If a force is available by default, you may identify it by entering only its name. If it is not, you must
enter its full name. To identify a force under a preprocessing model, for instance, you may need to
enter the model name as well. For example, you may specify the force named 'bumper' from the
model named 'test' by entering ".test.bumper". If you type a "?", Adams View will list the forces
available by default.
You must separate multiple force names by commas.
If the force is visible in one of your views, you may identify it by picking on any of the graphics
associated with it.
You need not separate multiple force picks by commas.
2. You may use this new_force_name later to refer to this force. Adams View will not allow you to have
two forces with the same name, so you must provide a unique name.
Normally, entity names are composed of alphabetic, numeric, or '_' (underscore) characters, and start
with an alphabetic or '_' character. They may be of any length.
By enclosing the name in double quotes, you may use other printable characters, or start the name
with a numeral. If a name contains characters, or starts with a numeral, you must always quote the
name when entering it.
Note that you can specify the parentage of an entity (for example, what part "owns" a marker or a
geometry element) when you CREATE it by changing the name. If you enter just the entity name,
then the default parent will be assigned by Adams View. If you type in the full name, then you may
override the default parent. In most cases, when creating an entity, Adams View will provide a default
name. The default name that Adams View provides will specify the parentage that it has assumed.
You may, of course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
Tips:
Any Adams View object you delete, may be "undeleted" by using the UNDO commands. If you
have deleted something you would like back, enter the command "undo backward", or pick on the
fixed menu entry 'UNDO'.
force 7
force create body gravitational
Format:
force create body gravitational
gravity_field_name = new_grav_field_na,e
comments = string
units_consistency_factor = real_number
x_component_gravity = real_number
y_component_gravity = real_number
z_component_gravity = real_number
Example:
force create body gravitational &
gravity_field_name = ACCGRAV__1 &
comments = “” &
units_consistency_factor = 0 &
x_component_gravity = 0.8 &
y_component_gravity = 0.8 &
z_component_gravity = 0.7
Description:
Extended Definition:
1. In conjunction with the part masses, the gravitational field defines a body force at the center of gravity
of each part. The force direction is defined by the X_COMPONENT_GRAVITY,
Y_COMPONENT_GRAVITY, and Z_COMPONENT_GRAVITY parameters. The force
magnitude is the part mass multiplied by the magnitude of the gravity vector. Each gravity field is
written as an Adams ACCGRAV statement. Although Adams View allows you to create more than
one gravity field, you should only use one, since Adams only allows one ACCGRAV statement. You
may also specify UNITS_CONSISTENCY_FACTOR in a gravity field. Adams View writes this as
the GC parameter in the ACCGRAV statement. Although UNITS_CONSISTENCY_FACTOR
affects the reporting of all forces, not just gravitational, it is included here because it also appears in
the ACCGRAV statement.
2. You may use the gracity_field_name name later to refer to this gravity field. Adams View will not
allow you to have two gravity fields with the same name, so you must provide a unique name.
Normally, entity names are composed of alphabetic, numeric, or '_' (underscore) characters, and start
with an alphabetic or '_' character. They may be of any length. By enclosing the name in double
quotes, you may use other printable characters, or start the name with a numeral. If a name contains
characters, or starts with a numeral, you must always quote the name when entering it. Note that you
can specify the parentage of an entity (for example, what part “owns" a marker or a geometry
element) when you CREATE it by changing the name. If you enter just the entity name, then the
default parent will be assigned by Adams View. If you type in the full name, then you may override
the default parent. In most cases, when creating an entity, Adams View will provide a default name.
The default name that Adams View provides will specify the parentage that it has assumed. You may,
of course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
3. You may select any force, mass, length, or time units you wish. In order for Adams results to be
meaningful, however, you or Adams View must compute a factor such that the equation Force =
(Mass / UNITS_CONSISTENCY_FACTOR) * Acceleration is satisfied. For example, if you use
Newtons, kilograms, millimeters, and seconds, UNITS_CONSISTENCY_FACTOR is 1000.
Adams documentation and Data Set Language refer to this factor as GC, on the ACCGRAV card.
The only case in which you should set UNITS_CONSISTENCY_FACTOR yourself is when you
are using a set of units Adams View does not support. Otherwise, you should probably let Adams
View compute it for you. If you do use this command to set UNITS_CONSISTENCY_FACTOR
to a non-zero value, Adams View will write your value to an Adams data set. Adams View will not
change your value, even if you later change your force, mass, length, or time units. If you explicitly
set UNITS_CONSISTENCY_FACTOR, and then later change your units, remember to
updateUNITS_CONSISTENCY_FACTOR.
Tips:
If you do not specify UNITS_CONSISTENCY_FACTOR, or specify it as zero, Adams View will
calculate it for you when it writes the Adams data set.
force 9
force create direct force_vector
Format:
force create direct force_vector
force_vector_name = new V force name
Adams_id = geom._id
comments= String
i_marker_name = Existing Marker name
j_floating_marker_name = Existing J floating marker name
j_part_name = Existing body
j_marker_id = integer
ref_marker_name = existing marker
error = real number
x_force_function = Function
y_force_function = Function
z_force_function = Function
xyz_force_function = Function
10 Adams View Commands
force create direct force_vector
Description:
Extended Definition:
1. Adams View will not allow you to have two force_vectors with the same name, so you must provide
a unique name.
Normally, entity names are composed of alphabetic, numeric, or '_' (underscore) characters, and start
with an alphabetic or '_' character. They may of be any length.
By enclosing the name in double quotes, you may use other printable characters, or start the name
with a numeral. If a name contains characters, or starts with a numeral, you must always quote the
name when entering it.
Note that you can specify the parentage of an entity (for example, what part "owns" a marker or a
geometry element) when you CREATE it by changing the name. If you enter just the entity name,
then the default parent will be assigned by Adams View. If you type in the full name, then you may
override the default parent. In most cases, when creating an entity, Adams View will provide a default
name. The default name that Adams View provides will specify the parentage that it has assumed.
You may, of course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
2. When you use the FILE Adams_DATA_SET WRITE command, Adams View writes an Adams data
file for your model. Adams requires that each modeling element be identified by a unique integer
identifier. If you use this parameter to specify a non-zero identifier, Adams View will use it in the
corresponding statement in the Adams data file.
You may also enter zero as an identifier, either explicitly or by default. The next time you write an
Adams file, Adams View will replace the zero with a unique, internally-generated identifier. Adams
View will permanently store this identifier with the element just as if you had entered it yourself.
Normally, you would let all identifiers default to zero, and Adams View would generate the identifiers
for you. You are never required to enter a non-zero identifier. You only need to specify it if, for some
reason, you wish to control the Adams file output.
12 Adams View Commands
force create direct force_vector
3. When an Adams Solver data file (.adm) is read into Adams View, all comments associated with a
statement (from the end of the previous statement through the end of the current statement) are
stored with the object. Comments in the data file can be associated with model. These comments
must follow the title statement and be followed by the comment 'END OF MODEL
COMMENTS'. This string must be uppercase.
When an Adams Solver data file is written, the comments for an object are written before the
statement corresponding to the object.
4. The user must ensure that the I marker is a fixed marker and on a different part than the part specified
in the J_PART_NAME parameter. Because the I marker is a fixed marker, and the "floating" marker
will move around on the j_part to remain coincident with the I marker, Adams always applies the
force action at a fixed point on the part containing the I marker. The reaction force is applied to the
j_part at a point coincident with the I marker.
The "floating" marker is automatically created by Adams View on the part specified in the
J_PART_NAME parameter.
5. Adams subsequently applies the reaction forces and/or torques to this "floating" J marker. The user
must ensure that the j_part is a different part than the part containing the I marker. Adams will move
the "floating" J marker around on the j_part to keep it superimposed on the I marker, meaning the
point of application of the reaction force may move around on the j_part. Reaction forces are not
calculated when the "floating" J marker is on the ground part.
6. You may identify a marker by typing its name or by picking it from the screen.
If the marker is not visible on the screen, you must type the name. You may also find it convenient
to type the name even if the marker is displayed.
If you created the marker by reading an Adams data set or graphics file, the marker name is the letters
MAR followed by the Adams data set marker ID number. For example, the name of Adams
MARKER/101 is MAR101. If you created the marker during preprocessing, you will have given it a
name at that time.
If a marker is available by default, you may identify it by entering only its name. If it is not, you must
enter its full name. To identify a marker under a different part, for instance, you may need to enter
the model and part names as well. For example, you may specify marker 'pivot' from model 'links',
part 'lower_arm' by entering ".links.lower_arm.pivot". If you type a "?", Adams View will list the
markers available by default.
You must separate multiple marker names by commas.
If the marker is visible in one of your views, you may identify it by picking on it.
You need not separate multiple marker picks by commas.
7. The easiest way to enter a function expression in Adams View is to use the text editor in combination
with the function builder. To invoke the text editor for entering a function expression, highlight the
function field and then either pick the "EDIT" button at the top of the panel or type a ^t (control-
t). The Adams View "function builder" is discussed below.
force 13
force create direct force_vector
The syntactical correctness of a function expression can be investigated by using the "VERIFY"
button at the upper right side of the text editor. If there is a syntax error, a message is printed and the
cursor is put near the problem. Proper unit consistency is not checked during function expression
verification.
The remainder of this explanation will cover the components of FUNCTION expressions as
summarized in the following table.
Components Examples
Numbers FUNCTION = 1E2 + 3.4 + 6
Operators FUNCTION = 3*6/2 + 3 - 2**2
System Constants FUNCTION = PI + 20
System Variables FUNCTION = AX(1040, 2010)
Arithmetic Ifs FUNCTION = IF(DX(3, 5): -1, 0, 1)
Fortran-77 Functions FUNCTION = ABS(NUM) - 6
Blanks FUNCTION = 1 + 2
Continuation Commas FUNCTION = 1 + 1 + 1 + 1 + 1 + 1 , + 1 + 1 + 1 + 1 + 1 + 1 + 1
Adams Functions FUNCTION = POLY(0, 0, 6.28)
NUMBERS
FUNCTION expressions can include integers, real numbers, and exponents. In other words, any
numbers that are legal in Adams are legal in a FUNCTION expression.
OPERATORS
In a FUNCTION expression, Adams allows any of the operators **, *, /, +, and -. Adams executes
these operators according to the following precedence rules:
From greatest to the least, the operators have the following priorities. ** then * / then + -. In other
words, Adams executes exponentiation (**) before all other operators and executes multiplication (*)
and division (/) before addition (+) and subtraction (-).
When a statement has operators of the same priority, Adams executes them from left to right.
You can use parentheses to alter the precedence of operators. For example, in the equation,
FUNCTION = (1-TIME)*30/PI
Adams subtracts TIME from one before it performs multiplication and division.
SYSTEM CONSTANTS
You can include the following system constants in a FUNCTION expression:
• PI Value of pi (to eighteen significant digits)
• DTOR Value of pi/180 for converting degrees to radians
• RTOD Value of 180/pi for converting radians to degrees
14 Adams View Commands
force create direct force_vector
The following example of a FUNCTION with a system constant multiplies the system constant PI
by the displacement of marker 10 with respect to marker 14:
FUNCTION = PI*DM(10,14)
BLANKS
A FUNCTION expression can contain any number of blank spaces. Five consecutive blank spaces in
an expression do not terminate input of the expression (by indicating that what follows is a comment)
as they do in an Adams statement. However, you should remember these two restrictions.
• You cannot put a blank space in the middle of a number.
• Adams does not accept a blank space between a function and its left bracket. (This is true for
both, FORTRAN-77 functions and Adams functions.)
CONTINUATION COMMAS
You can use a comma to continue FUNCTION expressions. You can break the expression anywhere
except in the middle of a number, in the middle of a name, or between a function and its left bracket.
Put a continuation comma in column one of the following line before the rest of the expression. If
you break the expression at a comma that is part of the expression, you must use both, the expression
comma and the continuation comma. You may use more than one continuation comma to extend
an expression over several lines.
FUNCTION BUILDER
The FUNCTIONS button at the right side of the Adams View text editor provides a means for
constructing an Adams function string. These functions are briefly described below. Upon picking
the FUNCTIONS button, you will be presented with the list of available functions in the "selection
window". After you select the desired function, a panel will appear with fields representing the
various parameters for the function. You will have full access to on-line help with this panel just like
you have with regular panels. After you have completed the panel and selected the DONE button on
the panel, the function string will be constructed and inserted at the current text cursor location in
the text edit window.
SYSTEM VARIABLES
A FUNCTION expression may access the current value of a system variable and use the value in
computations. These values are accessed through a collection of functions. The accessible system
variables include the following: Time, Mode, Displacements (Translational and Rotational),
Velocities (Translational and Rotational), Accelerations (Translational and Rotational), Forces
(Translational and Rotational), and User-defined variables. Invoke the text edit window and pick the
FUNCTIONS button to get a list of functions that can be accessed.
In general, you use a function character string (such as DM, VX, or FZ) and a list of values (e.g. i1,
i2, and i3) to access a system variable in an expression. For example, the value i1 may be the name of
the marker for which you want to measure a quantity (such as displacement, velocity, acceleration, or
force), i2 is the name of the marker with respect to which you want to measure the quantity, and i3
is the name of the marker you want to use to resolve the components of the quantity. If you do not
specify marker i3, Adams computes the result in the ground reference frame.
ARITHMETIC IFS
force 15
force create direct force_vector
Arithmetic IFs allow you to conditionally define FUNCTION. The format for arithmetic IFs
follows.
IF (expression 1: expression 2, expression 3, expression 4)
Adams evaluates expression 1. If expression 1 is less than zero, the arithmetic IF equals expression 2;
if expression 1 equals zero, the arithmetic IF equals expression 3; and if expression 1 is greater than
zero, the arithmetic IF equals expression 4.
A FUNCTION expression with an arithmetic IF and its four expressions is as given below:
FUNCTION = 6 * IF(VR(10,31): 0 , 0 , 100)
If the radial velocity between markers 10 and 31 is less than or equal to zero, the value of the
FUNCTION expression is zero; but if the radial velocity between markers 10 and 31 is greater than
zero, the value of the FUNCTION expression is six hundred.
In some ways, you may treat IF as a variable. For example, you can place it anywhere in the
expression. In addition, you can nest arithmetic IFs nine levels deep.
FORTRAN-77 FUNCTIONS
You can use the FORTRAN functions ABS, ATAN, ATAN2, COS, EXP, LOG, LOG10, MIN,
MAX, SIN, SQRT, and TAN in your expression. For more information about these functions, see
a FORTRAN reference manual. Invoke the text edit window and pick the FUNCTIONS button to
get a list of functions that can be accessed.
Adams FUNCTIONS
In general, an Adams function evaluates a mathematical equation and returns a value to your
FUNCTION expression. The following table lists all the Adams functions and their purposes.
Invoke the text edit window and pick the FUNCTIONS button to make a list of functions that can
be accessed.
Names Purposes
AKISPL Accesses the data in a SPLINE statement and uses the Akima cubic method to fit
a cubic curve (a spline) to the data.
BISTOP Evaluates a force restricting displacement of a part in two opposite directions
CHEBY Evaluates a Chebyshev polynomial
CUBSPL Accesses the data in a SPLINE statement and uses the traditional cubic method to
fit a cubic curve (a spline) to the data.
FORCOS Evaluates a Fourier cosine series
FORSIN Evaluates a Fourier sine series
HAVSIN Evaluates a haversine function
IMPACT Evaluates a force restricting displacement of a part in one direction.
POLY Evaluates a polynomial
SHF Evaluates a simple harmonic function
STEP Approximates a step function with a cubic polynomial
16 Adams View Commands
force create direct general_force
Format:
force create direct general_force
general_force_name = .model_1.GFORCE_1
Adams_id = 1
i_marker_name = .model_1.part_1.marker_1
j_floating_marker_name = .model_1.part_2.marker_2
ref_marker_name = .model_1.part11.marker_1
Description:
Extended Definition:
1. A GENERAL_FORCE defines a complete force element, consisting of three mutually orthogonal
translational force components and three orthogonal torque components. The two resultant vectors
formed by the three component forces and the three component torques determine the direction of
the force and torque actions, respectively. The user defines these force and torque components along
and about the "reference" marker axes. The reactions are equal and opposite to the action. The user
may define the GENERAL_FORCE in Adams View through user-specified function expressions or
by specifying up to 30 user-defined parameters that are passed to a user-written subroutine (a
"GFOSUB") the user links with Adams.
2. The GENERAL_FORCE corresponds to the Adams GFORCE statement.
3. A GENERAL_FORCE creates a six component force element that applies the forces between two
parts of the system. Here, force means three orthogonal translational components and three
orthogonal rotational components. The element applies actions to the part to which the I marker
belongs and corresponding reactions to the part to which a "floating_marker" belongs. This "floating
marker" is automatically created by Adams View and is positioned to be coincident with the I marker.
Subsequently, the GENERAL_FORCE internally establishes the position of the "floating_marker".
As the system moves, Adams moves the "floating_marker"on its part to keep the "floating_marker"
and I markers always superimposed. Thus, Adams applies the reaction force to the part containing
the "floating_marker" marker at the instantaneous position of the I marker.
18 Adams View Commands
force create direct general_force
4. The magnitude of the force depends on expressions or subroutines that the user supplies. The value
of the force is the resultant (i.e. the square root of the sum of the squares) of (up to) three mutually
orthogonal force components together with the resultant (i.e. the square root of the sum of the
squares) of (up to) three mutually orthogonal torque components.
5. The resultant vector formed by the three user-defined component forces along the reference marker
axes defines the direction of the translational force action. The reaction is equal and opposite to the
action. The resultant vector formed by the three component torques determines the direction of the
rotational torque action. The user defines these torques about the reference marker axes. The reaction
is equal and opposite to the action.
6. The general_force_name parameter specifies the name of the new general_force. You may use this
name later to refer to this general_force. Adams View will not allow you to have two general_forces
with the same name, so you must provide a unique name. Normally, entity names are composed of
alphabetic, numeric, or '_' (underscore) characters, and start with an alphabetic or '_' character. They
may be of any length. By enclosing the name in double quotes, you may use other printable
characters, or start the name with a numeral. If a name contains characters, or starts with a numeral,
you must always quote the name when entering it. Note that you can specify the parentage of an
entity (e.g. what part "owns" a marker or a geometry element) when you CREATE it by changing the
name. If you enter just theentity name, then the default parent will be assigned by Adams View. If
you type in the full name, then you may override the default parent. In most cases, when creating an
entity, Adams View will provide a default name. The default name that Adams View provides will
specify the parentage that it has assumed. You may, of course, delete this name and use your own.
The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
7. Specifies an integer used to identify this element in the Adams data file. When you use the FILE
Adams_DATA_SET WRITE command, Adams View writes an Adams data file for your model.
Adams requires that each modeling element be identified by a unique integer identifier. If you use
this parameter to specify a non-zero identifier, Adams View will use it in the corresponding
statement in the Adams data file. You may also enter zero as an identifier, either explicitly or by
default. The next time you write an Adams file, Adams View will replace the zero with a unique,
internally generated identifier. Adams View will permanently store this identifier with the element
just as if you had entered it yourself. Normally, you would let all identifiers default to zero, and
Adams View would generate the identifiers for you. You are never required to enter a non-zero
identifier. You only need to specify it if, for some reason, you wish to control the Adams file output.
8. When an Adams Solver data file (.adm) is read into Adams View, all comments associated with a
statement (from the end of the previous statement through the end of the current statement) are
stored with the object. Comments in the data file can be associated with the model. These comments
must follow the title statement and be followed by the comment 'END OF MODEL
COMMENTS'. This string must be uppercase. When an Adams Solver data file is written, the
comments for an object are written before the statement corresponding to the object.
force 19
force create direct general_force
9. The user must ensure that the I marker is a fixed marker and on a different part than the part specified
in the J_PART_NAME parameter. Because the I marker is a fixed marker, and the "floating" marker
will move around on the j_part to remain coincident with the I marker, Adams always applies the
force action at a fixed point on the part containing the I marker. The reaction force is applied to the
j_part at a point coincident with the I marker. The "floating" marker is automatically created by
Adams View on the part specified in the J_PART_NAME parameter.
10. Adams subsequently applies the reaction forces and/or torques to this "floating" J marker. The user
must ensure that the j_part is a different part than the part containing the I marker. Adams will move
the "floating" J marker around on the j_part to keep it superimposed on the I marker, meaning the
point of application of the reaction force may move around on the j_part. Reaction forces are not
calculated when the "floating" J marker is on the ground part.
11. Specifies the Adams ID for the floating marker which is automatically created on the J part by Adams
View. This allows you to reference the floating marker in a request or function by the ID you specify,
instead of letting Adams View generate one.
12. The x-force function specifies the x component of the translational force for this element. Adams
applies this force parallel to the x axis of the reference marker specified in the
REF_MARKER_NAME parameter. To enter a function expression, you enter a series of quoted
strings. The easiest way to enter a function expression in Adams View is to use the text editor in
combination with the function builder. To invoke the text editor for entering a function expression,
highlight the function field and then either pick the "EDIT" button at the top of the panel or type a
^t (control-t). The Adams View "function builder" is discussed below. The syntactical correctness of
a function expression can be investigated by using the "VERIFY" button at the upper right of the text
editor. If there is a syntax error, a message is printed and the cursor is put near the problem. Proper
unit consistency is not checked during function expression verification.
13. The y-force function specifies the y component of the translational force for this element. Adams
applies this force parallel to the y axis of the reference marker specified in the
REF_MARKER_NAME parameter. To enter a function expression, you enter a series of quoted
strings. The easiest way to enter a function expression in Adams View is to use the text editor in
combination with the function builder. To invoke the text editor for entering a function expression,
highlight the function field and then either pick the "EDIT" button at the top of the panel or type a
^t (control-t). The Adams View "function builder" is discussed below. The syntactical correctness of
a function expression can be investigated by using the "VERIFY" button at the upper right of the text
editor. If there is a syntax error, a message is printed and the cursor is put near the problem. Proper
unit consistency is not checked during function expression verification.
14. The z-force function specifies the z component of the translational force for this element. Adams
applies this force parallel to the z axis of the reference marker specified in the
REF_MARKER_NAME parameter. To enter a function expression you enter a series of quoted
strings. The easiest way to enter a function expression in Adams View is to use the text editor in
combination with the function builder. To invoke the text editor for entering a function expression,
highlight the function field and then either pick the "EDIT" button at the top of the panel or type a
^t (control-t). The Adams View "function builder" is discussed below. The syntactical correctness of
a function expression can be investigated by using the "VERIFY" button at the upper right of the text
editor. If there is a syntax error, a message is printed and the cursor is put near the problem. Proper
unit consistency is not checked during function expression verification.
20 Adams View Commands
force create direct multi_point_force
15. The user_function parameter specifies up to 30 values for Adams to pass to a user-written
subroutine. See the Adams User's Manual for information on writing user-written subroutines.
Format:
force create direct multi_point_force
multi_point_force_name = model_name.force_name
Adams_id = integer
i_marker_name = model_name_.part_name.marker_name
j_marker_name = model_ name.part_name.marker_name
stiffness_matrix_name = model_name.stiffness_matrix_name
damping_matrix_name = model_name.damping_matrix_name
damping_ratio = real_number
length_matrix_name = model_name.length_matrix_name
force_matrix_name = model_name.force_matrix_name
Example:
force create direct multi_point_force &
multi_point_force_name = FORCE_11 &
Adams_id = 1 &
i_marker_name = model1_i_marker_1 &
j_marker_name = model1.part1.marker_2 &
stiffness_matrix_name = model1_name.stf_1 &
damping_matrix_name = model1_name.dp_1 &
damping_ratio = 0.5 &
length_matrix_name = model_1.lm_1 &
force_matrix_name = model_name.fm_1
force 21
force create direct multi_point_force
Description:
Extended Definition:
1. The MULTI_POINT_FORCE supplies a three-component force and a three component torque at
each of the markers that define it. The force is a linear function of the relative displacement and of
the relative velocity of the markers.These linear relationships are defined by using a stiffness and/or
damping matrix, or by using a stiffness matrix and a proportional (viscous) damping factor. Most
typically, the MULTI_POINT_FORCE relationships will be defined as finite element stiffness and
damping relationships. For each MULTI_POINT_FORCE, one of the markers (the J marker) must
be specified as the datum or reference location (and orientation) for the forces defining the
MULTI_POINT_FORCE. The stiffness matrix used by Adams is the equilibrated stiffness matrix
and corresponds to the finite element stiffness matrix with the rows and columns corresponding to
the J marker freedoms eliminated.
22 Adams View Commands
force create direct multi_point_force
2. Formulation The MULTI_POINT_FORCE creates a set of forces and torques, which act between
the I and J markers, which appear in the MULTI_POINT_FORCE. These forces and torques are
linear functions of the relative displacements and velocities of the markers, in a manner equivalent to
the finite element method. For each MULTI_POINT_FORCE, one marker (J) is used as the
reference marker. The velocities are resolved into the J markers reference frame and expressed in the
J markers coordinate system. The force and torque components computed by the
MULTI_POINT_FORCE are also given in the J markers coordinate system. The force-displacement
and force-velocity relationships are specified using stiffness and damping matrices, or by using a
stiffness matrix and a proportional damping ratio. These matrices are defined using MATRIX
statements in the data set. The stiffness and damping matrices that Adams requires are defined for the
I markers only, i.e. they should be derived normally using the (6n+1) J marker and I marker degrees-
of-freedom, but are input using only the rows and columns corresponding to the I marker degrees-
of-freedom. This is equivalent, in finite element terminology, to applying fixed boundary conditions
at the J marker by simply removing the corresponding rows and columns from the matrices. Adams
will automatically compute and apply the correct reaction forces at the J marker based on the I
markers responses.
3. Normally, entity names are composed of alphabetic, numeric, or '_' (underscore) characters, and start
with an alphabetic or '_' character. They may be of any length. By enclosing the name in double
quotes, you may use other printable characters, or start the name with a numeral. If a name contains
characters, or starts with a numeral, you must always quote the name when entering it. Note that you
can specify the parentage of an entity (e.g. what part "owns" a marker or a geometry element) when
you CREATE it by changing the name. If you enter just the entity name, then the default parent will
be assigned by Adams View. If you type in the full name, then you may override the default parent.
In most cases, when creating an entity, Adams View will provide a default name. The default name
that Adams View provides will specify the parentage that it has assumed. You may, of course, delete
this name and use your own.
The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
4. When you use the FILE Adams_DATA_SET WRITE command, Adams View writes an Adams data
file for your model. Adams requires that each modeling element be identified by a unique integer
identifier. If you use this parameter to specify a non-zero identifier, Adams View will use it in the
corresponding statement in the Adams data file. You may also enter zero as an identifier, either
explicitly or by default. The next time you write an Adams file, Adams View will replace the zero with
a unique, internally generated identifier. Adams View will permanently store this identifier with the
element just as if you had entered it yourself. Normally, you would let all identifiers default to zero,
and Adams View would generate the identifiers for you. You are never required to enter a non-zero
identifier. You only need to specify it if, for some reason, you wish to control the Adams file output.
Values are: AN INTEGER GREATER THAN OR EQUAL TO 0 LESS THAN OR EQUAL TO
99999999
force 23
force create direct multi_point_force
5. When an Adams Solver data file (.adm) is read into Adams View, all comments associated with a
statement (from the end of the previous statement through the end of the current statement) are
stored with the object. Comments in the data file can be associated with model. These comments
must follow the title statement and be followed by the comment 'END OF MODEL
COMMENTS'. This string must be uppercase. When an Adams Solver data file is written, the
comments for an object are written before the statement corresponding to the object.
6. The i_marker_name specifies a marker on the first of two parts connected by this force element.
Adams View connects this element to one part at the I marker and to the other at the J marker.
7. The j_marker_name specifies a marker on the second of two parts connected by this force element.
Adams View connects this element to one part at the I marker and to the other at the J marker.
8. This stiffness matrix is a 6n x 6n matrix (n is the number of I markers) that defines the linear
relationships between the I marker displacements relative to the J marker and elastic forces generated
by the multi_point_force. The stiffness matrix is derived in the J markers coordinate system. Marker
translational and rotational displacements appear sequentially in DX-DY-DZ-AX-AY-AZ order,
while the markers appear in the same sequence as in the i_marker_name parameter. You may identify
a matrix by typing its name or by picking it from the screen. Since a matrix does not have a geometric
position, Adams View displays matrix icons at or near the model origin. If the matrix icon is not
visible on the screen, you must type the name. You may also find it convenient to type the name even
if the matrix icon is displayed. If you created the matrix by reading an Adams data set or graphics file,
the matrix name is the letters MAT followed by the Adams data set matrix ID number. For example,
the name of Adams MATRIX/101 is MAT101. If you created the matrix during preprocessing, you
will have given it a name at that time. If a matrix is owned by the default model, you may identify it
by entering only its name. If it is not, you must enter its full name. To identify a matrix under a
different model, for instance, you may need to enter the model name as well. For example, you may
specify matrix 'control_points' from model 'road_surface' by entering
".road_surface.control_points'". If you type a "?", Adams View will list the matrix available by default.
You must separate multiple matrix names by commas. If the matrix is visible in one of your views,
you may identify it by picking on any of the graphics associated with it. You need not separate
multiple matrix picks by commas.
9. The damping matrix is a 6n x 6n matrix (n is the number of I markers) that defines the linear
relationships between the I marker velocities relative to the J marker and the viscous forces generated
by the multi_point_force. The damping matrix is derived in the J markers coordinate system. If
neither damping matrix nor the damping ratio is given, the multi_point_force will be undamped.
Marker translational and rotational velocities appear sequentially in VX-VY-VZ-WX-WY-WZ order,
while the markers appear in the same sequence as in the i_marker_name parameter. You may identify
a matrix by typing its name or by picking it from the screen. Since a matrix does not have a geometric
position, Adams View displays matrix icons at or near the model origin. If the matrix icon is not
visible on the screen, you must type the name. You may also find it convenient to type the name even
if the matrix icon is displayed. If you created the matrix by reading an Adams data set or graphics file,
the matrix name is the letters MAT followed by the Adams data set matrix ID number. For example,
the name of Adams MATRIX/101 is MAT101. If you created the matrix during preprocessing, you
will have given it a name at that time. If a matrix is owned by the default model, you may identify it
by entering only its name. If it is not, you must enter its full name. To identify a matrix under a
different model, for instance, you may need to enter the model name as well. For example, you may
24 Adams View Commands
force create direct multi_point_force
the model name as well. For example, you may specify matrix 'control_points' from model
'road_surface' by entering ".road_surface.control_points'". If you type a "?", Adams View will list the
matrix available by default. You must separate multiple matrix names by commas. If the matrix is
visible in one of your views, you may identify it by picking on any of the graphics associated with it.
Tips:
You need not separate multiple matrix picks by commas.
Format:
force create direct single_component_force
single_component_force_name= new single component force
Adams_id= geom_id
comments= string
type_of_freedom= translational/rotational
action_only= on/off
function= function
user_function= Real
routine= string
26 Adams View Commands
force create direct single_component_force
Example:
force create direct single_component_force &
single_component_force_name = MY_FORCE &
function = "PI+10" &
i_part_name = PART_1 &
j_part_name = PART_2 &
i_marker_name = MARKER_1 &
j_marker_name = MARKER_2
Description:
Extended Definition:
1. The easiest way to enter a function expression in Adams View is to use the text editor in combination
with the function builder. To invoke the text editor for entering a function expression, highlight the
function field and then either pick the "EDIT" button at the top of the panel or type a ^t (control-
t). The Adams View "function builder" is discussed below.
The syntactical correctness of a function expression can be investigated by using the "VERIFY"
button at the upper right side of the text editor. If there is a syntax error, a message is printed and the
cursor is put near the problem. Proper unit consistency is not checked during function expression
verification.
The remainder of this explanation will cover the components of FUNCTION expressions as
summarized in the following table:
Components Examples
Numbers FUNCTION = 1E2 + 3.4 + 6
Operators FUNCTION = 3*6/2 + 3 - 2**2
System Constants FUNCTION = PI + 20
System Variables FUNCTION = AX(1040, 2010)
Arithmetic Ifs FUNCTION = IF(DX(3, 5): -1, 0, 1)
Fortran-77 Functions FUNCTION = ABS(NUM) - 6
Blanks FUNCTION = 1 + 2
Continuation Commas FUNCTION = 1 + 1 + 1 + 1 + 1 + 1 , + 1 + 1 + 1 + 1 + 1 + 1 + 1
Adams Functions FUNCTION = POLY(0, 0, 6.28)
force 29
force create direct single_component_force
NUMBERS
FUNCTION expressions can include integers, real numbers, and exponents. In other words, any
numbers that are legal in Adams are legal in a FUNCTION expression.
OPERATORS
In a FUNCTION expression, Adams allows any of the operators **, *, /, +, and -. Adams executes
these operators according to the following precedence rules:
• From greatest to the least, the operators have the following priorities. ** then * / then + -. In other
words, Adams executes exponentiation (**) before all other operators and executes
multiplication (*) and division (/) before addition (+) and subtraction (-).
• When a statement has operators of the same priority, Adams executes them from left to right.
• You can use parentheses to alter the precedence of operators. For example, in the equation,
FUNCTION = (1-TIME)*30/PI
Adams subtracts TIME from one before it performs multiplication and division.
SYSTEM CONSTANTS
You can include the following system constants in a FUNCTION expression:
• PI Value of pi (to eighteen significant digits)
• DTOR Value of pi/180 for converting degrees to radians
• RTOD Value of 180/pi for converting radians to degrees
The following example of a FUNCTION with a system constant multiplies the system constant PI
by the displacement of marker 10 with respect to marker 14:
FUNCTION = PI*DM(10,14)
BLANKS
A FUNCTION expression can contain any number of blank spaces. Five consecutive blank spaces in
an expression do not terminate input of the expression (by indicating that what follows is a comment)
as they do in an Adams statement. However, you should remember these two restrictions.
You cannot put a blank space in the middle of a number.
Adams does not accept a blank space between a function and its left bracket. (This is true for both,
FORTRAN-77 functions and Adams functions.)
CONTINUATION COMMAS
You can use a comma to continue FUNCTION expressions. You can break the expression anywhere
except in the middle of a number, in the middle of a name, or between a function and its left bracket.
Put a continuation comma in column one of the following line before the rest of the expression. If
you break the expression at a comma that is part of the expression, you must use both, the expression
comma and the continuation comma. You may use more than one continuation comma to extend an
expression over several lines.
FUNCTION BUILDER
30 Adams View Commands
force create direct single_component_force
The FUNCTIONS button at the right side of the Adams View text editor provides a means for
constructing an Adams function string. These functions are briefly described below. Upon picking
the FUNCTIONS button, you will be presented with the list of available functions in the "selection
window". After you select the desired function, a panel will appear with fields representing the
various parameters for the function. You will have full access to on-line help with this panel just like
you have with regular panels. After you have completed the panel and selected the DONE button on
the panel, the function string will be constructed and inserted at the current text cursor location in
the text edit window.
SYSTEM VARIABLES
A FUNCTION expression may access the current value of a system variable and use the value in
computations. These values are accessed through a collection of functions. The accessible system
variables include the following: Time, Mode, Displacements (Translational and Rotational),
Velocities (Translational and Rotational), Accelerations (Translational and Rotational), Forces
(Translational and Rotational), and User-defined variables. Invoke the text edit window and pick the
FUNCTIONS button to get a list of functions that can be accessed.
In general, you use a function character string (such as DM, VX, or FZ) and a list of values (e.g. i1,
i2, and i3) to access a system variable in an expression. For example, the value i1 may be the name of
the marker for which you want to measure a quantity (such as displacement, velocity, acceleration, or
force), i2 is the name of the marker with respect to which you want to measure the quantity, and i3
is the name of the marker you want to use to resolve the components of the quantity. If you do not
specify marker i3, Adams computes the result in the ground reference frame.
ARITHMETIC IFS
Arithmetic IFs allow you to conditionally define FUNCTION. The format for arithmetic IFs
follows.
IF (expression 1: expression 2, expression 3, expression 4)
Adams evaluates expression 1. If expression 1 is less than zero, the arithmetic IF equals expression 2;
if expression 1 equals zero, the arithmetic IF equals expression 3; and if expression 1 is greater than
zero, the arithmetic IF equals expression 4.
A FUNCTION expression with an arithmetic IF and its four expressions is as given below:
FUNCTION = 6 * IF(VR(10,31): 0 , 0 , 100)
If the radial velocity between markers 10 and 31 is less than or equal to zero, the value of the
FUNCTION expression is zero; but if the radial velocity between markers 10 and 31 is greater than
zero, the value of the FUNCTION expression is six hundred.
In some ways, you may treat IF as a variable. For example, you can place it anywhere in the
expression. In addition, you can nest arithmetic IFs nine levels deep.
FORTRAN-77 FUNCTIONS
You can use the FORTRAN functions ABS, ATAN, ATAN2, COS, EXP, LOG, LOG10, MIN,
MAX, SIN, SQRT, and TAN in your expression. For more information about these functions, see a
FORTRAN reference manual. Invoke the text edit window and pick the FUNCTIONS button to
get a list of functions that can be accessed.
Adams FUNCTIONS
force 31
force create direct single_component_force
In general, an Adams function evaluates a mathematical equation and returns a value to your
FUNCTION expression. The following table lists all the Adams functions and their purposes.
Invoke the text edit window and pick the FUNCTIONS button to make a list of functions that can
be accessed.
Names Purposes
AKISPL Accesses the data in a SPLINE statement and uses the Akima cubic method to fit
a cubic curve (a spline) to the data.
BISTOP Evaluates a force restricting displacement of a part in two opposite directions
CHEBY Evaluates a Chebyshev polynomial
CUBSPL Accesses the data in a SPLINE statement and uses the traditional cubic method
to fit a cubic curve (a spline) to the data.
FORCOS Evaluates a Fourier cosine series
FORSIN Evaluates a Fourier sine series
HAVSIN Evaluates a haversine function
IMPACT Evaluates a force restricting displacement of a part in one direction.
POLY Evaluates a polynomial
SHF Evaluates a simple harmonic function
STEP Approximates a step function with a cubic polynomial
2. Adams View will not allow you to have two single_component_forces with the same name, so you
must provide a unique name.
Normally, entity names are composed of alphabetic, numeric, or '_' (underscore) characters, and start
with an alphabetic or '_' character. They may be of any length.
By enclosing the name in double quotes, you may use other printable characters, or start the name
with a numeral. If a name contains characters, or starts with a numeral, you must always quote the
name when entering it.
Note that you can specify the parentage of an entity (e.g. what part "owns" a marker or a geometry
element) when you CREATE it by changing the name. If you enter just the entity name, then the
default parent will be assigned by Adams View. If you type in the full name, then you may override
the default parent. In most cases, when creating an entity, Adams View will provide a default name.
The default name that Adams View provides will specify the parentage that it has assumed. You may,
of course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
32 Adams View Commands
force create direct single_component_force
3. When you use the FILE Adams_DATA_SET WRITE command, Adams View writes an Adams data
file for your model. Adams requires that each modeling element be identified by a unique integer
identifier. If you use this parameter to specify a non-zero identifier, Adams View will use it in the
corresponding statement in the Adams data file.
You may also enter zero as an identifier, either explicitly or by default. The next time you write an
Adams file, Adams View will replace the zero with a unique, internally-generated identifier. Adams
View will permanently store this identifier with the element just as if you had entered it yourself.
Normally, you would let all identifiers default to zero, and Adams View would generate the identifiers
for you. You are never required to enter a non-zero identifier. You only need to specify it if, for some
reason, you wish to control the Adams file output.
4. When an Adams Solver data file (.adm) is read into Adams View, all comments associated with a
statement (from the end of the previous statement through the end of the current statement) are
stored with the object. Comments in the data file can be associated with model. These comments
must follow the title statement and be followed by the comment 'END OF MODEL
COMMENTS'. This string must be uppercase.
When an Adams Solver data file is written, the comments for an object are written before the
statement corresponding to the object.
5. The I and J markers will be automatically created at this location on the I_PART_NAME and
J_PART_NAME respectively.
By default, you supply Cartesian (x, y, z) coordinates. You may use the 'defaults units
coordinate_system_type =' command to change this convention. For example, selecting 'cylindrical'
means you will subsequently be supplying r, theta, and z coordinates.
Adams View applies your location coordinates in the coordinate system you identify with the
RELATIVE_TO parameter. The default for the RELATIVE_TO parameter is the default coordinate
system. (See the RELATIVE_TO parameter for this command).
6. Adams View will orient the coordinate system by starting from the initial coordinate system and
applying three successive rotations. Depending on the convention you have selected, the rotations
may occur about space-fixed or body-fixed axes in any meaningful combination of the x, y, and z axes.
By default, you supply Euler (body313, or body-fixed z, x, z) angles. You may change this convention
with the 'DEFAULTS UNITS ORIENTATION_TYPE=' command. For example, selecting
SPACE123 means you will subsequently be supplying space-fixed x, y, and z angles.
Adams View applies your orientation angles starting from the coordinate system you identify with the
RELATIVE_TO parameter. The default for the RELATIVE_TO parameter is the default coordinate
system.
7. You may enter either one or two locations to direct the axis. If you enter one location, the axis will
point toward the location. If you specify two locations, the axis will be parallel to, and pointing the
same way as, the vector from the first location to the second.
Note that this does not completely dictate the orientation of the coordinate system. Adams View will
position the coordinate system with an arbitrary rotation about the axis. If you must completely
control the coordinate system orientation, use ORIENTATION or IN_PLANE_ORIENTATION.
force 33
force create direct torque_vector
By default, you direct the Z axis of the coordinate system. You may change this convention with the
'DEFAULTS ORIENT_AXIS_AND_PLANE AXIS_AND_PLANE_SETTING=' command. For
example, selecting either X_AXIS_XY_PLANE or X_AXIS_XZ_PLANE means you will
subsequently be directing the X axis. The plane-convention setting does not affect this parameter.
Adams View applies your location coordinates in the coordinate system you identify with the
RELATIVE_TO parameter. The default for the RELATIVE_TO parameter is the default coordinate
system.
8. If the “RELATIVE_TO” parameter is not specified, the default coordinate system is used. The
default coordinate system is initially your model, i.e. the global coordinate system. You may change
the default coordinate system using the 'defaults coordinate_system' command.
Format:
force create direct torque_vector
torque_vector_name= New torque name
Adams_id= geom._id
comments= String
i_marker_name= existing marker name
j_floating_marker_name= existing marker name
j_part_name= existing body
34 Adams View Commands
force create direct torque_vector
Description:
Extended Definition:
1. You may use this name later to refer to this torque_vector. Adams View will not allow you to have
two torque_vector with the same name, so you must provide a unique name.
Normally, entity names are composed of alphabetic, numeric, or '_' (underscore) characters, and start
with an alphabetic or '_' character. They may be of any length.
By enclosing the name in double quotes, you may use other printable characters, or start the name
with a numeral. If a name contains characters, or starts with a numeral, you must always quote the
name when entering it.
36 Adams View Commands
force create direct torque_vector
Note that you can specify the parentage of an entity (e.g. what part "owns" a marker or a geometry
element) when you CREATE it by changing the name. If you enter just the entity name, then the
default parent will be assigned by Adams View. If you type in the full name, then you may override
the default parent. In most cases, when creating an entity, Adams View will provide a default name.
The default name that Adams View provides will specify the parentage that it has assumed. You may,
of course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
2. When you use the FILE Adams_DATA_SET WRITE command, Adams View writes an Adams data
file for your model. Adams requires that each modeling element be identified by a unique integer
identifier. If you use this parameter to specify a non-zero identifier, Adams View will use it in the
corresponding statement in the Adams data file.
You may also enter zero as an identifier, either explicitly or by default. The next time you write an
Adams file, Adams View will replace the zero with a unique, internally-generated identifier. Adams
View will permanently store this identifier with the element just as if you had entered it yourself.
Normally, you would let all identifiers default to zero, and Adams View would generate the identifiers
for you. You are never required to enter a non-zero identifier. You only need to specify it if, for some
reason, you wish to control the Adams file output.
3. When an Adams Solver data file (.adm) is read into Adams View, all comments associated with a
statement (from the end of the previous statement through the end of the current statement) are
stored with the object. Comments in the data file can be associated with the model. These comments
must follow the title statement and be followed by the comment 'END OF MODEL
COMMENTS'. This string must be uppercase.
When an Adams Solver data file is written, the comments for an object are written before the
statement corresponding to the object.
4. The user must ensure that the I marker is a fixed marker and on a different part than the part specified
in the J_PART_NAME parameter. Because the I marker is a fixed marker, and the "floating" marker
will move around on the j_part to remain coincident with the I marker, Adams always applies the
force action at a fixed point on the part containing the I marker. The reaction force is applied to the
j_part at a point coincident with the I marker.
The "floating" marker is automatically created by Adams View on the part specified in the
J_PART_NAME parameter.
5. Adams subsequently applies the reaction forces and/or torques to this "floating" J marker. The user
must ensure that the j_part is a different part than the part containing the I marker. Adams will move
the "floating" J marker around on the j_part to keep it superimposed on the I marker, meaning, the
point of application of the reaction force may move around on the j_part. Reaction forces are not
calculated when the "floating" J marker is on the ground part.
6. The user must ensure that the reference_marker is fixed on a part (i.e. not a "floating" marker). The
reference_marker may be the same as the I marker and may be on any part in the model.
You may identify a marker by typing its name or by picking it from the screen.
force 37
force create direct torque_vector
If the marker is not visible on the screen, you must type the name. You may also find it convenient
to type the name even if the marker is displayed.
If you created the marker by reading an Adams data set or graphics file, the marker name is the letters
MAR followed by the Adams data set marker ID number. For example, the name of Adams
MARKER/101 is MAR101. If you created the marker during preprocessing, you will have given it a
name at that time.
If a marker is available by default, you may identify it by entering only its name. If it is not, you must
enter its full name. To identify a marker under a different part, for instance, you may need to enter
the model and part names as well. For example, you may specify marker 'pivot' from model 'links',
part 'lower_arm' by entering ".links.lower_arm.pivot". If you type a "?", Adams View will list the
markers available by default.
You must separate multiple marker names by commas.
If the marker is visible in one of your views, you may identify it by picking on it.
You need not separate multiple marker picks by commas.
7. The easiest way to enter a function expression in Adams View is to use the text editor in combination
with the function builder. To invoke the text editor for entering a function expression, highlight the
function field and then either pick the "EDIT" button at the top of the panel or type a ^t (control-
t). The Adams View "function builder" is discussed below.
The syntactical correctness of a function expression can be investigated by using the "VERIFY"
button at the upper right side of the text editor. If there is a syntax error, a message is printed and the
cursor is put near the problem. Proper unit consistency is not checked during function expression
verification.
The remainder of this explanation will cover the components of FUNCTION expressions as
summarized in the following table:
Components Examples
Numbers FUNCTION = 1E2 + 3.4 + 6
Operators FUNCTION = 3*6/2 + 3 - 2**2
System Constants FUNCTION = PI + 20
System Variables FUNCTION = AX(1040, 2010)
Arithmetic Ifs FUNCTION = IF(DX(3, 5): -1, 0, 1)
Fortran-77 Functions FUNCTION = ABS(NUM) - 6
Blanks FUNCTION = 1 + 2
Continuation Commas FUNCTION = 1 + 1 + 1 + 1 + 1 + 1 , + 1 + 1 + 1 + 1 + 1 + 1 + 1
Adams Functions FUNCTION = POLY(0, 0, 6.28)
NUMBERS
38 Adams View Commands
force create direct torque_vector
FUNCTION expressions can include integers, real numbers, and exponents. In other words, any
numbers that are legal in Adams are legal in a FUNCTION expression.
OPERATORS
In a FUNCTION expression, Adams allows any of the operators **, *, /, +, and -. Adams executes
these operators according to the following precedence rules:
From greatest to the least, the operators have the following priorities. ** then * / then + -. In other
words, Adams executes exponentiation (**) before all other operators and executes multiplication
(*) and division (/) before addition (+) and subtraction (-).
When a statement has operators of the same priority, Adams executes them from left to right.
You can use parentheses to alter the precedence of operators. For example, in the equation,
FUNCTION = (1-TIME)*30/PI
Adams subtracts TIME from one before it performs multiplication and division.
SYSTEM CONSTANTS
You can include the following system constants in a FUNCTION expression:
PI Value of pi (to eighteen significant digits)
DTOR Value of pi/180 for converting degrees to radians
RTOD Value of 180/pi for converting radians to degrees
The following example of a FUNCTION with a system constant multiplies the system constant PI
by the displacement of marker 10 with respect to marker 14:
FUNCTION = PI*DM(10,14)
BLANKS
A FUNCTION expression can contain any number of blank spaces. Five consecutive blank spaces in
an expression do not terminate input of the expression (by indicating that what follows is a comment)
as they do in an Adams statement. However, you should remember these two restrictions.
You cannot put a blank space in the middle of a number.
Adams does not accept a blank space between a function and its left bracket. (This is true for both,
FORTRAN-77 functions and Adams functions.)
CONTINUATION COMMAS
You can use a comma to continue FUNCTION expressions. You can break the expression anywhere
except in the middle of a number, in the middle of a name, or between a function and its left bracket.
Put a continuation comma in column one of the following line before the rest of the expression. If
you break the expression at a comma that is part of the expression, you must use both, the expression
comma and the continuation comma. You may use more than one continuation comma to extend
an expression over several lines.
FUNCTION BUILDER
The FUNCTIONS button at the right side of the Adams View text editor provides a means for
constructing an Adams function string. These functions are briefly described below. Upon picking
the FUNCTIONS button, you will be presented with the list of available functions in the "selection
window". After you select the desired function, a panel will appear with fields representing the
force 39
force create direct torque_vector
various parameters for the function. You will have full access to on-line help with this panel just like
you have with regular panels. After you have completed the panel and selected the DONE button on
the panel, the function string will be constructed and inserted at the current text cursor location in
the text edit window.
SYSTEM VARIABLES
A FUNCTION expression may access the current value of a system variable and use the value in
computations. These values are accessed through a collection of functions. The accessible system
variables include the following: Time, Mode, Displacements (Translational and Rotational),
Velocities (Translational and Rotational), Accelerations (Translational and Rotational), Forces
(Translational and Rotational), and User-defined variables. Invoke the text edit window and pick the
FUNCTIONS button to get a list of functions that can be accessed.
In general, you use a function character string (such as DM, VX, or FZ) and a list of values (e.g. i1,
i2, and i3) to access a system variable in an expression. For example, the value i1 may be the name of
the marker for which you want to measure a quantity (such as displacement, velocity, acceleration, or
force), i2 is the name of the marker with respect to which you want to measure the quantity, and i3
is the name of the marker you want to use to resolve the components of the quantity. If you do not
specify marker i3, Adams computes the result in the ground reference frame.
ARITHMETIC IFS
Arithmetic IFs allow you to conditionally define FUNCTION. The format for arithmetic IFs
follows.
IF (expression 1: expression 2, expression 3, expression 4)
Adams evaluates expression 1. If expression 1 is less than zero, the arithmetic IF equals expression 2;
if expression 1 equals zero, the arithmetic IF equals expression 3; and if expression 1 is greater than
zero, the arithmetic IF equals expression 4.
A FUNCTION expression with an arithmetic IF and its four expressions is as given below:
FUNCTION = 6 * IF(VR(10,31): 0 , 0 , 100)
If the radial velocity between markers 10 and 31 is less than or equal to zero, the value of the
FUNCTION expression is zero; but if the radial velocity between markers 10 and 31 is greater than
zero, the value of the FUNCTION expression is six hundred.
In some ways, you may treat IF as a variable. For example, you can place it anywhere in the
expression. In addition, you can nest arithmetic IFs nine levels deep.
FORTRAN-77 FUNCTIONS
You can use the FORTRAN functions ABS, ATAN, ATAN2, COS, EXP, LOG, LOG10, MIN,
MAX, SIN, SQRT, and TAN in your expression. For more information about these functions, see
a FORTRAN reference manual. Invoke the text edit window and pick the FUNCTIONS button to
get a list of functions that can be accessed.
Adams FUNCTIONS
In general, an Adams function evaluates a mathematical equation and returns a value to your
FUNCTION expression. The following table lists all the Adams functions and their purposes.
Invoke the text edit window and pick the FUNCTIONS button to make a list of functions that can
be accessed.
40 Adams View Commands
force create element_like beam
Names Purposes
AKISPL Accesses the data in a SPLINE statement and uses the Akima cubic method to fit
a cubic curve(a spline) to the data.
BISTOP Evaluates a force restricting displacement of a part in two opposite directions
CHEBY Evaluates a Chebyshev polynomial
CUBSPL Accesses the data in a SPLINE statement and uses the traditional cubic method to
fit a cubic curve (a spline) to the data.
FORCOS Evaluates a Fourier cosine series
FORSIN Evaluates a Fourier sine series
HAVSIN Evaluates a haversine function
IMPACT Evaluates a force restricting displacement of a part in one direction.
POLY Evaluates a polynomial
SHF Evaluates a simple harmonic function
STEP Approximates a step function with a cubic polynomial
Example:
force create element_like beam &
beam_name = BEAM_1 &
adams_id = 2 &
Comments = “” &
Ixx = 2.11 &
Iyy = 1.8 &
Izz = 1.9 &
Length = 10
force 41
force create element_like beam
Description:
Extended Definition:
1. The beam, which is massless and has a uniform cross section, is modeled as a linear translational and
a linear rotational action-reaction force between two markers. The forces the beam produces are
linearly dependent on the relative displacements and the relative velocities of the markers at its
endpoints. The x-axis of the J marker defines the centroidal axis of the beam. The y-axis and the z-
axis of the J marker are the principal axes of the cross section. They are perpendicular to the x-axis
and to each other. When the beam is in an undeflected position, the I marker has the same angular
orientation as the J marker, and the I marker lies on the x-axis of the J marker. The following
constitutive equations define how Adams uses the data you input for a beam to apply a force and a
torque to the I marker depending on the displacement and velocity of the I marker relative to the J
marker. Adams applies a force of equal magnitude and opposite direction to the J marker.
[Fx] [K11 0 0 0 0 0 ] [x]
[Fy] [0 K22 0 0 0 K26] [y]
force 43
force create element_like beam
5. When you use the FILE ADAMS_DATA_SET WRITE command, Adams View writes an Adams
data file for your model. Adams requires that each modeling element be identified by a unique integer
identifier. If you use this parameter to specify a non-zero identifier, Adams View will use it in the
corresponding statement in the Adams data file. You may also enter zero as an identifier, either
explicitly or by default. The next time you write an Adams file, Adams View will replace the zero with
a unique, internally generated identifier. Adams View will permanently store this identifier with the
element just as if you had entered it yourself. Normally, you would let all identifiers default to zero,
and Adams View would generate the identifiers for you. You are never required to enter a non-zero
identifier. You only need to specify it if, for some reason, you wish to control the Adams file output.
6. By definition, the beam lies along the positive X axis of the J marker. You should compute IXX about
the X axis of the J marker. Values for the Ixx parameter are:A REAL NUMBER GREATER THAN 0
7. By definition, the beam lies along the positive X axis of the J marker. You should compute IYY about
the Y axis of the J marker.
8. By definition, the beam lies along the positive X axis of the J marker. You should compute IZZ about
the Z axis of the J marker.
9. The y_shear_ratio is the area of the beam cross section divided by the area of the beam cross section
that resists y-direction shear forces. If you want to neglect the deflection due to y-direction shear, set
the ratio to zero.
10. The z_shear_ratio specifies the shear area ratio in the z direction. This is the correction factor for
shear deflection in the z direction for Timeshenko beams.
11. Because the ‘matrix_of_damping _terms’ matrix is symmetric, you need to specify only one-half of
it. The following matrix shows the values to input:
[r01 ] [r02 r07 ] [r03 r08 r12 ]
[r04 r09 r13 r16 ] [r05 r10 r14 r17 r19 ] [r06 r11 r15
r18 r20 r21]
Enter the elements by columns from top to bottom, then from left to right. If you do not use either
CMATRIX or CRATIO, CMATRIX defaults to a matrix with thirty-six zero entries; i.e. r1 through
r21, each default to zero.
12. The I and J markers will be automatically created at the location specified by the ‘location’ parameter
on the I_PART_NAME and J_PART_NAME respectively. By default, you supply Cartesian (x, y, z)
coordinates. You may use the 'defaults units coordinate_system_type =' command to change this
convention. For example, selecting 'cylindrical' means you will subsequently be supplying r, theta,
and z coordinates. Adams View applies your location coordinates in the coordinate system you
identify with the RELATIVE_TO parameter. The default for the RELATIVE_TO parameter is the
default coordinate system. (See the RELATIVE_TO parameter for this command).
13. The I marker is oriented based on the J marker orientation and the requirements of the particular
force being created. These markers are created automatically.
force 45
force create element_like bushing
Adams View will orient the coordinate system by starting from the initial coordinate system and
applying three successive rotations. Depending on the convention you have selected, the rotations
may occur about space-fixed or body-fixed axes in any meaningful combination of the x, y, and z axes.
By default, you supply Euler (body313, or body-fixed z, x, z) angles. You may change this convention
with the 'DEFAULTS UNITS ORIENTATION_TYPE=' command. For example, selecting
SPACE123 means you will subsequently be supplying space-fixed x, y, and z angles.
Adams View applies your orientation angles starting from the coordinate system you identify with the
RELATIVE_TO parameter. The default for the RELATIVE_TO parameter is the default coordinate
system.
14. You may enter either one or two locations to direct the axis. If you enter one location, the axis will
point toward the location. If you specify two locations, the axis will be parallel to, and pointing the
same way as the vector from the first location to the second. Note that this does not completely dictate
the orientation of the coordinate system. Adams View will position the coordinate system with an
arbitrary rotation about the axis. If you must completely control the coordinate system orientation,
use ORIENTATION or IN_PLANE_ORIENTATION. By default, you direct the z-axis of the
coordinate system. You may change this convention with the 'DEFAULTS
ORIENT_AXIS_AND_PLANE AXIS_AND_PLANE_SETTING=' command. For example,
selecting either X_AXIS_XY_PLANE or X_AXIS_XZ_PLANE means you will subsequently be
directing the x-axis. The plane-convention setting does not affect this parameter. Adams View applies
your location coordinates in the coordinate system you identify with the RELATIVE_TO parameter.
The default for the RELATIVE_TO parameter is the default coordinate system.
15. You may enter either two or three locations for the in_plane_orientation parameter. If you enter two
locations, the axis will point toward the first location and the plane will fall on the second. If you
specify three locations, the axis will be parallel to, and pointing the same way as the vector from the
first location to the second and the plane will be parallel to the plane defined by the three locations.
By default, you direct the z-axis of the coordinate system and locate the ZX plane. You may use the
'DEFAULTS ORIENT_AXIS_AND_PLANE AXIS_AND_PLANE_SETTING=' command to
change this convention. For example, selecting X_AXIS_XY_PLANE means you will subsequently
be directing the x-axis and locating the XY plane. Adams View applies your location coordinates in
the coordinate system you identify with the RELATIVE_TO parameter. The default for the
RELATIVE_TO parameter is the default coordinate system.
Cautions:
The centroidal axis must be orthogonal to the cross section specified by the area_of_cross_section
parameter.
Description:
Extended Definition:
1. Bushing is a massless force with linear stiffness and damping properties. It applies a force and a torque
to two parts. You specify a marker on each part for force or torque application. Each force consists of
three components in the coordinate system of the J marker, one in the x-axis direction, one in the y-
axis direction, and one in the z-axis direction. Likewise each torque consists of three components in
the coordinate system of the J marker, one about the x-axis, one about the y-axis, and one about the
z-axis. The magnitude of the force is linearly dependent upon the relative displacement and the
relative velocity of the two markers. The magnitude of the torque is dependent upon the relative angle
of rotation and the relative rotational velocity of the parts containing the specified markers.
2. A bushing has the same constitutive relation forms as a field. The primary difference between the two
forces is that certain coefficients (Kij and Cij, where i is not equal to j) are zero for the bushing. You
define only the diagonal coefficients (Kii and Cii) when you write the bushing. The following
constitutive equations define how Adams uses the data you input for a bushing to apply a force and
a torque to the I marker depending on the displacement and velocity of the I marker relative to the J
marker. Adams applies a force of equal magnitude and opposite direction to the J marker.
[Fx] [K11 0 0 0 0 0 ] [x]
[Fy] [0 K22 0 0 0 0 ] [y]
[Fz] = - [0 0 K33 0 0 0 ] [z]
[Tx] [0 0 0 K44 0 0 ] [a]
[Ty] [0 0 0 0 K55 0 ] [b]
[Tz] [0 0 0 0 0 K66] [c]
[C11 0 0 0 0 0 ] [Vx] [F1]
[0 C22 0 0 0 0 ] [Vy] [F2]
- [0 0 C33 0 0 0 ] [Vz] + [F3]
[0 0 0 C44 0 0 ] [Wx] [T1]
[0 0 0 0 C55 0 ] [Wy] [T2]
[0 0 0 0 0 C66] [Wz] [T3]
3. Fx, Fy, and Fz are the measure numbers of the translational force components parallel to the axes of
the Cartesian coordinate system of the J marker. The terms x, y, and z are the translational
displacements of the I marker with respect to the J marker measured in the Cartesian coordinate
system of the J marker. The terms Vx, Vy, and Vz are the time derivatives of x, y, and z, respectively.
The terms F1, F1, and F3 represent the measure numbers of any constant force components parallel
to the axes of the Cartesian coordinate system of the J marker. Tx, Ty, and Tz are the rotational force
components parallel to the axes of the Cartesian coordinate system of the J marker. The terms a, b,
48 Adams View Commands
force create element_like bushing
and c are the rotational displacements of the I marker about the x-axis, the y-axis, and the zaxis,
respectively, of the J marker. The terms Wx, Wy, and Wz are the time derivatives of a, b, and c,
respectively, in the J marker reference frame. The terms T1, T2, and T3 are the measure numbers of
any constant torque components acting parallel to the axes of the Cartesian coordinate system of the
J marker.
4. For the rotational constitutive equations (K1, K2, and K3) to be accurate, at least two of the rotations
(a, b, c) must be small. Therefore, the bushing force calculations may not be accurate unless two of
the three values remain small (i.e. smaller than 10 degrees). It does not matter which rotation is
largest.
5. Normally, entity names are composed of alphabetic, numeric, or '_' (underscore) characters, and start
with an alphabetic or '_' character. They may be of any length. By enclosing the name in double
quotes, you may use other printable characters, or start the name with a numeral. If a name contains
characters, or starts with a numeral, you must always quote the name when entering it. Note that you
can specify the parentage of an entity (e.g. what part "owns" a marker or a geometry element) when
you CREATE it by changing the name. If you enter just the entity name, then the default parent will
be assigned by Adams View. If you type in the full name, then you may override the default parent.
In most cases, when creating an entity, Adams View will provide a default name. The default name
that Adams View provides will specify the parentage that it has assumed. You may, of course, delete
this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
6. When you use the FILE Adams_DATA_SET WRITE command, Adams View writes an Adams data
file for your model. Adams requires that each modeling element be identified by a unique integer
identifier. If you use this parameter to specify a non-zero identifier, Adams View will use it in the
corresponding statement in the Adams data file. You may also enter zero as an identifier, either
explicitly or by default. The next time you write an Adams file, Adams View will replace the zero with
a unique, internally generated identifier. Adams View will permanently store this identifier with the
element just as if you had entered it yourself. Normally, you would let all identifiers default to zero,
and Adams View would generate the identifiers for you. You are never required to enter a non-zero
identifier. You only need to specify it if, for some reason, you wish to control the Adams file output.
7. When an Adams Solver data file (.adm) is read into Adams View, all comments associated with a
statement (from the end of the previous statement through the end of the current statement) are
stored with the object. Comments in the data file can be associated with model. These comments
must follow the title statement and be followed by the comment 'END OF MODEL
COMMENTS'. This string must be uppercase. When an Adams Solver data file is written, the
comments for an object are written before the statement corresponding to the object.
8. The three damping coefficients multiply the translational velocity components of the I marker along
the x-axis, the y-axis, and the z-axis of the J marker. The force due to damping is zero when there is
no relative translational velocity between the two markers. DAMPING must be in units of force per
unit of displacement per unit of time.
force 49
force create element_like bushing
9. The three stiffness coefficients multiply the three translational displacement components of the
origin of the I marker along the x-axis, the y-axis, and the z-axis of the J marker. STIFFNESS must
be in units of force per unit of displacement.
10. The force pre-load terms are the constant force components along the x-axis, the y-axis, and the z-
axis of the J marker.
11. The three tdamping coefficients multiply the rotational velocity components of the body in which
the I marker is fixed about the x-axis, the y-axis, and the z-axis of the J marker. The torque due to
damping is zero when there is no relative rotational velocity between the two markers.
12. The I and J markers defined by the location parameter will be automatically created at this location
on the I_PART_NAME and J_PART_NAME respectively. By default, you supply Cartesian (x, y, z)
coordinates. You may use the 'defaults units coordinate_system_type =' command to change this
convention. For example, selecting 'cylindrical' means you will subsequently be supplying r, theta,
and z coordinates. Adams View applies your location coordinates in the coordinate system you
identify with the RELATIVE_TO parameter. The default for the RELATIVE_TO parameter is the
default coordinate system. (See the RELATIVE_TO parameter for this command).
13. The I marker is oriented based on the J marker orientation and the requirements of the particular
force being created. These markers are created automatically.
Adams View will orient the coordinate system by starting from the initial coordinate system and
applying three successive rotations. Depending on the convention you have selected, the rotations
may occur about space-fixed or body-fixed axes in any meaningful combination of the x, y, and z axes.
By default, you supply Euler (body313, or body-fixed z, x, z) angles. You may change this convention
with the 'DEFAULTS UNITS ORIENTATION_TYPE=' command. For example, selecting
SPACE123 means you will subsequently be supplying space-fixed x, y, and z angles.
Adams View applies your orientation angles starting from the coordinate system you identify with the
RELATIVE_TO parameter. The default for the RELATIVE_TO parameter is the default coordinate
system.
14. For the ‘along_axis_parameter’, you may enter either one or two locations to direct the axis. If you
enter one location, the axis will point toward the location. If you specify two locations, the axis will
be parallel to, and pointing the same way as the vector from the first location to the second. Note that
this does not completely dictate the orientation of the coordinate system. Adams View will position
the coordinate system with an arbitrary rotation about the axis. If you must completely control the
coordinate system orientation, use ORIENTATION or IN_PLANE_ORIENTATION. By default,
you direct the Z axis of the coordinate system.
You may change this convention with the 'DEFAULTS ORIENT_AXIS_AND_PLANE
AXIS_AND_PLANE_SETTING=' command. For example, selecting either X_AXIS_XY_PLANE
or X_AXIS_XZ_PLANE means you will subsequently be directing the X axis. The plane-convention
setting does not affect this parameter. Adams View applies your location coordinates in the coordinate
system you identify with the RELATIVE_TO parameter. The default for the RELATIVE_TO
parameter is the default coordinate system.
50 Adams View Commands
force create element_like friction
15. You may enter either two or three locations for the ‘referencein_plane_orientation’ parameter. If you
enter two locations, the axis will point toward the first location and the plane will fall on the second.
If you specify three locations, the axis will be parallel to, and pointing the same way as, the vector from
the first location to the second and the plane will be parallel to the plane defined by the three
locations. By default, you direct the Z axis of the coordinate system and locate the ZX plane. You may
use the 'DEFAULTS ORIENT_AXIS_AND_PLANE AXIS_AND_PLANE_SETTING='
command to change this convention. For example, selecting X_AXIS_XY_PLANE means you will
subsequently be directing the X axis and locating the XY plane. Adams View applies your location
coordinates in the coordinate system you identify with the RELATIVE_TO parameter. The default
for the RELATIVE_TO parameter is the default coordinate system.
16. If this parameter is not specified, the default coordinate system is used. The default coordinate
system is initially your model, i.e. the global coordinate system. You may change the default
coordinate system using the 'defaults coordinate_system' command.
Description:
Extended Definition:
1. When you use the FILE Adams_DATA_SET WRITE command, Adams View writes an Adams data
file for your model. Adams requires that each modeling element be identified by a unique integer
identifier. If you use this parameter to specify a non-zero identifier, Adams View will use it in the
corresponding statement in the Adams data file.
You may also enter zero as an identifier, either explicitly or by default. The next time you write an
Adams file, Adams View will replace the zero with a unique, internally-generated identifier. Adams
View will permanently store this identifier with the element just as if you had entered it yourself.
Normally, you would let all identifiers default to zero, and Adams View would generate the identifiers
for you. You are never required to enter a non-zero identifier. You only need to specify it if, for some
reason, you wish to control the Adams file output.
2. When an Adams Solver data file (.adm) is read into Adams View, all comments associated with a
statement (from the end of the previous statement through the end of the current statement) are
stored with the object. Comments in the data file can be associated with model. These comments
must follow the title statement and be followed by the comment 'END OF MODEL
COMMENTS'. This string must be uppercase.
When an Adams Solver data file is written, the comments for an object are written before the
statement corresponding to the object.
3. You may identify a joint by typing its name or by picking it from the screen.
If the joint is not visible on the screen, you must type the name. You may also find it convenient to
type the name even if the joint is displayed.
force 53
force create element_like rotational_spring_damper
If you created the joint by reading an Adams data set or graphics file, the joint name is the letters JOI
followed by the Adams data set joint ID number. For example, the name of Adams JOINT/101 is
JOI101. If you created the joint during preprocessing, you will have given it a name at that time.
If a joint is available by default, you may identify it by entering only its name. If it is not, you must
enter its full name. To identify a joint under a model, for instance, you may need to enter the model
name as well. For example, you may specify joint 'lower_pivot' in model 'links' by entering
".links.lower_pivot". If you type a "?", Adams View will list the joints available by default.
You must separate multiple joint names by commas.
If the joint is visible in one of your views, you may identify it by picking on any of the graphics
associated with it.
You need not separate multiple joint picks by commas.
Format:
force create element_like rotational_spring_damper
spring_damper_name= New spring damper force name
Adams_id= geom._id
comments= string
damping= TORSION_DAMP
stiffness= TORSION_STIFF
preload= torque(real)
displacement_at_preload= angle(integer)
i_part_name= an existing body
j_part_name= an existing body
location= location
orientation= orientation
along_axis_orientation= location
in_plane_orientation= location
relative_to= existing model,part or marker
i_marker_name= an existing marker
j_marker_name= an existing marker
Example:
force create element_like rotational_spring_damper &
spring_damper_name = FORCE_1 &
i_part_name = PART_1 &
j_part_name = PART_2
Description:
Extended Definition:
1. Adams View will not allow you to have two spring dampers with the same name, so you must provide
a unique name.
Normally, entity names are composed of alphabetic, numeric, or '_' (underscore) characters, and start
with an alphabetic or '_' character. They may be of any length.
By enclosing the name in double quotes, you may use other printable characters, or start the name
with a numeral. If a name contains characters, or starts with a numeral, you must always quote the
name when entering it.
Note that you can specify the parentage of an entity (e.g. what part "owns" a marker or a geometry
element) when you CREATE it by changing the name. If you enter just the entity name, then the
default parent will be assigned by Adams View. If you type in the full name, then you may over ride
the default parent. In most cases, when creating an entity, Adams View will provide a default name.
The default name that Adams View provides will specify the parentage that it has assumed. You may,
of course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
2. When you use the FILE Adams_DATA_SET WRITE command, Adams View writes an Adams data
file for your model. Adams requires that each modeling element be identified by a unique integer
identifier. If you use this parameter to specify a non-zero identifier, Adams View will use it in the
corresponding statement in the Adams data file.
You may also enter zero as an identifier, either explicitly or by default. The next time you write an
Adams file, Adams View will replace the zero with a unique, internally-generated identifier.
Adams View will permanently store this identifier with the element just as if you had entered it
yourself.
Normally, you would let all identifiers default to zero, and Adams View would generate the identifiers
for you. You are never required to enter a non-zero identifier. You only need to specify it if, for some
reason, you wish to control the Adams file output.
force 57
force create element_like rotational_spring_damper
3. When an Adams Solver data file (.adm) is read into Adams View, all comments associated with a
statement (from the end of the previous statement through the end of the current statement) are
stored with the object. Comments in the data file can be associated with model. These comments
must follow the title statement and be followed by the comment 'END OF MODEL
COMMENTS'. This string must be uppercase.
When an Adams Solver data file is written, the comments for an object are written before the
statement corresponding to the object.
4. By default, you supply Cartesian (x, y, z) coordinates. You may use the 'defaults units
coordinate_system_type =' command to change this convention. For example, selecting 'cylindrical'
means you will subsequently be supplying r, theta, and z coordinates.
Adams View applies your location coordinates in the coordinate system you identify with the
RELATIVE_TO parameter. The default for the RELATIVE_TO parameter is the default
coordinate system. (See the RELATIVE_TO parameter for this command).
5. Adams View will orient the coordinate system by starting from the initial coordinate system and
applying three successive rotations. Depending on the convention you have selected, the rotations
may occur about space-fixed or body-fixed axes in any meaningful combination of the x, y, and z axes.
By default, you supply Euler (body313, or body-fixed z, x, z) angles. You may change this convention
with the 'DEFAULTS UNITS ORIENTATION_TYPE=' command. For example, selecting
SPACE123 means you will subsequently be supplying space-fixed x, y, and z angles.
Adams View applies your orientation angles starting from the coordinate system you identify with the
RELATIVE_TO parameter. The default for the RELATIVE_TO parameter is the default
coordinate system.
6. You may enter either one or two locations to direct the axis. If you enter one location, the axis will
point toward the location. If you specify two locations, the axis will be parallel to, and pointing the
same way as the vector from the first location to the second.
Note that this does not completely dictate the orientation of the coordinate system. Adams View will
position the coordinate system with an arbitrary rotation about the axis. If you must completely
control the coordinate system orientation, use ORIENTATION or IN_PLANE_ORIENTATION.
By default, you direct the z-axis of the coordinate system. You may change this convention with the
'DEFAULTS ORIENT_AXIS_AND_PLANE AXIS_AND_PLANE_SETTING=' command. For
example, selecting either X_AXIS_XY_PLANE or X_AXIS_XZ_PLANE means you will
subsequently be directing the x- axis. The plane convention setting does not affect this parameter.
Adams View applies your location coordinates in the coordinate system you identify with the
RELATIVE_TO parameter. The default for the RELATIVE_TO parameter is the default
coordinate system.
7. For the plane orientation, you may enter either two or three locations. If you enter two locations, the
axis will point toward the first location and the plane will fall on the second. If you specify three
locations, the axis will be parallel to, and pointing the same way as the vector from the first location
to the second and the plane will be parallel to the plane defined by the three locations.
58 Adams View Commands
force create fe_load
By default, you direct the z-axis of the coordinate system and locate the ZX plane. You may use the
'DEFAULTS ORIENT_AXIS_AND_PLANE AXIS_AND_PLANE_SETTING=' command to
change this convention. For example, selecting X_AXIS_XY_PLANE means you will subsequently
be directing the x-axis and locating the XY plane.
Adams View applies your location coordinates in the coordinate system you identify with the
RELATIVE_TO parameter. The default for the RELATIVE_TO parameter is the default
coordinate system.
8. If the “relative_to” parameter is not specified, the default coordinate system is used. The default
coordinate system is your model, i.e. the global coordinate system. You may change the default
coordinate system using the 'defaults coordinate_system' command.
Format:
force create direct fe_load
feload_name = new fe_load name
ref_fe_part = refer existing fe_part
ref_orientation_marker = refer existing marker
adams_id = real
fx = function expression
fy = function expression
fz = function expression
tx = function expression
ty = function expression
tz = function expression
user_function = function expression
routine = string
force_display = ON / OFF
Example:
force create direct fe_load
feload_name = .MODEL_1.FE_Load_1
ref_fe_part = FE_Part_1
ref_orientation_marker = MARKER_1
force 59
force delete
adams_id = 1
fx = SD(1)
fy = SD(1)
fz = SD(1)
tx = SD(1)
ty = SD(1)
tz = SD(1)
force_display = ON
This will create an fe_load with the name FE_Load_1 with provided parameters.
Description:
force delete
Allows you to delete an existing force.
You must enter the name of the force you wish to delete by either picking it from the screen or specifying the
full name.
You may reverse this deletion at a later time with an UNDO command.
60 Adams View Commands
force modify body gravitational
Format:
force delete
force delete force_name= Existing force
Example:
force delete &
force delete force_name= gravity
Description:
Extended Definition:
1. You may identify a force by typing its name or by picking it from the screen.
If the force is not visible on the screen, you must type the name. You may also find it convenient to
type the name even if the force is displayed.
If you created the force by reading an Adams data set or graphics file, the force name is the first three
letters of the Adams statement followed by the Adams data set force ID number. For example, the
name of Adams SFORCE/101 is SFO101. If you created the force during preprocessing, you will
have given it a name at that time.
If a force is available by default, you may identify it by entering only its name. If it is not, you must
enter its full name. To identify a force under a preprocessing model, for instance, you may need to
enter the model name as well. For example, you may specify the force named 'bumper' from the
model named 'test' by entering ".test.bumper". If you type a "?", Adams View will list the forces
available by default.
You must separate multiple force names by commas.
If the force is visible in one of your views, you may identify it by picking on any of the graphics
associated with it.
You need not separate multiple force picks by commas.
Tips:
Any Adams View object you delete, may be "undeleted" by using the UNDO commands. If you
have deleted something you would like back, enter the command "undo backward", or pick on the
fixed menu entry, 'UNDO'.
Format:
force modify body gravitational
gravity_field_name = existing_gravity_field_name
new_gravity_field_nam= new_gravity_field_name
comments = comment_string
units_consistency_factor = real_number
x_component_gravity = real_number
y_component_gravity = real_number
z_component_gravity = real_number
Example:
force modify body gravitational &
gravity_field_name = gravity &
new_gravity_field_name = ACCGRAV__1 &
comments = comment_string &
units_consistency_factor = 0.1 &
x_component_gravity = 0.99 &
y_component_gravity = 0.88 &
z_component_gravity = 0.9
Description:
Extended Definition:
1. In conjunction with the part masses, the gravitational field defines a body force atthe center of gravity
of each part. The force direction is defined by the X_COMPONENT_GRAVITY,
Y_COMPONENT_GRAVITY, and Z_COMPONENT_GRAVITY parameters. The force
magnitude is the part mass multiplied by the magnitude of the gravity vector. Each gravity field is
written as an Adams ACCGRAV statement. Although Adams View allows you to create more than
one gravity field, you should only use one, since Adams only allows one ACCGRAV statement.
2. You may also specify UNITS_CONSISTENCY_FACTOR in a gravity field.Adams View writes this
as the GC parameter in the ACCGRAV statement. AlthoughUNITS_CONSISTENCY_FACTOR
affects the reporting of all forces, not justgravitational, it is included here because it also appears in
the ACCGRAVstatement.
3. You may identify a gravity field by typing its name or by picking it from the screen. If the gravity field
is not visible on the screen, you must type the name. You may also find it convenient to type the name
even if the gravity field is displayed.
If you created the gravity field by reading an Adams data set file, the gravity field name is 'acc'. If you
created the gravity field during preprocessing, you gave it a name at that time. If a gravity field is
available by default, you may identify it.
by entering its name only. If it is not, you must enter its full name. To identify a gravity field under
a different model, for instance, you may need to enter the model name as well. For example, you may
specify gravity field 'grav' from model 'robot' by entering ".robot.grav". You must separate multiple
gravity-field names by commas.
If the gravity field is visible in one of your views, you may identify it by picking on any of the graphics
associated with it. You need not separate multiple gravity-field picks by commas.
4. Normally, entity names are composed of alphabetic, numeric, or '_' (underscore) characters, and start
with an alphabetic or '_' character. They may be any length.
By enclosing the name in double quotes, you may use other printable characters, or start the name
with a numeral. If a name contains characters, or starts with a numeral, you must always quote the
name when entering it. Note that you can specify the parentage of an entity (e.g. what part "owns" a
marker or a geometry element) when you CREATE it by changing the name. If you enter just the
entity name, then the default parent will be assigned by Adams View. If you type in the full name,
then you may over ride the default parent. In most cases, when creating an entity, Adams View will
provide a default name. The default name that Adams View provides will specify the parentage that
it has assumed. You may, or course, delete this name and use your own. The form of a full name is:
force 63
force modify direct force_vector
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
5. The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
6. When an Adams Solver data file (.adm) is read into Adams View, all comments associated with a
statement (from the end of the previous statement through the end of the current statement) are
stored with the object. Comments in the data file can be associated with model. These comments
must follow the title statement and be followed by the comment 'END OF MODEL
COMMENTS'. This string must be uppercase. When an Adams Solver data file is written, the
comments for an object are written before the statement corresponding to the object.
7. You may select any force, mass, length, or time units you wish. In order for Adams results to be
meaningful, however, you or Adams View must compute a factor such that the equationForce = (Mass
/ UNITS_CONSISTENCY_FACTOR) * Accelerationis satisfied. For example, if you use Newtons,
kilograms, millimeters, and seconds, UNITS_CONSISTENCY_FACTOR is 1000. Adams
documentation and Data Set Language refer to this factor as GC, on the ACCGRAV card. The only
case in which you should set UNITS_CONSISTENCY_FACTOR yourself is when you are using a
set of units Adams View does not support. Otherwise, you should probably let Adams View compute
it for you. If you do use this command to set UNITS_CONSISTENCY_FACTOR to a non-zero
value, Adams View will write your value to an Adams data set.Adams View will not change your value,
even if you later change your force, mass, length, or time units. If you explicitly set
UNITS_CONSISTENCY_FACTOR, then later change your units, remember to
updateUNITS_CONSISTENCY_FACTOR.
Tips:
If you type a "?", Adams View will list the gravity fields available by default.
Format:
force modify direct force_vector
force_vector_name= existing vforce
new_force_vector_name= new vforce
Adams_id = geom._id
comments = string
i_marker_name= existing marker
j_floating_marker_name= existing marker
j_part_name = existing body
ref_marker_name = existing marker
x_force_function = function
64 Adams View Commands
force modify direct force_vector
Description:
Extended Definition:
1. The FORCE_VECTOR is a translational vector force that is specified using three orthogonal
components. The resultant vector determines the direction of the force action. This resultant vector
is formed by the three component forces that the user defines along the "reference marker" axes. The
reaction is equal and opposite to the action. The user may define the FORCE_VECTOR
components in Adams View through user-specified function expressions or by specifying up to 30
user-defined parameters that are passed to a user-written subroutine (a "VFOSUB") linked to Adams.
The FORCE_VECTOR corresponds to the Adams VFORCE statement.
The FORCE_VECTOR creates an Adams translational vector force element that applies the forces
between two parts of the system. The element applies an action force to the part that contains the I
marker and a corresponding reaction force to the part to which the a "floating" J marker belongs. This
"floating marker" is automatically created by Adams View and is positioned to be coincident with the
I marker. Subsequently, the FORCE_VECTOR establishes the position of the "floating" J marker.
As the system moves, Adams moves the "floating" J marker on its part to keep the "floating" J and I
markers superimposed. Thus, Adams applies the reaction force to the "floating" J markers part at the
instantaneous position of the I marker.
The total vector force that Adams supplies is the vector sum of the individual force components that
the user specifies. The magnitude of the total vector force is the square root of the sum of the
components squared. Its value will be the resultant (i.e., the square root of the sum of the squares) of
the three mutually-orthogonal force components.
2. You may identify a force vector by typing its name or by picking it from the screen.
If the force vector is not visible on the screen, you must type the name. You may also find it
convenient to type the name even if the force vector is displayed.
If you created the force vector by reading an Adams data set or graphics file, the force vector name is
the letters VFO followed by the Adams data set force vector ID number. The name of Adams
VFORCE/101 is VFO101, for example. If you created the force vector during preprocessing, you
gave it a name at that time.
If a force vector is available by default, you may identify it by entering its name only. If it is not, you
must enter its full name. To identify a force vector under another model, for instance, you may need
to enter the model name as well. For example, you may specify force vector 'spring' from the model
'suspension' by entering ".suspension.spring". If you type a "?", Adams View will list the force vector
available by default.
You must separate multiple force vector names by commas.
If the force vector is visible in one of your views, you may identify it by picking on any of the graphics
associated with it.
You need not separate multiple force vector picks by commas.
3. Normally, entity names are composed of alphabetic, numeric, or '_' (underscore) characters, and start
with an alphabetic or '_' character. They may be any length.
By enclosing the name in double quotes, you may use other printable characters, or start the name
with a numeral. If a name contains characters, or starts with a numeral, you must always quote the
name when entering it.
66 Adams View Commands
force modify direct force_vector
Note that you can specify the parentage of an entity (e.g. what part "owns" a marker or a geometry
element) when you CREATE it by changing the name. If you enter just the entity name, then the
default parent will be assigned by Adams View. If you type in the full name, then you may over ride
the default parent. In most cases, when creating an entity, Adams View will provide a default name.
The default name that Adams View provides will specify the parentage that it has assumed. You may,
or course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
4. When you use the FILE Adams_DATA_SET WRITE command, Adams View writes an Adams data
file for your model. Adams requires that each modeling element be identified by a unique integer
identifier. If you use this parameter to specify a non-zero identifier, Adams View will use it in the
corresponding statement in the Adams data file.
You may also enter zero as an identifier, either explicitly or by default. The next time you write an
Adams file, Adams View will replace the zero with a unique, internally-generated identifier. Adams
View will permanently store this identifier with the element just as if you had entered it yourself.
Normally, you would let all identifiers default to zero, and Adams View would generate the identifiers
for you. You are never required to enter a non-zero identifier. You only need to specify it if, for some
reason, you wish to control the Adams file output.
5. The user must ensure that the I marker is a fixed marker and on a different part than the part specified
in the J_PART_NAME parameter. Because the I marker is a fixed marker, and the "floating" marker
will move around on the j_part to remain coincident with the I marker, Adams always applies the
force action at a fixed point on the part containing the I marker. The reaction force is applied to the
j_part at a point coincident with the I marker.
The "floating" marker is automatically created by Adams View on the part specified in the
J_PART_NAME parameter.
6. Adams subsequently applies the reaction forces and/or torques to this "floating" J marker. The user
must ensure that the j_part is a different part than the part containing the I marker. Adams will move
the "floating" J marker around on the j_part to keep it superimposed on the I marker, meaning the
point of application of the reaction force may move around on the j_part. Reaction forces are not
calculated when the "floating" J marker is on the ground part.
7. To enter a function expression you enter a series of quoted strings.
The easiest way to enter a function expression in Adams View is to use the text editor in combination
with the function builder. To invoke the text editor for entering a function expression, highlight the
function field and then either pick the "EDIT" button at the top of the panel or type a ^t (control-
t). The Adams View "function builder" is discussed below.
The syntactical correctness of a function expression can be investigated by using the "VERIFY"
button at the upper right of the text editor. If there is a syntax error, a message is printed and the
cursor is put near the problem. Proper unit consistency is not checked during function expression
verification.
The remainder of this explanation will cover the components of FUNCTION expressions as
summarized in the following table.
force 67
force modify direct force_vector
Components Examples
Numbers FUNCTION = 1E2 + 3.4 + 6
Operators FUNCTION = 3*6/2 + 3 - 2**2
System Constants FUNCTION = PI + 20
System Variables FUNCTION = AX(1040, 2010)
Arithmetic Ifs FUNCTION = IF(DX(3, 5): -1, 0, 1)
Fortran-77 Functions FUNCTION = ABS(NUM) - 6
Blanks FUNCTION = 1 + 2
Continuation Commas FUNCTION = 1 + 1 + 1 + 1 + 1 + 1 , + 1 + 1 + 1 + 1 + 1 + 1 + 1
Adams Functions FUNCTION = POLY(0, 0, 6.28)
NUMBERS
FUNCTION expressions can include integers, real numbers, and exponents. In other words, any
numbers that are legal in Adams are legal in a FUNCTION expression.
OPERATORS
In a FUNCTION expression, Adams allows any of the operators **, *, /, +, and -. Adams executes
these operators according to the following precedence rules:
• From greatest to the least, the operators have the following priorities. ** then * / then + -. In other
words, Adams executes exponentiation (**) before all other operators and executes
multiplication (*) and division (/) before addition (+) and subtraction (-).
• When a statement has operators of the same priority, Adams executes them from left to right.
• You can use parentheses to alter the precedence of operators. For example, in the equation,
FUNCTION = (1-TIME)*30/PI
Adams subtracts TIME from one before it performs multiplication and division.
SYSTEM CONSTANTS
You can include the following system constants in a FUNCTION expression:
• PI Value of pi (to eighteen significant digits)
• DTOR Value of pi/180 for converting degrees to radians
• RTOD Value of 180/pi for converting radians to degrees
The following example of a FUNCTION with a system constant multiplies the system constant PI
by the displacement of marker 10 with respect to marker 14:
FUNCTION = PI*DM(10,14)
BLANKS
68 Adams View Commands
force modify direct force_vector
A FUNCTION expression can contain any number of blank spaces. Five consecutive blank spaces in
an expression do not terminate input of the expression (by indicating that what follows is a comment)
as they do in an Adams statement. However, you should remember these two restrictions.
You cannot put a blank space in the middle of a number.
Adams does not accept a blank space between a function and its left bracket. (This is true for both,
FORTRAN-77 functions and Adams functions.)
CONTINUATION COMMAS
You can use a comma to continue FUNCTION expressions. You can break the expression anywhere
except in the middle of a number, in the middle of a name, or between a function and its left bracket.
Put a continuation comma in column one of the following line before the rest of the expression. If
you break the expression at a comma that is part of the expression, you must use both, the expression
comma and the continuation comma. You may use more than one continuation comma to extend an
expression over several lines.
FUNCTION BUILDER
The FUNCTIONS button at the right side of the Adams View text editor provides a means for
constructing an Adams function string. These functions are briefly described below. Upon picking
the FUNCTIONS button, you will be presented with the list of available functions in the "selection
window". After you select the desired function, a panel will appear with fields representing the various
parameters for the function. You will have full access to on-line help with this panel just like you have
with regular panels. After you have completed the panel and selected the DONE button on the panel,
the function string will be constructed and inserted at the current text cursor location in the text edit
window.
SYSTEM VARIABLES
A FUNCTION expression may access the current value of a system variable and use the value in
computations. These values are accessed through a collection of functions. The accessible system
variables include the following: Time, Mode, Displacements (Translational and Rotational),
Velocities (Translational and Rotational), Accelerations (Translational and Rotational), Forces
(Translational and Rotational), and User-defined variables. Invoke the text edit window and pick the
FUNCTIONS button to get a list of functions that can be accessed.
In general, you use a function character string (such as DM, VX, or FZ) and a list of values (for
example, i1, i2, and i3) to access a system variable in an expression. For example, the value i1 may be
the name of the marker for which you want to measure a quantity (such as displacement, velocity,
acceleration, or force), i2 is the name of the marker with respect to which you want to measure the
quantity, and i3 is the name of the marker you want to use to resolve the components of the quantity.
If you do not specify marker i3, Adams computes the result in the ground reference frame.
ARITHMETIC IFS
Arithmetic IFs allow you to conditionally define FUNCTION. The format for arithmetic IFs follows.
IF (expression 1: expression 2, expression 3, expression 4)
Adams evaluates expression 1. If expression 1 is less than zero, the arithmetic IF equals expression 2;
if expression 1 equals zero, the arithmetic IF equals expression 3; and if expression 1 is greater than
zero, the arithmetic IF equals expression 4.
force 69
force modify direct force_vector
A FUNCTION expression with an arithmetic IF and its four expressions is as given below:
FUNCTION = 6 * IF(VR(10,31): 0 , 0 , 100)
If the radial velocity between markers 10 and 31 is less than or equal to zero, the value of the
FUNCTION expression is zero; but if the radial velocity between markers 10 and 31 is greater than
zero, the value of the FUNCTION expression is six hundred.
In some ways, you may treat IF as a variable. For example, you can place it anywhere in the
expression. In addition, you can nest arithmetic IFs nine levels deep.
FORTRAN-77 FUNCTIONS
You can use the FORTRAN functions ABS, ATAN, ATAN2, COS, EXP, LOG, LOG10, MIN,
MAX, SIN, SQRT, and TAN in your expression. For more information about these functions, see
a FORTRAN reference manual. Invoke the text edit window and pick the FUNCTIONS button to
get a list of functions that can be accessed.
Adams FUNCTIONS
In general, an Adams function evaluates a mathematical equation and returns a value to your
FUNCTION expression. The following table lists all the Adams functions and their purposes.
Invoke the text edit window and pick the FUNCTIONS button to make a list of functions that can
be accessed.
Names Purposes
AKISPL Accesses the data in a SPLINE statement and uses the Akima cubic method to fit
a cubic curve(a spline) to the data.
BISTOP Evaluates a force restricting displacement of a part in two opposite directions
CHEBY Evaluates a Chebyshev polynomial
CUBSPL Accesses the data in a SPLINE statement and uses the traditional cubic method to
fit a cubic curve (a spline) to the data.
FORCOS Evaluates a Fourier cosine series
FORSIN Evaluates a Fourier sine series
HAVSIN Evaluates a haversine function
IMPACT Evaluates a force restricting displacement of a part in one direction.
POLY Evaluates a polynomial
SHF Evaluates a simple harmonic function
STEP Approximates a step function with a cubic polynomial
Cautions:
The user must ensure that the reference_marker is fixed on a part (i.e. not a "floating" marker). The
reference_marker may be the same as the I marker and may be on any part in the model.
70 Adams View Commands
force modify direct general_force
Tips:
1. You use the force vector name parameter to identify the existing force_vector to affect with this
command.
2. You may use the new force vector name later to refer to this force_vector. Adams View will not allow
you to have two force_vectors with the same full name, so you must provide a unique name.
Format:
force modify direct general_force
General_force_name= existing genforce
new_general_force_name= new genforce
Adams_id= geom._id
comments= string
i_marker_name= existing marker
j_floating_marker_name= existing marker
, j_part_name= existing body
ref_marker_name= existing marker
x_torque_function= function
y_torque_function= function
z_torque_function= function
user_function= real
x_force_function = function
y_force_function = function
z_force_function = function
Description:
Extended Definition:
1. A GENERAL_FORCE defines a complete force element, consisting of three mutually orthogonal
translational force components and three orthogonal torque components. The two resultant vectors
formed by the three component forces and the three component torques determines the direction of
the force and torque actions, respectively. The user defines these force and torque components along
and about the "reference" marker axes. The reactions are equal and opposite to the action. The user
may define the GENERAL_FORCE in Adams View through user-specified function expressions or
by specifying up to 30 user-defined parameters that are passed to a user-written subroutine (a
"GFOSUB") the user links with Adams.
The GENERAL_FORCE corresponds to the Adams GFORCE statement.
A GENERAL_FORCE creates a six component force element that applies the forces between two
parts of the system. Here, force means three orthogonal translational components and three
orthogonal rotational components. The element applies actions to the part to which the I marker
belongs and corresponding reactions to the part to which a "floating_marker" belongs. This "floating
marker" is automatically created by Adams View and is positioned to be coincident with the I marker.
Subsequently, the GENERAL_FORCE internally establishes the position of the "floating_marker".
As the system moves, Adams moves the "floating_marker" on its part to keep the "floating_marker"
and I markers always superimposed. Thus, Adams applies the reaction force to the part containing
the "floating_marker" marker at the instantaneous position of the I marker. The magnitude of the
force depends on expressions or subroutines that the user supplies. The value of the force is the
resultant (i.e., the square root of the sum of the squares) of (up to) three mutually orthogonal force
components together with the resultant (i.e., the square root of the sum of the squares) of (up to) three
mutually orthogonal torque components.
The resultant vector formed by the three user-defined component forces along the reference marker
axes defines the direction of the translational force action. The reaction is equal and opposite to the
action.
The resultant vector formed by the three component torques determines the direction of the
rotational torque action. The user defines these torques about the reference marker axes. The
reaction is equal and opposite to the action.
2. You may identify a general force by typing its name or by picking it from the screen.
If the general force is not visible on the screen, you must type the name. You may also find it
convenient to type the name even if the general force is displayed.
If you created the general force by reading an Adams data set or graphics file, the general force name
is the letters GFO followed by the Adams data set general force ID number. The name of Adams
GFORCE/101 is GFO101, for example. If you created the general force during preprocessing, you
gave it a name at that time.
If a general force is available by default, you may identify it by entering its name only. If it is not, you
must enter its full name. To identify a general force under another model, for instance, you may need
to enter the model name as well. For example, you may specify general force 'spring' from the model
'suspension' by entering ".suspension.spring". If you type a "?", Adams View will list the general force
available by default.
You must separate multiple general force names by commas.
force 73
force modify direct general_force
If the general force is visible in one of your views, you may identify it by picking on any of the graphics
associated with it.
You need not separate multiple general force picks by commas.
3. Normally, entity names are composed of alphabetic, numeric, or '_' (underscore) characters, and start
with an alphabetic or '_' character. They may be any length.
By enclosing the name in double quotes, you may use other printable characters, or start the name
with a numeral. If a name contains characters, or starts with a numeral, you must always quote the
name when entering it.
Note that you can specify the parentage of an entity (e.g. what part "owns" a marker or a geometry
element) when you CREATE it by changing the name. If you enter just the entity name, then the
default parent will be assigned by Adams View. If you type in the full name, then you may over ride
the default parent. In most cases, when creating an entity, Adams View will provide a default name.
The default name that Adams View provides will specify the parentage that it has assumed. You may,
or course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
4. When you use the FILE Adams_DATA_SET WRITE command, Adams View writes an Adams data
file for your model. Adams requires that each modeling element be identified by a unique integer
identifier. If you use this parameter to specify a non-zero identifier, Adams View will use it in the
corresponding statement in the Adams data file.
You may also enter zero as an identifier, either explicitly or by default. The next time you write an
Adams file, Adams View will replace the zero with a unique, internally-generated identifier. Adams
View will permanently store this identifier with the element just as if you had entered it yourself.
Normally, you would let all identifiers default to zero, and Adams View would generate the identifiers
for you. You are never required to enter a non-zero identifier. You only need to specify it if, for some
reason, you wish to control the Adams file output.
5. The user must ensure that the I marker is a fixed marker and on a different part than the part specified
in the J_PART_NAME parameter. Because the I marker is a fixed marker, and the "floating" marker
will move around on the j_part to remain coincident with the I marker, Adams always applies the
force action at a fixed point on the part containing the I marker. The reaction force is applied to the
j_part at a point coincident with the I marker.
The "floating" marker is automatically created by Adams View on the part specified in the
J_PART_NAME parameter.
6. Adams subsequently applies the reaction forces and/or torques to this "floating" J marker. The user
must ensure that the j_part is a different part than the part containing the I marker. Adams will move
the "floating" J marker around on the j_part to keep it superimposed on the I marker, meaning the
point of application of the reaction force may move around on the j_part. Reaction forces are not
calculated when the "floating" J marker is on the ground part.
7. You may identify a marker by typing its name or by picking it from the screen.
74 Adams View Commands
force modify direct general_force
If the marker is not visible on the screen, you must type the name. You may also find it convenient
to type the name even if the marker is displayed.
If you created the marker by reading an Adams data set or graphics file, the marker name is the letters
MAR followed by the Adams data set marker ID number. The name of Adams MARKER/101 is
MAR101, for example. If you created the marker during preprocessing, you gave it a name at that
time.
If a marker is available by default, you may identify it by entering its name only. If it is not, you must
enter its full name. To identify a marker under a different part, for instance, you may need to enter
the model and part names as well. For example, you may specify marker 'pivot' from model 'links',
part 'lower_arm' by entering ".links.lower_arm.pivot". If you type a "?", Adams View will list the
markers available by default.
You must separate multiple marker names by commas.
If the marker is visible in one of your views, you may identify it by picking on it.
You need not separate multiple marker picks by commas.
8. To enter a function expression you enter a series of quoted strings.
The easiest way to enter a function expression in Adams View is to use the text editor in combination
with the function builder. To invoke the text editor for entering a function expression, highlight the
function field and then either pick the "EDIT" button at the top of the panel or type a ^t (control-
t). The Adams View "function builder" is discussed below.
The syntactical correctness of a function expression can be investigated by using the "VERIFY"
button at the upper right of the text editor. If there is a syntax error, a message is printed and the
cursor is put near the problem. Proper unit consistency is not checked during function expression
verification.
The remainder of this explanation will cover the components of FUNCTION expressions as
summarized in the following table.
Components Examples
Numbers FUNCTION = 1E2 + 3.4 + 6
Operators FUNCTION = 3*6/2 + 3 - 2**2
System Constants FUNCTION = PI + 20
System Variables FUNCTION = AX(1040, 2010)
Arithmetic Ifs FUNCTION = IF(DX(3, 5): -1, 0, 1)
Fortran-77 Functions FUNCTION = ABS(NUM) - 6
Blanks FUNCTION = 1 + 2
Continuation Commas FUNCTION = 1 + 1 + 1 + 1 + 1 + 1, + 1 + 1 + 1 + 1 + 1 + 1 + 1
Adams Functions FUNCTION = POLY(0, 0, 6.28)
NUMBERS
force 75
force modify direct general_force
FUNCTION expressions can include integers, real numbers, and exponents. In other words, any
numbers that are legal in Adams are legal in a FUNCTION expression.
OPERATORS
In a FUNCTION expression, Adams allows any of the operators **, *, /, +, and -. Adams executes
these operators according to the following precedence rules:
From greatest to the least, the operators have the following priorities. ** then * / then + -. In other
words, Adams executes exponentiation (**) before all other operators and executes multiplication
(*) and division (/) before addition (+) and subtraction (-).
When a statement has operators of the same priority, Adams executes them from left to right.
You can use parentheses to alter the precedence of operators. For example, in the equation,
FUNCTION = (1-TIME)*30/PI
Adams subtracts TIME from one before it performs multiplication and division.
SYSTEM CONSTANTS
You can include the following system constants in a FUNCTION expression:
• PI Value of pi (to eighteen significant digits)
• DTOR Value of pi/180 for converting degrees to radians
• RTOD Value of 180/pi for converting radians to degrees
The following example of a FUNCTION with a system constant multiplies the system constant PI
by the displacement of marker 10 with respect to marker 14:
FUNCTION = PI*DM(10,14)
BLANKS
A FUNCTION expression can contain any number of blank spaces. Five consecutive blank spaces in
an expression do not terminate input of the expression (by indicating that what follows is a comment)
as they do in an Adams statement. However, you should remember these two restrictions.
• You cannot put a blank space in the middle of a number.
• Adams does not accept a blank space between a function and its left bracket. (This is true for
both, FORTRAN-77 functions and Adams functions.)
CONTINUATION COMMAS
You can use a comma to continue FUNCTION expressions. You can break the expression anywhere
except in the middle of a number, in the middle of a name, or between a function and its left bracket.
Put a continuation comma in column one of the following line before the rest of the expression. If
you break the expression at a comma that is part of the expression, you must use both, the expression
comma and the continuation comma. You may use more than one continuation comma to extend
an expression over several lines.
FUNCTION BUILDER
76 Adams View Commands
force modify direct general_force
The FUNCTIONS button at the right side of the Adams View text editor provides a means for
constructing an Adams function string. These functions are briefly described below. Upon picking
the FUNCTIONS button, you will be presented with the list of available functions in the "selection
window". After you select the desired function, a panel will appear with fields representing the various
parameters for the function. You will have full access to on-line help with this panel just like you have
with regular panels. After you have completed the panel and selected the DONE button on the panel,
the function string will be constructed and inserted at the current text cursor location in the text edit
window.
SYSTEM VARIABLES
A FUNCTION expression may access the current value of a system variable and use the value in
computations. These values are accessed through a collection of functions. The accessible system
variables include the following: Time, Mode, Displacements (Translational and Rotational),
Velocities (Translational and Rotational), Accelerations (Translational and Rotational), Forces
(Translational and Rotational), and User-defined variables. Invoke the text edit window and pick the
FUNCTIONS button to get a list of functions that can be accessed.
In general, you use a function character string (such as DM, VX, or FZ) and a list of values (e.g. i1,
i2, and i3) to access a system variable in an expression. For example, the value i1 may be the name of
the marker for which you want to measure a quantity (such as displacement, velocity, acceleration, or
force), i2 is the name of the marker with respect to which you want to measure the quantity, and i3
is the name of the marker you want to use to resolve the components of the quantity. If you do not
specify marker i3, Adams computes the result in the ground reference frame.
ARITHMETIC IFS
Arithmetic IFs allow you to conditionally define FUNCTION. The format for arithmetic IFs
follows.
IF (expression 1: expression 2, expression 3, expression 4)
Adams evaluates expression 1. If expression 1 is less than zero, the arithmetic IF equals expression 2;
if expression 1 equals zero, the arithmetic IF equals expression 3; and if expression 1 is greater than
zero, the arithmetic IF equals expression 4.
A FUNCTION expression with an arithmetic IF and its four expressions is as given below:
FUNCTION = 6 * IF(VR(10,31): 0 , 0 , 100)
If the radial velocity between markers 10 and 31 is less than or equal to zero, the value of the
FUNCTION expression is zero; but if the radial velocity between markers 10 and 31 is greater than
zero, the value of the FUNCTION expression is six hundred.
In some ways, you may treat IF as a variable. For example, you can place it anywhere in the
expression. In addition, you can nest arithmetic IFs nine levels deep.
FORTRAN-77 FUNCTIONS
You can use the FORTRAN functions ABS, ATAN, ATAN2, COS, EXP, LOG, LOG10, MIN,
MAX, SIN, SQRT, and TAN in your expression. For more information about these functions, see
a FORTRAN reference manual. Invoke the text edit window and pick the FUNCTIONS button to
get a list of functions that can be accessed.
Adams FUNCTIONS
force 77
force modify direct general_force
In general, an Adams function evaluates a mathematical equation and returns a value to your
FUNCTION expression. The following table lists all the Adams functions and their purposes.
Invoke the text edit window and pick the FUNCTIONS button to make a list of functions that can
be accessed.
Names Purposes
AKISPL Accesses the data in a SPLINE statement and uses the Akima cubic method to fit
a cubic curve (a spline) to the data.
BISTOP Evaluates a force restricting displacement of a part in two opposite directions
CHEBY Evaluates a Chebyshev polynomial
CUBSPL Accesses the data in a SPLINE statement and uses the traditional cubic method to
fit a cubic curve (a spline) to the data.
FORCOS Evaluates a Fourier cosine series
FORSIN Evaluates a Fourier sine series
HAVSIN Evaluates a haversine function
IMPACT Evaluates a force restricting displacement of a part in one direction.
POLY Evaluates a polynomial
SHF Evaluates a simple harmonic function
STEP Approximates a step function with a cubic polynomial
Cautions:
1. The user must ensure that the reference_marker is fixed on a part (that is, not a "floating" marker).
The reference_marker may be the same as the I marker and may be on any part in the model.
Tips:
1. You use the General force name parameter to identify the existing torque _vector to affect with this
command.
2. You may use the new general force name later to refer to this general_force. Adams View will not
allow you to have two general_forces with the same full name, so you must provide a unique name.
3. Adams applies x_torque_function parallel to the x axis of the reference marker in the sense of the
right-hand rule, i.e., a positive torque causes a counterclockwise rotation if you are looking along the
axis from positive to negative.
4. Adams applies this y_torque_function parallel to the y axis of the reference marker in the sense of the
right-hand rule, i.e., a positive torque causes a counterclockwise rotation if you are looking along the
axis from positive to negative.
5. Adams applies this z_torque_function parallel to the z axis of the reference marker in the sense of the
right-hand rule, i.e., a positive torque causes a counterclockwise rotation if you are looking along the
axis from positive to negative.
78 Adams View Commands
force modify direct single_component_force
Format:
Force modify direct single_component_force
single_component_force_name= an existing single-component force
new_single_component_force_name= a new single-component force
Adams_id= geom_id
comments= string
type_of_freedom= translational/rotational
action_only= on/off
function= function
user_function= real
routine= string
error= real
i_marker_name= existing marker
j_marker_name= existing marker
Description:
Extended Definition:
1. A single-component force applies a force or a torque to two parts. You specify a marker on each part
for force or torque application. You may define the magnitude of the force as a function of any
combination of displacements, velocities, other applied forces, user-defined variables, and time. The
force applied can be action-reaction forces or action-only forces.
For translational action-reaction forces, Adams applies the user-defined force along the line
connecting the I and the J markers. The force exerted on I is directed from J toward I, while the force
exerted on J is directed from I toward J.
For translational action-only forces, Adams applies the force on the I marker only. There is no
reaction on the J marker. The force on the I marker is directed along the z axis of the J marker.
For rotational action-reaction forces, Adams applies the torque on the I marker about the z axes of
the J marker. Furthermore, Adams assumes that the z axes of the I and the J markers are constrained
to always be parallel for this type of single-component force.
For rotational action-only forces, Adams applies the torque on the I marker only. There is no reaction
on the J marker. The torque on the I marker is directed along the z axis of the J marker.
You write a FUNCTION expression or a user-written subroutine (an SFOSUB) to define the
constitutive equation for the force applied at the I marker. Adams evaluates the reaction forces at the
J marker.
2. You may identify a single-component force by typing its name or by picking it from the screen.
If the single-component force is not visible on the screen, you must type the name. You may also find
it convenient to type the name even if the single-component force is displayed.
80 Adams View Commands
force modify direct single_component_force
If you created the single-component force by reading an Adams data set or graphics file, the single-
component force name is the letters SFO followed by the Adams data set single-component force ID
number. The name of Adams SFORCE/101 is SFO101, for example. If you created the single-
component force during preprocessing, you gave it a name at that time.
If a single-component force is available by default, you may identify it by entering its name only. If
it is not, you must enter its full name. To identify a single-component force under another model, for
instance, you may need to enter the model name as well. For example, you may specify single-
component force 'spring' from the model 'suspension' by entering ".suspension.spring". If you type
a "?", Adams View will list the single-component forces available by default.
You must separate multiple single-component force names by commas.
If the single-component force is visible in one of your views, you may identify it by picking on any of
the graphics associated with it.
You need not separate multiple single-component force picks by commas.
3. Adams View will not allow you to have two single_component_forces with the same full name, so
you must provide a unique name.
Normally, entity names are composed of alphabetic, numeric, or '_' (underscore) characters, and start
with an alphabetic or '_' character. They may be any length.
By enclosing the name in double quotes, you may use other printable characters, or start the name
with a numeral. If a name contains characters, or starts with a numeral, you must always quote the
name when entering it.
Note that you can specify the parentage of an entity (e.g. what part "owns" a marker or a geometry
element) when you CREATE it by changing the name. If you enter just the entity name, then the
default parent will be assigned by Adams View. If you type in the full name, then you may over ride
the default parent. In most cases, when creating an entity, Adams View will provide a default name.
The default name that Adams View provides will specify the parentage that it has assumed. You may,
or course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
4. When you use the FILE Adams_DATA_SET WRITE command, Adams View writes an Adams data
file for your model. Adams requires that each modeling element be identified by a unique integer
identifier. If you use this parameter to specify a non-zero identifier, Adams View will use it in the
corresponding statement in the Adams data file.
You may also enter zero as an identifier, either explicitly or by default. The next time you write an
Adams file, Adams View will replace the zero with a unique, internally-generated identifier. Adams
View will permanently store this identifier with the element just as if you had entered it yourself.
Normally, you would let all identifiers default to zero, and Adams View would generate the identifiers
for you. You are never required to enter a non-zero identifier. You only need to specify it if, for some
reason, you wish to control the Adams file output.
force 81
force modify direct single_component_force
5. For an action-reaction force, Adams applies a force between the I and J markers. For an action-only
force, Adams applies a force on the I marker directed by the Z axis of the J marker, but does not apply
a reaction force at the J marker.
6. To enter a function expression you enter a series of quoted strings.
The easiest way to enter a function expression in Adams View is to use the text editor in combination
with the function builder. To invoke the text editor for entering a function expression, highlight the
function field and then either pick the "EDIT" button at the top of the panel or type a ^t (control-
t). The Adams View "function builder" is discussed below.
The syntactical correctness of a function expression can be investigated by using the "VERIFY"
button at the upper right of the text editor. If there is a syntax error, a message is printed and the
cursor is put near the problem. Proper unit consistency is not checked during function expression
verification.
The remainder of this explanation will cover the components of FUNCTION expressions as
summarized in the following table.
Components Examples
Numbers FUNCTION = 1E2 + 3.4 + 6
Operators FUNCTION = 3*6/2 + 3 - 2**2
System constants FUNCTION = PI + 20
System variables FUNCTION = AX(1040, 2010)
Arithmetic IFs FUNCTION = IF(DX(3, 5): -1, 0, 1)
FORTRAN-77 functions FUNCTION = ABS(NUM) - 6
Blanks FUNCTION = 1 + 2
Continuation commas FUNCTION = 1 + 1 + 1 + 1 + 1 + 1, + 1 + 1 + 1 + 1 + 1 + 1 + 1
Adams functions FUNCTION = POLY(0, 0, 6.28)
NUMBERS
FUNCTION expressions can include integers, real numbers, and exponents. In other words, any
numbers that are legal in Adams are legal in a FUNCTION expression.
OPERATORS
In a FUNCTION expression, Adams allows any of the operators **, *, /, +, and -. Adams executes
these operators according to the following precedence rules:
• From greatest to least, the operators have the following priorities. ** then * / then + -. In other
words, Adams executes exponentiation (**) before all other operators and executes multiplication
(*) and division (/) before addition (+) and subtraction (-).
• When a statement has operators of the same priority, Adams executes them from left to right.
• You can use parentheses to alter the precedence of operators.
82 Adams View Commands
force modify direct single_component_force
The following example of a FUNCTION with a system constant multiplies the system
constant PI by the displacement of marker 10 with respect to marker 14:
FUNCTION = PI*DM(10,14)
BLANKS
A FUNCTION expression can contain any number of blank spaces. Five consecutive blank spaces in
an expression do not terminate input of the expression (by indicating that what follows is a comment)
as they do in an Adams statement. However, you should remember these two restrictions.
• You cannot put a blank space in the middle of a number.
• Adams does not accept a blank space between a function and its left bracket. (This is true for both
FORTRAN-77 functions and Adams functions.)
CONTINUATION COMMAS
You can use a comma to continue FUNCTION expressions. You can break the expression anywhere
except in the middle of a number, in the middle of a name, or between a function and its left bracket.
Put a continuation comma in column one of the following line before the rest of the expression. If
you break the expression at a comma that is part of the expression, you must use both the expression
comma and the continuation comma. You may use more than one continuation comma to extend an
expression over several lines.
FUNCTION BUILDER
The FUNCTIONS button at the right side of the Adams View text editor provides a means of
constructing an Adams function string. These functions are briefly described below. Upon picking
the FUNCTIONS button, you will be presented with the list of available functions in the "selection
window". After you select the desired function, a panel will appear with fields representing the
various parameters for the function. You will have full access to on-line help with this panel just like
you have with regular panels. After you have completed the panel and selected the DONE button on
the panel, the function string will be constructed and inserted at the current text cursor location in
the text edit window.
SYSTEM VARIABLES
force 83
force modify direct single_component_force
A FUNCTION expression may access the current value of a system variable and use the value in
computations. These values are access through a collection of functions. The accessible system
variables include the following: Time, Mode, Displacements (Translational and Rotational),
Velocities (Translational and Rotational), Accelerations (Translational and Rotational), Forces
(Translational and Rotational), and User-defined variables. Invoke the text edit window and pick the
FUNCTIONS button to ge a list of functions that can be accessed.
In general, you use a function character string (such as DM, VX, or FZ) and a list of values (e.g. i1,
i2, and i3) to access a system variable in an expression. For example, the value i1 may be the name of
the marker for which you want to measure a quantity (such as displacement, velocity, acceleration, or
force), i2 is the name of the marker with respect to which you want to measure the quantity, and i3
is the name of the marker you want to use to resolve the components of the quantity. If you do not
specify marker i3, Adams computes the result in the ground reference frame.
ARITHMETIC IFS
Arithmetic IFs allow you to conditionally define FUNCTION. The format for arithmetic IFs
follows.
IF (expression 1: expression 2, expression 3, expression 4)
Adams evaluates expression 1. If expression 1 is less than zero, the arithmetic IF equals
expression 2; if expression 1 equals zero, the arithmetic IF equals expression 3; and if
expression 1 is greater than zero, the arithmetic IF equals expression 4.
A FUNCTION expression with an arithmetic IF and its four expressions is below.
FUNCTION = 6 * IF(VR(10,31): 0 , 0 , 100)
If the radial velocity between markers 10 and 31 is less than or equal to zero, the value of the
FUNCTION expression is zero; but if the radial velocity between markers 10 and 31 is greater than
zero, the value of the FUNCTION expression is six hundred.
In some ways, you may treat IF as a variable. For example, you can place it anywhere in the
expression. In addition, you can nest arithmetic IFs nine levels deep.
FORTRAN-77 FUNCTIONS
You can use the FORTRAN functions ABS, ATAN, ATAN2, COS, EXP, LOG, LOG10, MIN,
MAX, SIN, SQRT, and TAN in your expression. For more information about these functions, see
a FORTRAN reference manual. Invoke the text edit window and pick the FUNCTIONS button to
ge a list of functions that can be accessed.
Adams FUNCTIONS
In general, an Adams function evaluates a mathematical equation and returns a value to your
FUNCTION expression. The following table lists all the Adams functions and their purposes.
Invoke the text edit window and pick the FUNCTIONS button to be a list of functions that can be
accessed.
84 Adams View Commands
force modify direct_torque_vector
Names Purposes
AKISPL Accesses the data in a SPLINE statement and uses the Akima cubic method to fit a cubic
curve(a spline) to the data.
BISTOP Evaluates a force restricting displacement of a part in two opposite directions.
CHEBY Evaluates a Chebyshev polynomial
CUBSPL Accesses the data in a SPLINE statement and uses the traditional cubic method to fit a
cubic curve (a spline) to the data.
FORCO Evaluates a Fourier cosine series
S
FORSIN Evaluates a Fourier sine series
HAVSIN Evaluates a haversine function.
IMPAC Evaluates a force restricting displacement of a part in one direction.
T
POLY Evaluates a polynomial.
SHF Evaluates a simple harmonic function.
STEP Approximates a step function with a cubic polynomial.
Tips:
1. ROTATIONAL designates a rotational force, that is, a torque.
2. TRANSLATIONAL designates a translational force.
3. You use the single component force parameter to identify the existing single_component_force to
affect with this command.
4. You may use the new single component force name later to refer to this single_component_force.
Format:
force modify direct_torque_vector
torque_vector_name= existing vtorque
new_torque_vector_name= new vtorque
Adams_id= geom._id
comments= string
i_marker_name= existing marker
force 85
force modify direct_torque_vector
Description:
Extended Definition:
1. The TORQUE_VECTOR is a rotational force (i.e, a torque) that consists of three orthogonal
components. The direction of the torque action is determined by the resultant vector formed by the
three component torques defined by the user along the "reference marker" axes. The reaction is equal
and opposite to the action. The user may define the TORQUE_VECTOR components in Adams
View through user-specified function expressions or by specifying up to 30 user-defined parameters
that are passed to a user-written subroutine (a "VTOSUB") the user links with Adams.
The TORQUE_VECTOR corresponds to the Adams VTORQUE statement.
The TORQUE_VECTOR creates an Adams rotational force element (i.e., torque) that applies the
forces between two parts of the system. The element applies an action to the part to which the I
marker belongs and a corresponding reaction to the part to which the "floating" J marker belongs.
This "floating marker" is automatically created by Adams View and is positioned to be coincident
with the I marker. Subsequently, the TORQUE_VECTOR establishes the position of the "floating"
J marker. As the system moves, Adams moves the "floating" J marker on its part to keep the "floating"
J and I markers superimposed. Thus, Adams applies the reaction torque to the "floating" J markers
part.
The components of the torque depends on expressions or subroutines that the user supplies. Its value
will be the resultant (i.e., the square root of the sum of the squares) of the three mutually orthogonal
torque components.
2. You may identify a torque vector by typing its name or by picking it from the screen.
If the torque vector is not visible on the screen, you must type the name. You may also find it
convenient to type the name even if the torque vector is displayed.
force 87
force modify direct_torque_vector
If you created the torque vector by reading an Adams data set or graphics file, the torque vector name
is the letters VTO followed by the Adams data set torque vector ID number. The name of Adams
VTORQUE/101 is VTO101, for example. If you created the torque vector during preprocessing,
you gave it a name at that time.
If a torque vector is available by default, you may identify it by entering its name only. If it is not,
you must enter its full name.To identify a torque vector under another model, for instance, you may
need to enter the model name as well. For example, you may specify torque vector 'spring' from the
model 'suspension' by entering ".suspension.spring". If you type a "?", Adams View will list the torque
vector available by default.
You must separate multiple torque vector names by commas.
If the torque vector is visible in one of your views, you may identify it by picking on any of the
graphics associated with it.
You need not separate multiple torque vector picks by commas.
3. Normally, entity names are composed of alphabetic, numeric, or '_' (underscore) characters, and start
with an alphabetic or '_' character. They may be any length.
By enclosing the name in double quotes, you may use other printable characters, or start the name
with a numeral. If a name contains characters, or starts with a numeral, you must always quote the
name when entering it.
Note that you can specify the parentage of an entity (e.g. what part "owns" a marker or a geometry
element) when you CREATE it by changing the name. If you enter just the entity name, then the
default parent will be assigned by Adams View. If you type in the full name, then you may over ride
the default parent. In most cases, when creating an entity, Adams View will provide a default name.
The default name that Adams View provides will specify the parentage that it has assumed. You may,
or course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
4. When you use the FILE Adams_DATA_SET WRITE command, Adams View writes an Adams data
file for your model. Adams requires that each modeling element be identified by a unique integer
identifier. If you use this parameter to specify a non-zero identifier, Adams View will use it in the
corresponding statement in the Adams data file.
You may also enter zero as an identifier, either explicitly or by default. The next time you write an
Adams file, Adams View will replace the zero with a unique, internally-generated identifier. Adams
View will permanently store this identifier with the element just as if you had entered it yourself.
Normally, you would let all identifiers default to zero, and Adams View would generate the identifiers
for you. You are never required to enter a non-zero identifier. You only need to specify it if, for some
reason, you wish to control the Adams file output.
88 Adams View Commands
force modify direct_torque_vector
5. The user must ensure that the I marker is a fixed marker and on a different part than the part specified
in the J_PART_NAME parameter. Because the I marker is a fixed marker, and the "floating" marker
will move around on the j_part to remain coincident with the I marker, Adams always applies the
force action at a fixed point on the part containing the I marker. The reaction force is applied to the
j_part at a point coincident with the I marker.
The "floating" marker is automatically created by Adams View on the part specified in the
J_PART_NAME parameter.
6. Adams subsequently applies the reaction forces and/or torques to this "floating" J marker. The user
must ensure that the j_part is a different part than the part containing the I marker. Adams will move
the "floating" J marker around on the j_part to keep it superimposed on the I marker, meaning the
point of application of the reaction force may move around on the j_part. Reaction forces are not
calculated when the "floating" J marker is on the ground part.
7. You may identify a marker by typing its name or by picking it from the screen.
If the marker is not visible on the screen, you must type the name. You may also find it convenient
to type the name even if the marker is displayed.
If you created the marker by reading an Adams data set or graphics file, the marker name is the letters
MAR followed by the Adams data set marker ID number. The name of Adams MARKER/101 is
MAR101, for example. If you created the marker during preprocessing, you gave it a name at that
time.
If a marker is available by default, you may identify it by entering its name only. If it is not, you must
enter its full name. To identify a marker under a different part, for instance, you may need to enter
the model and part names as well. For example, you may specify marker 'pivot' from model 'links',
part 'lower_arm' by entering ".links.lower_arm.pivot". If you type a "?", Adams View will list the
markers available by default.
You must separate multiple marker names by commas.
If the marker is visible in one of your views, you may identify it by picking on it.
You need not separate multiple marker picks by commas.
8. To enter a function expression you enter a series of quoted strings.
The easiest way to enter a function expression in Adams View is to use the text editor in combination
with the function builder. To invoke the text editor for entering a function expression, highlight the
function field and then either pick the "EDIT" button at the top of the panel or type a ^t (control-
t). The Adams View "function builder" is discussed below.
The syntactical correctness of a function expression can be investigated by using the "VERIFY"
button at the upper right of the text editor. If there is a syntax error, a message is printed and the
cursor is put near the problem. Proper unit consistency is not checked during function expression
verification.
The remainder of this explanation will cover the components of FUNCTION expressions as
summarized in the following table.
force 89
force modify direct_torque_vector
Components Examples
Numbers FUNCTION = 1E2 + 3.4 + 6
Operators FUNCTION = 3*6/2 + 3 - 2**2
System Constants FUNCTION = PI + 20
System Variables FUNCTION = AX(1040, 2010)
Arithmetic Ifs FUNCTION = IF(DX(3, 5): -1, 0, 1)
Fortran-77 Functions FUNCTION = ABS(NUM) - 6
Blanks FUNCTION = 1 + 2
Continuation Commas FUNCTION = 1 + 1 + 1 + 1 + 1 + 1 , + 1 + 1 + 1 + 1 + 1 + 1 + 1
Adams Functions FUNCTION = POLY(0, 0, 6.28)
NUMBERS
FUNCTION expressions can include integers, real numbers, and exponents. In other words, any
numbers that are legal in Adams are legal in a FUNCTION expression.
OPERATORS
In a FUNCTION expression, Adams allows any of the operators **, *, /, +, and -. Adams executes
these operators according to the following precedence rules:
From greatest to the least, the operators have the following priorities. ** then * / then + -. In other
words, Adams executes exponentiation (**) before all other operators and executes multiplication
(*) and division (/) before addition (+) and subtraction (-).
When a statement has operators of the same priority, Adams executes them from left to right.
You can use parentheses to alter the precedence of operators. For example, in the equation,
FUNCTION = (1-TIME)*30/PI
Adams subtracts TIME from one before it performs multiplication and division.
SYSTEM CONSTANTS
You can include the following system constants in a FUNCTION expression:
PI Value of pi (to eighteen significant digits)
DTOR Value of pi/180 for converting degrees to radians
RTOD Value of 180/pi for converting radians to degrees
The following example of a FUNCTION with a system constant multiplies the system constant PI
by the displacement of marker 10 with respect to marker 14:
FUNCTION = PI*DM(10,14)
BLANKS
A FUNCTION expression can contain any number of blank spaces. Five consecutive blank spaces in
an expression do not terminate input of the expression (by indicating that what follows is a comment)
as they do in an Adams statement. However, you should remember these two restrictions.
90 Adams View Commands
force modify direct_torque_vector
If the radial velocity between markers 10 and 31 is less than or equal to zero, the value of the
FUNCTION expression is zero; but if the radial velocity between markers 10 and 31 is greater than
zero, the value of the FUNCTION expression is six hundred.
In some ways, you may treat IF as a variable. For example, you can place it anywhere in the
expression. In addition, you can nest arithmetic IFs nine levels deep.
FORTRAN-77 FUNCTIONS
You can use the FORTRAN functions ABS, ATAN, ATAN2, COS, EXP, LOG, LOG10, MIN,
MAX, SIN, SQRT, and TAN in your expression. For more information about these functions, see
a FORTRAN reference manual. Invoke the text edit window and pick the FUNCTIONS button to
get a list of functions that can be accessed.
Adams FUNCTIONS
In general, an Adams function evaluates a mathematical equation and returns a value to your
FUNCTION expression. The following table lists all the Adams functions and their purposes.
Invoke the text edit window and pick the FUNCTIONS button to make a list of functions that can
be accessed.
Names Purposes
AKISPL Accesses the data in a SPLINE statement and uses the Akima cubic method to fit
a cubic curve(a spline) to the data.
BISTOP Evaluates a force restricting displacement of a part in two opposite directions
CHEBY Evaluates a Chebyshev polynomial
CUBSPL Accesses the data in a SPLINE statement and uses the traditional cubic method
to fit a cubic curve (a spline) to the data.
FORCOS Evaluates a Fourier cosine series
FORSIN Evaluates a Fourier sine series
HAVSIN Evaluates a haversine function
IMPACT Evaluates a force restricting displacement of a part in one direction.
POLY Evaluates a polynomial
SHF Evaluates a simple harmonic function
STEP Approximates a step function with a cubic polynomial
Cautions:
You must ensure that the reference_marker is fixed on a part (i.e. not a "floating" marker). The
reference_marker may be the same as the I marker and may be on any part in the model.
Tips:
1. You use the torque vector name parameter to identify the existing torque _vector to affect with this
command.
92 Adams View Commands
force modify element_like beam
2. You may use the new torque vector name later to refer to this torque_vector. Adams View will not
allow you to have two torque_vectors with the same full name, so you must provide a unique name.
Format:
force modify element_like beam
beam_name = beam1
new_beam_name = beam2
Adams_id = integer
ixx= real number
iyy = real number
izz= real number
y_shear_area_ratio= real number
z_shear_area_ratio= real number
youngs_modulus = real number
shear_modulus = real number
length = real number
area_of_cross_section = real number
damping_ratio = real number
matrix_of_damping_terms = a 6x6 matrix
i_marker_name = existing_marker_name
j_marker_name = existing_marker_name
Example:
force modify element_like beam &
beam_name = beam1 &
new_beam_name = beam2 &
Adams_id = 1 &
ixx = 4 &
iyy = 2 &
izz = 3 &
y_shear_area_ratio = 0.9 &
z_shear_area_ratio = 0.8 &
force 93
force modify element_like beam
Description:
Extended Definition:
1. The beam, which is massless and has a uniform cross section, is modeled as alinear translational and
a linear rotational action-reaction force between twomarkers. The forces the beam produces are
linearly dependent on the relativedisplacements and the relative velocities of the markers at its
endpoints. The xaxisof the J marker defines the centroidal axis of the beam. The y-axis and the zaxisof
the J marker are the principal axes of the cross section. They areperpendicular to the x-axis and to each
other. When the beam is in an undeflectedposition, the I marker has the same angular orientation as
the J marker, and the Imarker lies on the x-axis of the J marker.
force 95
force modify element_like beam
The following constitutive equations define how Adams uses the data you input for a beam to apply
a force and a torque to the I marker depending on the displacement and velocity of the I marker
relative to the J marker. Adams appliesa force of equal magnitude and opposite direction to the J
marker.
[Fx] [K11 0 0 0 0 0 ] [x]
[Fy] [0 K22 0 0 0 K26] [y]
[Fz] = - [0 0 K33 0 K35 0 ] [z]
[Tx] [0 0 0 K44 0 0 ] [a]
[Ty] [0 0 K35 0 K55 0 ] [b]
[Tz] [0 K26 0 0 0 K66] [c]
[C11 C21 C31 C41 C51 C61] [Vx]
[C21 C22 C32 C42 C52 C62] [Vy]
- [C31 C32 C33 C43 C53 C63] [Vz]
[C41 C42 C43 C44 C54 C64] [Wx]
[C51 C52 C53 C54 C55 C65] [Wy]
[C61 C62 C63 C64 C65 C66] [Wz]
Note that both matrices, Cij and Kij, are symmetric, that is, Cij=Cji and Kij=Kji. You define the
twenty-one unique damping coefficients when you write the BEAMstatement. Adams defines the
Kij's in the following way:
K11 = E A / L
K22 = 12 E Izz /[L**3 (1+Py)]
K26 = -6 E Izz /[L**2 (1+Py)]
K33 = 12 E Iyy /[L**3 (1+Pz)]
K35 = 6 E Iyy /[L**2 (1+Pz)]
K44 = G Ixx / L
K55 = (4+Pz) E Iyy /[L (1+Pz)]
K66 = (4+Py) E Izz /[L (1+Py)]
where Py = 12 E Izz ASY/(G A L**2) and
Pz = 12 E Iyy ASZ/(G A L**2)
2. The BEAM statement implements a force in the same way the FIELD statementdoes, but the BEAM
statement requires you to input only the values of the beam'sphysical properties, which Adams uses
to calculate the matrix entries. For a forcerequest, the forces returned are the forces the J marker exerts
upon the I marker.
3. The constitutive equations shown above define the forces and moments exerted on the I marker.
These forces and moments are due to relative displacements andvelocities of the I marker with respect
to the J marker. Because of force transfer,the reaction moments at the J marker are usually not the
same as the appliedmoments at the I marker.
4. Normally, entity names are composed of alphabetic, numeric, or '_' (underscore) characters, and start
with an alphabetic or '_' character. They may be any length.
By enclosing the name in double quotes, you may use other printable characters, or start the name
with a numeral. If a name contains characters, or starts with a numeral, you must always quote the
name when entering it. Note that you can specify the parentage of an entity (e.g. what part "owns" a
marker or a geometry element) when you CREATE it by changing the name. If you enter just the
entity name, then the default parent will be assigned by Adams View. If you type in the full name,
then you may over ride the default parent. In most cases, when creatingan entity, Adams View will
provide a default name. The default name that Adams View provides will specify the parentage that
it has assumed. You may, or course, delete this name and use your own. The form of a full name is:
96 Adams View Commands
force modify element_like beam
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
5. Normally, entity names are composed of alphabetic, numeric, or '_' (underscore) characters, and start
with an alphabetic or '_' character. They may be any length.
By enclosing the name in double quotes, you may use other printable characters, or start the name
with a numeral. If a name contains characters, or starts with a numeral, you must always quote the
name when entering it. Note that you can specify the parentage of an entity (e.g. what part "owns" a
marker or a geometry element) when you CREATE it by changing the name. If you enter just the
entity name, then the default parent will be assigned by Adams View. If you type in the full name,
then you may over ride the default parent. In most cases, when creatingan entity, Adams View will
provide a default name. The default name that Adams View provides will specify the parentage that
it has assumed. You may, or course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
6. Specifies an integer used to identify this element in the Adams data file. When you use the FILE
Adams_DATA_SET WRITE command, Adams View writes an Adams data file for your model.
Adams requires that each modeling element be identified by a unique integer identifier. If you use
this parameter to specify a non-zero identifier,Adams View will use it in the corresponding statement
in the Adams data file. You may also enter zero as an identifier, either explicitly or by default. The
next time you write an Adams file, Adams View will replace the zero with a unique,
internallygenerated identifier. Adams View will permanently store this identifier with the element just
as if you had entered it yourself. Normally, you would let all identifiers default to zero, and Adams
View would generate the identifiers for you. You are never required to enter a non-zero identifier. You
only need to specify it if, for some reason, you wish to control the Adams file output.
7. When an Adams Solver data file (.adm) is read into Adams View, all comments associated with a
statement (from the end of the previous statement through the end of the current statement) are
stored with the object. Comments in the data file can be associated with model. These comments
must follow the title statement and be followed by the comment 'END OF MODEL
COMMENTS'. This string must be uppercase. When an Adams Solver data file is written, the
comments for an object are written before the statement corresponding to the object.
8. The y_shear_area_ratio is a correction factor for shear deflection in the y direction for Timeshenko
beams. (Oden, J.T., and E. Ripperger. Mechanics of Elastic Structures, Second Edition, p. 351. New
York: McGraw-Hill, 1981). This ratio is the area of the beam cross section divided by the area of the
beam cross section that resists y-direction shear forces. If you want to neglect the deflection due toy-
direction shear, set the ratio to zero.
9. z_shear_area_ratio is the correction factor for shear deflection in the z direction for Timeshenko
beams. (Oden, J.T., and E. Ripperger. Mechanics of Elastic Structures, Second Edition, p. 351. New
York: McGraw-Hill, 1981). This ratio is the area of the beam cross section divided by the area of the
beam cross section that resists z-direction shear forces. If you want to neglect the deflection due to
directionshear, set the ratio to zero.
force 97
force modify element_like bushing
Cautions:
Adams View will not allow you to have two beams with the same full name, so you must provide a
unique name.
Tips:
If you type a "?", Adams View will list the gravity fields available by default.
Format:
force modify element_like bushing
bushing_name = existing bushing name
new_bushing_name = new bushing name
Adams_id = integer
comments = string
damping= damping coeff matrix
stiffness = stiffness coeff matrix
tdamping = tdamping coeff matrix
tstiffness = tstiffness coeff matrix
force_preload = force preload coeff matrix
torque_preload = toruqe preload coeff matrix
i_marker_name = existing marker name
j_marker_name = existing marker name
98 Adams View Commands
force modify element_like bushing
Example:
force modify element_like bushing &
bushing_name = BUSHING__1 &
new_bushing_name = BUSHING__2 &
Adams_id = 1 &
comments = comment &
damping = 0.1 , 0.2, 0.1 &
stiffness = 0.1, 0.2, 0.1 &
tdamping = 0.1 , 0.2 , 0.1 &
tstiffness = 0.1 , 0.2 , 0.1 &
force_preload = 0.1 , 0.2 , 0.1 &
torque_preload = 0.1 , 0.2 , 0.2 &
i_marker_name = marker_1 &
j_marker_name = marker_2
Description:
Extended Definition:
1. The bushing is a massless force with linear stiffness and damping properties. A bushing applies a force
and a torque to two parts. You specify a marker on each part for force or torque application. Each
force consists of three components in the coordinate system of the J marker, one in the x-axis
direction, one in the y-axis direction, and one in the z-axis direction. Likewise each torque consists of
three components in the coordinate system of the J marker, one about the x-axis, one about the y-
axis, and one about the z-axis. The magnitude of the force is linearly dependent upon the relative
displacement and the relative velocity of the two markers. The magnitude of the torque is dependent
upon the relative angle of rotation and the relative rotational velocity of the parts containing the
specified markers.
2. A bushing has the same constitutive relation forms as a field. The primary difference between the two
forces is that certain coefficients (Kij and Cij, where i is not equal to j) are zero for the bushing. You
define only the diagonal coefficients (Kii and Cii) when you write the bushing. The following
constitutive equations define how Adams uses the data you input for a bushing to apply a force and
a torque to the I marker depending on the displacement and velocity of the I marker relative to the J
marker. Adams applies a force of equal magnitude and opposite direction to the J marker.
[Fx] [K11 0 0 0 0 0 ] [x]
[Fy] [0 K22 0 0 0 0 ] [y]
[Fz] = - [0 0 K33 0 0 0 ] [z]
[Tx] [0 0 0 K44 0 0 ] [a]
[Ty] [0 0 0 0 K55 0 ] [b]
[Tz] [0 0 0 0 0 K66] [c]
[C11 0 0 0 0 0 ] [Vx] [F1]
[0 C22 0 0 0 0 ] [Vy] [F2]
- [0 0 C33 0 0 0 ] [Vz] + [F3]
[0 0 0 C44 0 0 ] [Wx] [T1]
[0 0 0 0 C55 0 ] [Wy] [T2]
[0 0 0 0 0 C66] [Wz] [T3]
100 Adams View Commands
force modify element_like bushing
Fx, Fy, and Fz are the measure numbers of the translational force components parallel to the axes of
the Cartesian coordinate system of the J marker.
The terms x, y, and z are the translational displacements of the I marker with respect to the J marker
measured in the Cartesian coordinate system of the J marker. The terms Vx, Vy, and Vz are the time
derivatives of x, y, and z, respectively. The terms F1, F1, and F3 represent the measure numbers of
any constant force components parallel to the axes of the Cartesian coordinate system of the J marker.
3. . Tx, Ty, and Tz are the rotational force components parallel to the axes of the Cartesian coordinate
system of the J marker. The terms a, b, and c are the rotational displacements of the I marker about
the x-axis, the y-axis, and the zaxis, respectively, of the J marker. The terms Wx, Wy, and Wz are the
time derivatives of a, b, and c, respectively, in the J marker reference frame. The termsT1, T2, and
T3 are the measure numbers of any constant torque components acting parallel to the axes of the
Cartesian coordinate system of the J marker.
For the rotational constitutive equations (K1, K2, and K3), to be accurate, at least two of the rotations
(a, b, c) must be small. Therefore, the bushing force calculations may not be accurate unless two of
the three values remain small (that is, smaller than 10 degrees). It does not matter which rotation is
largest.
4. You may use this name later to refer to this bushing. Adams View will not allow you to have two
bushings with the same full name, so you must provide a unique name. Normally, entity names are
composed of alphabetic, numeric, or '_' (underscore) characters, and start with an alphabetic or '_'
character. They may be any length. By enclosing the name in double quotes, you may use other
printable characters, or start the name with a numeral. If a name contains characters, or starts with a
numeral, you must always quote the name when entering it. Note that you can specify the parentage
of an entity (e.g. what part "owns" a marker or a geometry element) when you CREATE it by
changing the name. If you enter just the entity name, then the default parent will be assigned by
Adams View. If you type in the full name, then you may over ride the default parent. In most cases,
when creating an entity, Adams View will provide a default name. The default name that Adams View
provides will specify the parentage that it has assumed. You may, or course, delete this name and use
your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
5. When you use the FILE Adams_DATA_SET WRITE command, Adams View writes an Adams data
file for your model. Adams requires that each modeling element be identified by a unique integer
identifier. If you use this parameter to specify a non-zero identifier, Adams View will use it in the
corresponding statement in the Adams data file. You may also enter zero as an identifier, either
explicitly or by default. The next time you write an Adams file, Adams View will replace the zero with
a unique, internally generated identifier. Adams View will permanently store this identifier with the
element just as if you had entered it yourself. Normally, you would let all identifiers default to zero,
and Adams View would generate the identifiers for you. You are never required to enter a non-zero
identifier. You only need to specify it if, for some reason, you wish to control the Adams file output.
force 101
force modify element_like field
6. When an Adams Solver data file (.adm) is read into Adams View, all comments associated with a
statement (from the end of the previous statement through the end of the current statement) are
stored with the object. Comments in the data file can be associated with model. These comments
must follow the title statement and be followed by the comment 'END OF MODEL
COMMENTS'. This string must be uppercase. When an Adams Solver data file is written, the
comments for an object are written before the statement corresponding to the object.
7. The three stiffness coefficients multiply the three translational displacement components of the origin
of the I marker along the x-axis, the y-axis, and the z-axis of the J marker. STIFFNESS must be in
units of force per unit of displacement.
8. The three stiffness coefficients multiply the rotational velocity components of the body in which the
I marker is fixed about the x-axis, the y-axis, and the z-axis of the J marker. The torque due to
damping is zero when there is no relative rotational velocity between the two markers.
Cautions:
Adams View will not allow you to have two bushings with the same full name, so you must provide
a unique name.
Format:
force modify element_like field
field_name = model_1.field1
new_field_name = FIELD__1
Adams_id = 1
comments = comment1
i_marker_name = marker_1
j_marker_name = marker_2
translation_at_preload = matrix of 3 values
rotation_at_preload = matrix of 3 values
force_preload = matrix of 3 values
torque_preload = matrix of 3 values
stiffness_matrix = matrix of 6x6 values
damping_ratio = real_number
matrix_of_damping_terms = 6x6 matrix of real values
user_function = real number
102 Adams View Commands
force modify element_like field
Example:
force modify element_like field &
field_name = model_1.field1 &
new_field_name = FIELD__1 &
Adams_id = 1 &
comments = comment1 &
i_marker_name = marker_1 &
j_marker_name = marker_2 &
translation_at_preload = 0.5, 0.2, 0.5 &
rotation_at_preload = 0.5, 0.2, 0.4 &
force_preload = 0.2, 0.1, 0.5 &
torque_preload = 0.4, 0.1, 0.8
Description:
Default: LINEAR
LENGTH_TOL When using FORMULATION=NONLINEAR, the
geometric stiffness uses the larger of the current length
and length tolerance.
Default: 1.e-05
Extended Definition:
1. A field is a translational and a rotational action-reaction force applied between two markers. If you
want to specify a linear field, use the arguments in the command to specify constants for the six-by-
six stiffness matrix, a six-element reference length vector, and a six-by-six damping matrix. The
stiffness and damping matrices must be positive semi definite, but need not be symmetric. If you want
to specify a nonlinear field, use the Adams user-written subroutine FIESUB to define the three force
components and the three torque components and use the Adams View parameter
USER_FUNCTION=r1[,...,r30] to pass constants to FIESUB. The following constitutive equations
define how Adams uses the data you input for a linear field to apply a force and a torque to the I
marker depending on the displacement and velocity of the I marker relative to the J marker. Adams
104 Adams View Commands
force modify element_like field
applies a force of equal magnitude and opposite direction to the J marker. The torque on the J marker
has two components. The first component is equal and opposite to the torque on the I marker. The
second component is due to the couple generated by the equal and opposite forces acting at the I and
J markers.
[Fx] [K11 K12 K13 K14 K15 K16] [x-xo]
[Fy] [K21 K22 K23 K24 K25 K26] [y-yo]
[Fz] = - [K31 K32 K33 K34 K35 K36] [z-zo]
[Tx] [K41 K42 K43 K44 K45 K46] [a-ao]
[Ty] [K51 K52 K53 K54 K55 K56] [b-bo]
[Tz] [K61 K62 K63 K64 K65 K66] [c-co]
[C11 C12 C13 C14 C15 C16] [Vx] [F1]
[C21 C22 C23 C24 C25 C26] [Vy] [F2]
- [C31 C32 C33 C34 C35 C36] [Vz] + [F3]
[C41 C42 C43 C44 C45 C46] [Wx] [T1]
[C51 C52 C53 C54 C55 C56] [Wy] [T2]
[C61 C62 C63 C64 C65 C66] [Wz] [T3]
For a nonlinear field, you define the following constitutive equations in the FIESUB
subroutine:
Fx = f (x,y,z,a,b,c,Vx,Vy,Vz,Wx,Wy,Wz)
1
Fy = f (x,y,z,a,b,c,Vx,Vy,Vz,Wx,Wy,Wz)
2
Fz = f (x,y,z,a,b,c,Vx,Vy,Vz,Wx,Wy,Wz)
3
Tx = f (x,y,z,a,b,c,Vx,Vy,Vz,Wx,Wy,Wz)
4
Ty = f (x,y,z,a,b,c,Vx,Vy,Vz,Wx,Wy,Wz)
5
Tz = f (x,y,z,a,b,c,Vx,Vy,Vz,Wx,Wy,Wz)
6
Adams applies the defined forces and torques at the I marker. In the linear and the nonlinear
equations, Fx, Fy, and Fz are the three translational force measure numbers, and Tx, Ty, and Tz are
the three rotational force measure numbers associated with unit vectors directed along the x-axis, the
y-axis, and the z-axis of the coordinte system fixed in the J marker reference frame; K is the stiffness
matrix; xo,yo, zo, ao, bo, and co are the free lengths; x, y, z, a, b, and c are the translational and the
rotational displacements of the I marker with respect to the J marker expressed in the reference frame
of the J marker; Vx, Vy, Vz, Wx, Wy, and Wz are the scalar time derivatives of x, y, z, a, b, and c,
respectively; C is the damping matrix; and F1, F2, F3, T1, T2, and T3 are the translational and the
rotational pre-tensions. All variables and time derivatives are computed in the J marker coordinate
system.
2. You may identify a field by typing its name or by picking it from the screen.
If the field is not visible on the screen, you must type the name. You may also find it convenient to
type the name even if the field is displayed. If you created the field by reading an Adams data set file,
the field name is 'FIE'. If you created the field during preprocessing, you gave it a name at that time.
If a field is available by default, you may identify it by entering its name only. If it is not, you must
enter its full name. To identify a field under a different model, for instance, you may need to enter
the model name as well. For example, you may specify field 'fld1' from model 'robot' by entering
force 105
force modify element_like field
".robot.fld1". If you type a "?", Adams View will list the fields available by default. You must separate
multiple field names by commas. If the field is visible in one of your views, you may identify it by
picking on any of the graphics associated with it. You need not separate multiple field picks by
commas..
3. Normally, entity names are composed of alphabetic, numeric, or '_' (underscore) characters, and start
with an alphabetic or '_' character. They may be any length.
By enclosing the name in double quotes, you may use other printable characters, or start the name
with a numeral. If a name contains characters, or starts with a numeral, you must always quote the
name when entering it. Note that you can specify the parentage of an entity (e.g. what part "owns" a
marker or a geometry element) when you CREATE it by changing the name. If you enter just the
entity name, then the default parent will be assigned by Adams View. If you type in the full name,
then you may over ride the default parent. In most cases, when creating an entity, Adams View will
provide a default name. The default name that Adams View provides will specify the parentage that
it has assumed. You may, or course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
4. When you use the FILE Adams_DATA_SET WRITE command, Adams View writes an Adams data
file for your model. Adams requires that each modeling element be identified by a unique integer
identifier. If you use this parameter to specify a non-zero identifier, Adams View will use it in the
corresponding statement in the Adams data file. You may also enter zero as an identifier, either
explicitly or by default. The next time you write an Adams file, Adams View will replace the zero with
a unique, internally generated identifier. Adams View will permanently store this identifier with the
element just as if you had entered it yourself. Normally, you would let all identifiers default to zero,
and Adams View would generate the identifiers for you. You are never required to enter a non-zero
identifier. You only need to specify it if, for some reason, you wish to control the Adams file output.
5. When an Adams Solver data file (.adm) is read into Adams View, all comments associated with a
statement (from the end of the previous statement through the end of the current statement) are
stored with the object. Comments in the data file can be associated with model. These comments
must follow the title statement and be followed by the comment 'END OF MODEL
COMMENTS'. This string must be uppercase. When an Adams Solver data file is written, the
comments for an object are written before the statement corresponding to the object.
6. The ‘translation_at-preload’ parameter defines a vector of reference translations. This is the nominal
position of the I marker with respect to the J marker, resolved in the J marker coordinate system. The
values r1, r2, r3 are the x, y, and z translational components of the translation. Adams uses the
translational distance specified in TRANSLATION_AT_PRELOAD to calculate the resultant
torque on the J marker. If the reference force is zero, TRANSLATION_AT_PRELOAD is the same
as the free translation.
7. The rotation_at_preload parameter defines a vector of reference rotations. This defines the nominal
orientation of the I marker with respect to the J marker, resolved in the J marker coordinate system.
The terms r1, r2, r3 the x, y, and z rotational components. Adams uses the angular displacements
specified in ROTATION_AT_PRELOAD to calculate the resultant torque on the J marker. If the
reference force is zero, ROTATION_AT_PRELOAD is the same as the free rotation.entries.
106 Adams View Commands
force modify element_like friction
8. The stiffness_matrix parameter specifies a six-by-six matrix of stiffness coefficients. The following
matrix shows the values to input:
[r01 r07 r13 r19 r25 r31]
[r02 r08 r14 r20 r26 r32]
[r03 r09 r15 r21 r27 r33]
[r04 r10 r16 r22 r28 r34]
[r05 r11 r17 r23 r29 r35]
[r06 r12 r18 r24 r30 r36]
Enter the elements by columns from top to bottom, then from left to right. If you do not use both
CRATIO and KMATRIX, Adams cannot calculate the damping coefficients; in that case, you must
define CMATRIX if you want to include damping coefficients in the calculation of the field forces.
KMATRIX defaults to a matrix with thirtysix zero entries.
9. The matrix_of_damping_terms parameter specifies a six-by-six matrix of viscous damping
coefficients. The following matrix shows the values to input:
[r01 r07 r13 r19 r25 r31]
[r02 r08 r14 r20 r26 r32]
[r03 r09 r15 r21r27 r33]
[r04 r10 r16 r22 r28 r34]
[r05 r11 r17 r23 r29 r35]
[r06 r12 r18 r24 r30 r36]
Enter the elements by columns from top to bottom, then from left to right. If you do not use either
CMATRIX or both CRATIO and KMATRIX, CMATRIX defaults to a matrix with thirty-six zero
entries.
Cautions:
1. Adams View will not allow you to have two fields with the same full name, so you must provide a
unique name.
2. Do not use the ‘damping_ratio’ parameter without also using STIFFNESS_MATRIX.
Tips:
If you type a "?", Adams View will list the gravity fields available by default.
Description:
Extended Definition:
1. When you use the FILE Adams_DATA_SET WRITE command, Adams View writes an Adams data
file for your model. Adams requires that each modeling element be identified by a unique integer
identifier. If you use this parameter to specify a non-zero identifier, Adams View will use it in the
corresponding statement in the Adams data file.
You may also enter zero as an identifier, either explicitly or by default. The next time you write an
Adams file, Adams View will replace the zero with a unique, internally-generated identifier. Adams
View will permanently store this identifier with the element just as if you had entered it yourself.
Normally, you would let all identifiers default to zero, and Adams View would generate the identifiers
for you. You are never required to enter a non-zero identifier. You only need to specify it if, for some
reason, you wish to control the Adams file output.
2. When an Adams Solver data file (.adm) is read into Adams View, all comments associated with a
statement (from the end of the previous statement through the end of the current statement) are
stored with the object. Comments in the data file can be associated with model. These comments
must follow the title statement and be followed by the comment 'END OF MODEL
COMMENTS'. This string must be uppercase.
When an Adams Solver data file is written, the comments for an object are written before the
statement corresponding to the object.
3. You may identify a joint by typing its name or by picking it from the screen.
If the joint is not visible on the screen, you must type the name. You may also find it convenient to
type the name even if the joint is displayed.
If you created the joint by reading an Adams data set or graphics file, the joint name is the letters JOI
followed by the Adams data set joint ID number. The name of Adams JOINT/101 is JOI101, for
example. If you created the joint during preprocessing, you gave it a name at that time.
If a joint is available by default, you may identify it by entering its name only. If it is not, you must
enter its full name. To identify a joint under a model, for instance, you may need to enter the model
name as well. For example, you may specify joint 'lower_pivot' in model 'links' by entering
".links.lower_pivot". If you type a "?", Adams View will list the joints available by default.
You must separate multiple joint names by commas.
If the joint is visible in one of your views, you may identify it by picking on any of the graphics
associated with it.
You need not separate multiple joint picks by commas.
Format:
force modify element_like rotational_spring_damper
spring_damper_name = existing spring damper force
new_spring_damper_name = new spring damper force
Adams_id = integer
comments = string
damping = real number
stiffness = real number
preload = real number
displacement_at_preload = real number
i_marker_name = existing marker name
j_marker_name = existing marker name
Example:
force modify element_like rotational_spring_damper &
spring_damper_name = SPRING_1 &
new_spring_damper_name = SPRING_2 &
Adams_id = 2 &
comments = comment &
damping = 0.5 &
stiffness = 0.2 &
preload = 1.2 &
displacement_at_preload = 0.02 &
i_marker_name = marker_1 &
j_marker_name = marker_2
force 111
force modify element_like rotational_spring_damper
Description:
Extended Definition:
1. The springdamper force applies a rotational or a translational spring-damperbetween two markers.
For a rotational spring-damper, the z-axis of the I markerand the z-axis of the J marker must be
parallel and must point in the samedirection. Because the spring- damper force is always an action-
reaction force, thedirection of the translational force is the line of sight between the I and the
Jmarkers. Thus, if the force is positive, the markers experience a repelling forcealong this line, and if
the force is negative, the markers experience an attractingforce. The magnitude of the translational
force applied to the parts containing thetwo markers is linearly dependent upon the relative
displacement and velocity ofthe two markers. The following linear constitutive equation describes the
forceapplied at the I marker:
force = -C*db/dt - K*(b-LENGTH) + FORCE
2. Adams automatically computes the terms db/dt and b. The force value is the force on the I marker
from the J marker; the force on the J marker is equal and opposite. The term b is the distance between
the I and the J markers. Adams assumes that b is always greater than zero. The following linear
constitutive equation describes the torque applied at the I marker:
torque = -CT*da/dt - KT*(a-ANGLE) + TORQUE
3. Adams automatically computes the terms da/dt and a. The torque is applied to the I marker about
the positive z-axis of the I marker; the torque on the J marker isequal and opposite to the torque on
the I marker. The right-hand rule defines apositive torque. The term a is the angle between the x-axes
of the I and the Jmarkers. Adams takes into account the total number of complete turns.
Considerations:
If the z-axis of the I marker is not parallel to, and/or not pointed in the samedirection as, the z-axis
of the J marker for a rotational spring-damper, theresults are unpredictable.
force 113
force modify element_like rotational_spring_damper
Since the line-of-sight method determines the direction of a translationalspring-damper force, the I
and the J markers cannot be coincident.
4. You may identify a spring-damper force by typing its name or by picking it from the screen. If the
spring-damper force is not visible on the screen, you must type the name. You may also find it
convenient to type the name even if the spring-damper is displayed. If you created the spring-damper
force by reading an Adams data set, the spring-damper name is the letters SPR followed by the Adams
data set spring-damper ID number. The name of Adams SPRINGDAMPER/101 is SPR101, for
example. If you created the spring-damper during preprocessing, you gave it a name at that time. If a
spring-damper is available by default, you may identify it by entering its name only. If it is not, you
must enter its full name. To identify a spring-damper under a different model, for instance, you may
need to enter the model name as well. For example, you may specify spring-damper 'left' from model
'sla' by entering ".sla.left". You must separate multiple spring-damper names by commas. If the
spring-damper is visible in one of your views, you may identify it by picking on any of the graphics
associated with it. You need not separate multiple spring-damper picks by commas.
5. Normally, entity names are composed of alphabetic, numeric, or '_' (underscore) characters, and start
with an alphabetic or '_' character. They may be any length.
By enclosing the name in double quotes, you may use other printable characters, or start the name
with a numeral. If a name contains characters, or starts with a numeral, you must always quote the
name when entering it. Note that you can specify the parentage of an entity (e.g. what part "owns" a
marker or a geometry element) when you CREATE it by changing the name. If you enter just the
entity name, then the default parent will be assigned by Adams View. If you type in the full name,
then you may over ride the default parent. In most cases, when creating an entity, Adams View will
provide a default name. The default name that Adams View provides will specify the parentage that
it has assumed. You may, or course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
6. When you use the FILE Adams_DATA_SET WRITE command, Adams View writes an Adams data
file for your model. Adams requires that each modeling element be identified by a unique integer
identifier. If you use this parameter to specify a non-zero identifier,Adams View will use it in the
corresponding statement in the Adams data file. You may also enter zero as an identifier, either
explicitly or by default. The next time you write an Adams file, Adams View will replace the zero with
a unique, internallygenerated identifier. Adams View will permanently store this identifier with the
element just as if you had entered it yourself. Normally, you would let all identifiers default to zero,
and Adams View would generate the identifiers for you. You are never required to enter a non-zero
identifier. You only need to specify it if, for some reason, you wish to control the Adams file output.
7. When an Adams Solver data file (.adm) is read into Adams View, all comments associated with a
statement (from the end of the previous statement through the end of the current statement) are
stored with the object. Comments in the data file can be associated with model. These comments
must follow the title statement and be followed by the comment 'END OF MODEL
COMMENTS'. This string must be uppercase. When an Adams Solver data file is written, the
comments for an object are written before the statement corresponding to the object.
114 Adams View Commands
force modify element_like translational_spring_damper
Tips:
If you type a "?", Adams View will list the spring-dampers available by default.
Format:
force modify element_like translational_spring_damper
spring_damper_name = existing spring damper force
new_spring_damper_name = new spring damper force
Adams_id = integer
comments = string
damping = real number
stiffness = real number
preload = real number
displacement_at_preload = real number
i_marker_name = existing marker name
j_marker_name = existing marker name
Example:
Force modify element_like translational_spring_damper &
spring_damper_name = SPRING_1 &
new_spring_damper_name = SPRING_2 &
Adams_id = 2 &
comments = comment &
damping = 0.5 &
stiffness = 0.2 &
preload = 1.2 &
displacement_at_preload = 0.02 &
i_marker_name = marker_1 &
j_marker_name = marker_2
force 115
force modify element_like translational_spring_damper
Description:
Extended Definition:
1. The spring damper force applies a rotational or a translational spring-damper between two markers.
For a rotational spring-damper, the z-axis of the I marker and the z-axis of the J marker must be
parallel and must point in the same direction. Because the spring- damper force is always an action-
reaction force, the direction of the translational force is the line of sight between the I and the J
markers. Thus, if the force is positive, the markers experience a repelling force along this line, and if
the force is negative, the markers experience an attracting force. The magnitude of the translational
force applied to the parts containing the two markers is linearly dependent upon the relative
displacement and velocity of the two markers. The following linear constitutive equation describes
the force applied at the I marker:
force = -C*db/dt - K*(b-LENGTH) + FORCE
2. Adams automatically computes the terms db/dt and b. The force value is the force on the I marker
from the J marker; the force on the J marker is equal and opposite. The term b is the distance between
the I and the J markers. Adams assumes that b is always greater than zero. The following linear
constitutive equation describes the torque applied at the I marker:
torque = -CT*da/dt - KT*(a-ANGLE) + TORQUE
3. Adams automatically computes the terms da/dt and a. The torque is applied to the I marker about
the positive z-axis of the I marker; the torque on the J marker is equal and opposite to the torque on
the I marker. The right-hand rule defines a positive torque. The term a is the angle between the x-
axes of the I and the J markers. Adams takes into account the total number of complete
turns.Considerations:
• If the z-axis of the I marker is not parallel to, and/or not pointed in the same direction as, the z-axis
of the J marker for a rotational spring-damper, the results are unpredictable.
• Since the line-of-sight method determines the direction of a translational spring-damper force, the
I and the J markers cannot be coincident.
4. You may identify a spring-damper force by typing its name or by picking it from the screen. If the
spring-damper force is not visible on the screen, you must type the name. You may also find it
convenient to type the name even if the spring-damper is displayed. If you created the spring-damper
force by reading an Adams data set, the spring-damper name is the letters SPR followed by the Adams
data set spring-damper ID number. The name of Adams SPRINGDAMPER/101 is SPR101, for
example. If you created the spring-damper during preprocessing, you gave it a name at that time. If a
spring-damper is available by default, you may identify it by entering its name only. If it is not, you
must enter its full name. To identify a spring-damper under a different model, for instance, you may
need to enter the model name as well. For example, you may specify spring-damper 'left' from model
'sla' by entering ".sla.left". You must separate multiple spring-damper names by commas. If the
spring-damper is visible in one of your views, you may identify it by picking on any of the graphics
associated with it. You need not separate multiple spring-damper picks by commas.
5. Normally, entity names are composed of alphabetic, numeric, or '_' (underscore) characters, and start
with an alphabetic or '_' character. They may be any length.
force 117
force modify fe_load
By enclosing the name in double quotes, you may use other printable characters, or start the name
with a numeral. If a name contains characters, or starts with a numeral, you must always quote the
name when entering it. Note that you can specify the parentage of an entity (e.g. what part "owns" a
marker or a geometry element) when you CREATE it by changing the name. If you enter just the
entity name, then the default parent will be assigned by Adams View. If you type in the full name,
then you may over ride the default parent. In most cases, when creating an entity, Adams View will
provide a default name. The default name that Adams View provides will specify the parentage that
it has assumed. You may, or course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
6. When you use the FILE Adams_DATA_SET WRITE command, Adams View writes an Adams data
file for your model. Adams requires that each modeling element be identified by a unique integer
identifier. If you use this parameter to specify a non-zero identifier,Adams View will use it in the
corresponding statement in the Adams data file. You may also enter zero as an identifier, either
explicitly or by default. The next time you write an Adams file, Adams View will replace the zero with
a unique, internallygenerated identifier. Adams View will permanently store this identifier with the
element just as if you had entered it yourself. Normally, you would let all identifiers default to zero,
and Adams View would generate the identifiers for you. You are never required to enter a non-zero
identifier. You only need to specify it if, for some reason, you wish to control the Adams file output.
7. When an Adams Solver data file (.adm) is read into Adams View, all comments associated with a
statement (from the end of the previous statement through the end of the current statement) are
stored with the object. Comments in the data file can be associated with model. These comments
must follow the title statement and be followed by the comment 'END OF MODEL
COMMENTS'. This string must be uppercase. When an Adams Solver data file is written, the
comments for an object are written before the statement corresponding to the object.
Tips:
If you type a "?", Adams View will list the spring-dampers available by default.
Format:
force modify direct fe_load
feload_name = new fe_load name
ref_fe_part = refer existing fe_part
ref_orientation_marker = refer existing marker
fx = function expression
118 Adams View Commands
force modify fe_load
fy = function expression
fz = function expression
tx = function expression
ty = function expression
tz = function expression
user_function = function expression
routine = string
force_display = ON / OFF
Example:
force modify direct fe_load
feload_name = .MODEL_1.FE_Load_1
ref_fe_part = FE_Part_1
ref_orientation_marker = MARKER_1
adams_id = 1
fx = SD(1)
fy = SD(1)
fz = SD(1)
tx = SD(1)
ty = SD(1)
tz = SD(1)
force_display = ON
Description:
function
function create
A function allows you to define a new function in terms of an Adams View expression. The function create
command allows you to create a function. You may reverse this creation at a later time with an UNDO
command.
Format:
function create
function_name = new expr_function
text_of_expression = string
argument_names = string
type = result_type
comments = string
category = func_category
Example:
As a simple example, we write a function which adds two numbers together
function create function_name=SUM argument_names=x,y &
text_of_expression="x + y"
Now we use this function to compute the sum of two numbers:
marker create marker=mar1 location=(SUM(1, 2)), 0, 0
If we examine the location of the marker mar1 we find that its location is 3,0,0 as expected.
Here we have a little more sophisticated example which computes the distance between two points:
function create function_name=DISTANCE argument_names=p1, p2 &
text_of_expression="sqrt((p1[1]-p2[1])**2 + (p1[2]-p2[2])**2 +
(p1[3]-p2[3])**2)"
You could then use the distance function in any appropriate context (assuming the existence of a model
containing par1 and par2).
variable create variable=dist1 real=(DISTANCE(par1.location,
par2.location))
2 Adams View Commands
function create
Description:
Extended Definition:
1. Remember that the value of the argument “text_of_expression” should be a character string, NOT
an expression.
FUNCTION CREATE FUNCTION_NAME=SSQDIF &
ARGUMENT_NAMES=Array1, Array2 &
TEXT_OF_EXPRESSION="SSQ(Array1-Array2)" &
COMMENT_STRING="Compute sum of squares of differences between
arguments" &
TYPE=real
2. The argument_names you specify are associated by position with the actual arguments when you
invoke the function, using the following as an example:
FUNCTION CREATE FUNCTION_NAME=MyFunc ARGUMENT_NAMES=Arg1, Fred &
TEXT_OF_EXPRESSION="sqrt(Fred) * Arg1"
VARIABLE CREATE VARIABLE_NAME=TestVariable &
REAL_VALUE=(MyFunc(1+1, 9) + 4)
The first formal argument "Arg1" is associated with the value 2 (computed from 1+1); the second
argument, "Fred", is associated with the value 9. The resulting value for "TestVariable" is sqrt(9) * 2
+ 4 = 10.
function 3
function delete
function delete
Allows you to delete an existing function.
You must enter the name of the function you wish to delete by specifying the full name.
You may reverse this deletion at a later time with an UNDO command.
Format:
function delete
function_name = existing expr_function
Example:
If function get_name already exists
Description:
function modify
A function allows you to define a new function in terms of an Adams View expression. The function modify
command allows you to modify an existing user written function.
You may reverse this modification at a later time with an UNDO command.
Format:
function modify
function_name = existing expr_function
new_function_name = new expr_function
text_of_expression = string
argument_names = string
type = result_type
4 Adams View Commands
function modify
function modify
comments = string
category = func_category
Example:
Description:
Extended Definition:
1. Remember that the value of the argument “text_of_expression” should be a character string, NOT
an expression.
FUNCTION CREATE FUNCTION_NAME=SSQDIF &
ARGUMENT_NAMES=Array1, Array2 &
TEXT_OF_EXPRESSION="SSQ(Array1-Array2)" &
COMMENT_STRING="Compute sum of squares of differences between
arguments" &
TYPE=real
2. The argument_names you specify are associated by position with the actual arguments when you
invoke the function.
Using the following as an example:
FUNCTION CREATE FUNCTION_NAME=MyFunc ARGUMENT_NAMES=Arg1, Fred &
TEXT_OF_EXPRESSION="sqrt(Fred) * Arg1"
VARIABLE CREATE VARIABLE_NAME=TestVariable &
REAL_VALUE=(MyFunc(1+1, 9) + 4)
The first formal argument "Arg1" is associated with the value 2 (computed from 1+1); the second
argument "Fred" is associated with the value 9. The resulting value for "TestVariable" is sqrt(9) * 2
+ 4 = 10.
6 Adams View Commands
function modify
geometry 1
geometry attributes
geometry
geometry attributes
Allows the specification of attributes to be set on individual pieces of geometry or a group of geometry.
Format:
geometry attributes
geometry_name = an existing geometric entity
visibility = on_off_with_toggle
color = an existing color
entity_scope = color_scope
render_mode = render_mode
active = on_off_no_opinion
dependents_active = on_off_no_opinion
Example:
geometry attributes &
geometry attributes geometry_name = link_56 &
geometry attributes visibility = on &
geometry attributes transparency = 20 &
geometry attributes color = black &
geometry attributes render_mode = filled
Description:
Extended Definition:
1. You can set the following attributes on a marker.
- VISIBILITY. You may set an individual geometric entity's visibility ON, OFF or TOGGLE the
current setting. When you set a piece of geometry's visibility OFF, the geometry will not be drawn.
When you set a piece of geometry's visibility ON, you allow that geometry to be drawn.
- COLOR. You may set the color of a piece of geometry with this parameter.
- ENTITY_SCOPE. This parameter is used in conjunction with COLOR, to limit the application
of the color.
- RENDER_MODE. You may choose a rendering mode for geometry. When you choose a
render_mode of FILLED, the geometry chosen can be displayed as shaded, filled or in wireframe;
depending on the render_mode of the view in which it is displayed. When you choose
WIREFRAME, you limit the rendering of this piece of geometry to only wireframe.
If an entity does not have a GRAPHICS ATTRIBUTE setting, the value for that GRAPHIC
ATTRIBUTE may be inherited from another entity.
INHERITANCE may be either TOP_DOWN or BOTTOM_UP.
BOTTOM_UP and TOP_DOWN refer to the natural hierarchy of the Adams model. The hierarchy
is a tree structure with the model at the apex. Parts exist beneath the model, and markers exist beneath
the parts. If the icon size of the model is set to 0.1, and the default INHERITANCE is set to
TOP_DOWN, then all icons displayed within the model will be displayed at this size. However, if
the icon size of a model is set to 0.1, and then the default INHERITANCE is set to BOTTOM_UP,
then any icons set to a size other than the model's icon size will be displayed at their own size.
2. You use this parameter to identify the existing geometry to affect with this command.
You may identify geometry by typing its name or by picking it from the screen.
If the geometry is not visible on the screen, you must type the name. You may also find it convenient
to type the name even if the geometry is displayed.
If geometry is available by default, you may identify it by entering its name only. If it is not, you must
enter its full name. To identify geometry under another model, for instance, you may need to enter
the model and part names as well. For example, you may specify arc 'end' on part 'arm' in model
'susp' by entering ".susp.arm.end". If you type a "?", Adams View will list the geometrys available by
default.
You must separate multiple geometry names by commas.
geometry 3
geometry attributes
If the geometry is visible in one of your views, you may identify it by picking on any of the graphics
associated with it.
3. The visibility parameter is used to control whether graphic entities, such as markers, joints, and parts,
are to be drawn in an Adams View viewport.
The legal values for this parameter are: ON, OFF, and TOGGLE. ON will make the desired entity
visible. OFF will make the desired entity invisible. TOGGLE will take the current state of an entities
visibility and reverse it.
4. Adams View allows you to specify the following colors for modeling entities: BLACK, WHITE,
RED, GREEN, BLUE, CYAN, MAGENTA, YELLOW, and NO_COLOR
Specifying 'NO_COLOR' for a modeling entity, instructs Adams View to use the default color for
this entity, if there is no color present in its parent modeling entity.
Example 1:
.model -------------------------NO_COLOR
.part ---------------------- RED
.geometry(circle) ------- NO_COLOR
The circle will be RED.
Example 2:
.model -------------------------NO_COLOR
.part ---------------------- RED
.geometry(circle) ------- BLUE
If a parent modeling entity has a color previously specified, that color takes precedence. Adams View
will issue a warning message about color precedence. The circle will be RED.
Example 3:
.model -------------------------NO_COLOR
.part ---------------------- NO_COLOR
.geometry(circle) ------- BLUE
The circle will be BLUE.
5. The legal values for this parameter are FILL_COLOR, EDGE_COLOR, OUTLINE_COLOR, and
ALL.
FILL_COLOR is the color of those areas of a graphic that can be shaded (they include sides of a
cylinders, frustums, boxes, etc.). The EDGE_COLOR is the color of the lines making up the edges
of the facets (or areas filled by the FILL_COLOR) of a graphic that can be shaded. The
OUTLINE_COLOR represents the color of the lines that make up those graphics that can not be
shaded or filled, like an outline graphic statement consisting of two points or the coil of a
springdamper. Finally, the ALL value indicates that all three entity types, FILL_COLOR,
EDGE_COLOR, and OUTLINE_COLOR will be affected by the color change.
6. The render mode is an attribute that is attached to each of the specific graphic entities and works in
tandem with a view's RENDER attribute (see below).
Graphic objects that can have their rendering mode altered include:
arcs, outlines, boxes, circles, cylinders, frustums, and spring damper graphics.
4 Adams View Commands
geometry attributes
The selection of graphic objects can be based on association to a particular analysis, part, or by
individual graphic name. When the rendering mode of a part is specified, all graphic objects fixed to
that part are drawn with the rendering mode of the part. Graphics that span parts can only be selected
by graphic name.
Adams View supports WIREFRAME and FILLED rendering modes.
This command should not be confused with the VIEW MANAGEMENT... RENDER parameter.
The RENDER parameter in view control sets an attribute associated with a particular view. So, if the
view render mode is wireframe, all the graphics will be drawn in wireframe mode regardless of the
value of a specific graphic object's render mode attribute. However, if the view render mode is set to
SOLIDS or SHADED, then a specific graphic entity will be drawn in the mode specified by the
DISPLAY_ATTRIBUTES RENDER_MODE command. In other words, the view RENDER
parameter is an attribute of the view and the display_attribute render mode is an attribute of the
specific graphic element. Or, WIREFRAME is the dominant mode and regardless of how it is set
(either RENDER by view or RENDERING_MODE by graphic object).
7. When you set the ACTIVE attribute on an object, you are also setting it on the children of the object.
If you set ACTIVE=NO on a part, but wish for a marker on that part to be on, then you must
explicitly set ACTIVE=YES on the marker, after setting activation on the part.
The DEPENDENTS_ACTIVE parameter acts in the same fashion, but sets the ACTIVE attribute
for the dependents, all the way down the dependency chain. For example, if you execute the
following command:
PART ATTRIBUTES PART=PAR1 DEPENDENTS_ACTIVE=NO
Where PAR1 has a marker MAR1 which is the I marker of a joint JOI1 (which has a J marker MAR2),
then JOI1 will be deactivated.
Also, if the joint JOI1 is referenced in a request function, or if the I marker is referenced by a request,
then the request will be deactivated.
Propagation of activation status through groups is as if each element were to have its activation status
changed indvidually.
Elements affected are:
• Group
• Part
• Differential Equation
• Marker
• Geometry
• Constraints
• Forces
• Data Elements
• Output Control
geometry 5
geometry copy
8. When you set the ACTIVE attribute on an object, you are also setting it on the children of the object.
If you set ACTIVE=NO on a part, but wish for a marker on that part to be on, then you must
explicitly set ACTIVE=YES on the marker, after setting activation on the part.
The DEPENDENTS_ACTIVE parameter acts in the same fashion, but sets the ACTIVE attribute
for the dependents, all the way down the dependency chain. For example, if you execute the
following command:
PART ATTRIBUTES PART=PAR1 DEPENDENTS_ACTIVE=NO
Where PAR1 has a marker MAR1 which is the I marker of a joint JOI1 (which has a J marker MAR2),
then JOI1 will be deactivated.
Also, if the joint JOI1 is referenced in a request function, or if the I marker is referenced by a request,
then the request will be deactivated.
Propagation of activation status through groups is as if each element were to have its activation status
changed indvidually.
Elements affected are:
• Group
• Part
• Differential Equation
• Marker
• Geometry
• Constraints
• Forces
• Data Elements
• Output Control
Cautions:
You need not separate multiple geometry picks by commas.
Tips:
The ENTITY_SCOPE parameter is optional and if not entered, will be set to FILL_COLOR.
geometry copy
Allows you to create replica geometry.
Format:
geometry copy
geometry_name = an existing geometric entity
new_geometry_name = a new geometric entity
6 Adams View Commands
geometry copy
Example:
geometry copy &
geometry_name = link_56
Description:
Extended Definition:
1. This replica geometry will be identical to the original with the exception of the geometry name.
Geometry must have unique names relative to other geometry in a given model. The replica will be
completely independent of the original, and may be modified without effecting the original.
The replica geometry will have replica markers created for it. The replica markers will be copies of the
markers on the original geometry object.
Dynamic geometry objects (springdampers, gforces, and outlines whose markers span multiple parts)
may not be copied from model to model.
2. You may identify geometry by typing its name or by picking it from the screen.
If the geometry is not visible on the screen, you must type the name. You may also find it convenient
to type the name even if the geometry is displayed.
If geometry is available by default, you may identify it by entering its name only. If it is not, you must
enter its full name. To identify geometry under another model, for instance, you may need to enter
the model and part names as well. For example, you may specify arc 'end' on part 'arm' in model
'susp' by entering ".susp.arm.end". If you type a "?", Adams View will list the geometrys available by
default.
You must separate multiple geometry names by commas.
If the geometry is visible in one of your views, you may identify it by picking on any of the graphics
associated with it.
3. Specifies the name of the new geometry. You may use this name later to refer to this geometry.
Adams View will not allow you to have two pieces of geometry with the same full name, so you must
provide a unique name.
Normally, entity names are composed of alphabetic, numeric, or '_' (underscore) characters, and start
with an alphabetic or '_' character. They may be any length.
By enclosing the name in double quotes, you may use other printable characters, or start the name
with a numeral. If a name contains characters, or starts with a numeral, you must always quote the
name when entering it.
geometry 7
geometry create curve arc
Note that you can specify the parentage of an entity (for example, what part "owns" a marker or a
geometry element) when you CREATE it by changing the name. If you enter just the entity name,
then the default parent will be assigned by Adams View. If you type in the full name, then you may
over ride the default parent. In most cases, when creating an entity, Adams View will provide a default
name. The default name that Adams View provides will specify the parentage that it has assumed.
You may, or course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
Cautions:
1. You need not separate multiple geometry picks by commas.
Tips:
1. The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
Format:
geometry create curve arc
arc_name = a new arc
adams_id = adams_id
comments = string
center_marker = an existing marker
angle_extent = angle
radius = length
ref_radius_by_marker = an existing marker
segment_count = integer
close = arc_closure
Example:
geometry create curve arc &
arc_name = arc__1 &
adams_id = 2 &
comments = "a new arc" &
center_marker = origin &
angle_extent = 150 &
8 Adams View Commands
geometry create curve arc
Description:
Extended Definition:
1. Arcs are truncated circles that can be closed into a pie shape or using a cord between the end points.
An arc is a 2 dimensional graphics image which is defined as a curve with a specified radius drawn
around a center marker. The length of the arc is determined by the angle_extent, and its smoothness
by the number of segments in the arc. The radius can be given explicitly by using the 'RADIUS='
parameter, or by using the 'ref_radius_by_marker' parameter, If 'REF_RADIUS_BY_MARKER' is
used, a radius will be calculated from the center marker. An arc will move with the center marker
given in the parameter 'CENTER_MARKER'.
2. You may use this name later to refer to this arc. Adams View will not allow you to have two arcs
with the same full name, so you must provide a unique name.
Normally, entity names are composed of alphabetic, numeric, or '_' (underscore) characters, and start
with an alphabetic or '_' character. They may be any length.
By enclosing the name in double quotes, you may use other printable characters, or start the name
with a numeral. If a name contains characters, or starts with a numeral, you must always quote the
name when entering it.
geometry 9
geometry create curve arc
Note that you can specify the parentage of an entity (e.g. what part "owns" a marker or a geometry
element) when you CREATE it by changing the name. If you enter just the entity name, then the
default parent will be assigned by Adams View. If you type in the full name, then you may over ride
the default parent. In most cases, when creating an entity, Adams View will provide a default name.
The default name that Adams View provides will specify the parentage that it has assumed. You may,
or course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
2. When you use the FILE ADAMS_DATA_SET WRITE command, Adams View writes an Adams
data file for your model. Adams requires that each modeling element be identified by a unique
integer identifier. If you use this parameter to specify a non-zero identifier, Adams View will use it
in the corresponding statement in the Adams data file.
You may also enter zero as an identifier, either explicitly or by default. The next time you write an
Adams file, Adams View will replace the zero with a unique, internally-generated identifier. Adams
View will permanently store this identifier with the element just as if you had entered it yourself.
Normally, you would let all identifiers default to zero, and Adams View would generate the identifiers
for you. You are never required to enter a non-zero identifier. You only need to specify it if, for some
reason, you wish to control the Adams file output.
3. When an Adams Solver data file (.adm) is read into Adams View, all comments associated with a
statement (from the end of the previous statement through the end of the current statement) are
stored with the object. Comments in the data file can be associated with model. These comments
must follow the title statement and be followed by the comment 'END OF MODEL
COMMENTS'. This string must be uppercase.
When an Adams Solver data file is written, the comments for an object are written before the
statement corresponding to the object.
4. If you are creating a circle or an arc, orient the center marker so that its z-axis is normal to the plane
of the circle or to the plane of the arc. Similarly, if you are defining a cylinder or a frustum, orient
the center marker so that its z-axis is normal to the bottom of the cylinder or the frustum.
5. The angle starts at the positive x-axis of the center marker and subtends the arc, the arc of the cylinder,
or the arc of the cone frustum.
6. When you specify 'NO' for the ‘close’ parameter, Adams View will create a 2 dimensional arc. 'NO'
is the default value. When you specify 'CHORD' for this parameter, Adams View will close the arc
from the starting point, to the ending point on the arc.
When you specify 'SECTOR' for this parameter, Adams View will close the arc, such that a "pie"
shape is created.
Cautions:
1. Adams View stores the radius value, not the marker name. If you later move the marker specified by
the ref_radius_by_marker, the radius will not change.
10 Adams View Commands
geometry create curve bspline
Format:
geometry create curve bspline
bspline_name = a new gcurve
adams_id = adams_id
comments = string
ref_curve_name = an existing acurve
ref_marker_name = an existing marker
ref_profile_name = an existing Wire_Geometry
spread_points = boolean
closed = boolean
num_new_pts = integer
segment_count = integer
Examples:
geometry create curve bspline &
bspline_name = gcurve__1 &
adams_id = 100 &
comments = "a new bspline" &
ref_marker_name = origin &
ref_curve_name = curve__1 &
segment_count = 100
Description:
Extended Definition:
1. To create a BSPLINE you must first create a CURVE DATA_ELEMENT or specify an existing
GWire geometry. The CURVE definition depends on first creating a MATRIX of control points or
a user-subroutine.
A BSPLINE is the geometric counterpart to the CURVE data_element. The difference being that
the BSPLINE is displayed with the Adams View model and the CURVE is not. The BSPLINE
references a CURVE for its definition and a REF_MARKER for it position. A single CURVE can be
referenced by multiple BSPLINEs.
For completeness the CURVE definition is repeated below.
A CURVE element defines a three-dimensional parametric curve that may be referenced by
POINT_CURVE or CURVE_CURVE constraints, a geometry element called a BSPLINE, as well
as by FUNCTION expressions.
12 Adams View Commands
geometry create curve bspline
By enclosing the name in double quotes, you may use other printable characters, or start the name
with a numeral. If a name contains characters, or starts with a numeral, you must always quote the
name when entering it.
Note that you can specify the parentage of an entity (e.g. what part "owns" a marker or a geometry
element) when you CREATE it by changing the name. If you enter just the entity name, then the
default parent will be assigned by Adams View. If you type in the full name, then you may over ride
the default parent. In most cases, when creating an entity, Adams View will provide a default name.
The default name that Adams View provides will specify the parentage that it has assumed. You may,
or course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
3. When you use the FILE ADAMS_DATA_SET WRITE command, Adams View writes an Adams
data file for your model. Adams requires that each modeling element be identified by a unique integer
identifier. If you use this parameter to specify a non-zero identifier, Adams View will use it in the
corresponding statement in the Adams data file.
You may also enter zero as an identifier, either explicitly or by default. The next time you write an
Adams file, Adams View will replace the zero with a unique, internally-generated identifier. Adams
View will permanently store this identifier with the element just as if you had entered it yourself.
Normally, you would let all identifiers default to zero, and Adams View would generate the identifiers
for you. You are never required to enter a non-zero identifier. You only need to specify it if, for some
reason, you wish to control the Adams file output.
4. When an Adams Solver data file (.adm) is read into Adams View, all comments associated with a
statement (from the end of the previous statement through the end of the current statement) are
stored with the object. Comments in the data file can be associated with model. These comments
must follow the title statement and be followed by the comment 'END OF MODEL
COMMENTS'. This string must be uppercase.
When an Adams Solver data file is written, the comments for an object are written before the
statement corresponding to the object.
5. A BSPLINE is the geometric counterpart to the CURVE data_element. The difference being that the
BSPLINE is displayed with the Adams View model and the CURVE is not. The BSPLINE references
a CURVE for its definition and a REF_MARKER for it position. A single CURVE can be referenced
by multiple BSPLINEs.
You may identify a curve by typing its name or by picking it from the screen.
Since curves do not have a geometric position, Adams View displays curve icons at or near the model
origin. If the curve icon is not visible on the screen, you must type the name. You may also find it
convenient to type the name even if the curve icon is displayed.
Curves can be draw by referencing a curve name in the definition of a BSPLINE geometry element.
Therefore, the BSPLINE element is the geometric counterpart of the CURVE data element.
14 Adams View Commands
geometry create curve bspline
If you created the curve by reading an Adams data set or graphics file, the curve name is the letters
CUR followed by the Adams data set curve ID number. The name of Adams CURVE/101 is
CUR101, for example. If you created the curve during preprocessing, you gave it a name at that time.
If a curve is owned by the default model, you may identify it by entering its name only. If it is not,
you must enter its full name. To identify a curve under a different model, for instance, you may need
to enter the model name as well. For example, you may specify curve 'CAM_PROFILE' from model
'VALVE_TRAIN' by entering ".VALVE_TRAIN.CAM_PROFILE'". If you type a "?", Adams
View will list the curve available by default.
You must separate multiple curve names by commas.
If the curve is visible in one of your views, you may identify it by picking on any of the graphics
associated with it.
You need not separate multiple curve picks by commas.
6. The reference marker must exist before the BSPLINE can be created.
This marker acts as a coordinate reference for the coordinate values used to define the CURVE that
acts as a template for the creation of the bspline.
A BSPLINE is the geometric counterpart to the CURVE data_element. The difference being that
the BSPLINE is displayed with the Adams View model and the CURVE is not. The BSPLINE
references a CURVE for its definition and a REF_MARKER for it position. A single CURVE can
be referenced by multiple BSPLINEs.
You may identify a marker by typing its name or by picking it from the screen.
If the marker is not visible on the screen, you must type the name. You may also find it convenient
to type the name even if the marker is displayed.
If you created the marker by reading an Adams data set or graphics file, the marker name is the letters
MAR followed by the Adams data set marker ID number. The name of Adams MARKER/101 is
MAR101, for example. If you created the marker during preprocessing, you gave it a name at that
time.
If a marker is available by default, you may identify it by entering its name only. If it is not, you must
enter its full name. To identify a marker under a different part, for instance, you may need to enter
the model and part names as well. For example, you may specify marker 'pivot' from model 'links',
part 'lower_arm' by entering ".links.lower_arm.pivot". If you type a "?", Adams View will list the
markers available by default.
You must separate multiple marker names by commas.
If the marker is visible in one of your views, you may identify it by picking on it.
You need not separate multiple marker picks by commas.
7. A BSPLINE is the geometric counterpart to the CURVE data_element. The difference being that
the BSPLINE is displayed with the Adams View model and the CURVE is not. The BSPLINE
references a CURVE for its definition and a REF_MARKER for it position. A single CURVE can
be referenced by multiple BSPLINEs.
You may identify a curve by typing its name or by picking it from the screen.
geometry 15
geometry create curve bspline
Since curves do not have a geometric position, Adams View displays curve icons at or near the model
origin. If the curve icon is not visible on the screen, you must type the name. You may also find it
convenient to type the name even if the curve icon is displayed.
Curves can be draw by referencing a curve name in the definition of a BSPLINE geometry element.
Therefore, the BSPLINE element is the geometric counterpart of the CURVE data element.
If you created the curve by reading an Adams data set or graphics file, the curve name is the letters
CUR followed by the Adams data set curve ID number. The name of Adams CURVE/101 is
CUR101, for example. If you created the curve during preprocessing, you gave it a name at that time.
If a curve is owned by the default model, you may identify it by entering its name only. If it is not,
you must enter its full name. To identify a curve under a different model, for instance, you may need
to enter the model name as well. For example, you may specify curve 'CAM_PROFILE' from model
'VALVE_TRAIN' by entering ".VALVE_TRAIN.CAM_PROFILE'". If you type a "?", Adams
View will list the curve available by default.
You must separate multiple curve names by commas.
If the curve is visible in one of your views, you may identify it by picking on any of the graphics
associated with it.
You need not separate multiple curve picks by commas.
8. The segment_count parameter is not used if you have specified the FIT_TYPE as
CONTROL_POINTS.
For an open CURVE, Adams View will default to a SEGMENT_COUNT that is three less than the
number of CURVE_POINTS, which gives an exact fit to the CURVE_POINTS. Specifying fewer
segments will result in a smoother curve, but the curve will not pass exactly through the
CURVE_POINTS. You must specify at least four CURVE_POINTS to create an open curve.
More specifically, if you specify the SEGMENT_COUNT such that the spline segments is three less
than the number of CURVE_POINTS, the computed curve will exactly match the curve points. If
you specify fewer segments, Adams will use a least-squares fit to compute the closest fit to the points.
Closed curves must be defined by at least eight CURVE_POINTS, and may have a maximum of five
segments less than the number of CURVE_POINTS.
For a closed curve defined by CURVE_POINTS, Adams will default a SEGMENT_COUNT of five
segments less than the number of CURVE_POINTS.
Note that because three segments less than the number of curve points are required for an exact fit, a
closed curve will not exactly fit the curve points.
9. The 'spread_points' parameter when specified to ‘yes’, in conjunction with a reference profile
(otherwise the parameter is invalid and will be ignored) specifies that the set of points generated for
the bspline are such that they are equally spaced. Thus specifying the parameter to ‘yes’, means use of
a different algorithm for generating a bspline (from the gwire geometry), wherein all the points on the
bspline are equally spaced).
10. The 'num_new_pts' is valid only when the spread points parameter is set to ‘yes’ (otherwise the
parameter will be ignored). The parameter defines the number of points generated for the bspline
using the new algorithm. Note that the points will be equally spaced.
16 Adams View Commands
geometry create curve chain
11. The 'closed' parameter is a Boolean value that specifies whether the generated bspline is a closed curve
or otherwise.
Format:
geometry create curve chain
chain_name = a new chain
adams_id = adams_id
comments = string
objects_in_chain = an existing gwire
Example:
geometry create curve chain &
chain_name = chain__1 &
adams_id = 12376
Description:
Extended Definition:
1. The geometry to be chained together must touch at one endpoint and cannot be closed geometry. It
adds the final chained geometry to the part that owns the first geometry that you selected.
2. When you use the FILE ADAMS_DATA_SET WRITE command, Adams View writes an Adams
data file for your model. Adams requires that each modeling element be identified by a unique integer
identifier. If you use this parameter to specify a non-zero identifier, Adams View will use it in the
corresponding statement in the Adams data file.
You may also enter zero as an identifier, either explicitly or by default. The next time you write an
Adams file, Adams View will replace the zero with a unique, internally-generated identifier.
geometry 17
geometry create curve circle
Adams View will permanently store this identifier with the element just as if you had entered it
yourself.
Normally, you would let all identifiers default to zero, and Adams View would generate the identifiers
for you. You are never required to enter a non-zero identifier. You only need to specify it if, for some
reason, you wish to control the Adams file output.
3. When an Adams Solver data file (.adm) is read into Adams View, all comments associated with a
statement (from the end of the previous statement through the end of the current statement) are
stored with the object. Comments in the data file can be associated with model.
These comments must follow the title statement and be followed by the comment 'END OF
MODEL COMMENTS'. This string must be uppercase.
When an Adams Solver data file is written, the comments for an object are written before the
statement corresponding to the object.
Format:
geometry create curve circle
circle_name = a new circle
adams_id = adams_id
comments = string
center_marker = an existing marker
radius = length
ref_radius_by_marker = an existing marker
segment_count = integer
Example:
eometry create curve circle &
circle_name = circle__1 &
adams_id = 10 &
comments = "a new circle" &
center_marker = origin &
radius = 10 &
segment_count = 10
18 Adams View Commands
geometry create curve circle
Description:
Extended Definition:
1. The circle is segmented and therfore can look like a square or triangle if needed.
The circle is defined as a radius drawn around a center marker. The circle's orientation is dependent
upon the orientation of its center marker. Its radius is determined by either the
'REF_RADIUS_BY_MARKER' or 'RADIUS=' parameter. The number of sides on the circle is
controlled by the 'SEGMENT_COUNT=' parameter. A circle will move with the part its center
marker is located on.
2. You may use the name specified by the circle_name parameter later to refer to this circle. Adams View
will not allow you to have two circles with the same full name, so you must provide a unique name.
Normally, entity names are composed of alphabetic, numeric, or '_' (underscore) characters, and start
with an alphabetic or '_' character. They may be any length.
By enclosing the name in double quotes, you may use other printable characters, or start the name
with a numeral. If a name contains characters, or starts with a numeral, you must always quote the
name when entering it.
Note that you can specify the parentage of an entity (e.g. what part "owns" a marker or a geometry
element) when you CREATE it by changing the name. If you enter just the entity name, then the
default parent will be assigned by Adams View. If you type in the full name, then you may over ride
the default parent. In most cases, when creating an entity, Adams View will provide a default name.
The default name that Adams View provides will specify the parentage that it has assumed. You may,
or course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
geometry 19
geometry create curve curve_trace
3. When you use the FILE ADAMS_DATA_SET WRITE command, Adams View writes an Adams
data file for your model. Adams requires that each modeling element be identified by a unique
integer identifier. If you use this parameter to specify a non-zero identifier, Adams View will use it
in the corresponding statement in the Adams data file.
You may also enter zero as an identifier, either explicitly or by default. The next time you write an
Adams file, Adams View will replace the zero with a unique, internally-generated identifier. Adams
View will permanently store this identifier with the element just as if you had entered it yourself.
Normally, you would let all identifiers default to zero, and Adams View would generate the identifiers
for you. You are never required to enter a non-zero identifier. You only need to specify it if, for some
reason, you wish to control the Adams file output.
4. When an Adams Solver data file (.adm) is read into Adams View, all comments associated with a
statement (from the end of the previous statement through the end of the current statement) are
stored with the object. Comments in the data file can be associated with model.
These comments must follow the title statement and be followed by the comment 'END OF
MODEL COMMENTS'. This string must be uppercase.
When an Adams Solver data file is written, the comments for an object are written before the
statement corresponding to the object.
5. If you are creating a circle or an arc, orient the center marker so that its z-axis is normal to the plane
of the circle or to the plane of the arc. Similarly, if you are defining a cylinder or a frustum, orient
the center marker so that its z-axis is normal to the bottom of the cylinder or the frustum.
Cautions:
1. Adams View stores the radius value, not the marker name. If you later move the marker specified by
the ref_radius_by_marker, the radius will not change.
Format:
geometry create curve curve_trace
geometry_name = an existing geometric entity
base_marker = an existing marker
curve_type = curve_type
close = yes_no_auto
analysis_name = an existing analysis
20 Adams View Commands
geometry create curve curve_trace
Example:
geometry create curve curve_trace &
geometry_name = LINK_56 &
base_marker = MARKER_84 &
curve_type = polyline
Description:
Extended Definition:
1. A trace that follows a curve creates a two-dimensional spline. The point can move in any direction
relative to the part on which the trace was created. Adams View creates the curve in the xy plane of
the base marker(the marker on the part on which the trace was created). Adams View assumes the
circle is parallel to the plane or the cylinder is perpendicular to the plane, and that the motion is in
this plane.
2. You may identify geometry by typing its name or by picking it from the screen.
If the geometry is not visible on the screen, you must type the name.
You may also find it convenient to type the name even if the geometry is displayed.
If geometry is available by default, you may identify it by entering its name only. If it is not, you must
enter its full name. To identify geometry under another model, for instance, you may need to enter
the model and part names as well. For example, you may specify arc 'end' on part 'arm' in model
'susp' by entering ".susp.arm.end". If you type a "?", Adams View will list the geometrys available by
default.
You must separate multiple geometry names by commas.
If the geometry is visible in one of your views, you may identify it by picking on any of the graphics
associated with it.
You need not separate multiple geometry picks by commas.
geometry 21
geometry create curve curve_trace
3. base_marker is particularly useful when a relatively small object undergoes both small configuration
changes as well as large overall gross motion. For example, the flight path of a jet is very large over
time relative to the motion of the control surfaces on the jet. In this case selecting the
BASE_MARKER to be on the jet would be appropriate.
This parameter can be used with the CAMERA_REF_MARKER to create a different effect on the
viewing direction. When the CAMERA_REF_MARKER and the BASE_MARKER are specified
together, the viewing direction is "from" the CAMERA_REF_MARKER position "to" the
BASE_MARKER position. In addition the "up" direction of the view is computed based on the
direction of the CAMERA_REF_MARKER "y" axis (i.e. the y axis is projected into a direction
perpendicular to the viewing direction defined by the two markers). This viewing direction is
recomputed between each frame of the animation. This feature allows the effect of watching an object
come from a distance pass by and proceed into the distance.
Specifies an existing marker.
You may identify a marker by typing its name or by picking it from the screen.
If the marker is not visible on the screen, you must type the name.
You may also find it convenient to type the name even if the marker is displayed.
If you created the marker by reading an Adams data set or graphics file, the marker name is the letters
MAR followed by the Adams data set marker ID number. The name of Adams MARKER/101 is
MAR101, for example. If you created the marker during preprocessing, you gave it a name at that
time.
If a marker is available by default, you may identify it by entering its name only. If it is not, you must
enter its full name. To identify a marker under a different part, for instance, you may need to enter
the model and part names as well. For example, you may specify marker 'pivot' from model 'links',
part 'lower_arm' by entering ".links.lower_arm.pivot". If you type a "?", Adams View will list the
markers available by default.
You must separate multiple marker names by commas.
If the marker is visible in one of your views, you may identify it by picking on it.
You need not separate multiple marker picks by commas.
4. Any text that was in the info window while open, will be flushed out. The next time the info window
is opened, only the new text will be present.
Closing the info window does not change its size. The next time the info window is opened, its size
will be the same as the previous time.
All scroll positions are returned to the first line in the info window.
5. You may identify a analysis by typing its name or by picking it from the screen.
An analysis may be picked from the screen if you have read an Adams Graphics file, and use the
GRAPHIC_RESULTS command to display it. If the analysis is not visible on the screen, you must
type the name. You may also find it convenient to type the name even if the analysis is displayed.
22 Adams View Commands
geometry create curve ellipse
You may have explicitly named the analysis when you created it by reading one or more Adams output
files. By default, the name of the analysis is the root name of the Adams output files. If you created
the analysis by reading an Adams Graphics file, for instance, the analysis name is the name of the
graphics file without the '.gra' extension.
You may get a list of analysis by typing a "?" in response to a parameter that requires an analysis name
be entered.
You must separate multiple analysis names by commas.
If the analysis is visible in one of your views, you may identify it by picking on any of the graphics
associated with it.
You need not separate multiple analysis picks by commas.
Format:
geometry create curve ellipse
ellipse_name = a new ellipse
adams_id = adams_id
comments = string
center_marker = an existing marker
major_radius = length
minor_radius = length
start_angle = angle
end_angle = angle
Example:
geometry create curve ellipse &
ellipse_name = ellipse__1 &
comments = "a new ellipse" &
center_marker = origin &
major_radius = 10 &
minor_radius = 6 &
start_angle = 0 &
end_angle = 180
geometry 23
geometry create curve ellipse
Description:
Extended Definition:
1. When you use the FILE ADAMS_DATA_SET WRITE command, Adams View writes an Adams
data file for your model. Adams requires that each modeling element be identified by a unique
integer identifier. If you use this parameter to specify a non-zero identifier, Adams View will use it
in the corresponding statement in the Adams data file.
You may also enter zero as an identifier, either explicitly or by default. The next time you write an
Adams file, Adams View will replace the zero with a unique, internally-generated identifier. Adams
View will permanently store this identifier with the element just as if you had entered it yourself.
Normally, you would let all identifiers default to zero, and Adams View would generate the identifiers
for you. You are never required to enter a non-zero identifier. You only need to specify it if, for some
reason, you wish to control the Adams file output.
2. When an Adams Solver data file (.adm) is read into Adams View, all comments associated with a
statement (from the end of the previous statement through the end of the current statement) are
stored with the object. Comments in the data file can be associated with model.
These comments must follow the title statement and be followed by the comment 'END OF
MODEL COMMENTS'. This string must be uppercase.
When an Adams Solver data file is written, the comments for an object are written before the
statement corresponding to the object.
3. If you are creating a circle or an arc, orient the center marker so that its z-axis is normal to the plane
of the circle or to the plane of the arc. Similarly, if you are defining a cylinder or a frustum, orient
the center marker so that its z-axis is normal to the bottom of the cylinder or the frustum.
24 Adams View Commands
geometry create curve nurb_curve
Example:
geometry create curve nurb_curve &
nurb_curve degree = 3 &
nurb_curve rational = yes &
nurb_curve periodic = yes &
nurb_curve control_points = 1,5,3 &
nurb_curve knots = 5
Description:
Extended Definition:
1. When an Adams Solver data file (.adm) is read into Adams View, all comments associated with a
statement (from the end of the previous statement through the end of the current statement) are
stored with the object. Comments in the data file can be associated with model.
These comments must follow the title statement and be followed by the comment 'END OF
MODEL COMMENTS'. This string must be uppercase.
When an Adams Solver data file is written, the comments for an object are written before the
statement corresponding to the object.
Format:
geometry create curve outline
outline_name = a new outline
adams_id = adams_id
comments = string
marker_name = an existing marker
visibility_between_markers = on_off
image_file_name = string
horizontal = clamp_repeat
vertical = clamp_repeat
close = boolean
Example:
:
Description:
Extended Definition:
1. Outlines are line segments (open or closed) that are define by a series of markers.
An outline is composed of at least two and not more than 2500 markers.
These markers are connected by line segments to form the outline.
If all of the markers of an outline lie on the same part, the parent of the outline is this part, and the
outline moves with this part.
If some of the markers lie on different parts, the parent of the outline is the model. As the parts move,
the outline is stretched or "rubber-banded" to fit the new marker locations.
2. You may use this name later to refer to this graphic. Adams View will not allow you to have two
outlines with the same full name, so you must provide a unique name.
Normally, entity names are composed of alphabetic, numeric, or '_' (underscore) characters, and start
with an alphabetic or '_' character. They may be any length.
By enclosing the name in double quotes, you may use other printable characters, or start the name
with a numeral. If a name contains characters, or starts with a numeral, you must always quote the
name when entering it.
geometry 27
geometry create curve outline
Note that you can specify the parentage of an entity (for example, what part "owns" a marker or a
geometry element) when you CREATE it by changing the name. If you enter just the entity name,
then the default parent will be assigned by Adams View. If you type in the full name, then you may
over ride the default parent. In most cases, when creating an entity, Adams View will provide a default
name. The default name that Adams View provides will specify the parentage that it has assumed.
You may, or course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
3. When you use the FILE ADAMS_DATA_SET WRITE command, Adams View writes an Adams
data file for your model. Adams requires that each modeling element be identified by a unique integer
identifier. If you use this parameter to specify a non-zero identifier, Adams View will use it in the
corresponding statement in the Adams data file.
You may also enter zero as an identifier, either explicitly or by default. The next time you write an
Adams file, Adams View will replace the zero with a unique, internally-generated identifier. Adams
View will permanently store this identifier with the element just as if you had entered it yourself.
Normally, you would let all identifiers default to zero, and Adams View would generate the identifiers
for you. You are never required to enter a non-zero identifier. You only need to specify it if, for some
reason, you wish to control the Adams file output.
4. When an Adams Solver data file (.adm) is read into Adams View, all comments associated with a
statement (from the end of the previous statement through the end of the current statement) are
stored with the object. Comments in the data file can be associated with model. These comments
must follow the title statement and be followed by the comment 'END OF MODEL
COMMENTS'. This string must be uppercase.
When an Adams Solver data file is written, the comments for an object are written before the
statement corresponding to the object.
5. Many entities are attached to, or otherwise associated with, a specific marker. You use this parameter
to identify that marker.
You may identify a marker by typing its name or by picking it from the screen.
If the marker is not visible on the screen, you must type the name. You may also find it convenient
to type the name even if the marker is displayed.
If you created the marker by reading an Adams data set or graphics file, the marker name is the letters
MAR followed by the Adams data set marker ID number. The name of Adams MARKER/101 is
MAR101, for example. If you created the marker during preprocessing, you gave it a name at that
time.
If a marker is available by default, you may identify it by entering its name only. If it is not, you must
enter its full name. To identify a marker under a different part, for instance, you may need to enter
the model and part names as well. For example, you may specify marker 'pivot' from model 'links',
part 'lower_arm' by entering ".links.lower_arm.pivot". If you type a "?", Adams View will list the
markers available by default.
You must separate multiple marker names by commas.
28 Adams View Commands
geometry create curve point_trace
If the marker is visible in one of your views, you may identify it by picking on it.
You need not separate multiple marker picks by commas.
6. When you create an outline, by default a line will be drawn between each of the markers specified.
Using the VISIBILITY_BETWEEN_MARKERS parameter, you can turn turn off the visibility
between desired markers. For example, the following commands:
model create model_name=MOD1 marker create marker=MAR1
location=1,1,0
marker create marker=MAR2 location=2,1,0 marker create
marker=MAR3
location=2,2,0 marker create marker=MAR4 location=1,2,0
geometry
create curve outline outline_name=.MOD1.ground.OUT1 &
marker_name=MAR1,MAR2,MAR3,MAR4 &
visibility_between_markers=ON,ON,OFF,ON
will draw lines from MAR1 to MAR2, and from MAR3 to MAR4 there will be no line segment from
MAR2 to MAR3.
If you specify the VISIBILITY_BETWEEN_MARKERS parameter with less values than the number
of markers, the rest of the visibilities will default to ON. If for example you have an outline with some
of the visibilities turned off and you want to turn them all on, you can specify a single ON value.
When you render the outline in solid or shaded mode, each of the contiguously visible segments will
be rendered as objets. In the above example, the outline would not be draw as a solid object, but as
two lines.
Setting the visibility to OFF for a marker is equivalent to using a negative marker id on the
OUTLINE statement in the Adams DATA SET.
7. When you specify 'NO' for the ‘close’ parameter, Adams View will create a outline through the
markers specified, and will not attempt to close the start and end points with an additional line
segment. 'NO' is the default value.
When you specify 'YES' for this parameter, Adams View will create the outline, through the markers
specified, and add an additional line segment from the end marker to the starting marker.
Format:
geometry create curve point_trace
trace_marker = an existing marker
base_marker = an existing marker
curve_type = curve_type
close = yes_no_auto
analysis_name = an existing analysis
geometry 29
geometry create curve point_trace
Example:
geometry create curve point_trace &
trace_marker = marker_71 &
base_marker = marker_84 &
curve_type = polyline
Description:
Extended Definition:
1. A trace that follows a point creates a three-dimensional spline. The point can move in any direction
relative to the part on which the trace was created.
2. base_marker is particularly useful when a relatively small object undergoes both small configuration
changes as well as large overall gross motion. For example, the flight path of a jet is very large over
time relative to the motion of the control surfaces on the jet. In this case selecting the
BASE_MARKER to be on the jet would be appropriate.
This parameter can be used with the CAMERA_REF_MARKER to create a different effect on the
viewing direction. When the CAMERA_REF_MARKER and the BASE_MARKER are specified
together, the viewing direction is "from" the CAMERA_REF_MARKER position "to" the
BASE_MARKER position.
In addition the "up" direction of the view is computed based on the direction of the
CAMERA_REF_MARKER "y" axis (i.e. the y axis is projected into a direction perpendicular to the
viewing direction defined by the two markers). This viewing direction is recomputed between each
frame of the animation. This feature allows the effect of watching an object come from a distance
pass by and proceed into the distance.
Specifies an existing marker.
You may identify a marker by typing its name or by picking it from the screen.
If the marker is not visible on the screen, you must type the name.
You may also find it convenient to type the name even if the marker is displayed.
30 Adams View Commands
geometry create curve polyline
If you created the marker by reading an Adams data set or graphics file, the marker name is the letters
MAR followed by the Adams data set marker ID number. The name of Adams MARKER/101 is
MAR101, for example. If you created the marker during preprocessing, you gave it a name at that
time.
If a marker is available by default, you may identify it by entering its name only. If it is not, you must
enter its full name. To identify a marker under a different part, for instance, you may need to enter
the model and part names as well. For example, you may specify marker 'pivot' from model 'links',
part 'lower_arm' by entering ".links.lower_arm.pivot". If you type a "?", Adams View will list the
markers available by default.
You must separate multiple marker names by commas.
If the marker is visible in one of your views, you may identify it by picking on it.
You need not separate multiple marker picks by commas.
3. Any text that was in the info window while open, will be flushed out. The next time the info window
is opened, only the new text will be present.
Closing the info window does not change its size. The next time the info window is opened, its size
will be the same as the previous time.
All scroll positions are returned to the first line in the info window.
4. You may identify a analysis by typing its name or by picking it from the screen.
An analysis may be picked from the screen if you have read an Adams Graphics file, and use the
GRAPHIC_RESULTS command to display it. If the analysis is not visible on the screen, you must
type the name. You may also find it convenient to type the name even if the analysis is displayed.
You may have explicitly named the analysis when you created it by reading one or more Adams output
files. By default, the name of the analysis is the root name of the Adams output files. If you created
the analysis by reading an Adams Graphics file, for instance, the analysis name is the name of the
graphics file without the '.gra' extension.
You may get a list of analysis by typing a "?" in response to a parameter that requires an analysis name
be entered.
You must separate multiple analysis names by commas.
If the analysis is visible in one of your views, you may identify it by picking on any of the graphics
associated with it.
You need not separate multiple analysis picks by commas.
Format:
geometry create curve polyline
polyline_name = a new polyline
comments = string
location = location
path_curve = an existing gwire
relative_to = an existing model, part or marker
close = boolean
Example:
geometry create curve polyline &
polyline_name = polyline__1 &
location = 1,5,3 &
image_file_name = "c:\users\ashish\image"
Description:
Extended Definition:
1. The POLYLINE command provides a means to create a segmented curve that may be open or closed.
If closed, the POLYLINE becomes a polygon that can be filled (i.e. shaded). The end points of the
POLYLINE do not need to be coincident for you to close it. By setting the CLOSED parameter to
"YES" the two end points will be connected with a straight line segment.
The POLYLINE is displayed by connecting any number of LOCATIONS together, in the order in
which the LOCATIONS are input, using straight line segments.
32 Adams View Commands
geometry create curve polyline
The POLYLINE differs from the OUTLINE Adams View geometric element in that the outline
requires that you provide a series of markers to define the locations to be connected. The OUTLINE
can span multiple parts and the POLYLINE cannot. POLYLINEs are more space efficient than
OUTLINEs, taking approximately 40% of the memory required when compared to storing
OUTLINEs. Finally, POLYLINEs are not written to the Adams data set, and therefore, do not
appear in the Adams graphics file. POLYLINE definitions can be stored in a command file, written
to a WaveFront file, and, of course, the binary Adams View file.
In light of being more memory efficient, POLYLINEs are the most efficient means of storing
geometry translated from IGES files.
2. Specifies the name of the new POLYLINE. You may use this name later to refer to this POLYLINE.
Adams View will not allow you to have two POLYLINE with the same full name, so you must provide
a unique name.
Normally, entity names are composed of alphabetic, numeric, or '_' (underscore) characters, and start
with an alphabetic or '_' character. They may be any length.
By enclosing the name in double quotes, you may use other printable characters, or start the name
with a numeral. If a name contains characters, or starts with a numeral, you must always quote the
name when entering it.
Note that you can specify the parentage of an entity (for example, what part "owns" a marker or a
geometry element) when you CREATE it by changing the name. If you enter just the entity name,
then the default parent will be assigned by Adams View. If you type in the full name, then you may
over ride the default parent. In most cases, when creating an entity, Adams View will provide a default
name. The default name that Adams View provides will specify the parentage that it has assumed.
You may, or course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
3. When an Adams Solver data file (.adm) is read into Adams View, all comments associated with a
statement (from the end of the previous statement through the end of the current statement) are
stored with the object. Comments in the data file can be associated with model. These comments
must follow the title statement and be followed by the comment 'END OF MODEL
COMMENTS'. This string must be uppercase.
When an Adams Solver data file is written, the comments for an object are written before the
statement corresponding to the object.
4. By default, you supply Cartesian (x, y, z) coordinates. You may use the 'defaults units
coordinate_system_type =' command to change this convention. For example, selecting 'cylindrical'
means you will subsequently be supplying r, theta, and z coordinates.
Adams View applies your location coordinates in the coordinate system you identify with the
RELATIVE_TO parameter. The default for the RELATIVE_TO parameter is the default coordinate
system. (See the RELATIVE_TO parameter for this command).
5. The PATH_CURVE is any member of the WIRE_GEOMETRY class (which includes arcs, circles,
spline curves, polylines and outlines). When you specify a PATH_CURVE, the values of the vertices
are extracted from the specified object and used to compose the polyline.
geometry 33
geometry create feature blend
6. If relative_to parameter is not specified, the default coordinate system is used. The default coordinate
system is initially your model, that is, the global coordinate system. You may change the default
coordinate system using the 'defaults coordinate_system' command.
7. If closed, the polyline can be filled (that is, shaded). The end points of the polyline do not need to be
coincident for you to close it. By setting the CLOSED parameter to "YES" the two end points will
be connected with a line segment. If the CLOSE parameter is set to "NO" the polyline will appear
as a segmented curve.
Format:
geometry create feature blend
blend_name = a new blend
subtype = sub_type
subids = integer
chamfer = boolean
radius1= length
radius2 = length
reference_marker = an existing marker
locations = location
Example:
geometry create feature blend &
blend_name = BLEND__1 &
subtype = edge &
subids = 10 &
chamfer = yes &
radius1 = 0.15 &
reference_marker = Origin
34 Adams View Commands
geometry create feature hole
Description:
Extended Definition:
1. The subtype parameter specifies whether you are creating the blend on an edge or vertex:
• edge - Creates the blend on the edge of an object.
• vertex - Creates the blend on the vertex of an object.
2. The chamfer parameter specifies whether or not to chamfer the edge or vertex:
• no - Creates a fillet instead of a chamfer.
• yes - Creates a chamfer.
Tips:
1. If you do not specify a reference marker, Adams View uses the reference marker of the geometry.
Format:
geometry create feature hole
hole_name = a new hole
subid = integer
center = location
geometry 35
geometry create feature hole
Example:
geometry create feature hole &
hole_name = hole__1 &
subid = 12 &
center = 10 , 2 , 1 &
countersink = yes &
radius = 3 &
depth = 4
Description:
Extended Definition:
1. You can use the name specified by the hole_name parameter, later to refer to this entity. Adams View
does not allow you to have two entities with the same name, so you must provide a unique name.
Normally, entity names are composed of alphabetic, numeric, or '_' (underscore) characters, and start
with an alphabetic or '_' character. They may be of any length.
By enclosing the name in double quotes, you can use other printable characters, or start the name with
a numeral. If a name contains characters, or starts with a numeral, you must always quote the name
when entering it.
36 Adams View Commands
geometry create feature thinshell
Note that you can specify the parentage of an entity (for example, what part "owns" a marker or a
geometry element) when you create it by changing the name. If you enter just the entity name, then
Adams View assigns the default parent. If you type in the full name, then you can override the default
parent. In most cases, when creating an entity, Adams View provides a default name. The default
name that Adams View provides specifies the parentage that it has assumed. You can, of course, delete
this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
2. The countersink parameter specifies whether to create a hole or a boss:
• yes - Creates a boss.
• no - Creates a hole.
Cautions:
1. You cannot specify the radius and depth of a hole so that it splits the current geometry into two
separate geometries.
Format:
geometry create feature thinshell
thin_shell_name = a new thin_shell
subids = integer
thickness = length
locations = location
Example:
geometry create feature thinshell &
thin_shell_name = thin_shell__1 &
subids = 10 &
thickness = 0.15
geometry 37
geometry create point
Description:
Extended Definition:
1. You can use the name specified by the thin_shell_name parameter, later to refer to this entity. Adams
View does not allow you to have two entities with the same name, so you must provide a unique
name. Normally, entity names are composed of alphabetic, numeric, or '_' (underscore) characters,
and start with an alphabetic or '_' character. They may be of any length.
By enclosing the name in double quotes, you can use other printable characters, or start the name with
a numeral. If a name contains characters, or starts with a numeral, you must always quote the name
when entering it.
Note that you can specify the parentage of an entity (for example, what part "owns" a marker or a
geometry element) when you create it by changing the name. If you enter just the entity name, then
Adams View assigns the default parent. If you type in the full name, then you can override the default
parent. In most cases, when creating an entity, Adams View provides a default name. The default
name that Adams View provides specifies the parentage that it has assumed. You can, of course, delete
this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
Format:
geometry create point
point_name = a new point
adams_id = integer
comments = string
ref_marker_name = an existing marker
38 Adams View Commands
geometry create shape block
Example:
geometry create point &
point_name = point__1 &
adams_id = 1 &
comments = " a new point" &
ref_marker_name = marker_1
Description:
Format:
geometry create shape block
block_name = a new block
adams_id = adams_id
comments = string
corner_marker = an existing marker
diag_corner_coords = length
Example:
geometry create shape block &
block_name = box__1 &
corner_marker = marker_82 &
diag_corner_coords = 2,4,6
geometry 39
geometry create shape block
Description:
Extended Definition:
1. A block is a box with parallel edges and orthogonal vertices. You position and orient a block by means
of a corner marker. You specify the dimensions of the box by supplying three coordinates for the
opposite corner.
2. Specifies the name of the new block. You may use this name later to refer to this block. Adams View
will not allow you to have two blocks with the same full name, so you must provide a unique name.
Normally, entity names are composed of alphabetic, numeric, or '_' (underscore) characters, and start
with an alphabetic or '_' character. They may be any length.
By enclosing the name in double quotes, you may use other printable characters, or start the name
with a numeral. If a name contains characters, or starts with a numeral, you must always quote the
name when entering it.
Note that you can specify the parentage of an entity (for example, what part "owns" a marker or a
geometry element) when you CREATE it by changing the name. If you enter just the entity name,
then the default parent will be assigned by Adams View. If you type in the full name, then you may
over ride the default parent. In most cases, when creating an entity, Adams View will provide a default
name. The default name that Adams View provides will specify the parentage that it has assumed.
You may, or course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
3. When you use the FILE ADAMS_DATA_SET WRITE command, Adams View writes an Adams
data file for your model. Adams requires that each modeling element be identified by a unique
integer identifier. If you use this parameter to specify a non-zero identifier, Adams View will use it
in the corresponding statement in the Adams data file.
40 Adams View Commands
geometry create shape cylinder
You may also enter zero as an identifier, either explicitly or by default. The next time you write an
Adams file, Adams View will replace the zero with a unique, internally-generated identifier. Adams
View will permanently store this identifier with the element just as if you had entered it yourself.
Normally, you would let all identifiers default to zero, and Adams View would generate the identifiers
for you. You are never required to enter a non-zero identifier. You only need to specify it if, for some
reason, you wish to control the Adams file output.
4. When an Adams Solver data file (.adm) is read into Adams View, all comments associated with a
statement (from the end of the previous statement through the end of the current statement) are
stored with the object. Comments in the data file can be associated with model. These comments
must follow the title statement and be followed by the comment 'END OF MODEL
COMMENTS'. This string must be uppercase.
5. These coordinates are with respect to the corner marker x, y, and z axes. This location, along with
the corner_marker, define the boundaries of the block.
Format:
geometry create shape cylinder
cylinder_name = a new cylinder
adams_id = adams_id
comments = string
center_marker = an existing marker
angle_extent = angle
length = length
radius = length
ref_radius_by_marker = an existing marker
side_count_for_body = integer
segment_count_for_ends = integer
Example:
geometry create shape cylinder &
cylinder_name = CYLINDER__1 &
center_marker = MARKER_82 &
angle_extent = 60 &
length = 25 &
ref_radius_by_marker = MARKER_72
geometry 41
geometry create shape cylinder
Description:
Extended Definition:
1. A cylinder is an extruded circle whose top and bottom are perpendicular to the cylinder central axis.
The cylinder is placed at the marker named 'CENTER_MARKER='. The circles at the top and at the
bottom of the cylinder have a radius specified by a radius, or radius reference marker. The cylinder
length is along the positive z-axis of the center marker, and is specified by 'LENGTH='. The number
of sides can be chosen using the 'SIDE_COUNT_FOR_BODY' parameter. The number of edges on
the end circles can be specified using the 'SEGMENT_COUNT_FOR_END=' parameter. The
cylinder will move with the part who owns the center marker.
2. Specifies the name of the new cylinder. You may use this name later to refer to this cylinder. Adams
View will not allow you to have two cylinders with the same full name, so you must provide a unique
name.
Normally, entity names are composed of alphabetic, numeric, or '_' (underscore) characters, and
start with an alphabetic or '_' character. They may be any length.
By enclosing the name in double quotes, you may use other printable characters, or start the name
with a numeral. If a name contains characters, or starts with a numeral, you must always quote the
name when entering it.
42 Adams View Commands
geometry create shape cylinder
Note that you can specify the parentage of an entity (e.g. what part "owns" a marker or a geometry
element) when you CREATE it by changing the name. If you enter just the entity name, then the
default parent will be assigned by Adams View. If you type in the full name, then you may over ride
the default parent. In most cases, when creating an entity, Adams View will provide a default name.
The default name that Adams View provides will specify the parentage that it has assumed. You may,
or course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
3. When you use the FILE ADAMS_DATA_SET WRITE command, Adams View writes an Adams
data file for your model. Adams requires that each modeling element be identified by a unique
integer identifier. If you use this parameter to specify a non-zero identifier, Adams View will use it in
the corresponding statement in the Adams data file.
You may also enter zero as an identifier, either explicitly or by default. The next time you write an
Adams file, Adams View will replace the zero with a unique, internally-generated identifier. Adams
View will permanently store this identifier with the element just as if you had entered it yourself.
Normally, you would let all identifiers default to zero, and Adams View would generate the identifiers
for you. You are never required to enter a non-zero identifier. You only need to specify it if, for some
reason, you wish to control the Adams file output.
4. When an Adams Solver data file (.adm) is read into Adams View, all comments associated with a
statement (from the end of the previous statement through the end of the current statement) are
stored with the object. Comments in the data file can be associated with model. These comments
must follow the title statement and be followed by the comment 'END OF MODEL
COMMENTS'. This string must be uppercase.
When an Adams Solver data file is written, the comments for an object are written before the
statement corresponding to the object.
5. If you are creating a circle or an arc, orient the center marker so that its z-axis is normal to the plane
of the circle or to the plane of the arc. Similarly, if you are defining a cylinder or a frustum, orient the
center marker so that its z-axis is normal to the bottom of the cylinder or the frustum.
6. The angle starts at the positive x-axis of the center marker and subtends the arc, the arc of the cylinder,
or the arc of the cone frustum.
7. Because the two circles at the ends of a cylinder or a frustum are both perpendicular to the z-axis of
the center marker, they are parallel. Adams View uses the value of LENGTH to specify the z distance
between the two circles. A positive value specifies a cylinder or a frustum along the positive z-axis of
the center marker, and a negative value specifies a cylinder or a frustum along the negative z-axis of
the center marker.
8. Adams View stores the radius value, not the marker name. If you later move this marker, the radius
will not change.
Cautions:
1. cylinder_name: The number of levels used varies from case to case and the parentage must exist before
an entity can be assigned to it.
geometry 43
geometry create shape ellipsoid
Format:
geometry create shape ellipsoid
ellipsoid_name = a new ellipsoid
comments = string
center_marker = an existing marker
x_scale_factor = length
y_scale_factor = length
z_scale_factor = length
Example:
geometry create shape ellipsoid &
ellipsoid_name = ELLIPSOID__1 &
center_marker = MARKER_74 &
x_scale_factor = 2
Description:
Extended Definition:
1. An ellipsoid is a unit sphere that has been scaled in the x, y, and z directions. The ellipsoid is placed
at the marker named 'CENTER_MARKER='. The X_SCALE_FACTOR, Y_SCALE_FACTOR,
and Z_SCALE_FACTOR parameters are used to specify the scaling of the initial unit sphere along
the center marker's x, y, z axes. The ellipsoid will move with the part which owns the center marker.
44 Adams View Commands
geometry create shape extrusion
2. Specifies the name of the new ellipsoid. You may use this name later to refer to this ellipsoid. Adams
View will not allow you to have two ellipsoids with the same full name, so you must provide a unique
name.
Normally, entity names are composed of alphabetic, numeric, or '_' (underscore) characters, and start
with an alphabetic or '_' character. They may be any length.
By enclosing the name in double quotes, you may use other printable characters, or start the name
with a numeral. If a name contains characters, or starts with a numeral, you must always quote the
name when entering it.
Note that you can specify the parentage of an entity (e.g. what part "owns" a marker or a geometry
element) when you CREATE it by changing the name. If you enter just the entity name, then the
default parent will be assigned by Adams View. If you type in the full name, then you may over ride
the default parent. In most cases, when creating an entity, Adams View will provide a default name.
The default name that Adams View provides will specify the parentage that it has assumed.
You may, or course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
3. When an Adams Solver data file (.adm) is read into Adams View, all comments associated with a
statement (from the end of the previous statement through the end of the current statement) are
stored with the object. Comments in the data file can be associated with model.
These comments must follow the title statement and be followed by the comment 'END OF
MODEL COMMENTS'. This string must be uppercase.
When an Adams Solver data file is written, the comments for an object are written before the
statement corresponding to the object.
4. Specifies the marker at the center of a circle, an arc, the bottom of a cylinder, or the bottom of a
frustum. If you are creating a circle or an arc, orient the center marker so that its z-axis is normal to
the plane of the circle or to the plane of the arc. Similarly, if you are defining a cylinder or a frustum,
orient the center marker so that its z-axis is normal to the bottom of the cylinder or the frustum.
Format:
geometry create shape extrusion
extrusion_name = a new extrusion
adams_id = adams id
comments = string
reference_marker = an existing marker
geometry 45
geometry create shape extrusion
Example:
geometry create shape extrusion &
extrusion_name = extrusion__1 &
comments = "a new extrusion" &
reference_marker = origin &
profile_curve = arc__1 &
path_curve = circle__1 &
relative_to = ground &
analytical = no
Description:
Extended Definition:
1. An extrusion is defined by a path polyline curve and a profile curve, which may be either a polyline
or a data element curve. The profile curve is in the X-Y plane of its parent part. Z coordinate values
of the profile curve are ignored. The path curve is a polyline that describes how the profile will be
swept along. The extrusion is placed with respect to the marker named 'REFERENCE_MARKER='
using the same orientation that the path curve has with respect to its parent part. The extrusion will
move with the part which owns the reference marker.
2. You may use the name specified by the extrusion_name parameter, later to refer to this extrusion.
Adams View will not allow you to have two extrusions with the same full name, so you must provide
a unique name.
Normally, entity names are composed of alphabetic, numeric, or '_' (underscore) characters, and start
with an alphabetic or '_' character. They may be any length.
By enclosing the name in double quotes, you may use other printable characters, or start the name
with a numeral. If a name contains characters, or starts with a numeral, you must always quote the
name when entering it.
Note that you can specify the parentage of an entity (e.g. what part "owns" a marker or a geometry
element) when you CREATE it by changing the name. If you enter just the entity name, then the
default parent will be assigned by Adams View. If you type in the full name, then you may over ride
the default parent. In most cases, when creating an entity, Adams View will provide a default name.
The default name that Adams View provides will specify the parentage that it has assumed.
You may, or course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
3. When an Adams Solver data file (.adm) is read into Adams View, all comments associated with a
statement (from the end of the previous statement through the end of the current statement) are
stored with the object. Comments in the data file can be associated with model. These comments
must follow the title statement and be followed by the comment 'END OF MODEL
COMMENTS'. This string must be uppercase.
geometry 47
geometry create shape force
When an Adams Solver data file is written, the comments for an object are written before the
statement corresponding to the object.
4. You may specify an arc, circle, spline curve, polyline, or outline for the path_curve parameter. The
object defines the path along which the profile curve will be swept.
5. The points specified by the path_points parameter are relative to the extrusion's reference marker.
The points defines the path along which the profile curve will be swept.
6. If the relative_to parameter is not specified, the default coordinate system is used. The default
coordinate system is initially your model, i.e. the global coordinate system. You may change the
default coordinate system using the 'defaults coordinate_system' command.
Tips:
1. You may specify an arc, circle, spline curve, polyline, or outline for the profile_curve parameter The
object should be in the X-Y plane of the extrusions reference marker.
To see force graphics during animations, you must specify those force elements in your model for which you
would like to see the associated force graphics. To turn force graphics on or off for particular forces, refer to
the Adams View documentation that describe how to modify a force or a motion.
You can specify the following for the display of force graphics during an animation:
Scale factor used to control the graphic’s relative size compared to the objects in the model.
Whether or not the force magnitudes are displayed numerically. The numerical values appear near
the arrowheads.
48 Adams View Commands
geometry create shape force
Whether or not the force graphics are drawn in wireframe or shaded mode when the model is
animated in shaded mode.
Whether the force graphic is always drawn in front of other geometry. This is particularly useful
when viewing forces inside geometry, such as three-dimensional contacts.
There are two different scale factors: one for forces and one for torques. Adams applies the force scale factor
to all force graphics in your model to maintain their proper relative sizing, while it applies the torque scale
factor to all torque graphics in your model.
Finding force and torque scale factors that are good for the entire animation might require some trial and
error. It is often useful to set your scale factors while viewing the frame for which the largest force reaches its
peak value.
Format:
geometry create shape force
force_name = new force symbol
adams_id = integer
comments = string
force_element_name = existing force
joint_name = existing joint
jprim_name = existing primitive joint
curve_curve_name = existing ccurve
point_curve_name = existing pcurve
all_force_elements = true_only
applied_at_marker_name = existing triad
Example:
geometry create shape force &
force_name = force_1_1 &
force_element_name = vforce_1 &
applied_at_marker_name = marker_4
geometry 49
geometry create shape force
Description:
Extended Definition:
1. When using the Adams View command language and naming entities, you can use the name later to
refer to this entity. Adams View does not allow you to have two entities with the same full name, so
you must provide a unique name. Normally, entity names are composed of alphabetic, numeric, or
'_' (underscore) characters, and start with an alphabetic or '_' character. They may be of any length.
By enclosing the name in double quotes, you can use other printable characters, or start the name with
a numeral. If a name contains characters, or starts with a numeral, you must always quote the name
when entering it.
50 Adams View Commands
geometry create shape force
Note that you can specify the parentage of an entity (for example, what part "owns" a marker or a
geometry element) when you create it by changing the name. If you enter just the entity name, then
Adams View assigns the default parent. If you type in the full name, then you can override the default
parent. In most cases, when creating an entity, Adams View provides a default name. The default
name that Adams View provides specifies the parentage that it has assumed. You can, of course, delete
this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
2. The force element can be:
• Beam
• Bushing
• Field
• Translational spring damper
• Rotational spring damper
• Tire
• Single-component force
• Force vector
• Torque vector
• General force
• Multi-point force
3. The joint element can be:
• Translational
• Revolute
• Cylindrical
• Univesal
• Spherical
• Planar
• Rackpin
• Screw
4. The joint primitive element can be:
• At point
• Inline
• Inplane
• Orientation
• Parallel_axis
geometry 51
geometry create shape frustum
• Perpendicular
5. If you use the all_force_elements=true argument, the marker must have at least one force applied to it.
If you enter a specific force type using joint_name, jprim_name, force_element_name, point_curve_name, or
curve_curve_name parameters, then the marker named in this parameter must be one of the markers
on which the specified force acts.
Format:
geometry create shape frustum
frustum_name = a new frustum
adams_id = adams_id
comments = string
center_marker = an existing marker
angle_extent = angle
length = length
side_count_for_body = integer
top_radius = length
bottom_radius = length
segment_count_for_ends = integer
Example:
geometry create shape frustum &
frustum_name = frustum__1 &
adams_id = 101 &
comments = "a new frustum" &
center_marker = origin &
angle_extent = 150 &
length = 10 &
side_count_for_body = 10
52 Adams View Commands
geometry create shape frustum
Description:
Extended Definition:
1. A frustum is a specialized cone whose top and bottom are perpendicular to the cone central axis. A
frustum will move with the part that the center marker belongs to.
2. You may use the name specified by the frustum_name parameter later to refer to this frustum. Adams
View will not allow you to have two frustums with the same full name, so you must provide a unique
name.
Normally, entity names are composed of alphabetic, numeric, or '_' (underscore) characters, and start
with an alphabetic or '_' character. They may be any length.
By enclosing the name in double quotes, you may use other printable characters, or start the name
with a numeral. If a name contains characters, or starts with a numeral, you must always quote the
name when entering it.
Note that you can specify the parentage of an entity (e.g. what part "owns" a marker or a geometry
element) when you CREATE it by changing the name. If you enter just the entity name, then the
default parent will be assigned by Adams View. If you type in the full name, then you may over ride
the default parent. In most cases, when creating an entity, Adams View will provide a default name.
The default name that Adams View provides will specify the parentage that it has assumed. You may,
or course, delete this name and use your own. The form of a full name is:
geometry 53
geometry create shape gcontact
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
3. When you use the FILE ADAMS_DATA_SET WRITE command, Adams View writes an Adams
data file for your model. Adams requires that each modeling element be identified by a unique
integer identifier. If you use this parameter to specify a non-zero identifier, Adams View will use it in
the corresponding statement in the Adams data file.
You may also enter zero as an identifier, either explicitly or by default. The next time you write an
Adams file, Adams View will replace the zero with a unique, internally-generated identifier. Adams
View will permanently store this identifier with the element just as if you had entered it yourself.
Normally, you would let all identifiers default to zero, and Adams View would generate the identifiers
for you. You are never required to enter a non-zero identifier. You only need to specify it if, for some
reason, you wish to control the Adams file output.
4. When an Adams Solver data file (.adm) is read into Adams View, all comments associated with a
statement (from the end of the previous statement through the end of the current statement) are
stored with the object. Comments in the data file can be associated with model. These comments
must follow the title statement and be followed by the comment 'END OF MODEL
COMMENTS'. This string must be uppercase.
When an Adams Solver data file is written, the comments for an object are written before the
statement corresponding to the object.
5. The angle starts at the positive x-axis of the center marker and subtends the arc, the arc of the cylinder,
or the arc of the cone frustum.
6. Because the two circles at the ends of a cylinder or a frustum are both perpendicular to the z-axis of
the center marker, they are parallel. Adams View uses the value of LENGTH to specify the z distance
between the two circles. A positive value specifies a cylinder or a frustum along the positive z-axis of
the center marker, and a negative value specifies a cylinder or a frustum along the negative z-axis of
the center marker.
7. The top of the furstum is perpendicular to the center marker z-axis, and the center of the top is at the
position on the center marker z-axis that LENGTH specifies. Also, The bottom is perpendicular to
the center marker z-axis, and the center of the bottom is at the center marker origin.
Format:
geometry create shape gcontact
contact_force_name = a new contact_force_graphic
adams_id = adams_id
comments = string
54 Adams View Commands
geometry create shape gcontact
Example:
geometry create shape gcontact &
contact_force_name = gcontact__1 &
adams_id = 1 &
comments = "a new contact force graphic" &
contact_element_name = sphere_plane_contact_5 &
force_display = both
Description:
Extended Definition:
1. A gcontact is a force graphic for a contact element. The gcontact can display graphics for component
or aggregate forces of a contact.
• none - Displays no force graphics.
• components - Displays force graphics for the normal force, friction force, and torque at each
incident of a contact for each frame. Multiple incidents at a frame display multiple force graphics.
• aggregate - Displays force graphics for the sum of all forces (normal and friction) and all torques
on the contact at each frame. Sums multiple incidents at a frame and displays one force graphic.
• both - Displays both component and aggregate force graphics.
geometry 55
geometry create shape link
Format:
geometry create shape link
link_name = a new glink
comments = string
i_marker = an existing marker
j_marker = an existing marker
width = length
depth = length
Example:
geometry create shape link &
link_name = LINK__1 &
comments = "a new link" &
i_marker = MK124 &
j_marker = MK112 &
width = 25 &
depth = 5
Description:
Extended Definition:
1. A link is a three-dimensional object used to represent a connecting part. It has its length defined by
the distance between I_MARKER and the J_MARKER. It also has a WIDTH and DEPTH that
may be specified. The ends of the link are semi-circular. The J_MARKER must lie in the XY plane
of the I_MARKER.
56 Adams View Commands
geometry create shape nurb_surf
2. You may use the name specified by the link_name parameter later, to refer to this link. Adams View
will not allow you to have two links with the same full name, so you must provide a unique name.
Normally, entity names are composed of alphabetic, numeric, or '_' (underscore) characters, and start
with an alphabetic or '_' character. They may be any length.
By enclosing the name in double quotes, you may use other printable characters, or start the name
with a numeral. If a name contains characters, or starts with a numeral, you must always quote the
name when entering it.
Note that you can specify the parentage of an entity (e.g. what part "owns" a marker or a geometry
element) when you CREATE it by changing the name. If you enter just the entity name, then the
default parent will be assigned by Adams View. If you type in the full name, then you may over ride
the default parent. In most cases, when creating an entity, Adams View will provide a default name.
The default name that Adams View provides will specify the parentage that it has assumed. You may,
or course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
3. When an Adams Solver data file (.adm) is read into Adams View, all comments associated with a
statement (from the end of the previous statement through the end of the current statement) are
stored with the object. Comments in the data file can be associated with model. These comments
must follow the title statement and be followed by the comment 'END OF MODEL
COMMENTS'. This string must be uppercase.
When an Adams Solver data file is written, the comments for an object are written before the
statement corresponding to the object.
Cautions:
1. The j_marker must lie along the i_marker's x-axis and it must have the same orientation as the
i_marker.
2. The j_marker must lie along the i_marker's x-axis and it must have the same orientation as the
i_marker.
Description:
Format:
geometry create shape picture
picture_name = new picture
image_file_name = name of image
height = integer
location = location
Example:
geometry create shape picture &
picture_name = picture_1 &
image_file_name = "c:\documents and settings\car.jpg" &
height = 50
Description:
Plane Tool is a two-dimensional box that gets created. You can draw a plane’s length and width in the
plane of the screen or the working grid, if it is turned on. You will find planes most useful when you are
creating contact forces between objects
When you create a plane, you can select to create a new part consisting of the plane geometry or add the plane
geometry to an existing part or ground. If you create a new part, it has no mass since it is composed of only
wire geometry.
Format:
geometry create shape plane
plane_name = new plane
adams_id = integer
geometry 59
geometry create shape plane
Example:
geometry create shape plane &
plane_name = plane_1 &
ref_marker_name = marker_5 &
x_minimum = 100 &
x_maximum = 500.9 &
y_minimum = 100 &
y_maximum = 788
Description:
Extended Definition:
1. When using the Adams View command language and naming entities, you can use the name later to
refer to this entity. Adams View does not allow you to have two entities with the same full name, so
you must provide a unique name. Normally, entity names are composed of alphabetic, numeric, or
'_' (underscore) characters, and start with an alphabetic or '_' character. They may be of any length.
By enclosing the name in double quotes, you can use other printable characters, or start the name with
a numeral. If a name contains characters, or starts with a numeral, you must always quote the name
when entering it.
Note that you can specify the parentage of an entity (for example, what part "owns" a marker or a
geometry element) when you create it by changing the name. If you enter just the entity name, then
Adams View assigns the default parent. If you type in the full name, then you can override the default
parent. In most cases, when creating an entity, Adams View provides a default name. The default
name that Adams View provides specifies the parentage that it has assumed. You can, of course, delete
this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
2. An Adams Solver ID is an integer used to identify the element in the Adams Solver dataset (.adm)
file. You only need to specify an ID number if you have user-written subroutines.
3. Enter a 0 to have Adams Solver assign the ID for you.
4. For comments, you can enter any alphanumeric characters. The comments that you create appear in
the Information window when you select to display information about the object, in the Adams View
log file, and in a command or dataset file when you export your model to these types of files. (Note
that design variables are not output to datasets; therefore, neither are their comments.)
5. If all values of x_minimum,y_minimum,x_maximum,y_maximum are positive, the values indicate
the lower left corner of the plane. For example, the values of x_minimum = 10 and y_minimum =
20, place the lower left corner at 10,20 in the reference marker's coordinate system.
Format:
geometry create shape plate
plate_name = a new plate
comments = string
marker_name = an existing marker
width = length
radius = length
geometry 61
geometry create shape plate
Example:
geometry create shape plate &
plate_name = plate__1 &
comments = "a new plate" &
marker_name = mk112 , mk124 , cm &
width = 15 &
radius = 5
Description:
Extended Definition:
1. When an Adams Solver data file (.adm) is read into Adams View, all comments associated with a
statement (from the end of the previous statement through the end of the current statement) are
stored with the object. Comments in the data file can be associated with model.
These comments must follow the title statement and be followed by the comment 'END OF
MODEL COMMENTS'. This string must be uppercase.
When an Adams Solver data file is written, the comments for an object are written before the
statement corresponding to the object.
2. Many entities are attached to, or otherwise associated with, a specific marker. You use the
marker_name parameter to identify that marker. You may identify a marker by typing its name or by
picking it from the screen.
If the marker is not visible on the screen, you must type the name.
You may also find it convenient to type the name even if the marker is displayed.
If you created the marker by reading an Adams data set or graphics file, the marker name is the letters
MAR followed by the Adams data set marker ID number. For example, the name of Adams
MARKER/101 is MAR101. If you created the marker during preprocessing, you will have given it a
name at that time.
62 Adams View Commands
geometry create shape revolution
If a marker is available by default, you may identify it by entering only its name. If it is not, you must
enter its full name. To identify a marker under a different part, for instance, you may need to enter
the model and part names as well. For example, you may specify marker 'pivot' from model 'links',
part 'lower_arm' by entering ".links.lower_arm.pivot". If you type a "?", Adams View will list the
markers available by default.
You must separate multiple marker names by commas. The z-axis of the first marker must be
perpendicular to the plate created by the multiple markers.
If the marker is visible in one of your views, you may identify it by picking on it.
You need not separate multiple marker picks by commas.
Format:
geometry create shape revolution
revolution_name = a new revolution
adams_id = Adams id
comments = string
reference_marker = an existing marker
profile_curve = an existing gwire
points_for_profile = location
angle_extent = angle
number_of_sides = integer
relative_to = an existing model, part or marker
analytical = boolean
Example:
geometry create shape revolution &
revolution_name = revolution__1 &
comments = "a new revolution" &
reference_marker = origin &
profile_curve = circle__1 &
angle_extent = 50 &
number_of_sides = 10 &
relative_to = ground &
analytical = no
geometry 63
geometry create shape revolution
Description:
Extended Definition:
1. For more detail about revolutions, see Revolution Tool dbox help.
2. A revolution is defined by a profile polyline curve which is revolved about the Z axis of the marker
named 'REFERENCE_MARKER='. The profile curve is a polyline that is in the X-Y plane of its
parent part. Z coordinate values of the profile curve are ignored. The revolution will move with the
part which owns the reference marker.
3. You may use the name specified by the revolution_name parameter, later to refer to this revolution.
Adams View will not allow you to have two revolutions with the same full name, so you must provide
a unique name.
Normally, entity names are composed of alphabetic, numeric, or '_' (underscore) characters, and start
with an alphabetic or '_' character. They may be any length.
By enclosing the name in double quotes, you may use other printable characters, or start the name
with a numeral. If a name contains characters, or starts with a numeral, you must always quote the
name when entering it.
64 Adams View Commands
geometry create shape shell
Note that you can specify the parentage of an entity (for example, what part "owns" a marker or a
geometry element) when you CREATE it by changing the name. If you enter just the entity name,
then the default parent will be assigned by Adams View. If you type in the full name, then you may
over ride the default parent. In most cases, when creating an entity, Adams View will provide a default
name. The default name that Adams View provides will specify the parentage that it has assumed.
You may, or course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
4. When an Adams Solver data file (.adm) is read into Adams View, all comments associated with a
statement (from the end of the previous statement through the end of the current statement) are
stored with the object. Comments in the data file can be associated with model. These comments
must follow the title statement and be followed by the comment 'END OF MODEL
COMMENTS'. This string must be uppercase.
When an Adams Solver data file is written, the comments for an object are written before the
statement corresponding to the object.
5. For the profile_curve parameter, you may specify an arc, circle, spline curve, polyline, or outline. The
coordinates of the object points, relative to the object's parent part, will be used to define a profile
relative to the revolution's reference marker. The profile defined by the points will be swept around
the reference marker's z-axis.
Tips:
1. The angle starts at the positive x-axis of the center marker and subtends the arc, the arc of the cylinder,
or the arc of the cone frustum.
Format:
geometry create shape shell
shell_name = a new shell
comments = string
reference_marker = an existing marker
file_name = string
wireframe_only = boolean
geometry 65
geometry create shape shell
Example:
geometry create shape shell &
shell_name = shell__1 &
comments = " a new shell" &
reference_marker = mk112 &
file_name = "c:\shell1.shl" &
wireframe_only = no
Description:
Extended Definition:
1. A shell is defined by a number of node points and the connectivity between those node points. The
shell is represented as polygons defined by connecting node points with straight line segments.
Polygons are not necessarily flat. The points and connectivety are read from a file named
"FILE_NAME=". The shell is placed at the marker named "REFERENCE_MARKER=". The shell
will move with the part that owns the reference marker.
2. You may use the name specified by the shell_name parameter later to refer to this shell. Adams View
will not allow you to have two shells with the same name, so you must provide a unique name.
Normally, entity names are composed of alphabetic, numeric, or '_' (underscore) characters, and
start with an alphabetic or '_' character. They may be of any length.
By enclosing the name in double quotes, you may use other printable characters, or start the name
with a numeral. If a name contains characters, or starts with a numeral, you must always quote the
name when entering it.
Note that you can specify the parentage of an entity (e.g. what part "owns" a marker or a geometry
element) when you CREATE it by changing the name. If you enter just the entity name, then the
default parent will be assigned by Adams View. If you type in the full name, then you may override
the default parent. In most cases, when creating an entity, Adams View will provide a default name.
The default name that Adams View provides will specify the parentage that it has assumed. You may,
of course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
66 Adams View Commands
geometry create shape solid_shell
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
3. When an Adams Solver data file (.adm) is read into Adams View, all comments associated with a
statement (from the end of the previous statement through the end of the current statement) are
stored with the object. Comments in the data file can be associated with model.
These comments must follow the title statement and be followed by the comment 'END OF
MODEL COMMENTS'. This string must be uppercase.
When an Adams Solver data file is written, the comments for an object are written before the
statement corresponding to the object.
4. You do not need to enclose the file name in quotes if it only contains alpha-numeric characters and
starts with a letter. If you want to include other characters, such as a '.' for an extension or '/' or '[]'
for directory paths, you must enclose the name in quotes.
Shell file format: The first line in a shell file has the form: int int float. The first integer represents the
number of points in the shell file. The second integer represents the number of polygons are described
in the file. The float value represent a scaling factor which is applied to all of the point coordinates.
The lines immediately following the first line consist of the x, y, and z coordinate floating point values
for the points. There is one xyz triplet per line. You may use multiple spaces or tabs to separate the
x, y, and z values.
Immediately following the coordinate values are the lines for defining the polygon connectivity. The
first number on one of these lines is the number of vertices that should be connected to form the
polygon. The following integers are the offsets into the list of points. For example, 4 5 6 2 1 means
that the polygon will be formed by 4 points and those points are the 5th, 6th, 2nd, and 1st points in
the list of points in the shell file. Note that it is not necessary to explicitly close each polygon by going
back to the start point. You may use multiple spaces or tabs to separate the values.
A sample shell file for a cube:
861.0
-1.0-1.01.0
-1.0 1.0 1.0
1.0 1.0 1.0
1.0 -1.01.0
-1.0-1.0 -1.0
-1.0 1.0 -1.0
1.0 1.0 -1.0
1.0 -1.0 -1.0
41234
45621
3267
43784
41485
48765
Surface-based solid modeling is the least common modeling method used to define solids. Using this method,
the solid is defined as the internal volume surrounded by the defining surfaces.
Format:
geometry create shape solid_shell
solid_shell_name = new solid_shell
faces = existing face
Example:
geometry create shape solid_shell &
solid_shell_name = solid_shell_1 &
faces = face_1
Description:
Extended Definition:
1. When using the Adams View command language and naming entities, you can use the name later to
refer to this entity. Adams View does not allow you to have two entities with the same full name, so
you must provide a unique name. Normally, entity names are composed of alphabetic, numeric, or
'_' (underscore) characters, and start with an alphabetic or '_' character. They may be of any length.
By enclosing the name in double quotes, you can use other printable characters, or start the name with
a numeral. If a name contains characters, or starts with a numeral, you must always quote the name
when entering it.
Note that you can specify the parentage of an entity (for example, what part "owns" a marker or a
geometry element) when you create it by changing the name. If you enter just the entity name, then
Adams View assigns the default parent. If you type in the full name, then you can override the default
parent. In most cases, when creating an entity, Adams View provides a default name. The default
name that Adams View provides specifies the parentage that it has assumed. You can, of course, delete
this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
2. You can identify an entity, such as a marker or force, by typing its name or by picking it from the
screen. If the entity is not visible on the screen, you must type the name. You may also find it
convenient to type the name even if the element is displayed.
68 Adams View Commands
geometry create shape spring_damper
If an entity is available by default, you can identify it by entering its name only. If it is not, you must
enter its full name. To identify a entity under a different part, you may need to enter the model and
part names as well. For example, you can specify marker 'pivot' from model 'links', part 'lower_arm'
by entering ".links.lower_arm.pivot".
If you type a "?", Adams View lists the entity available by default.
You must separate multiple entity names by commas. If the entity is visible in one of your views, you
can identify it by picking it. You need not separate multiple element picks by commas.
Notes: If you created a marker by reading an Adams Solver dataset or graphics file, the marker
name is the letters MAR followed by the dataset marker ID number. For example, the
name of MARKER/101 is MAR101. If you created the marker during preprocessing, you
will have given it a name at that time.
You may have explicitly named an analysis when you created it by reading one or more
Adams output files (graphics (.gra), request (.req), or results (.res)). By default, the name of
the analysis is the root name of the Adams output files without the extension. If you
created the analysis by reading an Adams graphics file, for example, the analysis name is the
name of the graphics file without the .gra extension
The diameter_of_spring parameter defines the diameter of the spring, while damper_diameter_at_ij defines the
diameters of the dampers at the I and J markers.
The number of coils drawn in the spring is defined using coil_count. The distances between the ends of the
dampers and the I and J markers is defined using tip_length_at_ij. The lengths of the damper caps at the I and
J markers is defined using cup_length_at_ij.
geometry 69
geometry create shape spring_damper
Format:
geometry create shape spring_damper
spring_damper_name = new spring damper
adams_id = integer
comments = string
i_marker_name = existing marker
j_marker_name = existing marker
coil_count = integer
diameter_of_spring = length
damper_diameter_at_ij = length
tip_length_at_ij = length
cup_length_at_ij = length
Description:
Extended Definition:
1. When using the Adams View command language and naming entities, you can use the name later to
refer to this entity. Adams View does not allow you to have two entities with the same full name, so
you must provide a unique name. Normally, entity names are composed of alphabetic, numeric, or
'_' (underscore) characters, and start with an alphabetic or '_' character. They may be of any length.
By enclosing the name in double quotes, you can use other printable characters, or start the name with
a numeral. If a name contains characters, or starts with a numeral, you must always quote the name
when entering it.
Note that you can specify the parentage of an entity (for example, what part "owns" a marker or a
geometry element) when you create it by changing the name. If you enter just the entity name, then
Adams View assigns the default parent. If you type in the full name, then you can override the default
parent. In most cases, when creating an entity, Adams View provides a default name. The default
name that Adams View provides specifies the parentage that it has assumed. You can, of course, delete
this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
2. An Adams Solver ID is an integer used to identify the element in the Adams Solver dataset (.adm)
file. You only need to specify an ID number if you have user-written subroutines.
Enter a 0 to have Adams Solver assign the ID for you.
3. Adams View draws this graphic between one part at the I marker and the other at the J marker.
4. For the damper_diameter_at_ij, the first value defines the diameter of the cup at the I marker. The
second value defines the diameter of the cup at the J marker.
5. For the cup_length_at_ij parameter, the first value defines the length of the cup at I marker.
AdamsAdams View measures the length from the bottom of the cup to its top along the line that I
and J define.
The second value defines the length of the cup at J. Adams View measures the length from the bottom
of the cup to the top along the line that I and J define.
Format:
geometry create shape torus
torus_name = a new torus
adams_id = Adams id
comments = string
center_marker = an existing marker
angle_extent = angle
major_radius = length
minor_radius = length
side_count_for_perimeter = integer
segment_count = integer
Example:
geometry create shape torus &
torus_name = torus__1 &
comments= "a new torus" &
center_marker = origin &
angle_extent = 150 &
major_radius= 10 &
minor_radius = 5 &
side_count_for_perimeter = 10 &
segment_count = 10
Description:
Extended Definition:
1. A torus is defined by a circular spine with a circular cross-section at each point on the spine. The
torus is placed at the marker named 'CENTER_MARKER='. The radius for the circular spine of the
torus is defined by the MAJOR_RADIUS parameter. The radius for the circular cross-sections is
defined by the MINOR_RADIUS parameter. The number of circular cross-sections to create along
the spine may be specified with the SIDE_COUNT_FOR_PERIMETER parameter. The number
of sides for each of the circular cross-sections may be specified with the SEGMENT_COUNT
parameter. The torus will move with the part which owns the center marker.
2. You may use the name specified by the torus_name parameter, later to refer to this torus. Adams
View will not allow you to have two tori with the same full name, so you must provide a unique name.
Normally, entity names are composed of alphabetic, numeric, or '_' (underscore) characters, and start
with an alphabetic or '_' character. They may be any length.
By enclosing the name in double quotes, you may use other printable characters, or start the name
with a numeral. If a name contains characters, or starts with a numeral, you must always quote the
name when entering it.
Note that you can specify the parentage of an entity (e.g. what part "owns" a marker or a geometry
element) when you CREATE it by changing the name. If you enter just the entity name, then the
default parent will be assigned by Adams View. If you type in the full name, then you may over ride
the default parent. In most cases, when creating an entity, Adams View will provide a default name.
The default name that Adams View provides will specify the parentage that it has assumed. You may,
or course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
3. When an Adams Solver data file (.adm) is read into Adams View, all comments associated with a
statement (from the end of the previous statement through the end of the current statement) are
stored with the object. Comments in the data file can be associated with model. These comments
must follow the title statement and be followed by the comment 'END OF MODEL
COMMENTS'. This string must be uppercase.
geometry 73
geometry delete
When an Adams Solver data file is written, the comments for an object are written before the
statement corresponding to the object.
4. If you are creating a circle or an arc, orient the center marker so that its z-axis is normal to the plane
of the circle or to the plane of the arc. Similarly, if you are defining a cylinder or a frustum, orient
the center marker so that its z-axis is normal to the bottom of the cylinder or the frustum.
5. The angle specified by the angle_extent parameter starts at the positive x-axis of the center marker and
subtends the arc, the arc of the cylinder, or the arc of the cone frustum.
Tips:
1. If you are creating a circle or an arc, orient the center marker so that its z-axis is normal to the plane
of the circle or to the plane of the arc. Similarly, if you are defining a cylinder or a frustum, orient
the center marker so that its z-axis is normal to the bottom of the cylinder or the frustum.
geometry delete
Allows you to delete an existing piece of geometry.
Format:
geometry delete
geometry_name = an existing geometric entity
Example:
geometry delete &
geometry_name = LINK_56
Description:
Extended Definition:
1. You must enter the name of the geometry you wish to delete by either picking it from the screen or
specifying the full name.
2. Any Adams View object you delete, may be "undeleted" by using the UNDO commands. If you have
deleted something you would like back, enter the command "undo backward", or pick on the fixed
menu entry 'UNDO'.
You may identify geometry by typing its name or by picking it from the screen.
If the geometry is not visible on the screen, you must type the name. You may also find it convenient
to type the name even if the geometry is displayed.
74 Adams View Commands
geometry modify curve arc
If geometry is available by default, you may identify it by entering its name only. If it is not, you must
enter its full name. To identify geometry under another model, for instance, you may need to enter
the model and part names as well. For example, you may specify arc 'end' on part 'arm' in model 'susp'
by entering ".susp.arm.end". If you type a "?", Adams View will list the geometrys available by default.
You must separate multiple geometry names by commas.
If the geometry is visible in one of your views, you may identify it by picking on any of the graphics
associated with it.
Cautions:
1. You need not separate multiple geometry picks by commas.
Tips:
1. You may reverse this deletion at a later time with an UNDO command.
Format:
geometry modify curve arc
arc_name = an existing arc
new_arc_name = a new arc
adams_id = adams_id
comments = string
center_marker = an existing marker
angle_extent = angle
radius = length
ref_radius_by_marker = an existing marker
segment_count = integer
close = arc_closure
Example:
geometry modify curve arc &
arc_nameb = ARC__1 &
new_arc_name = ARC__2 &
adams_id = 2 &
comments = "a new arc" &
geometry 75
geometry modify curve arc
Description:
Extended Definition:
1. Arcs are truncated circles that can be closed into a pie shape or using a cord between the end points.
An arc is a 2 dimensional graphics image which is defined as a curve with a specified radius drawn
around a center marker. The length of the arc is determined by the angle_extent, and its smoothness
by the number of segments in the arc. The radius can be given explicitly by using the 'RADIUS='
parameter, or by using the 'ref_radius_by_marker' parameter, If 'REF_RADIUS_BY_MARKER' is
used, a radius will be calculated from the center marker. An arc will move with the center marker
given in the parameter 'CENTER_MARKER'.
76 Adams View Commands
geometry modify curve arc
2. You may use this name later to refer to this arc. Adams View will not allow you to have two arcs with
the same full name, so you must provide a unique name.
Normally, entity names are composed of alphabetic, numeric, or '_' (underscore) characters, and start
with an alphabetic or '_' character. They may be any length.
By enclosing the name in double quotes, you may use other printable characters, or start the name
with a numeral. If a name contains characters, or starts with a numeral, you must always quote the
name when entering it.
Note that you can specify the parentage of an entity (e.g. what part "owns" a marker or a geometry
element) when you CREATE it by changing the name. If you enter just the entity name, then the
default parent will be assigned by Adams View. If you type in the full name, then you may over ride
the default parent. In most cases, when creating an entity, Adams View will provide a default name.
The default name that Adams View provides will specify the parentage that it has assumed. You may,
or course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
3. When you use the FILE ADAMS_DATA_SET WRITE command, Adams View writes an Adams
data file for your model. Adams requires that each modeling element be identified by a unique
integer identifier. If you use this parameter to specify a non-zero identifier, Adams View will use it
in the corresponding statement in the Adams data file.
You may also enter zero as an identifier, either explicitly or by default. The next time you write an
Adams file, Adams View will replace the zero with a unique, internally-generated identifier. Adams
View will permanently store this identifier with the element just as if you had entered it yourself.
Normally, you would let all identifiers default to zero, and Adams View would generate the identifiers
for you. You are never required to enter a non-zero identifier. You only need to specify it if, for some
reason, you wish to control the Adams file output.
4. When an Adams Solver data file (.adm) is read into Adams View, all comments associated with a
statement (from the end of the previous statement through the end of the current statement) are
stored with the object. Comments in the data file can be associated with model. These comments
must follow the title statement and be followed by the comment 'END OF MODEL
COMMENTS'. This string must be uppercase.
When an Adams Solver data file is written, the comments for an object are written before the
statement corresponding to the object.
5. If you are creating a circle or an arc, orient the center marker so that its z-axis is normal to the plane
of the circle or to the plane of the arc. Similarly, if you are defining a cylinder or a frustum, orient
the center marker so that its z-axis is normal to the bottom of the cylinder or the frustum.
6. The angle starts at the positive x-axis of the center marker and subtends the arc, the arc of the cylinder,
or the arc of the cone frustum.
7. When you specify 'NO' for the ‘close’ parameter, Adams View will create a 2 dimensional arc. 'NO'
is the default value. When you specify 'CHORD' for this parameter, Adams View will close the arc
from the starting point, to the ending point on the arc.
geometry 77
geometry modify curve bspline
When you specify 'SECTOR' for this parameter, Adams View will close the arc, such that a "pie"
shape is created.
Cautions:
1. Adams View stores the radius value, not the marker name. If you later move the marker specified by
the ref_radius_by_marker, the radius will not change.
Format:
geometry modify curve bspline
bspline_name = a new gcurve
adams_id = adams_id
comments = string
ref_curve_name = an existing acurve
ref_marker_name = an existing marker
ref_profile_name = an existing Wire_Geometry
spread_points = boolean
close = boolean
segment_count = integer
Examples:
geometry modify curve bspline &
bspline_name = gcurve__1 &
new_bspline_name = gcurve__2 &
adams_id = 100 &
comments = "a modifed bspline" &
ref_marker_name = origin&
ref_curve_name = curve__1&
segment_count = 100
Description:
Extended Definition:
1. To create a BSPLINE you must first create a CURVE DATA_ELEMENT or specify an existing
GWire geometry. The CURVE definition depends on first creating a MATRIX of control points or
a user-subroutine.
geometry 79
geometry modify curve bspline
A BSPLINE is the geometric counterpart to the CURVE data_element. The difference being that the
BSPLINE is displayed with the Adams View model and the CURVE is not. The BSPLINE references
a CURVE for its definition and a REF_MARKER for it position. A single CURVE can be referenced
by multiple BSPLINEs.
For completeness the CURVE definition is repeated below.
A CURVE element defines a three-dimensional parametric curve that may be referenced by
POINT_CURVE or CURVE_CURVE constraints, a geometry element called a BSPLINE, as well
as by FUNCTION expressions.
The x, y, and z coordinates of a point on a parametric curve are functions of an independent
parameter, u. As u varies from its minimum value to its maximum value, the functions x(u), y(u), and
z(u) sweep out points on the curve. A simple example of a parametric curve is the helix defined by
the following equations:
x = cos(u)
y = sin(u)
z = u
Adams View allows you to create curves in three ways: by entering control points for a uniform cubic
B-spline (FIT_TYPE=CONTROL_POINTS), by entering curve points that Adams will fit a curve
to (FIT_TYPE=CURVE_POINTS), or by writing a CURSUB evaluation subroutine to compute the
curve coordinates and derivatives.
A uniform B-spline is a piecewise cubic polynomial spline used in many CAD (computer-aided-
design) applications. A uniform B-spline is defined by control points which form a polygon in space.
The curve starts at the first control point and ends at the last. In between, it is attracted to, but does
not necessarily hit the intermediate control points. Adams parameterizes a B-spline starting at -1 and
ending at +1.
Generally, you will not create control points directly, but will construct the curve in another
application, such as a CAD program, and then transfer the control points to Adams.
A more direct way to define the curve is to supply curve points.
Adams will compute a uniform B-spline that will fit the curve points.
Again, Adams parameterizes the curve from -1 to +1. If you specify the number of spline segments
(SEGMENT_COUNT) as three less than the number of curve points, the computed curve will
exactly match the curve points. If you specify fewer segments, Adams will use a least-squares fit to
compute the closest fit to the points. In general, fewer segments give a smoother curve, but do not
come as close to the data points.
In order to use a different type of curve, or to model an analytically-defined curve such as the helix,
you may write a CURSUB evaluation subroutine. When providing a CURSUB, you may also specify
MINPAR and MAXPAR to define the limits of the curve. These default to -1 and +1, respectively.
A curve can be open or closed. A CLOSED curve meets at the ends, connecting the curve at
minimum and maximum parameter values. Note for a closed curve defined by curve points, you can
specify a maximum of 5 segments less that the number of curve points. Note that because three
segments less than the number of curve points are required for an exact fit, a closed curve will not
exactly fit the curve points.
80 Adams View Commands
geometry modify curve bspline
Adams will automatically move a POINT_CURVE or CURVE_CURVE contact point across the
closure of a CLOSED curve, if needed. For instance, you may model a cam profile as a CLOSED
curve, and Adams will allow the follower to move across the closure as the cam rotates.
Adams will stop the simulation if a POINT_CURVE or CURVE_CURVE contact point moves off
the end of curve. You should ensure that the curve defined includes the expected range of contact.
2. You may use the name specified by the bspline_name parameter, later to refer to this BSPLINE.
Adams View will not allow you to have two BSPLINEs with the same full name, so you must provide
a unique name.
Normally, entity names are composed of alphabetic, numeric, or '_' (underscore) characters, and start
with an alphabetic or '_' character. They may be any length.
By enclosing the name in double quotes, you may use other printable characters, or start the name
with a numeral. If a name contains characters, or starts with a numeral, you must always quote the
name when entering it.
Note that you can specify the parentage of an entity (e.g. what part "owns" a marker or a geometry
element) when you CREATE it by changing the name. If you enter just the entity name, then the
default parent will be assigned by Adams View. If you type in the full name, then you may over ride
the default parent. In most cases, when creating an entity, Adams View will provide a default name.
The default name that Adams View provides will specify the parentage that it has assumed. You may,
or course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
3. When you use the FILE ADAMS_DATA_SET WRITE command, Adams View writes an Adams
data file for your model. Adams requires that each modeling element be identified by a unique
integer identifier. If you use this parameter to specify a non-zero identifier, Adams View will use it
in the corresponding statement in the Adams data file.
You may also enter zero as an identifier, either explicitly or by default. The next time you write an
Adams file, Adams View will replace the zero with a unique, internally-generated identifier. Adams
View will permanently store this identifier with the element just as if you had entered it yourself.
Normally, you would let all identifiers default to zero, and Adams View would generate the identifiers
for you. You are never required to enter a non-zero identifier. You only need to specify it if, for some
reason, you wish to control the Adams file output.
4. When an Adams Solver data file (.adm) is read into Adams View, all comments associated with a
statement (from the end of the previous statement through the end of the current statement) are
stored with the object. Comments in the data file can be associated with model. These comments
must follow the title statement and be followed by the comment 'END OF MODEL
COMMENTS'. This string must be uppercase.
When an Adams Solver data file is written, the comments for an object are written before the
statement corresponding to the object.
geometry 81
geometry modify curve bspline
5. A BSPLINE is the geometric counterpart to the CURVE data_element. The difference being that
the BSPLINE is displayed with the Adams View model and the CURVE is not. The BSPLINE
references a CURVE for its definition and a REF_MARKER for it position. A single CURVE can
be referenced by multiple BSPLINEs.
You may identify a curve by typing its name or by picking it from the screen.
Since curves do not have a geometric position, Adams View displays curve icons at or near the model
origin. If the curve icon is not visible on the screen, you must type the name. You may also find it
convenient to type the name even if the curve icon is displayed.
Curves can be draw by referencing a curve name in the definition of a BSPLINE geometry element.
Therefore, the BSPLINE element is the geometric counterpart of the CURVE data element.
If you created the curve by reading an Adams data set or graphics file, the curve name is the letters
CUR followed by the Adams data set curve ID number. The name of Adams CURVE/101 is
CUR101, for example. If you created the curve during preprocessing, you gave it a name at that time.
If a curve is owned by the default model, you may identify it by entering its name only. If it is not,
you must enter its full name. To identify a curve under a different model, for instance, you may need
to enter the model name as well. For example, you may specify curve 'CAM_PROFILE' from model
'VALVE_TRAIN' by entering ".VALVE_TRAIN.CAM_PROFILE'". If you type a "?", Adams
View will list the curve available by default.
You must separate multiple curve names by commas.
If the curve is visible in one of your views, you may identify it by picking on any of the graphics
associated with it.
You need not separate multiple curve picks by commas.
6. The reference marker must exist before the BSPLINE can be created.
This marker acts as a coordinate reference for the coordinate values used to define the CURVE that
acts as a template for the creation of the bspline.
A BSPLINE is the geometric counterpart to the CURVE data_element.The difference being that the
BSPLINE is displayed with the Adams View model and the CURVE is not. The BSPLINE references
a CURVE for its definition and a REF_MARKER for it position. A single CURVE can be referenced
by multiple BSPLINEs.
You may identify a marker by typing its name or by picking it from the screen.
If the marker is not visible on the screen, you must type the name. You may also find it convenient
to type the name even if the marker is displayed.
If you created the marker by reading an Adams data set or graphics file, the marker name is the letters
MAR followed by the Adams data set marker ID number. The name of Adams MARKER/101 is
MAR101, for example. If you created the marker during preprocessing, you gave it a name at that
time.
82 Adams View Commands
geometry modify curve bspline
If a marker is available by default, you may identify it by entering its name only. If it is not, you must
enter its full name. To identify a marker under a different part, for instance, you may need to enter
the model and part names as well. For example, you may specify marker 'pivot' from model 'links',
part 'lower_arm' by entering ".links.lower_arm.pivot". If you type a "?", Adams View will list the
markers available by default.
You must separate multiple marker names by commas.
If the marker is visible in one of your views, you may identify it by picking on it.
You need not separate multiple marker picks by commas.
7. A BSPLINE is the geometric counterpart to the CURVE data_element. The difference being that the
BSPLINE is displayed with the Adams View model and the CURVE is not. The BSPLINE references
a CURVE for its definition and a REF_MARKER for it position. A single CURVE can be referenced
by multiple BSPLINEs.
You may identify a curve by typing its name or by picking it from the screen.
Since curves do not have a geometric position, Adams View displays curve icons at or near the model
origin. If the curve icon is not visible on the screen, you must type the name. You may also find it
convenient to type the name even if the curve icon is displayed.
Curves can be draw by referencing a curve name in the definition of a BSPLINE geometry element.
Therefore, the BSPLINE element is the geometric counterpart of the CURVE data element.
If you created the curve by reading an Adams data set or graphics file, the curve name is the letters
CUR followed by the Adams data set curve ID number. The name of Adams CURVE/101 is
CUR101, for example. If you created the curve during preprocessing, you gave it a name at that time.
If a curve is owned by the default model, you may identify it by entering its name only. If it is not,
you must enter its full name. To identify a curve under a different model, for instance, you may need
to enter the model name as well. For example, you may specify curve 'CAM_PROFILE' from model
'VALVE_TRAIN' by entering ".VALVE_TRAIN.CAM_PROFILE'". If you type a "?", Adams
View will list the curve available by default.
You must separate multiple curve names by commas.
If the curve is visible in one of your views, you may identify it by picking on any of the graphics
associated with it.
You need not separate multiple curve picks by commas.
8. The segment_count parameter is not used if you have specified the FIT_TYPE as
CONTROL_POINTS.
For an open CURVE, Adams View will default to a SEGMENT_COUNT that is three less than the
number of CURVE_POINTS, which gives an exact fit to the CURVE_POINTS. Specifying fewer
segments will result in a smoother curve, but the curve will not pass exactly through the
CURVE_POINTS. You must specify at least four CURVE_POINTS to create an open curve.
More specifically, if you specify the SEGMENT_COUNT such that the spline segments is three less
than the number of CURVE_POINTS, the computed curve will exactly match the curve points. If
you specify fewer segments, Adams will use a least-squares fit to compute the closest fit to the points.
geometry 83
geometry modify curve chain
Closed curves must be defined by at least eight CURVE_POINTS, and may have a maximum of five
segments less than the number of CURVE_POINTS. For a closed curve defined by
CURVE_POINTS, Adams will default a SEGMENT_COUNT of five segments less than the
number of CURVE_POINTS.
Note that because three segments less than the number of curve points are required for an exact fit, a
closed curve will not exactly fit the curve points.
9. The 'spread_points' parameter when specified to ‘yes’, in conjunction with a reference profile
(otherwise the parameter is invalid and will be ignored) specifies that the set of points generated for
the bspline are such that they are equally spaced. Thus specifying the parameter to ‘yes’, means use of
a different algorithm for generating a bspline (from the gwire geometry), wherein all the points on the
bspline are equally spaced).
10. The 'num_new_pts' is valid only when the spread points parameter is set to ‘yes’ (otherwise the
parameter will be ignored). The parameter defines the number of points generated for the bspline
using the new algorithm. Note that the points will be equally spaced.
11. The 'closed' parameter is a Boolean value that specifies whether the generated bspline is a closed curve
or otherwise.
Example:
geometry modify curve chain &
chain_name = CHAIN__1 &
new_chain_name = CHAIN__2
84 Adams View Commands
geometry modify curve circle
Description:
Extended Definition:
1. The geometry to be chained together must touch at one endpoint and cannot be closed geometry. It
adds the final chained geometry to the part that owns the first geometry that you selected.
2. When an Adams Solver data file (.adm) is read into Adams View, all comments associated with a
statement (from the end of the previous statement through the end of the current statement) are
stored with the object. Comments in the data file can be associated with model. These comments
must follow the title statement and be followed by the comment 'END OF MODEL
COMMENTS'. This string must be uppercase.
When an Adams Solver data file is written, the comments for an object are written before the
statement corresponding to the object.
Format:
geometry modify curve circle
circle_name = an existing circle
new_circle_name = a new circle
adams_id = adams_id
comments = string
center_marker = an existing marker
radius = length
ref_radius_by_marker = an existing marker
segment_count = integer
geometry 85
geometry modify curve circle
Example:
geometry modify curve circle &
circle_name = circle__1 &
new_circle_name = circle__2 &
adams_id = 10 &
comments = "a modified circle" &
center_marker = origin &
radius = 10 &
segment_count = 10
Description:
Extended Definition:
1. The circle is segmented and therfore can look like a square or triangle if needed.
The circle is defined as a radius drawn around a center marker. The circle's orientation is dependent
upon the orientation of its center marker. Its radius is determined by either the
'REF_RADIUS_BY_MARKER' or 'RADIUS=' parameter. The number of sides on the circle is
controlled by the 'SEGMENT_COUNT=' parameter. A circle will move with the part its center
marker is located on.
2. You may use the name specified by the circle_name parameter later to refer to this circle. Adams View
will not allow you to have two circles with the same full name, so you must provide a unique name.
86 Adams View Commands
geometry modify curve circle
Normally, entity names are composed of alphabetic, numeric, or '_' (underscore) characters, and start
with an alphabetic or '_' character. They may be any length.
By enclosing the name in double quotes, you may use other printable characters, or start the name
with a numeral. If a name contains characters, or starts with a numeral, you must always quote the
name when entering it.
Note that you can specify the parentage of an entity (e.g. what part "owns" a marker or a geometry
element) when you CREATE it by changing the name. If you enter just the entity name, then the
default parent will be assigned by Adams View. If you type in the full name, then you may over ride
the default parent. In most cases, when creating an entity, Adams View will provide a default name.
The default name that Adams View provides will specify the parentage that it has assumed. You may,
or course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
3. When you use the FILE ADAMS_DATA_SET WRITE command, Adams View writes an Adams
data file for your model. Adams requires that each modeling element be identified by a unique
integer identifier. If you use this parameter to specify a non-zero identifier, Adams View will use it
in the corresponding statement in the Adams data file.
You may also enter zero as an identifier, either explicitly or by default. The next time you write an
Adams file, Adams View will replace the zero with a unique, internally-generated identifier. Adams
View will permanently store this identifier with the element just as if you had entered it yourself.
Normally, you would let all identifiers default to zero, and Adams View would generate the identifiers
for you. You are never required to enter a non-zero identifier. You only need to specify it if, for some
reason, you wish to control the Adams file output.
4. When an Adams Solver data file (.adm) is read into Adams View, all comments associated with a
statement (from the end of the previous statement through the end of the current statement) are
stored with the object. Comments in the data file can be associated with model. These comments
must follow the title statement and be followed by the comment 'END OF MODEL
COMMENTS'. This string must be uppercase.
When an Adams Solver data file is written, the comments for an object are written before the
statement corresponding to the object.
5. If you are creating a circle or an arc, orient the center marker so that its z-axis is normal to the plane
of the circle or to the plane of the arc. Similarly, if you are defining a cylinder or a frustum, orient
the center marker so that its z-axis is normal to the bottom of the cylinder or the frustum.
Cautions:
1. Adams View stores the radius value, not the marker name. If you later move the marker specified by
the ref_radius_by_marker, the radius will not change.
geometry 87
geometry modify curve ellipse
Format:
geometry modify curve ellipse
ellipse_name = an existing ellipse
new_ellipse_name = a new ellipse
adams_id = adams_id
comments = string
center_marker = an existing marker
major_radius = length
minor_radius = length
start_angle = angle
end_angle = angle
Example:
geometry modify curve ellipse &
ellipse_name = ELLIPSE__1 &
new_ellipse_name = ELLIPSE__2 &
comments = "a modified ellipse" &
center_marker = Origin &
major_radius = 10 &
minor_radius = 6 &
start_angle = 0 &
end_angle = 180
Description:
Extended Definition:
1. When you use the FILE ADAMS_DATA_SET WRITE command, Adams View writes an Adams
data file for your model. Adams requires that each modeling element be identified by a unique
integer identifier. If you use this parameter to specify a non-zero identifier, Adams View will use it
in the corresponding statement in the Adams data file.
You may also enter zero as an identifier, either explicitly or by default. The next time you write an
Adams file, Adams View will replace the zero with a unique, internally-generated identifier. Adams
View will permanently store this identifier with the element just as if you had entered it yourself.
Normally, you would let all identifiers default to zero, and Adams View would generate the identifiers
for you. You are never required to enter a non-zero identifier. You only need to specify it if, for some
reason, you wish to control the Adams file output.
2. When an Adams Solver data file (.adm) is read into Adams View, all comments associated with a
statement (from the end of the previous statement through the end of the current statement) are
stored with the object. Comments in the data file can be associated with model. These comments
must follow the title statement and be followed by the comment 'END OF MODEL
COMMENTS'. This string must be uppercase.
When an Adams Solver data file is written, the comments for an object are written before the
statement corresponding to the object.
3. If you are creating a circle or an arc, orient the center marker so that its z-axis is normal to the plane
of the circle or to the plane of the arc. Similarly, if you are defining a cylinder or a frustum, orient
the center marker so that its z-axis is normal to the bottom of the cylinder or the frustum.
Format:
geometry modify curve outline
outline_name = an existing outline
new_outline_name = a new outline
adams_id = adams_id
comments = string
marker_name = an existing marker
visibility_between_markers = on_off
image_file_name = string
horizontal = clamp_repeat
vertical = clamp_repeat
close = boolean
Example:
geometry modify curve outline &
outline_name = OUTLINE__1 &
new_outline_name = OUTLINE__2 &
adams_id = 1 &
comments = "modifying an existing outline" &
marker_name = Origin , CM &
visibility_between_markers = on &
close = yes
Description:
Extended Definition:
1. Outlines are line segments (open or closed) that are define by a series of markers.
An outline is composed of at least two and not more than 2500 markers. These markers are connected
by line segments to form the outline.
If all of the markers of an outline lie on the same part, the parent of the outline is this part, and the
outline moves with this part.
If some of the markers lie on different parts, the parent of the outline is the model. As the parts move,
the outline is stretched or "rubber-banded" to fit the new marker locations.
2. You may use the name specified by the new_outline_name later, to refer to this graphic. Adams View
will not allow you to have two outlines with the same full name, so you must provide a unique name.
Normally, entity names are composed of alphabetic, numeric, or '_' (underscore) characters, and start
with an alphabetic or '_' character. They may be any length.
By enclosing the name in double quotes, you may use other printable characters, or start the name
with a numeral. If a name contains characters, or starts with a numeral, you must always quote the
name when entering it.
Note that you can specify the parentage of an entity (e.g. what part "owns" a marker or a geometry
element) when you CREATE it by changing the name. If you enter just the entity name, then the
default parent will be assigned by Adams View. If you type in the full name, then you may over ride
the default parent. In most cases, when creating an entity, Adams View will provide a default name.
The default name that Adams View provides will specify the parentage that it has assumed. You may,
or course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
3. Specifies the outline to modify. You use this parameter to identify the existing outline to affect with
this command.
You may identify an outline by typing its name or by picking it from the screen.
If the outline is not visible on the screen, you must type the name. You may also find it convenient
to type the name even if the outline is displayed.
geometry 91
geometry modify curve outline
If you created the outline by reading an Adams data set or graphics file, the outline name is the letters
OUT followed by the Adams data set outline ID number. The name of Adams GRAPHIC/101,
OUTLINE is OUT101, for example. If you created the outline during preprocessing, you gave it a
name at that time.
If an outline is available by default, you may identify it by entering its name only. If it is not, you
must enter its full name. To identify a outline under another part, for instance, you may need to enter
the model and part names as well. For example, you may specify outline 'profile' on part 'cam' from
model 'gizmo' by entering ".gizmo.cam.profile". If you type a "?", Adams View will list the outlines
available by default.
Note that outlines may be children of models or parts, depending on whether all the markers are on
the same part.
You must separate multiple outline names by commas.
If the outline is visible in one of your views, you may identify it by picking on any of the graphics
associated with it.
You need not separate multiple outline picks by commas.
4. When you use the FILE ADAMS_DATA_SET WRITE command, Adams View writes an Adams
data file for your model. Adams requires that each modeling element be identified by a unique
integer identifier. If you use this parameter to specify a non-zero identifier, Adams View will use it
in the corresponding statement in the Adams data file.
You may also enter zero as an identifier, either explicitly or by default. The next time you write an
Adams file, Adams View will replace the zero with a unique, internally-generated identifier. Adams
View will permanently store this identifier with the element just as if you had entered it yourself.
Normally, you would let all identifiers default to zero, and Adams View would generate the identifiers
for you. You are never required to enter a non-zero identifier. You only need to specify it if, for some
reason, you wish to control the Adams file output.
5. When an Adams Solver data file (.adm) is read into Adams View, all comments associated with a
statement (from the end of the previous statement through the end of the current statement) are
stored with the object. Comments in the data file can be associated with model. These comments
must follow the title statement and be followed by the comment 'END OF MODEL
COMMENTS'. This string must be uppercase.
When an Adams Solver data file is written, the comments for an object are written before the
statement corresponding to the object.
6. Many entities are attached to, or otherwise associated with, a specific marker. You use this parameter
to identify that marker.
You may identify a marker by typing its name or by picking it from the screen.
If the marker is not visible on the screen, you must type the name. You may also find it convenient
to type the name even if the marker is displayed.
If you created the marker by reading an Adams data set or graphics file, the marker name is the letters
MAR followed by the Adams data set marker ID number. The name of Adams MARKER/101 is
MAR101, for example. If you created the marker during preprocessing, you gave it a name at that
time.
92 Adams View Commands
geometry modify curve polyline
If a marker is available by default, you may identify it by entering its name only. If it is not, you must
enter its full name. To identify a marker under a different part, for instance, you may need to enter
the model and part names as well. For example, you may specify marker 'pivot' from model 'links',
part 'lower_arm' by entering ".links.lower_arm.pivot". If you type a "?", Adams View will list the
markers available by default.
You must separate multiple marker names by commas.
If the marker is visible in one of your views, you may identify it by picking on it.
You need not separate multiple marker picks by commas.
7. When you create an outline, by default a line will be drawn between each of the markers specified.
Using the VISIBILITY_BETWEEN_MARKERS parameter, you can turn turn off the visibility
between desired markers. For example, the following commands:
model create model_name=MOD1 marker create marker=MAR1
location=1,1,0
marker create marker=MAR2 location=2,1,0 marker create
marker=MAR3
location=2,2,0 marker create marker=MAR4 location=1,2,0
geometry
create curve outline outline_name=.MOD1.ground.OUT1 &
marker_name=MAR1,MAR2,MAR3,MAR4 &
visibility_between_markers=ON,ON,OFF,ON
will draw lines from MAR1 to MAR2, and from MAR3 to MAR4 there will be no line segment from
MAR2 to MAR3.
If you specify the VISIBILITY_BETWEEN_MARKERS parameter with less values than the number
of markers, the rest of the visibilities will default to ON. If for example you have an outline with some
of the visibilities turned off and you want to turn them all on, you can specify a single ON value.
When you render the outline in solid or shaded mode, each of the contiguously visible segments will
be rendered as objets. In the above example, the outline would not be draw as a solid object, but as
two lines.
Setting the visibility to OFF for a marker is equivalent to using a negative marker id on the
OUTLINE statement in the Adams DATA SET.
8. When you specify 'NO' for the ‘close’ parameter, Adams View will create a outline through the
markers specified, and will not attempt to close the start and end points with an additional line
segment. 'NO' is the default value.
When you specify 'YES' for this parameter, Adams View will create the outline, through the markers
specified, and add an additional line segment from the end marker to the starting marker.
Format:
geometry modify curve polyline
polyline_name = a existing polyline
new_polyline_name = a new polyline
comments = string
location = location
path_curve = an existing gwire
relative_to = an existing model, part or marker
close = boolean
Example:
geometry modify curve polyline &
polyline_name = POLYLINE__1 &
location = 1,5,3 &
image_file_name = "C:\users\ashish\image"
Description:
Extended Definition:
1. Specifies the POLYLINE to modify. You use this parameter to identify the existing POLYLINE to
affect with this command.
You may identify a POLYLINE by typing its name or by picking it from the screen.
94 Adams View Commands
geometry modify curve polyline
If the POLYLINE is not visible on the screen, you must type the name. You may also find it
convenient to type the name even if the POLYLINE is displayed.
Since a POLYLINE can not be defined in an Adams data set or graphics file, the POLYLINE can not
be created by reading in one of these files. The only way to create a POLYLINE is to do it
interactively, by reading a command file, or by reading an IGES file. POLYLINEs are owned by
parts.
If a POLYLINE is available by default, you may identify it by entering its name only. You may need
to enter the full name of the POLYLINE if you wish to identify a POLYLINE that is not on the
default PART. For example, you may specify POLYLINE "front_face" on the part named "shell"
from the model named "test" by entering ".test.shell.front_face". If you type a "?", Adams View will
list the POLYLINEs available by default.
You must separate multiple POLYLINE names by commas.
If the POLYLINE is visible in one of your views, you may identify it by picking on any of the graphics
associated with it.
2. You may identify a POLYLINE by typing its name or by picking it from the screen.
If the POLYLINE is not visible on the screen, you must type the name. You may also find it
convenient to type the name even if the POLYLINE is displayed.
Since a POLYLINE can not be defined in an Adams data set or graphics file, the POLYLINE can not
be created by reading in one of these files. The only way to create a POLYLINE is to do it
interactively, by reading a command file, or by reading an IGES file. POLYLINEs are owned by
parts.
If a POLYLINE is available by default, you may identify it by entering its name only. You may need
to enter the full name of the POLYLINE if you wish to identify a POLYLINE that is not on the
default PART. For example, you may specify POLYLINE "front_face" on the part named "shell"
from the model named "test" by entering ".test.shell.front_face". If you type a "?", Adams View will
list the POLYLINEs available by default.
You must separate multiple POLYLINE names by commas.
If the POLYLINE is visible in one of your views, you may identify it by picking on any of the graphics
associated with it.
You need not separate multiple POLYLINE picks by commas.
3. Specifies the name of the new POLYLINE. You may use this name later to refer to this POLYLINE.
Adams View will not allow you to have two POLYLINE with the same full name, so you must provide
a unique name.
Normally, entity names are composed of alphabetic, numeric, or '_' (underscore) characters, and start
with an alphabetic or '_' character. They may be any length.
By enclosing the name in double quotes, you may use other printable characters, or start the name
with a numeral. If a name contains characters, or starts with a numeral, you must always quote the
name when entering it.
geometry 95
geometry modify feature blend
Note that you can specify the parentage of an entity (e.g. what part "owns" a marker or a geometry
element) when you CREATE it by changing the name. If you enter just the entity name, then the
default parent will be assigned by Adams View. If you type in the full name, then you may over ride
the default parent. In most cases, when creating an entity, Adams View will provide a default name.
The default name that Adams View provides will specify the parentage that it has assumed. You may,
or course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
4. When an Adams Solver data file (.adm) is read into Adams View, all comments associated with a
statement (from the end of the previous statement through the end of the current statement) are
stored with the object. Comments in the data file can be associated with model. These comments
must follow the title statement and be followed by the comment 'END OF MODEL
COMMENTS'. This string must be uppercase.
When an Adams Solver data file is written, the comments for an object are written before the
statement corresponding to the object.
5. By default, you supply Cartesian (x, y, z) coordinates. You may use the 'defaults units
coordinate_system_type =' command to change this convention. For example, selecting 'cylindrical'
means you will subsequently be supplying r, theta, and z coordinates.
Adams View applies your location coordinates in the coordinate system you identify with the
RELATIVE_TO parameter. The default for the RELATIVE_TO parameter is the default
coordinate system. (See the RELATIVE_TO parameter for this command).
6. The PATH_CURVE is any member of the WIRE_GEOMETRY class (which includes arcs, circles,
spline curves, polylines and outlines). When you specify a PATH_CURVE, the values of the vertices
are extracted from the specified object and used to compose the polyline.
7. If relative_to parameter is not specified, the default coordinate system is used. The default coordinate
system is initially your model, i.e. the global coordinate system. You may change the default
coordinate system using the 'defaults coordinate_system' command.
8. If closed, the polyline can be filled (i.e. shaded). The end points of the polyline do not need to be
coincident for you to close it. By setting the CLOSED parameter to "YES" the two end points will
be connected with a line segment. If the CLOSE parameter is set to "NO" the polyline will appear
as a segmented curve.
Cautions:
1. You need not separate multiple POLYLINE picks by commas.
Format:
geometry modify feature blend
blend_name = an existing blend
new_blend_name = a new blend
radius1 = length
radius2 = length
Example:
geometry modify feature blend &
blend_name = blend__1 &
blend_name = blend__2 &
radius1 = 0.15
Description:
Format:
geometry modify feature hole
hole_name = an existing hole
new_hole_name = a new hole
subid = integer
center = location
countersink = boolean
geometry 97
geometry modify feature hole
Example:
geometry modify feature hole &
hole_name = hole__1 &
subid = 12 &
center = 10 , 2 , 1 &
countersink = yes &
radius = 3 &
depth = 4
Description:
Extended Definition:
1. You can use the name specified by the hole_name parameter, later to refer to this entity. Adams View
does not allow you to have two entities with the same name, so you must provide a unique name.
Normally, entity names are composed of alphabetic, numeric, or '_' (underscore) characters, and start
with an alphabetic or '_' character. They may be of any length.
By enclosing the name in double quotes, you can use other printable characters, or start the name with
a numeral. If a name contains characters, or starts with a numeral, you must always quote the name
when entering it.
98 Adams View Commands
geometry modify feature thinshell
Note that you can specify the parentage of an entity (for example, what part "owns" a marker or a
geometry element) when you create it by changing the name. If you enter just the entity name, then
Adams View assigns the default parent. If you type in the full name, then you can override the default
parent. In most cases, when creating an entity, Adams View provides a default name. The default
name that Adams View provides specifies the parentage that it has assumed. You can, of course, delete
this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
2. The countersink parameter specifies whether to create a hole or a boss:
• yes - Creates a boss.
• no - Creates a hole.
Cautions:
1. You cannot specify the radius and depth of a hole so that it splits the current geometry into two
separate geometries.
Format:
geometry modify feature thinshell
thin_shell_name = a new thin_shell
subids = integer
thickness = length
locations = location
Example:
geometry modify feature thinshell &
thin_shell_name = thin_shell__1 &
subids = 10 &
thickness = 0.15
geometry 99
geometry modify point
Description:
Extended Definition:
1. You can use the name specified by the thin_shell_name parameter, later to refer to this entity. Adams
View does not allow you to have two entities with the same name, so you must provide a unique
name. Normally, entity names are composed of alphabetic, numeric, or '_' (underscore) characters,
and start with an alphabetic or '_' character. They may be of any length.
By enclosing the name in double quotes, you can use other printable characters, or start the name with
a numeral. If a name contains characters, or starts with a numeral, you must always quote the name
when entering it.
Note that you can specify the parentage of an entity (for example, what part "owns" a marker or a
geometry element) when you create it by changing the name. If you enter just the entity name, then
Adams View assigns the default parent. If you type in the full name, then you can override the default
parent. In most cases, when creating an entity, Adams View provides a default name. The default
name that Adams View provides specifies the parentage that it has assumed. You can, of course, delete
this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
Format:
geometry modify point
point_name = an existing point
new_point_name = a new point
adams_id = integer
comments = string
ref_marker_name = an existing marker
100 Adams View Commands
geometry modify shape block
Example:
geometry modify point &
point_name = point__1 &
new_point_name = point__2 &
adams_id = 1 &
comments = “modifying a point” &
ref_marker_name = marker_1
Description:
Format:
geometry modify shape block
block_name = an existing block
new_block_name = a new block
comments = string
corner_marker = an existing marker
diag_corner_coords = length
Example:
geometry modify shape block &
block_name = box__1 &
new_block_name = box__2 &
corner_marker = marker_82 &
diag_corner_coords = 2,4,6
geometry 101
geometry modify shape block
Description:
Extended Definition:
1. A block is a box with parallel edges and orthogonal vertices. You position and orient a block by means
of a corner marker. You specify the dimensions of the box by supplying three coordinates for the
opposite corner.
2. Specifies the block to modify. You use this parameter to identify the existing block to affect with this
command.
You may identify a block by typing its name or by picking it from the screen.
If the block is not visible on the screen, you must type the name. You may also find it convenient to
type the name even if the block is displayed.
If you created the block by reading an Adams data set or graphics file, the block name is the letters
BOX followed by the Adams data set block ID number. The name of Adams GRAPHIC/101, BOX
is BOX101, for example. If you created the block during preprocessing, you gave it a name at that
time.
If a block is available by default, you may identify it by entering its name only. If it is not, you must
enter its full name. To identify a block under a different part, for instance, you may need to enter the
model and part names as well. For example, you may specify block 101 from the model named test,
on the part name arm, by entering ".test.arm.box101". If you type a "?", Adams View will list the
blocks available by default.
You must separate multiple block names by commas.
If the block is visible in one of your views, you may identify it by picking it.
3. Specifies the name of the new block. You may use this name later to refer to this block. Adams View
will not allow you to have two blocks with the same full name, so you must provide a unique name.
Normally, entity names are composed of alphabetic, numeric, or '_' (underscore) characters, and start
with an alphabetic or '_' character. They may be any length.
102 Adams View Commands
geometry modify shape cylinder
By enclosing the name in double quotes, you may use other printable characters, or start the name
with a numeral. If a name contains characters, or starts with a numeral, you must always quote the
name when entering it.
Note that you can specify the parentage of an entity (e.g. what part "owns" a marker or a geometry
element) when you CREATE it by changing the name. If you enter just the entity name, then the
default parent will be assigned by Adams View. If you type in the full name, then you may over ride
the default parent. In most cases, when creating an entity, Adams View will provide a default name.
The default name that Adams View provides will specify the parentage that it has assumed. You may,
or course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
4. These coordinates are with respect to the corner marker x, y, and z axes. This location, along with
the corner_marker, define the boundaries of the block.
Cautions:
1. You need not separate multiple block picks by commas.
Format:
geometry modify shape cylinder
cylinder_name = an existing cylinder
new_cylinder_name = a new cylinder
adams_id = adams_id
comments = string
center_marker = an existing marker
angle_extent = angle
length = length
radius = length
ref_radius_by_marker = an existing marker
side_count_for_body = integer
segment_count_for_ends = integer
geometry 103
geometry modify shape cylinder
Example:
geometry modify shape cylinder &
cylinder_name = CYLINDER__1 &
new_cylinder_name = CYLINDER__2 &
center_marker = MARKER_82 &
angle_extent = 60 &
length = 25 &
ref_radius_by_marker = MARKER_72
Description:
Extended Definition:
1. A cylinder is an extruded circle whose top and bottom are perpendicular to the cylinder central axis.
The cylinder is placed at the marker named 'CENTER_MARKER='. The circles at the top and at
the bottom of the cylinder have a radius specified by a radius, or radius reference marker. The
cylinder length is along the the positive z-axis of the center marker, and is specified by 'LENGTH='.
The number of sides can be chosen using the 'SIDE_COUNT_FOR_BODY' parameter. The
number of edges on the end circles can be specified using the 'SEGMENT_COUNT_FOR_END='
parameter. The cylinder will move with the part who owns the center marker.
2. Specifies the cylinder to modify. You use this parameter to identify the existing cylinder to affect with
this command.
You may identify a cylinder by typing its name or by picking it from the screen.
If the cylinder is not visible on the screen, you must type the name.You may also find it convenient
to type the name even if the cylinder is displayed.
If you created the cylinder by reading an Adams data set or graphics file, the cylinder name is the
letters CYL followed by the Adams data set cylinder ID number. The name of Adams
GRAPHIC/101, CYLINDER is CYL101, for example, If you created the cylinder during
preprocessing, you gave it a name at that time.
If a cylinder is available by default, you may identify it by entering its name only. If it is not, you
must enter its full name. To identify a cylinder under a different part, for instance, you may need to
enter the part and model names as well. For example, you may specify cylinder 'rod' on part 'arm' in
model 'test' by entering ".test.arm.rod". If you type a "?", Adams View will list the cylinders available
by default.
You must separate multiple cylinder names by commas.
If the cylinder is visible in one of your views, you may identify it by picking on any of the graphics
associated with it.
3. Specifies the name of the new cylinder. You may use this name later to refer to this cylinder. Adams
View will not allow you to have two cylinders with the same full name, so you must provide a unique
name.
Normally, entity names are composed of alphabetic, numeric, or '_' (underscore) characters, and start
with an alphabetic or '_' character. They may be any length.
By enclosing the name in double quotes, you may use other printable characters, or start the name
with a numeral. If a name contains characters, or starts with a numeral, you must always quote the
name when entering it.
Note that you can specify the parentage of an entity (for example, what part "owns" a marker or a
geometry element) when you CREATE it by changing the name. If you enter just the entity name,
then the default parent will be assigned by Adams View. If you type in the full name, then you may
over ride the default parent. In most cases, when creating an entity, Adams View will provide a
default name. The default name that Adams View provides will specify the parentage that it has
assumed.You may, or course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
geometry 105
geometry modify shape ellipsoid
4. When you use the FILE ADAMS_DATA_SET WRITE command, Adams View writes an Adams
data file for your model. Adams requires that each modeling element be identified by a unique
integer identifier. If you use this parameter to specify a non-zero identifier, Adams View will use it
in the corresponding statement in the Adams data file.
You may also enter zero as an identifier, either explicitly or by default. The next time you write an
Adams file, Adams View will replace the zero with a unique, internally-generated identifier. Adams
View will permanently store this identifier with the element just as if you had entered it yourself.
Normally, you would let all identifiers default to zero, and Adams View would generate the identifiers
for you. You are never required to enter a non-zero identifier. You only need to specify it if, for some
reason, you wish to control the Adams file output.
5. When an Adams Solver data file (.adm) is read into Adams View, all comments associated with a
statement (from the end of the previous statement through the end of the current statement) are
stored with the object. Comments in the data file can be associated with model. These comments
must follow the title statement and be followed by the comment 'END OF MODEL
COMMENTS'. This string must be uppercase.
When an Adams Solver data file is written, the comments for an object are written before the
statement corresponding to the object.
6. If you are creating a circle or an arc, orient the center marker so that its z-axis is normal to the plane
of the circle or to the plane of the arc. Similarly, if you are defining a cylinder or a frustum, orient
the center marker so that its z-axis is normal to the bottom of the cylinder or the frustum.
7. The angle starts at the positive x-axis of the center marker and subtends the arc, the arc of the cylinder,
or the arc of the cone frustum.
8. Because the two circles at the ends of a cylinder or a frustum are both perpendicular to the z-axis of
the center marker, they are parallel. Adams View uses the value of LENGTH to specify the z distance
between the two circles. A positive value specifies a cylinder or a frustum along the positive z-axis of
the center marker, and a negative value specifies a cylinder or a frustum along the negative z-axis of
the center marker.
9. Adams View stores the radius value, not the marker name. If you later move this marker, the radius
will not change.
Cautions:
1. You need not separate multiple cylinder picks by commas.
Format:
geometry modify shape ellipsoid
ellipsoid_name = existing ellipsoid
new_ellipsoid_name = a new ellipsoid
comments = string
center_marker = an existing marker
x_scale_factor = length
y_scale_factor = length
z_scale_factor = length
Example:
geometry modify shape ellipsoid &
ellipsoid_name = ellipsoid__1 &
new_ellipsoid_name = ellipsoid__2 &
center_marker = marker_74 &
x_scale_factor = 2
Description:
Extended Definition:
1. An ellipsoid is a unit sphere that has been scaled in the x, y, and z directions. The ellipsoid is placed
at the marker named 'CENTER_MARKER='. The X_SCALE_FACTOR, Y_SCALE_FACTOR,
and Z_SCALE_FACTOR parameters are used to specify the scaling of the initial unit sphere along
the center marker's x, y, z axes. The ellipsoid will move with the part which owns the center marker.
2. You use this parameter to identify the existing ellipsoid to affect with this command.
You may identify a ELLIPSOID by typing its name or by picking it from the screen.
If the ELLIPSOID is not visible on the screen, you must type the name. You may also find it
convenient to type the name even if the ELLIPSOID is displayed.
Since a ELLIPSOID can not be defined in an Adams data set or graphics file, the ELLIPSOID can
not be created by reading in one of these files. The only way to create a ELLIPSOID is to do it
interactively or by reading a command file. ELLIPSOIDs are owned by parts.
If a ELLIPSOID is available by default, you may identify it by entering its name only. You may need
to enter the full name of the ELLIPSOID if you wish to identify a ELLIPSOID that is not on the
default PART. For example, you may specify ELLIPSOID "blimp" on the part named "par1" from
the model named "test" by entering ".test.par1.blimp". If you type a "?", Adams View will list the
ELLIPSOIDs available by default.
You must separate multiple ELLIPSOID names by commas.
If the ELLIPSOID is visible in one of your views, you may identify it by picking on any of the
graphics associated with it.
3. Specifies the name of the new ellipsoid. You may use this name later to refer to this ellipsoid. Adams
View will not allow you to have two ellipsoids with the same full name, so you must provide a unique
name.
Normally, entity names are composed of alphabetic, numeric, or '_' (underscore) characters, and start
with an alphabetic or '_' character. They may be any length.
By enclosing the name in double quotes, you may use other printable characters, or start the name
with a numeral. If a name contains characters, or starts with a numeral, you must always quote the
name when entering it.
Note that you can specify the parentage of an entity (e.g. what part "owns" a marker or a geometry
element) when you CREATE it by changing the name. If you enter just the entity name, then the
default parent will be assigned by Adams View. If you type in the full name, then you may over ride
the default parent. In most cases, when creating an entity, Adams View will provide a default name.
The default name that Adams View provides will specify the parentage that it has assumed.
You may, or course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
108 Adams View Commands
geometry modify shape extrusion
4. When an Adams Solver data file (.adm) is read into Adams View, all comments associated with a
statement (from the end of the previous statement through the end of the current statement) are
stored with the object. Comments in the data file can be associated with model. These comments
must follow the title statement and be followed by the comment 'END OF MODEL
COMMENTS'. This string must be uppercase.
When an Adams Solver data file is written, the comments for an object are written before the
statement corresponding to the object.
5. Specifies the marker at the center of a circle, an arc, the bottom of a cylinder, or the bottom of a
frustum. If you are creating a circle or an arc, orient the center marker so that its z-axis is normal to
the plane of the circle or to the plane of the arc. Similarly, if you are defining a cylinder or a frustum,
orient the center marker so that its z-axis is normal to the bottom of the cylinder or the frustum.
Cautions:
1. You need not separate multiple ELLIPSOID picks by commas.
Format:
geometry modify shape extrusion
extrusion_name = an existing extrusion
new_extrusion_name = a new extrusion
adams_id = adams id
comments = string
reference_marker = an existing marker
profile_curve = an existing gwire
points_for_profile = location
path_curve = an existing gwire
path_points = location
length_along_z_axis = length
relative_to = an existing model, part or marker
analytical = boolean
Example:
geometry modify shape extrusion &
extrusion_name = extrusion__1 &
new_extrusion_name = extrusion__2&
geometry 109
geometry modify shape extrusion
Description:
Extended Definition:
1. An extrusion is defined by a path polyline curve and a profile curve, which may be either a polyline
or a data element curve. The profile curve is in the X-Y plane of its parent part. Z coordinate values
of the profile curve are ignored. The path curve is a polyline that describes how the profile will be
swept along. The extrusion is placed with respect to the marker named 'REFERENCE_MARKER='
using the same orientation that the path curve has with respect to its parent part. The extrusion will
move with the part which owns the reference marker.
2. You may use the name specified by the extrusion_name parameter, later to refer to this extrusion.
Adams View will not allow you to have two extrusions with the same full name, so you must provide
a unique name.
Normally, entity names are composed of alphabetic, numeric, or '_' (underscore) characters, and start
with an alphabetic or '_' character. They may be any length.
By enclosing the name in double quotes, you may use other printable characters, or start the name
with a numeral. If a name contains characters, or starts with a numeral, you must always quote the
name when entering it.
Note that you can specify the parentage of an entity (e.g. what part "owns" a marker or a geometry
element) when you CREATE it by changing the name. If you enter just the entity name, then the
default parent will be assigned by Adams View. If you type in the full name, then you may over ride
the default parent. In most cases, when creating an entity, Adams View will provide a default name.
The default name that Adams View provides will specify the parentage that it has assumed. You may,
or course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
3. When an Adams Solver data file (.adm) is read into Adams View, all comments associated with a
statement (from the end of the previous statement through the end of the current statement) are
stored with the object. Comments in the data file can be associated with model. These comments
must follow the title statement and be followed by the comment 'END OF MODEL
COMMENTS'. This string must be uppercase.
When an Adams Solver data file is written, the comments for an object are written before the
statement corresponding to the object.
4. You may specify an arc, circle, spline curve, polyline, or outline for the path_curve parameter. The
object defines the path along which the profile curve will be swept.
5. The points specified by the path_points parameter are relative to the extrusion's reference marker.
The points defines the path along which the profile curve will be swept.
6. If the relative_to parameter is not specified, the default coordinate system is used. The default
coordinate system is initially your model, i.e. the global coordinate system. You may change the
default coordinate system using the 'defaults coordinate_system' command.
geometry 111
geometry modify shape force
7. The extrusion can be created by selecting points on screen, Gwire, polyline or a Gcurve. But, in
Adams Solver data file, it is necessary to represent the profile/path in the form of a unique curve for
each profile and path. If the selected profile/path is other than a Gcurve (points_on_screen, Gwire,
polyline, length_along_Z) Adams creates two Gcurves (generator_profile and generator_path
respectively) from the selected profile/path. If the selected profile/path is a Gcurve then
generator_profile/generator_path refer to the same. These Gcurves are replica of the user-selected
geometry and are superimposed on the same. The visibility attribute of the Gcurve is adjusted to be
off to avoid the user from selecting hot-points on Gcurves. This setting will enable the user to select
the hot-points on profile/path geometry.
Tips:
1. You may specify an arc, circle, spline curve, polyline, or outline for the profile_curve parameter The
object should be in the X-Y plane of the extrusions reference marker.
To see force graphics during animations, you must specify those force elements in your model for which you
would like to see the associated force graphics. To turn force graphics on or off for particular forces, refer to
the Adams View documentation that describe how to modify a force or a motion.
You can specify the following for the display of force graphics during an animation:
Scale factor used to control the graphic’s relative size compared to the objects in the model.
Whether or not the force magnitudes are displayed numerically. The numerical values appear near
the arrowheads.
Whether or not the force graphics are drawn in wireframe or shaded mode when the model is
animated in shaded mode.
112 Adams View Commands
geometry modify shape force
Whether the force graphic is always drawn in front of other geometry. This is particularly useful
when viewing forces inside geometry, such as three-dimensional contacts.
There are two different scale factors: one for forces and one for torques. Adams applies the force scale
factor to all force graphics in your model to maintain their proper relative sizing, while it applies the
torque scale factor to all torque graphics in your model.
Finding force and torque scale factors that are good for the entire animation might require some trial
and error. It is often useful to set your scale factors while viewing the frame for which the largest force
reaches its peak value.
Format:
geometry modify shape force
force_name = existing force symbol
new_force_name = new name for force symbol
adams_id = integer
comments = string
force_element_name = existing force
joint_name = existing joint
jprim_name = existing primitive joint
curve_curve_name = existing ccurve
point_curve_name = existing pcurve
all_force_elements = true_only
applied_at_marker_name = existing triad
Example:
geometry modify shape force &
force_name = force_1_1 &
new_force_name = force_graphics_1 &
force_element_name = vforce_1 &
applied_at_marker_name = marker_4
geometry 113
geometry modify shape force
Description:
Extended Definition:
1. When using the Adams View command language and naming entities, you can use the name later to
refer to this entity. Adams View does not allow you to have two entities with the same full name, so
you must provide a unique name. Normally, entity names are composed of alphabetic, numeric, or
'_' (underscore) characters, and start with an alphabetic or '_' character. They may be of any length.
By enclosing the name in double quotes, you can use other printable characters, or start the name with
a numeral. If a name contains characters, or starts with a numeral, you must always quote the name
when entering it.
114 Adams View Commands
geometry modify shape force
Note that you can specify the parentage of an entity (for example, what part "owns" a marker or a
geometry element) when you create it by changing the name. If you enter just the entity name, then
Adams View assigns the default parent. If you type in the full name, then you can override the default
parent. In most cases, when creating an entity, Adams View provides a default name. The default
name that Adams View provides specifies the parentage that it has assumed. You can, of course, delete
this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
2. The force element can be:
• Beam
• Bushing
• Field
• Translational spring damper
• Rotational spring damper
• Tire
• Single-component force
• Force vector
• Torque vector
• General force
• Multi-point force
3. The joint element can be:
• Translational
• Revolute
• Cylindrical
• Univesal
• Spherical
• Planar
• Rackpin
• Screw
4. The joint primitive element can be:
• At point
• Inline
• Inplane
• Orientation
• Parallel_axis
geometry 115
geometry modify shape frustum
• Perpendicular
5. If you use the all_force_elements=true argument, the marker must have at least one force applied to it.
If you enter a specific force type using joint_name, jprim_name, force_element_name, point_curve_name, or
curve_curve_name parameters, then the marker named in this parameter must be one of the markers
on which the specified force acts.
Format:
geometry modify shape frustum
frustum_name = an existing frustum
new_frustum_name = a new frustum
adams_id = adams_id
comments = string
center_marker = an existing marker
angle_extent = angle
length = length
side_count_for_body = integer
top_radius = length
bottom_radius = length
segment_count_for_ends = integer
Example:
geometry modify shape frustum &
frustum_name = frustum__1 &
new_frustum_name = frustum__2&
adams_id = 101 &
comments = "a modified frustum" &
center_marker = origin &
angle_extent = 150 &
length = 10 &
side_count_for_body = 10
116 Adams View Commands
geometry modify shape frustum
Description:
Extended Definition:
1. . A frustum is a specialized cone whose top and bottom are perpendicular to the cone central axis. A
frustum will move with the part that the center marker belongs to.
2. You may use the name specified by the frustum_name parameter later to refer to this frustum. Adams
View will not allow you to have two frustums with the same full name, so you must provide a unique
name.
Normally, entity names are composed of alphabetic, numeric, or '_' (underscore) characters, and start
with an alphabetic or '_' character. They may be any length.
By enclosing the name in double quotes, you may use other printable characters, or start the name
with a numeral. If a name contains characters, or starts with a numeral, you must always quote the
name when entering it.
geometry 117
geometry modify shape gcontact
Note that you can specify the parentage of an entity (e.g. what part "owns" a marker or a geometry
element) when you CREATE it by changing the name. If you enter just the entity name, then the
default parent will be assigned by Adams View. If you type in the full name, then you may over ride
the default parent. In most cases, when creating an entity, Adams View will provide a default name.
The default name that Adams View provides will specify the parentage that it has assumed. You may,
or course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
3. When you use the FILE ADAMS_DATA_SET WRITE command, Adams View writes an Adams
data file for your model. Adams requires that each modeling element be identified by a unique
integer identifier. If you use this parameter to specify a non-zero identifier, Adams View will use it
in the corresponding statement in the Adams data file.
You may also enter zero as an identifier, either explicitly or by default. The next time you write an
Adams file, Adams View will replace the zero with a unique, internally-generated identifier. Adams
View will permanently store this identifier with the element just as if you had entered it yourself.
Normally, you would let all identifiers default to zero, and Adams View would generate the identifiers
for you. You are never required to enter a non-zero identifier. You only need to specify it if, for some
reason, you wish to control the Adams file output.
4. When an Adams Solver data file (.adm) is read into Adams View, all comments associated with a
statement (from the end of the previous statement through the end of the current statement) are
stored with the object. Comments in the data file can be associated with model. These comments
must follow the title statement and be followed by the comment 'END OF MODEL
COMMENTS'. This string must be uppercase.
When an Adams Solver data file is written, the comments for an object are written before the
statement corresponding to the object.
5. The angle starts at the positive x-axis of the center marker and subtends the arc, the arc of the cylinder,
or the arc of the cone frustum.
6. Because the two circles at the ends of a cylinder or a frustum are both perpendicular to the z-axis of
the center marker, they are parallel. Adams View uses the value of LENGTH to specify the z distance
between the two circles. A positive value specifies a cylinder or a frustum along the positive z-axis of
the center marker, and a negative value specifies a cylinder or a frustum along the negative z-axis of
the center marker.
7. The top of the furstum is perpendicular to the center marker z-axis, and the center of the top is at the
position on the center marker z-axis that LENGTH specifies. Also, The bottom is perpendicular to
the center marker z-axis, and the center of the bottom is at the center marker origin.
Format:
geometry modify shape gcontact
contact_force_name = an existing contact_force_graphic
new_contact_force_name = a new contact_force_graphic
adams_id = adams_id
comments = string
contact_element_name = an existing contact element
force_display = force_display_options
Example:
geometry modify shape gcontact &
contact_force_name = gcontact__1 &
new_contact_force_name = gcontact__2 &
adams_id = 1 &
comments = "a modified contact force graphic" &
contact_element_name = sphere_plane_contact_5 &
force_display = both
Description:
Extended Definition:
A gcontact is a force graphic for a contact element. The gcontact can display graphics for component or
aggregate forces of a contact.
none - Displays no force graphics.
components - Displays force graphics for the normal force, friction force, and torque at each
incident of a contact for each frame. Multiple incidents at a frame display multiple force graphics.
aggregate - Displays force graphics for the sum of all forces (normal and friction) and all torques on
the contact at each frame. Sums multiple incidents at a frame and displays one force graphic.
both - Displays both component and aggregate force graphics.
Format:
geometry modify shape link
link_name = an existing glink
new_link_name = a new glink
comments = string
i_marker = an existing marker
j_marker = an existing marker
width = length
depth = length
Example:
geometry modify shape link &
link_name = link__1 &
comments = "a modified link" &
i_marker = mk124 &
j_marker = mk112 &
width = 25 &
depth = 5
120 Adams View Commands
geometry modify shape link
Description:
Extended Definition:
1. A link is a three-dimensional object used to represent a connecting part. It has its length defined by
the distance between I_MARKER and the J_MARKER. It also has a WIDTH and DEPTH that
may be specified. The ends of the link are semi-circular. The J_MARKER must lie in th XY plane
of the I_MARKER.
2. You may use the name specified by the link_name parameter later, to refer to this link. Adams View
will not allow you to have two links with the same full name, so you must provide a unique name.
Normally, entity names are composed of alphabetic, numeric, or '_' (underscore) characters, and start
with an alphabetic or '_' character. They may be any length.
By enclosing the name in double quotes, you may use other printable characters, or start the name
with a numeral. If a name contains characters, or starts with a numeral, you must always quote the
name when entering it.
Note that you can specify the parentage of an entity (for example, what part "owns" a marker or a
geometry element) when you CREATE it by changing the name. If you enter just the entity name,
then the default parent will be assigned by Adams View. If you type in the full name, then you may
over ride the default parent. In most cases, when creating an entity, Adams View will provide a
default name. The default name that Adams View provides will specify the parentage that it has
assumed. You may, or course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
3. When an Adams Solver data file (.adm) is read into Adams View, all comments associated with a
statement (from the end of the previous statement through the end of the current statement) are
stored with the object. Comments in the data file can be associated with model. These comments
must follow the title statement and be followed by the comment 'END OF MODEL
COMMENTS'. This string must be uppercase.
geometry 121
geometry modify shape nurb_surf
When an Adams Solver data file is written, the comments for an object are written before the
statement corresponding to the object.
Cautions:
1. The j_marker must lie along the i_marker's x-axis and it must have the same orientation as the
i_marker.
2. The j_marker must lie along the i_marker's x-axis and it must have the same orientation as the
i_marker.
Format:
geometry modify shape nurb_surf
nurb_surf_name = existing surf_name
new_nurb_surf_name = new surf_name
comments = string
udegree = integer
vdegree = integer
rational = boolean
uperiodic = boolean
vperiodic = boolean
num_uctrlpts = integer
num_vctrlpts = integer
control_points = location
weights = real
uknots = real
vknots = real
122 Adams View Commands
geometry modify shape picture
Description:
Format:
geometry modifies shape picture
picture_name = existing picture
new_picture_name = new picture
image_file_name = name of image
height = integer
location = location
geometry 123
geometry modify shape plane
Example:
geometry modify shape picture &
picture_name = picture_1 &
image_file_name= "c:\documents and settings\car.jpg" &
height= 50
Description:
Plane Tool is a two-dimensional box that gets created. You can draw a plane’s length and width in the plane
of the screen or the working grid, if it is turned on. You will find planes most useful when you are creating
contact forces between objects
When you create a plane, you can select to create a new part consisting of the plane geometry or add the plane
geometry to an existing part or ground. If you create a new part, it has no mass since it is composed only of
wire geometry.
Format:
geometry modify shape plane
plane_name = existing plane
new_plane_name = new name for the plane
adams_id = integer
comments = string
ref_marker_name = existing marker
x_minimum = real
124 Adams View Commands
geometry modify shape plane
Example:
geometry modify shape plane &
plane_name = plane_1 &
ref_marker_name = marker_5 &
x_minimum = 100 &
x_maximum = 500.9 &
y_minimum = 100 &
y_maximum = 788
Description:
Extended Definition:
1. When using the Adams View command language and naming entities, you can use the name later to
refer to this entity. Adams View does not allow you to have two entities with the same full name, so
you must provide a unique name. Normally, entity names are composed of alphabetic, numeric, or
'_' (underscore) characters, and start with an alphabetic or '_' character. They may be of any length.
By enclosing the name in double quotes, you can use other printable characters, or start the name with
a numeral. If a name contains characters, or starts with a numeral, you must always quote the name
when entering it.
Note that you can specify the parentage of an entity (for example, what part "owns" a marker or a
geometry element) when you create it by changing the name. If you enter just the entity name, then
Adams View assigns the default parent. If you type in the full name, then you can override the default
parent. In most cases, when creating an entity, Adams View provides a default name. The default
name that Adams View provides specifies the parentage that it has assumed. You can, of course, delete
this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
2. An Adams Solver ID is an integer used to identify the element in the Adams Solver dataset (.adm)
file. You only need to specify an ID number if you have user-written subroutines.
Enter a 0 to have Adams Solver assign the ID for you.
3. For comments, you can enter any alphanumeric characters. The comments that you create appear in
the Information window when you select to display information about the object, in the Adams View
log file, and in a command or dataset file when you export your model to these types of files. (Note
that design variables are not output to datasets; therefore, neither are their comments.)
4. If all values of x_minimum,y_minimum,x_maximum,y_maximum are positive, the values indicate
the lower left corner of the plane. For example, the values of x_minimum = 10 and y_minimum =
20, place the lower left corner at 10,20 in the reference marker's coordinate system.
Format:
geometry modify shape plate
plate_name = an existing plate
new_plate_name = a new plate
comments = string
marker_name = an existing marker
126 Adams View Commands
geometry modify shape plate
Example:
geometry modify shape plate &
plate_name = plate__1 &
new_plate_name = plate__2 &
comments = "a new plate" &
marker_name = mk112 , mk124 , cm &
width = 15 &
radius = 5
Description:
Extended Definition:
1. When an Adams Solver data file (.adm) is read into Adams View, all comments associated with a
statement (from the end of the previous statement through the end of the current statement) are
stored with the object. Comments in the data file can be associated with model.
These comments must follow the title statement and be followed by the comment 'END OF
MODEL COMMENTS'. This string must be uppercase.
When an Adams Solver data file is written, the comments for an object are written before the
statement corresponding to the object.
2. Many entities are attached to, or otherwise associated with, a specific marker. You use the
marker_name parameter to identify that marker.
You may identify a marker by typing its name or by picking it from the screen.
If the marker is not visible on the screen, you must type the name. You may also find it convenient
to type the name even if the marker is displayed.
geometry 127
geometry modify shape revolution
If you created the marker by reading an Adams data set or graphics file, the marker name is the letters
MAR followed by the Adams data set marker ID number. For example, the name of Adams
MARKER/101 is MAR101. If you created the marker during preprocessing, you will have given it a
name at that time.
If a marker is available by default, you may identify it by entering only its name. If it is not, you must
enter its full name. To identify a marker under a different part, for instance, you may need to enter
the model and part names as well. For example, you may specify marker 'pivot' from model 'links',
part 'lower_arm' by entering ".links.lower_arm.pivot". If you type a "?", Adams View will list the
markers available by default.
You must separate multiple marker names by commas.
If the marker is visible in one of your views, you may identify it by picking on it.
You need not separate multiple marker picks by commas.
Format:
geometry modify shape revolution
revolution_name = an exsiting revolution
new_revolution_name = a new revolution
adams_id = adams id
comments = string
reference_marker = an existing marker
profile_curve = an existing gwire
points_for_profile = location
angle_extent = angle
number_of_sides = integer
relative_to = an existing model, part or marker
analytical = boolean
Example:
geometry modify shape revolution &
revolution_name = revolution__1 &
new_revolution_name = revolution__2 &
comments = “a modified revolution” &
reference_marker = origin &
128 Adams View Commands
geometry modify shape revolution
Description:
Extended Definition:
1. For more detail about revolutions, see Revolution Tool dbox help.
geometry 129
geometry modify shape shell
2. A revolution is defined by a profile polyline curve which is revolved about the Z axis of the marker
named 'REFERENCE_MARKER='. The profile curve is a polyline that is in the X-Y plane of its
parent part. Z coordinate values of the profile curve are ignored. The revolution will move with the
part which owns the reference marker.
3. You may use the name specified by the revolution_name parameter, later to refer to this revolution.
Adams View will not allow you to have two revolutions with the same full name, so you must provide
a unique name.
Normally, entity names are composed of alphabetic, numeric, or '_' (underscore) characters, and start
with an alphabetic or '_' character. They may be any length.
By enclosing the name in double quotes, you may use other printable characters, or start the name
with a numeral. If a name contains characters, or starts with a numeral, you must always quote the
name when entering it.
Note that you can specify the parentage of an entity (for example, what part "owns" a marker or a
geometry element) when you CREATE it by changing the name. If you enter just the entity name,
then the default parent will be assigned by Adams View. If you type in the full name, then you may
over ride the default parent. In most cases, when creating an entity, Adams View will provide a default
name. The default name that Adams View provides will specify the parentage that it has assumed.
You may, or course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
4. When an Adams Solver data file (.adm) is read into Adams View, all comments associated with a
statement (from the end of the previous statement through the end of the current statement) are
stored with the object. Comments in the data file can be associated with model. These comments
must follow the title statement and be followed by the comment 'END OF MODEL
COMMENTS'. This string must be uppercase.
When an Adams Solver data file is written, the comments for an object are written before the
statement corresponding to the object.
5. For the profile_curve parameter, you may specify an arc, circle, spline curve, polyline, or outline. The
coordinates of the object points, relative to the object's parent part, will be used to define a profile
relative to the revolution's reference marker. The profile defined by the points will be swept around
the reference marker's z-axis.
Tips:
1. The angle starts at the positive x-axis of the center marker and subtends the arc, the arc of the cylinder,
or the arc of the cone frustum.
Format:
geometry modify shape shell
shell_name = an existing shell
new_shell_name= a new shell
comments = string
reference_marker = an existing marker
file_name = string
wireframe_only = boolean
Example:
geometry create shape shell &
shell_name = shell__1 &
comments = "a new shell" &
reference_marker = mk112&
file_name = "c:\shell1.shl"&
wireframe_only = no
Description:
Extended Definition:
1. A shell is defined by a number of node points and the connectivity between those node points. The
shell is represented as polygons defined by connecting node points with straight line segments.
Polygons are not necessarily flat. The points and connectivety are read from a file named
"FILE_NAME=". The shell is placed at the marker named "REFERENCE_MARKER=". The shell
will move with the part that owns the reference marker.
2. You may use the name specified by the shell_name parameter, later to refer to this shell. Adams View
will not allow you to have two shells with the same name, so you must provide a unique name.
geometry 131
geometry modify shape shell
Normally, entity names are composed of alphabetic, numeric, or '_' (underscore) characters, and start
with an alphabetic or '_' character. They may be of any length.
By enclosing the name in double quotes, you may use other printable characters, or start the name
with a numeral. If a name contains characters, or starts with a numeral, you must always quote the
name when entering it.
Note that you can specify the parentage of an entity (e.g. what part "owns" a marker or a geometry
element) when you CREATE it by changing the name. If you enter just the entity name, then the
default parent will be assigned by Adams View. If you type in the full name, then you may override
the default parent. In most cases, when creating an entity, Adams View will provide a default name.
The default name that Adams View provides will specify the parentage that it has assumed.
You may, of course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
3. When an Adams Solver data file (.adm) is read into Adams View, all comments associated with a
statement (from the end of the previous statement through the end of the current statement) are
stored with the object. Comments in the data file can be associated with model.
These comments must follow the title statement and be followed by the comment 'END OF
MODEL COMMENTS'. This string must be uppercase.
When an Adams Solver data file is written, the comments for an object are written before the
statement corresponding to the object.
4. You do not need to enclose the file name in quotes if it only contains alpha-numeric characters and
starts with a letter. If you want to include other characters, such as a '.' for an extension or '/' or '[]'
for directory paths, you must enclose the name in quotes.
Shell file format: The first line in a shell file has the form: int int float. The first integer represent how
many points are in the shell file. The second integer represents how many polygons are described in
the file. The float value represent a scaling factor which is applied to all of the point coordinates.
The lines immediately following the first line consist of the x, y, and z coordinate floating point values
for the points. There is one xyz triplet per line. You may use multiple spaces or tabs to separate the
x, y, and z values.
Immediately following the coordinate values are the lines for defining the polygon connectivity. The
first number on one of these lines is the number of vertices that should be connected to form the
polygon.
The following integers are the offsets into the list of points. For example, 4 5 6 2 1 means that
the polygon will be formed by 4 points and those points are the 5th, 6th, 2nd, and 1st points in the
list of points in the shell file. Note that it is not necessary to explicitly close each polygon by going
back to the start point. You may use multiple spaces or tabs to separate the values.
A sample shell file for a cube:
861.0
-1.0-1.01.0
-1.0 1.0 1.0
132 Adams View Commands
geometry modify shape solid_shell
Format:
geometry modify shape solid_shell
solid_shell_name = existing solid_shell
new_solid_shell_name = new name for the solid_shell
faces = existing face
Example:
geometry modify shape solid_shell &
solid_shell_name = solid_shell_1 &
faces = face_1
Description:
Extended Definition:
1. When using the Adams View command language and naming entities, you can use the name later to
refer to this entity. Adams View does not allow you to have two entities with the same full name, so
you must provide a unique name. Normally, entity names are composed of alphabetic, numeric, or
'_' (underscore) characters, and start with an alphabetic or '_' character. They may be of any length.
By enclosing the name in double quotes, you can use other printable characters, or start the name with
a numeral. If a name contains characters, or starts with a numeral, you must always quote the name
when entering it.
Note that you can specify the parentage of an entity (for example, what part "owns" a marker or a
geometry element) when you create it by changing the name. If you enter just the entity name, then
Adams View assigns the default parent. If you type in the full name, then you can override the default
parent. In most cases, when creating an entity, Adams View provides a default name. The default
name that Adams View provides specifies the parentage that it has assumed. You can, of course, delete
this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
2. You can identify an entity, such as a marker or force, by typing its name or by picking it from the
screen. If the entity is not visible on the screen, you must type the name. You may also find it
convenient to type the name even if the element is displayed.
If an entity is available by default, you can identify it by entering its name only. If it is not, you must
enter its full name. To identify a entity under a different part, you may need to enter the model and
part names as well. For example, you can specify marker 'pivot' from model 'links', part 'lower_arm'
by entering ".links.lower_arm.pivot".
If you type a "?", Adams View lists the entity available by default.
You must separate multiple entity names by commas. If the entity is visible in one of your views, you
can identify it by picking it. You need not separate multiple element picks by commas.
134 Adams View Commands
geometry modify shape spring_damper
E
G = ---------------------
2(1 + υ)
The figure below illustrates the display options you can set.
The diameter_of_spring parameter defines the diameter of the spring, while damper_diameter_at_ij defines the
diameters of the dampers at the I and J markers.
The number of coils drawn in the spring is defined using coil_count. The distances between the ends of the
dampers and the I and J markers is defined using tip_length_at_ij. The lengths of the damper caps at the I and
J markers is defined using cup_length_at_ij.
Format:
geometry modify shape spring_damper
spring_damper_name = existing spring damper
new_spring_damper_name = new name for damper
adams_id = integer
comments = string
i_marker_name = existing marker
j_marker_name = existing marker
coil_count = integer
diameter_of_spring = length
damper_diameter_at_ij = length
tip_length_at_ij = length
cup_length_at_ij = length
geometry 135
geometry modify shape spring_damper
Description:
Extended Definition:
1. When using the Adams View command language and naming entities, you can use the name later to
refer to this entity. Adams View does not allow you to have two entities with the same full name, so
you must provide a unique name. Normally, entity names are composed of alphabetic, numeric, or
'_' (underscore) characters, and start with an alphabetic or '_' character. They may be of any length.
By enclosing the name in double quotes, you can use other printable characters, or start the name with
a numeral. If a name contains characters, or starts with a numeral, you must always quote the name
when entering it.
136 Adams View Commands
geometry modify shape spring_damper
Note that you can specify the parentage of an entity (for example, what part "owns" a marker or a
geometry element) when you create it by changing the name. If you enter just the entity name, then
Adams View assigns the default parent. If you type in the full name, then you can override the default
parent. In most cases, when creating an entity, Adams View provides a default name. The default
name that Adams View provides specifies the parentage that it has assumed. You can, of course, delete
this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
2. An Adams Solver ID is an integer used to identify the element in the Adams Solver dataset (.adm)
file. You only need to specify an ID number if you have user-written subroutines.
Enter a 0 to have Adams Solver assign the ID for you.
3. Adams View draws this graphic between one part at the I marker and the other at the J marker.
4. For the damper_diameter_at_ij, the first value defines the diameter of the cup at the I marker. The
second value defines the diameter of the cup at the J marker.
5. For the cup_length_at_ij parameter, the first value defines the length of the cup at I marker. Adams
View measures the length from the bottom of the cup to its top along the line that I and J define.
The second value defines the length of the cup at J. Adams View measures the length from the bottom
of the cup to the top along the line that I and J define.
geometry 137
geometry modify shape torus
Format:
geometry modify shape torus
torus_name = an existing torus
new_torus_name = a new torus
adams_id = Adams id
comments = string
center_marker = an existing marker
angle_extent = angle
major_radius = length
minor_radius = length
side_count_for_perimeter = integer
segment_count = integer
Example:
geometry modify shape torus &
torus_name = torus__1 &
new_torus_name = torus__2 &
comments = "a modified torus" &
center_marker = origin &
angle_extent = 150 &
major_radius = 10 &
minor_radius = 5 &
side_count_for_perimeter = 10 &
segment_count = 10
138 Adams View Commands
geometry modify shape torus
Description:
Extended Definition:
1. A torus is defined by a circular spine with a circular cross-section at each point on the spine. The
torus is placed at the marker named 'CENTER_MARKER='. The radius for the circular spine of the
torus is defined by the MAJOR_RADIUS parameter. The radius for the circular cross-sections is
defined by the MINOR_RADIUS parameter. The number of circular cross-sections to create along
the spine may be specified with the SIDE_COUNT_FOR_PERIMETER parameter. The number
of sides for each of the circular cross-sections may be specified with the SEGMENT_COUNT
parameter. The torus will move with the part which owns the center marker.
2. You may use the name specified by the torus_name parameter, later to refer to this torus. Adams
View will not allow you to have two tori with the same full name, so you must provide a unique name.
Normally, entity names are composed of alphabetic, numeric, or '_' (underscore) characters, and start
with an alphabetic or '_' character. They may be any length.
By enclosing the name in double quotes, you may use other printable characters, or start the name
with a numeral. If a name contains characters, or starts with a numeral, you must always quote the
name when entering it.
geometry 139
geometry modify shape torus
Note that you can specify the parentage of an entity (e.g. what part "owns" a marker or a geometry
element) when you CREATE it by changing the name. If you enter just the entity name, then the
default parent will be assigned by Adams View. If you type in the full name, then you may over ride
the default parent. In most cases, when creating an entity, Adams View will provide a default name.
The default name that Adams View provides will specify the parentage that it has assumed. You may,
or course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
3. When an Adams Solver data file (.adm) is read into Adams View, all comments associated with a
statement (from the end of the previous statement through the end of the current statement) are
stored with the object. Comments in the data file can be associated with model.
These comments must follow the title statement and be followed by the comment 'END OF
MODEL COMMENTS'. This string must be uppercase.
When an Adams Solver data file is written, the comments for an object are written before the
statement corresponding to the object.
4. If you are creating a circle or an arc, orient the center marker so that its z-axis is normal to the plane
of the circle or to the plane of the arc. Similarly, if you are defining a cylinder or a frustum, orient the
center marker so that its z-axis is normal to the bottom of the cylinder or the frustum.
5. The angle specified by the angle_extent parameter starts at the positive x-axis of the center marker and
subtends the arc, the arc of the cylinder, or the arc of the cone frustum.
Tips:
1. If you are creating a circle or an arc, orient the center marker so that its z-axis is normal to the plane
of the circle or to the plane of the arc. Similarly, if you are defining a cylinder or a frustum, orient the
center marker so that its z-axis is normal to the bottom of the cylinder or the frustum.
140 Adams View Commands
geometry modify shape torus
graphic_results 1
graphic_results animate
graphic_results
graphic_results animate
Allows you to view a pseudo dynamic representation of the model motion simulated with Adams.
Format:
graphic_results animate
analysis_name = an existing analysis
view_name = an existing view
number_of_cycles = integer
increment_frame_by = integer
time_range = time
frame_range = integer
superimposed = on_off
base_marker = an existing marker
camera_ref_marker = an existing marker
point_trace_marker = an existing marker
icon_visibility = on_off
offset = location
colors = an existing color
fullscreen_animation = on_off
bitmap_animation = bitmap_opts
record_to_laser_disc = on_off
animate_page = boolean
Example:
graphic_results animate &
analysis_name = last_run &
number_of_cycles = 100 &
increment_frame_by = 2 &
base_marker = psmar &
fullscreen_animation = on &
icon_visibility = on &
colors = plum &
2 Adams View Commands
graphic_results animate
Description:
Extended Definition:
1. Animation is created by requesting a series of "frames" (or a "time range" corresponding to a series of
frames) to be displayed in rapid succession. These frames correspond to pictures of the model at each
output time step in the Adams simulation. The speed of the animation depends on the hardware
Adams View is running on, the complexity of the graphics being displayed, and the draw mode of the
graphics being displayed (wireframe, solid filled, or shaded; wireframe being the fastest).
2. Adams View provides various options for specifying how the animation frames are to be displayed.
These options include starting and ending frame number or time, the number of frames (simulation
output time steps) to be skipped between displayed frames, the number of complete cycles the
animation should go through, etc. If none of these options are specified, the system will animate in
the active view, use all frames, and cycle through them once. Other advanced features are provided
such as BASE_MARKER, SUPERIMPOSE, CAMERA_REF_MARKER, and
POINT_TRACE_MARKER, which are not used unless specified. These options provide:
- BASE_MARKER - a way to freeze a model position in the view during the animation
- SUPERIMPOSE - overlaying the frames of the animation,
- CAMERA_REF_MARKER - a model mounted viewing position,
- POINT_TRACE_MARKER - tracing marker paths during the animation in respective order, and
- CAMERA_REF_MARKER + BASE_MARKER - a view direction from the camera marker to the
base marker.
4 Adams View Commands
graphic_results animate
3. Adams View requires that Adams simulations have unique names and the default name of an analysis
may be overridden when reading the file(s) using the file_nameparameter. When referring to an
analysis name that already exists quotes are not necessary. When processing any command that
requires an analysis name the system will default to the default analysis name. The default analysis
name is set to the last analysis file read in (.GRA, .REQ, .RES, or all three). To change the default
analysis name without reading in an analysis file use the "defaults analysis" command.
4. Each view created has a name associated with it. The view_name parameter is used to identify a view
for a particular operation. In most cases, view_name=all is also a valid entry. The all option indicates
"all displayed views". There are eight standard views available when the Adams View is started. These
views are: front, top, right, iso, bottom, left, and back. The first four of these standard views are
displayed by default when Adams View is started. The user may create new views using the 'VIEW
MANAGEMENT CREATE' command, and save/restore their attributes. If the VIEW_NAME
parameter is used, the desired view can be identified by picking in the window or entering the name
from the keyboard. Typing the name is the only way to identify a stored view that is not displayed.
5. If entered, the NUMBER_OF_CYCLES parameter must be a positive integer. This value will be
remembered and will be the default the next time an animation is performed. This parameter is
optional and if not entered, will default initially to 1 (until updated by the user).
6. If entered, the INCREMENT_FRAMES_BY parameter must have an absolute value less than the
maximum number of frames in the analysis. This parameter is optional and if not entered, will default
to 1.
7. If entered, the time_range parameter must be two real numbers (separated by commas) where the
second is greater than the first and the default values are initially 0.0,1000.0. If new values are entered,
these values will be remembered and be the default next time the parameter is used. If a value greater
than the simulation end in time is entered for the second value, the system will stop at the last frame.
These time values will be rounded to the nearest simulation output time step value. This parameter
is optional and mutually exclusive with the FRAME_RANGE parameter. If neither is entered, the
previous values to TIME_RANGE will be used (0,0,1000.0, if they have not been changed by the
user).
Note: Even if only one view_name is provided, the time range will be applied to the specified
view and any other views that contain the same model (the model indicated by
analysis_name parameter). If only analysis_name is provided (view_name parameter is
omitted), any views that contain the model indicated by analysis_name will be affected.
8. If entered, the frame_range parameter must be two positive integers (separated by commas) where the
second is greater than the first and the default values are initially 1,10000. If new values are entered,
these values will be remembered and be the default next time the parameter is used. If a value greater
than the last frame number is entered for the second value, the system will stop at the last frame. This
parameter is optional and mutually exclusive with the TIME_RANGE parameter. If neither is
entered, the previous values to FRAME_RANGE will be used (1,10000, if they have not been
changed by the user).
graphic_results 5
graphic_results animate
Note: Even if only one view_name is provided, the frame range will be applied to the specified
view and any other views that contain the same model (the model indicated by
analysis_name parameter). If only analysis_name is provided (view_name parameter is
omitted), any views that contain the model indicated by analysis_name will be affected.
9. The superimposed view is sometimes referred to as a fan diagram. Superimposing frames is useful to
show the relationship of the models parts between frames but often obscures the view of the motion.
This is an optional parameter and if not entered, then no superimposed frames will be drawn. The
legal values of this parameter are ON and OFF. ON indicates that frames will be superimpose during
the animation. OFF, the default, indicates that frames will not be superimposed during theanimation.
10. The base_marker parameter is used to specify a marker whose position will be frozen in the view as
the model animates. This is particularly useful when a relatively small object undergoes both, small
configuration changes as well as large overall gross motion. For example, the flight path of a jet is very
large over time relative to the motion of the control surfaces on the jet. In this case, selecting the
BASE_MARKER to be on the jet would be appropriate. This parameter can be used with the
CAMERA_REF_MARKER to create a different effect on the viewing direction. When the
CAMERA_REF_MARKER and the BASE_MARKER are specified together, the viewing direction
is "from" the CAMERA_REF_MARKER position "to" the BASE_MARKER position. In addition,
the "up" direction of the view is computed based on the direction of the CAMERA_REF_MARKER
"y" axis (i.e. the y axis is projected into a direction perpendicular to the viewing direction defined by
the two markers). This viewing direction is recomputed between each frame of the animation. This
feature allows the effect of watching an object come from a distance, pass by, and proceed into the
distance. You may identify a marker by typing its name or by picking it from the screen. If the marker
is not visible on the screen, you must type the name. You may also find it convenient to type the name
even if the marker is displayed. If you created the marker by reading an Adams data set or graphics
file, the marker name is the letters MAR followed by the Adams data set marker ID number. For
example, the name ofAdams MARKER/101 is MAR101. If you created the marker during
preprocessing, you will have given it a name at that time. If a marker is available by default, you may
identify it by entering only its name. If it is not, you must enter its full name. To identify a marker
under a different part, for instance, you may need to enter the model and part names, as well. For
example, you may specify marker 'pivot' from model 'links', part 'lower_arm' by entering
".links.lower_arm.pivot". If you type a "?", Adams View will list the markers available by default. You
must separate multiple marker names by commas. If the marker is visible in one of your views, you
may identify it by picking on it. You need not separate multiple marker picks by commas.
11. The camera_ref_marker parameter connects the viewing camera to the "z" axis of a marker. The
animation is then viewed from the moving location of that marker in the "z" direction. This is
particularly useful when a "drivers eye" or "pilots eye" viewing perspective is desired. This parameter
can be used with the BASE_MARKER to create a different effect on the viewing direction. When the
CAMERA_REF_MARKER and the BASE_MARKER are specified together, the viewing direction
is "from" theCAMERA_REF_MARKER position "to" the BASE_MARKER position. In addition
the "up" direction of the view is computed based on the direction of the CAMERA_REF_MARKER
6 Adams View Commands
graphic_results animate
"y" axis (i.e. the y axis is projected into a direction perpendicular to the viewing direction defined by
the two markers). This viewing direction is recomputed between each frame of the animation. This
feature allows the effect of watching an object come from a distance, pass by, and proceed into the
distance.
12. The point_trace_marker parameter is used to specify marker(s) whose position will be traced in the
view as the model animates. This is particularly useful when a marker undergoes complicated motion,
or has motion that is easily obscured by other model graphics. For example, the path of a chain link
being whipped, or a car wheel center's 3D motion. In this case, selecting the BASE_MARKER to be
on the wheel center would be appropriate. Note that the model graphics need not be displayed to
trace the path of a marker in a view. Up to 10 markers can be traced simultaneously.
13. Entering 'ON' for the icon_visibility parameter will cause Adams View to display the icons during
animation. This will cause slower animation times. For this reason, 'OFF' is the default value.
14. The fullscreen_animation parameter specifies the animation should be done using the entire
application window. This includes the areas for all the displayed views, the menu/panel area, fixed
menu area , and the command/message areas. The application window will return to the
configuration in effect prior to theanimation command when the animation is complete.
15. Bitmap animation is a platform dependent feature that may be used to obtain faster animations. The
value for this parameter may be one of the following:
- OFF - perform no bitmap animation operations.
- RECORD - record frames for the bitmap animation using the current window size.
- RECORD_SHRINK - record frames for the bitmap animation, but first shrink the Adams View
window so that it is approximately 20% of the total screen size. This is to obtain a faster animation
by using a smaller amount of screen space.
- PLAY - play back the last recorded bitmap animation.
- FREE_MEM - free any memory resources that were allocated for bitmap animations. Each time you
record a new bitmap animation, any previous bitmap animation will be deleted. When you exit
Adams View, any bitmap animations will be deleted. It issuggested that after you have finished with
a bitmap animation to use the FREE_MEM option so that you can make available the memory
resources used by theanimation. It should be noted that there is a direct correlation between the size
of the Adams View window and the memory requirements for recording and the speed upon
playback. A large Adams View window on a color machine may require a significant amount of
memory to perform bitmap animation. In addition, playback speeds are going to be slower for a large
window as opposed to a smaller window because more pixels per frame need to be drawn. Currently,
this feature is only available on Sun workstations, running the SunView windowing system.
16. Single frame recording allows you to render complex graphics images using the highest quality
rendering modes and record the images sequentially on the laser disc. Upon playback, the recorded
frames are displayed at the standard video rate of 30 frames/sec, allowing for smooth, high-quality
animation of modeling or analysis graphics. In addition, laser disc devices allow you to vary the
playback rate (unlike video tape systems) to speed up or slow down the resulting animation sequence.
graphic_results 7
graphic_results deformed_mode_shape
Tips:
Here are some tips to improve animation performance in Adams View.
1. Animate only a single view. If you animate multiple views simultaneously, animation will be slower.
You can use the Delete command box on the View Control Panel or the 'VIEW MANAGEMENT
DELETE' command to delete views that are not needed. You may also erase a view with the 'VIEW
ERASE' command. Erasing a view leaves the view window in the display, but erases the contents, so
they will not be animated.
2. Animate in wireframe mode rather than in solid fill or shaded mode. Animate a subset of the available
frames by using the INCREMENT_FRAME_BY parameter on the 'GRAPHIC_RESULTS
ANIMATE' command. Remove unnecessary geometry with the 'DISPLAY_ATTRIBUTES
VISIBILITY GEOMETRY VISIBILITY=OFF' command. You can remove entire parts with the
'DISPLAY_ATTRIBUTES VISIBILITY PART VISIBILITY=OFF' command.
Avoid excessive detail in your geometry. For example, avoid creating a cylinder with 60 sides if it looks
acceptable with 20 sides.
3. Remove or replace "rubber-band" geometry. In general, geometry that "rubberbands" (i.e. changes
size or shape with each time step) takes longer to display than similar geometry that does not. Spring-
dampers, force vectors, and outlines that go between parts are examples of "rubber-banding"
geometry. Turn off the view name and triad with the command 'VIEW MANAGEMENT MODIFY
NAME_VISIBILITY=OFF TRIAD_VISIBILITY=OFF'.
graphic_results deformed_mode_shape
Allows you to display the model at maximum deformation from the operating point of the requested natural
frequency of the EIGEN_SOLUTION.
Format:
graphic_results deformed_mode_shape
eigen_solution_name = an existing eigen
view_name = an existing view
mode_number = integer
frequency = real
translation_maximum = length
rotation_maximum = angle
display_undeformed_shape = boolean
color_of_undeformed_shape = an existing color
8 Adams View Commands
graphic_results deformed_mode_shape
Example:
graphic_results deformed_mode_shape &
eigen_solution_name = eigen__1 &
mode_number = 1 &
translation_maximum = 0.15 &
color_of_undeformed_shape = salmon &
display_undeformed_shape = yes &
contour_plots = off
Description:
Extended Definition:
1. Adams linearizes the model at an operating point you specify and calculates the eigenvalues and
eigenvectors. This information is communicated to Adams View in the output files. Adams View then
can use this command to display the deformed shape as predicted from the EIGEN_SOLUTION.
Because the linear solution eigenvectors are normalized you can specify what the maximum excursion
of the deformed shape should be for best visualization. You can specify the mode by entering the
graphic_results 9
graphic_results deformed_mode_shape
MODE_NUMBER, or the FREQUENCY of the mode. If you specify the FREQUENCY, the mode
closet to the specified FREQUENCY will be used. If neither the mode parameter or the
FREQUENCY parameter is specified, the model is deformed using the first mode. You can display
the model in its undeformed state, as well as its deformed state using the
DISPLAY_UNDEFORMED_SHAPE parameter. The amount of deformation is controlled with the
MAXIMUM_TRANSLATION and MAXIMUM_ROTATION parameters. The deformations are
all scaled, so that no part is translated more than the specified MAXIMUM_TRANSLATION, or
rotated more than the specified MAXIMUM_ROTATION.
2. If an eigen_solution is available by default, you may identify it by entering only its name. The
EIGEN_SOLUTION must be in an existing analysis that is associated to an existing model.
Therefore, any reference to the EIGEN_SOLUTION can include the model and analysis name. For
example, assume you have read a result file called "SECOND_GEAR.RES", and this result file
contains the analysis "SECOND_GEAR". If you wish to refer to the EIGEN_SOLUTION named
"EIG1" for the model "TRANSMISSION", enter .TRANSMISSION.SECOND_GEAR.EIG1
(the.TRANSMISSION.SECOND_GEAR. may be omitted if SECOND_GEAR is the current
default analysis_name). SECOND_GEAR refers to the analysis name that the result set came from
(or is stored under). If you type a "?", Adams View will list the eigen_solutions available by default.
The eigen_solution name begins with the letters EIG and ends with the eigen_solution ID number.
You must separate multiple eigen_solution names by commas. If the eigen_solution is visible in one
of your views, you may identify it by picking on any of the graphics associated with it.
3. Each view created has a name associated with it. The view_name parameter is used to identify a view
for a particular operation. In most cases, view_name=all is also a valid entry. The all option indicates
"all displayed views". There are eight standard views available when the Adams View is started. These
views are: front, top, right, iso, bottom, left, and back. The first four of these standard views are
displayed by default when Adams View is started. The user may create new views using the 'VIEW
MANAGEMENT CREATE' command, and save/restore their attributes. If the VIEW_NAME
parameter is used, the desired view can be identified by picking in the window or entering the name
from the keyboard. Typing the name is the only way to identify a stored view that is not displayed.
4. If neither MODE_NUMBER or FREQUENCY is specified the first mode in the
EIGEN_SOLUTION is used. To get a list of the available modes and the orresponding frequencies
use the LIST_INFO EIGEN command.
5. The mode shape (i.e. eigenvector) of the mode closest to the specified FREQUENCY is used. If
neither MODE_NUMBER nor FREQUENCY is specified, the first mode in the
EIGEN_SOLUTION is used. To get a list of the available modes and the corresponding frequencies
use the LIST_INFO EIGEN command.
6. The reason why the translation_maximum parameter is needed is because the eigenvectors are
normalized during the eigen_solution. Therefore, to get a meaningful animation or deformed shape
you must sometimes set this value to scale the maximum deformation to get a recognizable shape.
7. The reason why the rotation_maximum parameter is required is because the eigenvectors are
normalized during the EIGEN_SOLUTION. Therefore, to get a meaningful animation or deformed
shape, you must sometimes set this value to scale the maximum deformation to get a recognizable
shape.
10 Adams View Commands
graphic_results mode_shape_animation
Tips:
1. If the MAXIMUM_TRANSLATION parameter is not specified, 20 percent of the model size is used.
2. If the MAXIMUM_ROTATION parameter is not specified, 20 degrees is used.
3. To get a list of the modes and frequencies to select from, use the LIST_INFO EIGEN_VALUE
command.
4. The undeformed model is displayed in dashed lines.
graphic_results mode_shape_animation
Allows you to view the model oscillating at one of its natural frequencies.
Format:
graphic_results mode_shape_animation
eigen_solution_name = an existing eigen
view_name = an existing view
mode_number = integer
frequency = real
translation_maximum = length
rotation_maximum = angle
show_time_decay = boolean
frames_per_cycle = integer
number_of_cycles = integer
superimposed = on_off
icon_visibility = on_off
fullscreen_animation = on_off
bitmap_animation = bitmap_opts
record_to_laser_disc = on_off
Example:
graphic_results mode_shape_animation &
eigen_solution_name = eigen__1 &
mode_number = 1 &
translation_maximum = 0.15 &
record_to_laser_disc = on
graphic_results 11
graphic_results mode_shape_animation
Description:
Extended Definition:
1. This animation cycles through the model deformation from the operating point of the requested
natural frequency of the EIGEN_SOLUTION. Adams linearizes the model at an operating point you
specify and calculates the eigenvalues and eigenvectors. This information is communicated to Adams
View in the output files. Adams View then can use this command to display the animated deformed
shape as predicted from the EIGEN_SOLUTION. Because the linear solution eigenvectors are
normalized you can specify what the maximum excursion of the animated deformed shape should be
for best visualization.
2. Animation is created by requesting a series of "frames" to be displayed in rapidsuccession. These
frames correspond to a pictures of the model interpolated between the maximum deformation in the
positive and negative directions. The animation then cycles through the deformation of the model
mode shape, from undeformed, to maximum deformed, to negative maximum deformed, and finally,
to the undeformed shape. This deformation is about the operating point of the requested natural
mode of the EIGEN_SOLUTION.
3. The number of frames per cycle is controlled with the FRAMES_PER_CYCLE parameter. The
interpolation between the frames is done with trigonometric functions, therefore, the frames will tend
to be segregated at the maximum deformation in the positive and negative directions.
4. You can see the effect of the damping in the MODE_SHAPE_ANIMATION with the
SHOW_TIME_DECAY parameter. If not specified, the amplitude of the deformations will not
change as each frame is calculated. Only periodic eigen modes can be animated. Therefore, there is
no animation of modes that do not have periodic data (i.e. modes with an imaginary component of
the eigenvalue = 0). You can specify the mode by entering the MODE_NUMBER, or the
FREQUENCY of the mode. If you specify the FREQUENCY, the mode closet the specified
FREQUENCY will be used. If neither the mode parameter or the FREQUENCY parameter is
specified, the model is deformed using the first mode.
The amount of deformation is controlled with the MAXIMUM_TRANSLATION and
MAXIMUM_ROTATION parameters. The deformations are all scaled so that no part is translated
more than the specified MAXIMUM_TRANSLATION, or rotated more than the specified
MAXIMUM_ROTATION. The speed of the animation depends on the hardware Adams View is
running on, the complexity of the graphics being displayed, and the draw mode of the graphics being
displayed (wireframe, solid filled, or shaded; wireframe being the fastest).
5. If an eigen_solution is available by default, you may identify it by entering only its name. The
EIGEN_SOLUTION must be in an existing analysis that is associated to an existing model.
Therefore, any reference to the EIGEN_SOLUTION can include the model and analysis name. For
example, assume you have read a result file called "SECOND_GEAR.RES", and this result file
contains the analysis "SECOND_GEAR". If you wish to refer to the EIGEN_SOLUTION named
"EIG1" for the model "TRANSMISSION", enter .TRANSMISSION.SECOND_GEAR.EIG1
(the .TRANSMISSION.SECOND_GEAR. may be omitted if SECOND_GEAR is the current
default analysis_name). SECOND_GEAR refers to the analysis name that the result set came from
(or is stored under). If you type a "?", Adams View will list the eigen_solutions available by default.
The eigen_solution name begins with the letters EIG and ends with the eigen_solution ID number.
You must separate multiple eigen_solution names by commas. If the eigen_solution is visible in one
of your views, you may identify it by picking on any of the graphics associated with it.
graphic_results 13
graphic_results mode_shape_animation
6. Each view created has a name associated with it. The view_name parameter is used to identify a view
for a particular operation. In most cases, view_name=all is also a valid entry. The all option indicates
"all displayed views". There are eight standard views available when the Adams View is started. These
views are: front, top, right, iso, bottom, left, and back. The first four of these standard views are
displayed by default when Adams View is started. The user may create new views using the 'VIEW
MANAGEMENT CREATE' command, and save/restore their attributes. If the VIEW_NAME
parameter is used, the desired view can be identified by picking in the window or entering the name
from the keyboard. Typing the name is the only way to identify a stored view that is not displayed.
7. If neither MODE_NUMBER nor FREQUENCY is specified, the first mode in the
EIGEN_SOLUTION is used. To get a list of the available modes and the corresponding frequencies
use the LIST_INFO EIGEN command.
8. The mode shape (i.e. eigenvector) of the mode closest to the specified FREQUENCY is used. If
neither MODE_NUMBER nor FREQUENCY is specified, the first mode in the
EIGEN_SOLUTION is used. To get a list of the available modes and the corresponding frequencies,
use the LIST_INFO EIGEN command.
9. The reason why the translation_maximum parameter is needed is because the eigenvectors are
normalized during the eigen_solution. Therefore, to get a meaningful animation or deformed shape
you must sometimes set this value to scale the maximum deformation to get a recognizable shape.
10. The reason why the rotation_maximum parameter is required is because the eigenvectors are
normalized during the EIGEN_SOLUTION. Therefore, to get meaningful animation or deformed
shape, you must sometimes set this value to scale the maximum deformation to get a recognizable
shape.
11. A full cycle goes from undeformed, to maximum positive displacement, back to undeformed, then
to maximum displacement in the negative direction, and finally back to undeformed. The
interpolation between the frames is done with trigonometric functions, therefore, the frames will tend
to be segregated at the maximum deformation in the positive and negative directions.
12. If entered the NUMBER_OF_CYCLES parameter must be a positive integer. This value will be
remembered and will be the default the next time an animation is performed. This parameter is
optional and if not entered will default initially to 1 (until updated by the user).
13. The superimposed view is sometimes referred to as a fan diagram. Superimposing frames is useful to
show the relationship of the models parts between frames but often obscures the view of the motion.
This is an optional parameter and if not entered then no superimposed frames will be drawn. The
legal values of this parameter are ON and OFF. ON indicates that frames will be superimposed
during the animation. OFF, the default, indicates that frames will not be superimpose during the
animation.
14. The fullscreen_animation parameter specifies the animation should be done using the entire
application window. This includes the areas for all the displayed views, the menu/panel area, fixed
menu area, and the command/message areas. The application window will return to the configuration
in effect prior to the animation command when the animation is complete.
15. Bitmap animation is a platform dependent feature that may be used to obtain faster animations. The
value for this parameter may be one of the following:- OFF perform no bitmap animation operations.
- RECORD - record frames for the bitmap animation using the current window size.
14 Adams View Commands
graphic_results mode_shape_animation
- RECORD_SHRINK - record frames for the bitmap animation, but first shrink the Adams View
window so that it is approximately 20% of the total screen size. This is to obtain a faster animation
by using a smaller amount of screen space.
- PLAY - play back the last recorded bitmap animation.
- FREE_MEM - free any memory resources that were allocated for bitmap animations. Each time you
record a new bitmap animation, any previous bitmap animation will be deleted. When you exit
Adams View, any bitmap animations will be deleted. It is suggested that after you have finished with
a bitmap animation to use the FREE_MEM option so that you can make available the memory
resources used by the animation. It should be noted that there is a direct correlation between the size
of the Adams View window and the memory requirements for recording and the speed upon
playback. A large Adams View window on a color machine may require a significant amount of
memory to perform bitmap animation. In addition, playback speeds are going to be slower for a large
window as opposed to a smaller window because more pixels per frame need to be drawn. Currently,
this feature is only available on Sun workstations running the SunView windowing system.
16. Single frame recording allows you to render complex graphics images using the highest quality
rendering modes and record the images sequentially on the laser disc. Upon playback, the recorded
frames are displayed at the standard video rate of 30 frames/sec, allowing for smooth, high-quality
animation of modeling or analysis graphics. In addition, laser disc devices allow you to vary the
playback rate (unlike video tape systems) to speed up or slow down the resulting animation sequence.
Tips:
1. If the MAXIMUM_TRANSLATION parameter is not specified, 20 percent of the model is used.
2. If the MAXIMUM_ROTATION parameter is not specified, 20 degrees is used.
3. To get a list of the modes and frequencies use LIST_INFO EIGEN_VALUE
4. Animate only a single view. If you animate multiple views simultaneously,animation will be slower.
You can use the Delete command box on the View Control Panel or the "VIEW MANAGEMENT
DELETE" command to delete unneeded views.
You may also erase a view with the "VIEW ERASE" command. Erasing a view leaves the view window
in the display, but erases the contents so they will not be animated.
5. Animate in wireframe mode rather than in solid fill or shaded mode.
6. Remove unnecessary geometry with the "DISPLAY_ATTRIBUTES VISIBILITY GEOMETRY
VISIBILITY=OFF" command. You can remove entire parts with the"DISPLAY_ATTRIBUTES
VISIBILITY PART VISIBILITY=OFF" command.
Avoid excessive detail in your geometry. For example, avoid creating a cylinder with 60 sides if it looks
acceptable with 20 sides.
7. Remove or replace "rubber-band" geometry. In general, geometry that "rubberbands" (i.e. changes
size or shape with each time step) takes longer to display than similar geometry that does not. Spring-
dampers, force vectors, and outlines that go between parts are examples of "rubber-banding"
geometry.
Turn off the view name and triad with the command "VIEW MANAGEMENT
MODIFYNAME_VISIBILITY=OFF TRIAD_VISIBILITY=OFF".
graphic_results 15
graphic_results single_frame_display
graphic_results single_frame_display
Allows you to display the model geometry based on Adams simulation results, one frame at a time. These
frames correspond to "simulation output time steps".
Format:
graphic_results single_frame_display
analysis_name = an existing analysis
view_name = an existing view
rame_number = f integer
time = time
configuration = display_frame
base_marker = an existing marker
camera_ref_marker = an existing marker
colors = an existing color
offset = location
contour_plots = on
Example:
graphic_results single_frame_display &
analysis_name = last_run &
frame_number = 10 &
base_marker = mar_3 &
camera_ref_marker = psmar &
colors = pink &
offset = 10 , 10 , 10 &
contour_plots = on
Description:
Extended Definition:
1. Options are provided to control the single-frame-at-a-time display mode. The options effect what
model configuration is to be displayed. They include, specifying the Adams output
FRAME_NUMBER, TIME, or CONFIGURATION (CONFIGURATION options include:
model_input, initial_conditions, equilibrium, forward, and backward). This command also allows
the user to view the results of multiple models simultaneously. Each simulation result is read and
associated to an analysis name.
This ANALYSIS_NAME can be viewed in any number of views at one time.
2. When Adams View reads a graphics file (.GRA), a request file (.REQ), or a results file (.RES) an
analysis name is created. By default, the name of the analysis is the file name excluding the extension.
Adams View requires that Adams simulations have unique names and the default name of an analysis
may be overridden when reading the file(s) using the file_name parameter. When referring to an
analysis name that already exists, quotes are not necessary. When processing any command that
requires an analysis name, the system will default to the default analysis name. The default analysis
name is set to the last analysis file read in (.GRA, .REQ, .RES, or all three). To change the default
analysis name without reading in an analysis file use, the "defaults analysis" command.
3. Each view created has a name associated with it. The view_name parameter is used to identify a view
for a particular operation. In most cases, view_name=all is also a valid entry. The all option indicates
"all displayed views". There are eight standard views available when the Adams View is started. These
views are: front, top, right, iso, bottom, left, and back. The first four of these standard views are
displayed by default when Adams View is started. The user may create new views using the 'VIEW
MANAGEMENT CREATE' command, and save/restore their attributes.
graphic_results 17
graphic_results single_frame_display
4. If entered, the frame_number must be a positive integer corresponding to the desired frame (output
time step) and the default value is initially 1. If a new value is entered, this value will be remembered
and be the default next time the command is used. If a value greater than the last frame number is
entered, the system will display the last frame. This parameter is optional and mutually exclusive with
the CONFIGURATION and TIME parameters. If none of the three are entered, the first frame will
be displayed.
Note: Even if only one view_name is provided, the frame number will be applied to the
specified view and any other views that contain the same model (the model indicated by
analysis_name parameter). If only analysis_name is provided (view_name parameter is
omitted), any views that contain the model indicated by analysis_name will be affected.
5. The frame with the closest time value to the time specified in the TIME parameter will be selected.
Adams View will display the last frame if the time entered is greater than the time for the last frame
in the simulation. This parameter is optional and mutually exclusive with the CONFIGURATION
and FRAME_NUMBER parameters. If none of the three are entered, the first frame will be
displayed.
6. The legal values for the configuration parameter are:
• MODEL_INPUT, the configuration as input to Adams before analysis
• INITIAL_CONDITIONS, the configuration after initial conditions are met
• EQUILIBRIUM, the configuration after an equilibrium analysis
• FORWARD, one frame forward from the current one displayed
• BACKWARD, one frame backward from the current one displayed.
Therefore, this parameter is not used to specify a particular time or frame_number. In fact, this
parameter is mutually exclusive with the FRAME_NUMBER and TIME parameters. These two
parameters are used to specify the time dependent frames of the simulation output. The
CONFIGURATION parameter is optional and if not entered, the system will display the first time
dependent frame in the graphics file (assuming its mutually exclusive counterparts are not entered
either).
7. The base_marker parameter is used to specify a marker whose position will be frozen in the view as
the model animates. This is particularly useful when a relatively small object undergoes both small
configuration changes as well as large overall gross motion. For example, the flight path of a jet is very
large over time relative to the motion of the control surfaces on the jet. In this case selecting the
BASE_MARKER to be on the jet would be appropriate. This parameter can be used with the
CAMERA_REF_MARKER to create a different effect on the viewing direction. When the
CAMERA_REF_MARKER and the BASE_MARKER are specified together, the viewing direction
is "from" the CAMERA_REF_MARKER position "to" the BASE_MARKER position. In addition
the "up" direction of the view is computed based on the direction of the CAMERA_REF_MARKER
18 Adams View Commands
graphic_results single_frame_display
"y" axis (i.e. the y axis is projected into a direction perpendicular to the viewing direction defined by
the two markers). This viewing direction is recomputed between each frame of the animation. This
feature allows the effect of watching an object come from a distance, pass by, and proceed into the
distance.
8. You may identify a marker by typing its name or by picking it from the screen.If the marker is not
visible on the screen, you must type the name. You may also find it convenient to type the name even
if the marker is displayed. If you created the marker by reading an Adams data set or graphics file, the
marker name is the letters MAR followed by the Adams data set marker ID number. For example, the
name of Adams MARKER/101 is MAR101. If you created the marker during preprocessing, you will
have given it a name at that time. If a marker is available by default, you may identify it by entering
only its name. If it is not, you must enter its full name. To identify a marker under a different part,
for instance, you may need to enter the model and part names, as well. For example, you may specify
marker 'pivot' from model 'links', part 'lower_arm' by entering ".links.lower_arm.pivot. You must
separate multiple marker names by commas. If the marker is visible in one of your views, you may
identify it by picking on it. You need not separate multiple marker picks by commas.
9. The camera_ref_marker parameter connects the viewing camera to the "z" axis of a marker. The
animation is then viewed from the moving location of that marker in the "z" direction. This is
particularly useful when a "driver’s eye" or "pilot’s eye" viewing perspective is desired. This parameter
can be used with the BASE_MARKER to create a different effect on the viewing direction. When the
CAMERA_REF_MARKER and the BASE_MARKER are specified together, the viewing direction
is "from" the CAMERA_REF_MARKER position "to" the BASE_MARKER position. In addition
the "up" direction of the view is computed based on the direction of the CAMERA_REF_MARKER
"y" axis (that is, the y axis is projected into a direction perpendicular to the viewing direction defined
by the two markers). This viewing direction is recomputed between each frame of the animation. This
feature allows the effect of watching an object come from a distance, pass by, and proceed into the
distance.
Cautions:
Even if only one view_name is provided, the frame number will be applied to the specified view and
any other views that contain the same model (the model indicated by analysis_name parameter). If
only analysis_name is provided (view_name parameter is omitted), any views that contain the model
indicated by analysis_name will be affected.
Tips:
1. f the VIEW_NAME parameter is used, the desired view can be identified by picking in the window
or entering the name from the keyboard. Typing the name is the only way to identify a stored view
that is not displayed.
2. ". If you type a "?", Adams View will list the markers available by default.
group 1
group attributes
group
group attributes
Allows the specification of attributes to be set on a group
Format:
group attributes
group_name = an existing group
scale_of_icons = real
size_of_icons = real
visibility = on_off_with_toggle
name_visibility = on_off_with_toggle
color = an existing color
line_thickness = real
line_type = line_style
entity_scope = color_scope
active = on_off_no_opinion
dependents_active = on_off_no_opinion
member_dependents_active = on_off_no_opinion
Example:
group attributes &
group_name = group_1 &
scale_of_icons = 0.90 &
visibility = on &
name_visibility = on &
color = blue &
line_thickness = 0.19 &
line_type = dash &
entity_scope = fill_color &
active = on d &
dependents_active = on
member_dependents_active = on_off_no_opinion
2 Adams View Commands
group attributes
Description:
Extended Definition:
1. If a group has attributes associated with it, any object in the group will inherit the group's attribute.
If an object is in more than one group, the object will inherit the attribute of the last group it was
added to.
2. You may identify a group by typing its name.
group 3
group attributes
If a group is available by default, you may identify it by entering only its name. If it is not, you must
enter its full name. If you type a "?", Adams View will list the group available by default.
You must separate multiple group names by commas.
3. If no initial size is specified for Adams View icons, the default size will be one modeling LENGTH
unit. For example, if the modeling units are K/M/S, a part axes icon will have triad legs of one meter
in length.
When you specify SCALE_OF_ICONS, a new size is calculated by multiplying the current size by
the scale, and storing the product as the new ICON_SIZE.
4. If no initial size is specified for Adams View icons, the default size will be one modeling LENGTH
unit. For example, if the modeling units are K/M/S, a part axes icon will have triad legs of one meter
in length.
When you set SIZE_OF_ICONS at the model level, all Adams View icons used in creating a model
will use the size specified.
If the model has an SIZE_OF_ICONS set, and a part under that model has a different
SIZE_OF_ICONS, the model's ICONS_SIZE will take precedence.
For Example:
.model ---------------------- SIZE_OF_ICONS =.15 meters
.part -------------------- SIZE_OF_ICONS = .125 meters
The part's icon will be 1.5 meters is size.
If the model has SIZE_OF_ICONS of set to 0.0 , and a part under that model has a
SIZE_OF_ICONS set to .125, the part's icon size will be used.
For Example:
.model ---------------------- SIZE_OF_ICONS = 0.0 meters
.part -------------------- SIZE_OF_ICONS = .125 meters
The part's icon will be .125 meters is size.
5. Specifies the visibility of graphic entities. The visibility parameter is used to control whether graphic
entities, such as markers, joints, and parts, are to be drawn in an Adams View viewport.
The legal values for this parameter are: ON, OFF, and TOGGLE. ON will make the desired entity
visible. OFF will make the desired entity invisible. TOGGLE will take the current state of an entities
visibility and reverse it.
6. The legal values of the name_visibility parameter are ON and OFF. This is an optional parameter
and if not entered the name will be visible (i.e. will be ON).
Note that if the visibility of the view name is turned off the only indication that a view is "active" will
be the color of the viewport border. This would be a problem on a black and white monitor.
7. Adams View allows you to specify the following colors for modeling entities: BLACK, WHITE,
RED, GREEN, BLUE, CYAN, MAGENTA, YELLOW, and NO_COLOR
Specifying 'NO_COLOR' for a modeling entity, instructs Adams View to use the default color for
this entity, if there is no color present in its parent modeling entity.
Example 1:
4 Adams View Commands
group attributes
.model -------------------------NO_COLOR
.part ---------------------- RED
.geometry(circle) ------- NO_COLOR
The circle will be RED.
Example 2:
.model -------------------------NO_COLOR
.part ---------------------- RED
.geometry(circle) ------- BLUE
If a parent modeling entity has a color previously specified, that color takes precedence. Adams View
will issue a warning message about color precedence. The circle will be RED.
Example 3:
.model -------------------------NO_COLOR
.part ---------------------- NO_COLOR
.geometry(circle) ------- BLUE
The circle will be BLUE.
8. The line type describes how the line will look when displayed on a plot. Adams View supports solid,
dash, dotdash, and dot.
Line Type Appearance
-------------------------------------
solid _______________
dash _ _ _ _ _ _ _ _
dotdash . _ . _ . _ . _
dot . . . . . . . .
9. The legal values for the entity_scope parameter are FILL_COLOR,
EDGE_COLOR,OUTLINE_COLOR, and ALL. FILL_COLOR is the color of those areas of a
graphic that can be shaded (they include sides of a cylinders, frustums, boxes, etc.) The
EDGE_COLOR is the color of the lines making up the edges of the facets (or areas filled by the
FILL_COLOR) of a graphic that can be shaded.
The OUTLINE_COLOR represents the color of the lines that make up those graphics that cannot
be shaded or filled, like an outline graphic statement consisting of two points or the coil of a
springdamper.
Finally, the ALL value indicates that all three entity types, FILL_COLOR, EDGE_COLOR, and
OUTLINE_COLOR will be affected by the color change.
The ENTITY_SCOPE parameter is optional and if not entered, will be set to FILL_COLOR.
10. When you set the ACTIVE attribute on an object, you are also setting it on the children of the object.
If you set ACTIVE=NO on a part, but wish for a marker on that part to be on, then you must
explicitly set ACTIVE=YES on the marker, after setting activation on the part.
The DEPENDENTS_ACTIVE parameter acts in the same fashion, but sets the ACTIVE attribute
for the dependents, all the way down the dependency chain. For example, if you execute the
following command:
PART ATTRIBUTES PART=PAR1 DEPENDENTS_ACTIVE=NO
group 5
group copy
Where PAR1 has a marker MAR1 which is the I marker of a joint JOI1 (which has a J marker MAR2),
then JOI1 will be deactivated.
Also, if the joint JOI1 is referenced in a request function, or if the I marker is referenced by a request,
then the request will be deactivated.
Propagation of activation status through groups is as if each element were to have its activation status
changed individually. Elements affected are:
Group
Part
Differential Equation
Marker
Geometry
Constraints
Forces
Data Elements
Output Control
MEMBER_DEPENDENTS_ACTIVE parameter acts in the same fashion as the DEPENDENTS_ACTIVE
parameter, but it operates on the dependencies of each object in the group
group copy
Allows you to copy an existing group to a new group.
All objects that are referenced by the first group will be referenced by the new group.
When objects in a group are copied, they are copied in the same manner as other copy operations in Adams
View. That is, a replica of the original objects are created, reference markers for the new object are created as
needed and a new name is automatically generated.
Format:
group copy
group_name = existing group
new_group_name = new name for group
Example:
group copy &
group_name = my_part_group &
new_group_name = my_part_copy
6 Adams View Commands
group create
Description:
Extended Definition:
1. You may identify a group by typing its name.
If a group is available by default, you may identify it by entering only its name. If it is not, you must
enter its full name. If you type a "?", Adams View will list the group available by default.
You must separate multiple group names by commas.
group create
Allows you to create a new Adams View group.
An Adams View group is a collection of any Adams View objects except other groups. Groups can be used
to control object's attributes, like visibility and color.
Format:
group create
group_name = new group name
comments = string
objects_in_group = existing entity
type_filter = entity
expand_groups = yes/no
expr_active = integer
Example:
group create &
group_name = pendulum_parts &
comments = "group containing all parts of a pendulum" &
objects_in_group = .model_1.part_2,.model_1.part_3 &
type_filter = part &
expand_groups = no &
expr_active = 1
group 7
group delete
Description:
Extended Definition:
1. Adams View will not allow you to have two group with the same name, so you must provide a unique
name.
You may identify a group by typing its name. If a group is available by default, you may identify it
by entering only its name. If it is not, you must enter its full name. If you type a "?", Adams View
will list the group available by default.
You must separate multiple group names by commas.
2. The “objects_in_group” parameter takes one or more of any existing Adams View objects. If a wild
card is used to specify the objects, the TYPE_FILTER parameter can be used to accept only objects
of a particular type.
3. Adams View at this time does not allow expressions when specifying option lists. To allow the activity
of a group to be set parametrically, the parameter EXPR_ACTIVE was added to the GROUP
CREATE and GROUP MODIFY commands. This parameter takes on integer value.
If the value is not set, either because the parameter was never used, or it was unset with the (none)
expression, then the standard activity rules apply.
If the EXPR_ACTIVE is set to an expression that evaluates to zero (FALSE), the objects in the group
will be in active (and will not be included by Adams Solver in any simulation). If the value is the
default or non-zero (TRUE), then the objects will be active (and will be included in simulations).
group delete
Allows the deletion of an Adams View group. When objects in a group are deleted, they are deleted in the
same manner as other delete operations in Adams View. That is, they are checked for dependent objects,
and if any dependencies are found the object can not be deleted.
8 Adams View Commands
group empty
Format:
group delete
group_name = existing group
Example:
group delete &
group_name = my_part_group
Description:
Extended Definition:
1. Any Adams View object you delete, may be "undeleted" by using the UNDO commands. If you have
deleted something you would like back, enter the command "undo backward", or pick on the fixed
menu entry 'UNDO'.
You may identify a group by typing its name.If a group is available by default, you may identify it by
entering its name only. If it is not, you must enter its full name. If you type a "?", Adams View will
list the group available by default.
You must separate multiple group names by commas.
group empty
Removes all objects from the group. Group continues to exist unlike the use of “group delete” command that
deletes the group as well.
Format:
group empty
group_name = existing group
Example:
group empty &
group_name = my_part_group
group 9
group modify
Description:
Extended Definition:
1. You may identify a group by typing its name.
If a group is available by default, you may identify it by entering only its name. If it is not, you must
enter its full name. If you type a "?", Adams View will list the group available by default.
You must separate multiple group names by commas.
group modify
Allows the modification of an existing Adams View groups.
An Adams View group is a collection of any Adams View objects except other groups. Groups can be used
to control object's attributes, like visibility and color.
Format:
group modify
group_name = existing group name
new_group_name = new group name
comments = string
objects_in_group = existing entity
type_filter = entity
expand_groups = yes/no
expr_active = integer
Example:
group modify &
group_name = pendulum_parts &
group_name = pend_parts_and_joints &
comments = "group containing all parts and joints" &
objects_in_group = model_1.part_2,.model_1.part_3,.model_1.joint_1
10 Adams View Commands
group objects add
Description:
Extended Definition:
1. Adams View will not allow you to have two group with the same full name, so you must provide a
unique name.
You may identify a group by typing its name.
If a group is available by default, you may identify it by entering its name only. If it is not, you must
enter its full name. If you type a "?", Adams View will list the group available by default.
You must separate multiple group names by commas.
2. The “objects_in_group” parameter takes one or more of any existing Adams View objects. If a
wldcaring is used to specify the objects, the TYPE_FILTER parameter can be used to accept only
objects of a particular type.
3. Adams View at this time does not allow expressions when specifying option lists. To allow the activity
of a group so to be set parametrically the parameter EXPR_ACTIVE was added to the GROUP
CREATE and GROUP MODIFY commands. This parameter takes on integer value.
If the value is not set, either because the parameter was never used, or it was unset with the (none)
expression, then the standard activity rules apply.
If the EXPR_ACTIVE is set to an expression that evaluates to zero (FALSE), the objects in the group
will be in active (and will not be included by Adams Solver in any simulation). If the value is the
default or non-zero (TRUE), then the objects will be active (and will be included in simulations).
Format:
group objects add
group_name = existing group
objects_in_group = existing entities
expand_groups = yes/no
type_filter = entity type
Example:
group objects add &
group_name = pendulum_parts &
objects_in_group = .model_1.part_2, .model_1.part_3 &
type_filter = part
Description:
Extended Definition:
1. The “objects_in_group” parameter takes one or more of any existing Adams View objects.
If a wildcard is used to specify the objects, the TYPE_FILTER parameter can be used to accept only
objects of a particular type.
2. When specifying the objects for the “type_filter” operation a wild cards can be used, which may result
in too many objects being found. For example, if all the parts for model MOD1 are desired, specifying
.MOD1.* will get not only the parts, but all children of the model, like joints, forces and so on. Using
the parameter TYPE_FILTER=part will result in only the parts being processed by this command.
Format:
group objects attributes
group_name = an existing group
scale_of_icons = real
size_of_icons = real
visibility = on_off_with_toggle
name_visibility = on_off_with_toggle
color = an existing color
line_thickness = real
line_type = line_style
entity_scope = color_scope
active = on_off_no_opinion
dependents_active = on_off_no_opinion
type_filter = ent
Example:
group objects attributes &
group_name = group_1 &
scale_of_icons = 0.90 &
visibility = on &
name_visibility = on &
color = blue &
line_thickness = 0.19 &
line_type = dash &
entity_scope = fill_color &
active = on d &
dependents_active = on &
type_filter = color
group 13
group objects attributes
Description:
Extended Definition:
1. You may identify a group by typing its name.
If a group is available by default, you may identify it by entering only its name. If it is not, you must
enter its full name. If you type a "?", Adams View will list the group available by default.
You must separate multiple group names by commas.
2. If no initial size is specified for Adams View icons, the default size will be one modeling LENGTH
unit. For example, if the modeling units are K/M/S, a part axes icon will have triad legs of one meter
in length.
14 Adams View Commands
group objects attributes
When you specify SCALE_OF_ICONS, a new size is calculated by multiplying the current size, by
the scale, and storing the product as the new ICON_SIZE.
3. If no initial size is specified for Adams View icons, the default size will be one modeling LENGTH
unit. For example, if the modeling units are K/M/S, a part axes icon will have triad legs of one meter
in length.
When you set SIZE_OF_ICONS at the model level, all Adams View icons used in creating a model
will use the size specified.
If the model has an SIZE_OF_ICONS set, and a part under that model has a different
SIZE_OF_ICONS, the model's ICONS_SIZE will take precedence.
For Example:
.model ---------------------- SIZE_OF_ICONS =15 meters
.part-------------------- SIZE_OF_ICONS =.125 meters
The part's icon will be 1.5 meters is size.
If the model has SIZE_OF_ICONS of set to 0.0 , and a part under that model has a
SIZE_OF_ICONS set to .125, the part's icon size will be used.
For Example:
.model ---------------------- SIZE_OF_ICONS = 0.0 meters
.part -------------------- SIZE_OF_ICONS = .125 meters
The part's icon will be .125 meters is size.
4. Specifies the visibility of graphic entities. The visibility parameter is used to control whether graphic
entities, such as markers, joints, and parts, are to be drawn in an Adams View viewport.The legal
values for this parameter are: ON, OFF, and TOGGLE. ON will make the desired entity visible.
OFF will make the desired entity invisible. TOGGLE will take the current state of an entity’s
visibility and reverse it.
5. The legal values of the name_visibility parameter are ON and OFF. This is an optional parameter
and if not entered, the name will be visible (i.e. will be ON).
Note that if the visibility of the view name is turned off, the only indication that a view is "active" will
be the color of the viewport border. This would be a problem on a black and white monitor.
6. Adams View allows you to specify the following colors for modeling entities: BLACK, WHITE,
RED, GREEN, BLUE, CYAN, MAGENTA, YELLOW, and NO_COLOR
Specifying 'NO_COLOR' for a modeling entity, instructs Adams View to use the default color for
this entity, if there is no color present in its parent modeling entity.
Example 1:
.model -------------------------NO_COLOR
.part---------------------- RED
.geometry(circle) ------- NO_COLOR
The circle will be RED.
Example 2:
.model -------------------------NO_COLOR
.part---------------------- RED
group 15
group objects attributes
• Part
• Differential Equation
• Marker
• Geometry
• Constraints
• Forces
• Data Elements
• Output Control
10. When specifying the objects for this operation a wild cards can be used, which may result in too many
objects being found. For example, if all the parts for model MOD1 are desired, specifying .MOD1.*
will get not only the parts, but all children of the model, like joints, forces, etc. Using the parameter
TYPE_FILTER=part will result in only the parts being processed by this command.
Format:
group objects copy
group_name = an existing group
new_group_name = a new or existing group
type_filter = ent
search_for_string = string
replace_string = string
Example:
group objects copy &
group_name = group_1 &
new_group_name = group_2 &
type_filter = color &
search_for_string = "ab" &
replace_string = "ba"
group 17
group objects delete
Description:
Extended Definition:
1. When objects in a group are copied, they are copied in the same manner as other copy operations in
Adams View. That is, a replica of the original objects are created, reference markers for the new object
are created as needed and a new name is automatically generated.
The newly created objects can be placed into a new or an existing group as they are being copied with
the NEW_GROUP_NAME parameter.
2. You may identify a group by typing its name. If a group is available by default, you may identify it by
entering its name only. If it is not, you must enter its full name. If you type a "?", Adams View will
list the group available by default.
You must separate multiple group names by commas.
3. If a new group is specified, the group is created.
You may identify a group by typing its name. If a group is available by default, you may identify it by
entering its name only. If it is not, you must enter its full name. If you type a "?", Adams View will
list the group available by default.
You must separate multiple group names by commas.
4. When specifying the objects for this operation a wild cards can be used, which may result in too many
objects being found. For example, if all the parts for model MOD1 are desired, specifying .MOD1.*
will get not only the parts, but all children of the model, like joints, forces, etc. Using the parameter
TYPE_FILTER=part will result in only the parts being processed by this command.
Format:
group objects delete
group_name = an existing group
remove_unused_references = boolean
expand_groups = boolean
type_filter = ent
Example:
group objects delete &
group_name = group_1 &
new_group_name = group_2 &
type_filter = color &
search_for_string = "ab" &
replace_string = "ba"
Description:
Extended Definition:
1. When objects in a group are deleted, they are deleted in the same manner as other delete operations
in Adams View. That is, they are checked for dependent objects, and if any dependencies are found
they are deleted.
2. You may identify a group by typing its name.
If a group is available by default, you may identify it by entering its name only. If it is not, you must
enter its full name. If you type a "?", Adams View will list the group available by default.
You must separate multiple group names by commas.
3. When specifying the objects for this operation a wild cards can be used, which may result in too many
objects being found. For example, if all the parts for model MOD1 are desired, specifying .MOD1.*
will get not only the parts, but all children of the model, like joints, forces and so on. Using the
parameter TYPE_FILTER=part will result in only the parts being processed by this command.
group 19
group objects remove
4. As an example for the remove_unused_references parameter, if a circle is being deleted, and its center
marker is not being used by anything other than the circle, then it is an unused reference.
Format:
group objects remove
group_name = existing group
objects_in_group = existing entities
type_filter = entity type
Example:
group objects remove &
group_name = pendulum_parts &
objects_in_group = .model_1.part_3 &
type_filter = part
Description:
Extended Definition:
1. The “objects_in_group” parameter takes one or more of any existing Adams View objects.
If a wildcard is used to specify the objects, the TYPE_FILTER parameter can be used to accept only
objects of a particular type.
2. When specifying the objects for the “type_filter” operation a wild cards can be used, which may result
in too many objects being found. For example, if all the parts for model MOD1 are desired,
specifying .MOD1.* will get not only the parts, but all children of the model, like joints, forces and
so on. Using the parameter TYPE_FILTER=part will result in only the parts being processed by this
command.
20 Adams View Commands
group objects rename
Format:
group objects rename
group_name = an existing group
prefix_string = string
suffix_string = string
type_filter = ent
Example:
group objects rename &
group_name = group_1 &
prefix_string = gr_ &
type_filter = color
Description:
Extended Definition:
1. You may identify a group by typing its name.
If a group is available by default, you may identify it by entering its name only. If it is not, you must
enter its full name. If you type a "?", Adams View will list the group available by default.
You must separate multiple group names by commas.
2. When specifying the objects for this operation a wild cards can be used, which may result in too many
objects being found. For example, if all the parts for model MOD1 are desired, specifying .MOD1.*
will get not only the parts, but all children of the model, like joints, forces, etc. Using the parameter
TYPE_FILTER=part will result in only the parts being processed by this command.
hardcopy 1
hardcopy
Allows you to send screen output to hard copy file. The user may specify the view_name to be sent to the
desired hard copy file name. The FILE_NAME parameter provides a means to specify the name of the hard
copy file the screen image(s) selected by the user will be written to. The FILE_NAME is an optional
parameter, and if not entered, a default name will be constructed. If entered, the file name must be enclosed
in quotes.
The ORIENTATION parameter is used to specify how to orient the image sent to a hard copy file. There
are two legal values for this parameter: LANDSCAPE and PORTRAIT.
The LANGUAGE parameter is used to specify that plotting language is to be used for the image sent to a
hardcopy file. The legal values for this parameter are: BMP, XPM, JPG, TIFF and PNG.
Note: This command will only function in Adams View sessions launched in interactive mode. It will
not function in batch mode Adams View. See “Running Adams Products – On Windows” and
“On Linux” for more detail about the difference between interactive and batch modes.
Format:
hardcopy
window_name = existing gi_window
view_name = existing view
page_name = existing page
file_name = string
orientation = landscape, portrait
paper_type = default, eight_by_eleven, a0, a1, a2, a3, a4, b5, b, c, d, e, f
send_to_printer = boolean
language = BMP, XPM, JPG, TIFF and PNG
image_width_height = real,real
force_black_and_white = on/off
setup_only = boolean
include_toolbars = boolean
Example:
hardcopy &
view_name = view_1 &
file_name = “c:\my_files\my_view” &
orientation = portrait &
2 Adams View Commands
hardcopy &
paper_type = default &
image_width_height = 0.5,0.25
Description:
Extended Definition:
1. Each view created has a name associated with it. The view_name parameter is used to identify a view
for a particular operation. In most cases, view_name=all is also a valid entry. The all option indicates
"all displayed views". There are eight standard views available when the Adams View is started. These
views are: front, top, right, iso, bottom, left, and back. The first four of these standard views are
displayed by default when Adams View is started. The user may create new views using the 'VIEW
MANAGEMENT CREATE' command, and save/restore their attributes.
hardcopy 3
If the VIEW_NAME parameter is used, the desired view can be identified by picking in the window
or entering the name from the keyboard. Typing the name is the only way to identify a stored view
that is not displayed.
2. The FILE_NAME is an optional parameter and if not entered, a default name will be constructed.
The file name constructed will be of the form fig_000x.bmp (where x is 1 - 9) if the BMP language
is chosen or fig_000x.jpg if the JPG language is chosen. The integer value x will be automatically
incremented each time a new default hard copy name is requested. The value x will expand and take
the place of the zeros in every order of magnitude increase. Therefore, the tenth file would be named
fig_0010.bmp, the 100th file would be named fig_0100.bmp and so on. In this manner, 9999 default
hardcopy files can be created, named: fig_0001.bmp up to fig_9999.bmp (or other format’s file
extensions).
If entered, the file name must be enclosed in quotes.
3. There are two legal values for the orientation parameter: LANDSCAPE and PORTRAIT. The
LANDSCAPE value will cause the image to be oriented such that the top of the image (as seen on the
terminal screen) will be along the "long" edge of the paper. The PORTRAIT value will cause the
image to be oriented such that the top of the image (as seen on the terminal screen) will be along the
"short" edge of the paper.
The ORIENTATION parameter is optional and if not entered, will be set to LANDSCAPE.
4. The legal values for the language parameter are: BMP, XPM, JPG, TIFF and PNG. The resulting file
should be printable on any device supporting those languages.
The LANGUAGE parameter is optional, and if not entered, will be set to BMP.
5. The largest possible dimensions for hardcopy output are 1 x 1 ( IMAGE_WIDTH_HEIGHT= 1,1).
These hardcopy dimensions specify a "window" for the image to be fit into. If 1x1 is the maximum,
then .5 x .5 will result in an image half as big. Dimensions that are not symmetrical will result in the
image being "stretched" or "compressed" to fit the dimensions.
All hard copy output, regardless of its dimensions, is centered on the page.
6. Normally, when a hard copy operation is performed, only the views and their associated graphics are
set to the hard copy file. This command allows the control panel graphics to be printed in addition
to the view graphics. This way the user gets a hardcopy file which looks exactly the way he sees it on
the screen.
7. If the “force_black_and_white” parameter is set to "ON", all of the text and geometry in the hard
copy will be black and white. All text, polylines and edges will be black. Polygon faces will be white
if the polygon edges are visible, otherwise, they will be black. If this is set to OFF, the colors that you
have specified for geometry and text will be present in the hard copy file. Black and white hard copy
devices may use shades of gray to represent various colors. If the shades of gray are undesirable, you
may set the FORCE_BLACK_AND_WHITE parameter to ON to ensure that the output will
consist of solely black and white colors.
4 Adams View Commands
Cautions:
Care should be taken when attempting to get a hard copy. The choice of draw modes in the view
(wireframe, solid, shaded, set in the view manage modify command or from the control panel) will
have impact on the image sent to the hard copy file. If solid or shaded mode is "On" in the desired
view, some graphics may "seem" to disappear. This happens if the image of an entity is such that the
edges of the shaded entity obscured the shaded or filled area. To avoid this, use wireframe draw
mode or ensure "facet" interiors are visible before the hardcopy is attempted. The choice of
background colors can have a similar effect.
help 1
help
Allows you to do the following.
Request Command Navigator help on any command, keyword or a topic.
Turn context sensitive help on or off.
Turn the status bar messages on or off.
Format:
help
command_or_topic = string
context_sensitive = true
tips = on_off_toggle
Example:
help &
help command_or_topic = analysis
Description:
:
Extended Definition:
The “Command_or_topic” parameter cannot be used in conjuction with the parameters, context_sensitive
or tips.
2 Adams View Commands
highlight 1
highlight
The HIGHLIGHT command changes the appearance of an object, so that you can see its position in the
model. Optionally, you can also see the other entities it depends upon or which depend on it.
You can change the color or the line style of the object to highlight it. Adams View will change the appearance
of the objects being high- lighted, then wait for you to enter input from the mouse or keyboard before
continuing, or wait for a given time period, if specified.
You can specify which entities, related to the selected object, are to be highlighted. This must be one of SELF,
DEPENDENTS, REFERENTS, PARTS, or ALL.
SELF indicates that only the selected object is to be highlighted.
DEPENDENTS indicates that the entities that are dependent on the selected object are to be highlighted. If
a marker is selected, this would show any constraints, forces, geometry, or parts (if the marker is the center of
mass or inertia marker) that depend on it. If a joint is selected, this would show any motions or couplers that
depend on it.
REFERENTS indicates that the entities on which the selected object is dependent, are to be highlighted. For
constraints, forces, and geometry, this will show any markers that they depend on. For motions and couplers,
this will show the joints they depend on.
PARTS indicates that any part on which the selected object are dependent, usually indirectly through one of
the part's markers, are to be highlighted. For constraints and forces, this will show the parts that the object
affects directly. For dynamic (part-connecting) graphics, this will show the parts that will affect their
appearance.
ALL indicates that the selected object plus entities, that would be highlighted by the DEPENDENTS,
REFERENTS, and PARTS arguments, are to be highlighted.
Format:
highlight
marker_name = existing marker name
geometry_name = existing geometry name
part_name = existing part name
constraint_name = existing constraint name
force_name = existing force name
color = existing color
line_type = solid, dash, dotdash, dot, none
time_delay = real
entity = self, dependents, referents, parts, all
2 Adams View Commands
Example:
highlight &
marker_name = marker_28 &
color = green &
line_type = dotdash &
time_delay = 5 &
entity = self
This command will highlight only the MARKER_28. It will display it in green color in the dotdash format.
This will be highlighted for 5 seconds
This command will highlight the MARKER_28, as well as all the entities that are dependant it, and all parts
on which it is dependant. It will display it in green color in the dotdash format. This will be highlighted for
5 seconds.
Description:
Extended Definition:
1. You may identify a marker by typing its name or by picking it from the screen.
If the marker is not visible on the screen, you must type the name. You may also find it convenient
to type the name even if the marker is displayed.
If you created the marker by reading an Adams data set or graphics file, the marker name is the letters
MAR followed by the Adams data set marker ID number. For example, the name of Adams
MARKER/101 is MAR101. If you created the marker during preprocessing, you will have given it a
name at that time.
If a marker is available by default, you may identify it by entering only its name. If it is not, you must
enter its full name. To identify a marker under a different part, for instance, you may need to enter
the model and part names, as well. For example, you may specify marker 'pivot' from model 'links',
part 'lower_arm' by entering ".links.lower_arm.pivot". If you type a "?", Adams View will list the
markers available by default.
You must separate multiple marker names by commas.
If the marker is visible in one of your views, you may identify it by picking on it.
You need not separate multiple marker picks by commas.
2. You may identify geometry by typing its name or by picking it from the screen.
If the geometry is not visible on the screen, you must type the name. You may also find it convenient
to type the name even if the geometry is displayed.
If geometry is available by default, you may identify it by entering only its name. If it is not, you must
enter its full name. To identify geometry under another model, for instance, you may need to enter
the model and part names, as well. For example, you may specify arc 'end' on part 'arm' in model
'susp' by entering ".susp.arm.end". If you type a "?", Adams View will list the geometrys available by
default.
You must separate multiple geometry names by commas.
If the geometry is visible in one of your views, you may identify it by picking on any of the graphics
associated with it.
4 Adams View Commands
If a force is available by default, you may identify it by entering only its name. If it is not, you must
enter its full name. To identify a force under a preprocessing model, for instance, you may need to
enter the model name as well. For example, you may specify the force named 'bumper' from the
model named 'test' by entering ".test.bumper". If you type a "?", Adams View will list the forces
available by default.
You must separate multiple force names by commas.
If the force is visible in one of your views, you may identify it by picking on any of the graphics
associated with it.
You need not separate multiple force picks by commas.
6. The object is defined by what you have selected to highlight and the associated objects that are
specified in the ENTITY parameter. Therefore, when the COLOR of an object is specified, all
objects specified in the entity parameter associated to that object are drawn with the specified
COLOR. Adams View supports the following COLOR: black, white, red, green, blue, cyan,
magenta, and yellow.
NOTE: If you choose the COLOR of an entity to be drawn in the view background color (typically
white or black ), it may not show up. See help for hardcopy.
7. The LINE_TYPE describes how the lines drawn for the wireframe representation of the highlighted
objects will look during highlighting. Adams View supports solid, dash, dotdash, and dot. Note that
objects highlighted with non-solid line types may look more indistinct as you zoom away from them.
Line Type Appearance
---------------------------------------
solid -----------
dash - - - - - -
dotdash . _ . _ . _
dot . . . . . .
8. The “entity” parameter must be one of SELF, DEPENDENTS, REFERENTS, PARTS, or ALL.
SELF indicates that only the selected object is to be highlighted.
DEPENDENTS indicates that the entities that are dependent on the selected object are to be
highlighted. If a marker is selected, this would show any constraints, forces, geometry, or parts (if the
marker is the center of mass or inertia marker) that depend on it. If a joint is selected, this would show
any motions or couplers that depend on it.
REFERENTS indicates that the entities, on which the selected object is dependent, are to be
highlighted. For constraints, forces, and geometry, this will show any markers that they depend on.
For motions and couplers, this will show the joints they depend on.
PARTS indicates that any parts on which the selected object is dependent, usually indirectly through
one of the part's markers, are to be highlighted. For constraints and forces, this will show the parts
that the object affects directly. For dynamic (part-connecting) graphics, this will show the parts that
will affect their appearance.
ALL indicates that the selected object plus entities, that would be highlighted by the
DEPENDENTS, REFERENTS, and PARTS arguments, are to be highlighted.
6 Adams View Commands
hotspots 1
hotspots display
hotspots
hotspots display
Allows you to display hotspots. Hot spots are locations of high stress or strain on a flexible body or rigid stress
object. You can easily locate and view hot-spot information during animation displays in the Adams
PostProcessor. When the Adams Durability plugin is loaded, a Hot Spots tab is available on the Adams
PostProcessor dashboard for Animation displays. This tab allows you to define the hot spots and control their
display.
Hot-spot information is derived from the data that is generated and cached for a flexible body (or rigid stress
object) during contour animations. This allows the display and control of hot-spot information to be
completely interactive.
Hot spot visualization is currently supported for durability-type contours, such as stress, strain, or fatigue.
Deformations are not supported.
Format:
hotspots display
animation_name = existing animation
visibility = on/off
Example:
hotspots display &
animation_name = animation_1 &
visibility = on
Description:
hotspots filter
Allows you to filter the hotspots for display.
2 Adams View Commands
hotspots filter
Format:
hotspots filter
animation_name = Existing animation
type = count, threshold, percentage
value = real
sort = minimum, maximum, absolute
radius = real
Example:
hotspots filter &
animation_name = animation_1 &
type = threshold value = 29 &
sort = maximum&
radius = 0.8
Description:
Extended Definition:
1. Hot spots are locations of high stress or strain on a flexible body or rigid stress object. You can easily
locate and view hot-spot information during animation displays in the Adams PostProcessor. When
the Adams Durability plugin is loaded, a Hot Spots tab is available on the Adams PostProcessor
dashboard for Animation displays. This tab allows you to define the hot spots and control their
display.
Hot-spot information is derived from the data that is generated and cached for a flexible body (or
rigid stress object) during contour animations. This allows the display and control of hot-spot
information to be completely interactive.
Hot spot visualization is currently supported for durability-type contours, such as stress, strain, or
fatigue. Deformations are not supported.
hotspots 3
hotspots label
hotspots label
Allows you to specify the settings for the label of the hotspot.
Format:
hotspots label
Animation_name = existing animation
Ranking = Boolean
Value = Boolean
Frame = Boolean
Node_id = boolean
Example:
hotspots label &
animation_name = animation_1 &
ranking = on &
value = on &
frame = on &
node_id = on
4 Adams View Commands
hotspots label
Description:
Tips:
1. If you do not select any of these options, Adams PostProcessor only displays a cross hair at each hot-
spot location.
2. The color of the hot-spot graphics is the same as the flexible body color.
3. Hot-spot graphics can be hidden by other graphics. For better viewing of hot spot graphics, try
rotating the display, making the flexible body transparent, or displaying only one body at a time using
the Component display feature in the Animation tab.
if 1
if
Allows you to use the IF, ELSE, ELSEIF, and END commands to execute a group of commands conditionally.
The execution of commands bracketed by IF and END depends on the value of an expression.
You can use the IF command with or without the ELSE command.
Format:
if
if condition = (expression)
end
if condition = (expression)
else
end
Example:
if condition=(db_exists ("mar1"))
marker modify marker= mar1 location=2,0,0
else
marker create marker=mar1 location=2,0,0
end
In the above example, if the marker MAR1 exists, Adams View modifies its location. If the marker does not
exist, Adams View creates it and sets its location.
Description:
Extended Definition:
1. The question-mark/colon (?:) operator, used in a conditional expression, replaces an IF/ELSE
command that distinguishes one of two values. The expression consists of three parts: a condition
whose truth determines which value is selected, and two expressions for the values.
condition expression ? expression a : expression b
2 Adams View Commands
When evaluated, the conditional operator takes on one of the two values. The expression that comes
before the question-mark is interpreted as boolean-valued. If it is true (non-zero), then expression a
is used as the value of the conditional operator, otherwise expression b is used as the value.
For example, consider the commands below:
if condition = (variable_a < variable_b)
variable set variable = variable_min real = (EVAL(variable_a))
else
variable set variable = variable_min real = (EVAL(variable_b))
end
This can be expressed more concisely by using a ?: conditional operator:
variable set variable = variable_min &
real = (EVAL((variable_a < variable_b)? variable_a :
variable_b))
Tips:
1. You can have any number of ELSEIF CONDITION commands.
info_window 1
info_window close
info_window
info_window close
Allows you to close an info_window.
Adams view uses the Information window to display many different types of information about your model,
simulation, or motion data. In addition to just viewing information about your model, you can perform a
variety of operations in the Information window.
The information includes:
Topology on the different objects in your model
Object information, such as information about a part or a view
Model verification results
Measurements from one coordinate system marker to another
Result set component information
View attributes
Results from a system command you run using the Tools -> System Command
The displayed info_window can be closed by using this command.
Extended Definition:
All the information about the model, simulation or motion data is displayed into the info_window. This
information can be saved to a file or the info_window can be emptied by ‘empty’ command. When not
needed it can be closed by using the ‘close’ command.
info_window empty
Allows you to empty the contents of an info_window.
Adams view uses the Information window to display many different types of information about your model,
simulation, or motion data. In addition to just viewing information about your model, you can perform a
variety of operations in the Information window.
The information includes:
Topology on the different objects in your model
Object information, such as information about a part or a view
Model verification results
Measurements from one coordinate system marker to another
Result set component information
View attributes
Results from a system command you run using the Tools -> System Command
2 Adams View Commands
info_window read
Extended Definition:
1. The info_window contents can be cleared by using this command. The saved information about the
model, simulation or motion data can be read into the info_window by using ‘read’ command.
info_window read
Allows you to read the contents of a remote file to an info_window.
Adams view uses the Information window to display many different types of information about your model,
simulation, or motion data. In addition to just viewing information about your model, you can perform a
variety of operations in the Information window.
The information includes:
Topology on the different objects in your model
Object information, such as information about a part or a view
Model verification results
Measurements from one coordinate system marker to another
Result set component information
View attributes
Results from a system command you run using the Tools -> System Command
The contents of a saved file can be read into the info_window by using this command.
Format:
info_window read
file_name = string
Example:
info_window read &
file_name = "C:\ aview.log"
Description:
Extended Definition:
The saved information about the model, simulation or motion data can be read into the info_window by
using this command.
4 Adams View Commands
info_window read
interface 1
interface btn_stack create
interface
interface btn_stack create
Allows you to create a new button stack.
The button stack is a stack of buttons which has multiple buttons attached to one button tab. The button
stack can be created by using this command.
Format:
interface btn_stack create
btn_stack_name = a new GI_btn_stack
enabled = boolean
help_text = string
documentation_text = string
units = int_units
horiz_resizing = int_h_resize
vert_resizing = int_v_resize
location = real
height = real
width = real
Example:
interface btn_stack create &
btn_stack_name = .gui.cntrl.btn &
location = 0.0, 0.0 &
height = 0.5 &
width = 0.5 &
enabled = yes &
help_text = "help2text" &
documentation_text = "doc2text” &
units = relative &
horiz_resizing = attach_left &
vert_resizing = attach_top
2 Adams View Commands
interface btn_stack delete
Description:
Extended Definition:
1. The preliminary parameters of the btn_stack like size, placement and label are set using this
command.
2. The pop-up help and documentation help can be specified in appropriate columns.
3. The size of the btn_stack can be specified either in terms of number of pixels. Alternatively, the size
can also be stated as relative to the dialog box window
4. The vertical and horizontal resizing options are used to adjust the placement of the btn_stack on
existing dialog box. For example, attach_left; attach_top options for Horiz_resizing and Vert_resizing
will place the btn_stack on the top left corner of the dialog box. The location can also be specified
from the top left corner by adjusting the parameter ‘location’
5. The size of the btn_stack can be specified with respect to the dialog box window size. The value for
parameter height and width should be a real number between 0.0 and 2.0, where 2.0 represents the
height of the dialog window. Therefore, a value of 1.0 will set the btn_stack field window to be one
half as high as the dialog box window.
Format:
interface btn_stack delete
btn_stack_name = an existing GI_btn_stack
Example:
interface btn_stack delete &
btn_stack_name = btn
Description:
Extended Definition:
The btn_stack can be deleted by using this command.
Format:
interface btn_stack display
btn_stack_name = an existing GI_btn_stack
Example:
interface btn_stack display &
btn_stack_name = btn
Description:
Extended Definition:
The closed btn_stack can be displayed using this command
Format:
interface btn_stack modify
btn_stack_name = an existing GI_btn_stack
new_btn_stack_name = a new btn_stack
enabled = boolean
help_text = string
documentation_text = string
units = int_units
horiz_resizing = int_h_resize
vert_resizing = int_v_resize
location = real
height = real
width = real
Example:
interface btn_stack modify &
btn_stack_name = .gui.cntrl.btn &
new_btn_stack_name = .gui.cntrl.btn1 &
location = 0.0, 0.0 &
height = 0.5 &
width = 0.5 &
enabled = yes &
help_text = "help2text" &
documentation_text = "doc2text” &
units = relative &
horiz_resizing = attach_left &
vert_resizing = attach_top
interface 5
interface btn_stack modify
Description:
Extended Definition:
1. The preliminary parameters of the btn_stack like size, placement, and name can be modified by using
this command.
2. The pop-up help and documentation help can be specified in appropriate columns.
3. The size of the btn_stack can be specified either in terms of number of pixels. Alternatively, the size
can also be stated as relative to the dialog box window
4. The vertical and horizontal resizing options are used to adjust the placement of the btn_stack on
existing dialog box. For example, attach_left; attach_top options for Horiz_resizing and Vert_resizing
will place the btn_stack on the top left corner of the dialog box. The location can also be specified
from the top left corner by adjusting the parameter ‘location’
5. The size of the btn_stack can be specified with respect to the dialog box window size. The value for
parameter height and width should be a real number between 0.0 and 2.0, where 2.0 represents the
height of the dialog window. Therefore, a value of 1.0 will set the btn_stack field window to be one
half as high as the dialog box window.
6 Adams View Commands
interface btn_stack undisplay
Format:
interface btn_stack undisplay
btn_stack_name = an existing GI_btn_stack
Example:
interface btn_stack undisplay &
btn_stack_name = btn
Description:
Extended Definition:
The displayed btn_stack can be closed by using this command
interface cmd_window
Allows you to display the command window.
The command window displays is used to enter the command statements. It also prompts the error messages
for the bad syntax. The window help is available for completing the commands and syntax.
In the command window, you can get help with keywords and parameter name completion. In addition, you
can get help with possible parameter values for modeling objects and files. For example, you can get a list of
possible marker names in your model or you can display the File Browser to help you find a file. The
command window displays all the keywords that beGIn with letter or letters. For example, for f it displays
file, floating_marker, and so on, when you type ‘?’ after initial letter of the command.
when you type ‘?’ after a command parameter, if the parameter value requires a modeling object, the
command window displays a list of possible objects in your current model. If the parameter value requires a
file, the File Browser appears.
interface 7
interface container create
Format:
interface cmd_window
display = on_off_with_toggle
Example:
interface cmd_window &
display = toggle
Description:
Extended Definition:
The command window can be displayed or closed as and when required by using this command.
Format:
interface container create
container_name = a new GI_container
enabled = boolean
help_text = string
documentation_text = string
units = int_units
horiz_resizing = int_h_resize
vert_resizing = int_v_resize
location = real
height = real
width = real
8 Adams View Commands
interface container create
Example:
interface container create &
container_name = .gui.dgbox.cntr &
enabled = yes &
help_text = "text2help" &
documentation_text = "txt2doc" &
units = relative &
horiz_resizing = attach_left &
vert_resizing = attach_top &
location = 0.0, 0.0 &
height = .4 &
width = .4 &
start_commands = "view center view=.gui.main.front
object=431.34, 7.4886913511, 0.0" &
finish_commands = "view center view=.gui.main.front object=-
431.34, -7.4886913511, 0.0" &
execution_commands = "view zoom view=.gui.main.front zoom=2." &
sash_type = horizontal &
position_of_sash = 0.9 &
tab_label = "contain"
Description:
Extended Definition:
1. The preliminary parameters of the container like size, associated commands and editing capability are
set using this command.
2. The pop-up help and documentation help can be specified initially.
3. The size of the container can be specified either in terms of number of pixels. Alternatively, the size
can also be stated as relative to the Adams window.
4. The vertical and horizontal resizing options are used to adjust the placement of the container menu
on existing dialog box. For example, attach_left; attach_top options for Horiz_resizing and
Vert_resizing will place the container on the top left corner of the dialog box. The location can also
be specified from the top left corner by adjusting the parameter ‘location’.
5. The size of the container window can be specified with respect to the dialog box size value for
parameter height and width should be a real number between 0.0 and 2.0, where 2.0 represents the
height of the dialog window. Therefore, a value of 1.0 will set the container field window to be one
half as high as the dialog box.
10 Adams View Commands
interface container delete
6. Each of the parameters start, finish and execution commands specifies the command associated with
the container. Each of these command will get executed for specific event. The command ‘display
container’ will execute the associated ‘start command’. The command ‘undisplay container’ will
execute associated ‘finish command’. The associated ‘execute command’ is executed explicitly by
running the ‘container execute command’.
7. You may want to expand the width, height of the container so you have more space for entering the
text. To expand the container, point to the sash on its border. When the cursor changes to a double-
sided arrow, drag the cursor to increase the container size. The value for ‘position_of_sash’ is 0.0 to
1.0.
Format:
interface container delete
container_name = an existing GI_container
Example:
interface container delete &
container_name = ctr1
Description:
Extended Definition:
1. The command is used to delete an existing container on the dialog box window.
The container is a submenu on the dialog box, which can collect other interface objects like buttons, option
menus, sliders and so on. The container can be used to segregate and ‘contain’ a set of menus and buttons on
the dialog box.
The container can be displayed by using this command.
Format:
interface container display
container_name = An Existing GI_container
Example:
interface container display &
container_name = .gui.dgbox.cntr1
Description:
Extended Definition:
The container can be displayed or closed as the need arises by using the ‘container display’ and
‘container undisplay’ command.
Format:
interface container execute
container_name = An Existing GI_container
Example:
interface container execute &
container_name= contro1
12 Adams View Commands
interface container modify
Description:
Extended Definition:
The command is used to execute an existing container on the dialog box window.
Format:
interface container modify
container_name = An Existing GI_container
new_container_name = A New GI_container
enabled = Boolean
help_text = String
documentation_text = String
units = Int_units
horiz_resizing = Int_h_resize
vert_resizing = Int_v_resize
location = Real
height = Real
width = Real
start_commands = String
finish_commnads = String
sash_type = Sash_type
position_of_sash = Real
tab_label = String
interface 13
interface container modify
Example:
interface container create &
container_name = .gui.dgbox.cntr &
enabled = yes &
help_text = "text2help" &
documentation_text = "txt2doc" &
units = relative &
horiz_resizing = attach_left &
vert_resizing = attach_top &
location = 0.0, 0.0 &
height = .4 &
width = .4 &
start_commands = "view center view=.gui.main.front
object=431.34, 7.4886913511, 0.0" &
finish_commands = "view center view=.gui.main.front object=-
431.34, -7.4886913511, 0.0" &
execution_commands = "view zoom view=.gui.main.front zoom=2." &
sash_type = horizontal &
position_of_sash = 0.9 &
tab_label = "contain"
Description:
Extended Definition:
1. The container will be replaced by new name for any value of parameter ‘new_container_name’. The
preliminary parameters of the container like size, associated commands and editing capability are set
using this command.
2. The pop-up help and documentation help can be specified initially.
3. The size of the container can be specified either in terms of number of pixels. Alternatively, the size
can also be stated as relative to the Adams window.
4. The vertical and horizontal resizing options are used to adjust the placement of the container menu
on existing dialog box. For example, attach_left; attach_top options for Horiz_resizing and
Vert_resizing will place the container on the top left corner of the dialog box. The location can also
be specified from the top left corner by adjusting the parameter ‘location’.
5. The size of the container window can be specified with respect to the dialog box size value for
parameter height and width should be a real number between 0.0 and 2.0, where 2.0 represents the
height of the dialog window. Therefore, a value of 1.0 will set the container field window to be one
half as high as the dialog box.
6. Each of the parameters start, finish and execution commands specifies the command associated with
the container. Each of these command will get executed for specific event. The command ‘display
container’ will execute the associated ‘start command’. The command ‘undisplay container’ will
execute associated ‘finish command’. The associated ‘execute command’ is executed explicitly by
running the ‘container execute command’.
interface 15
interface container undisplay
7. You may want to expand the width, height of the container so you have more space for entering the
text. To expand the container, point to the sash on its border. When the cursor changes to a double-
sided arrow, drag the cursor to increase the container size. The value for ‘position_of_sash’ is 0.0 to
1.0.
Format:
interface container undisplay
container_name = an existing GI_container
Example:
interface container undisplay &
container_name = .gui.dgbox.cntr1
Description:
Extended Definition:
1. The container can be displayed or closed as the need arises by using the ‘container display’ and
‘container undisplay’ command.
interface coord_window
Allows you to display the coordinate window.
The coordinate window displays the coordinates of the location of the cursor on the Adams View window.
This shows the instantaneous coordinates of the cursor as it moves along the Adams View window. The
window can be displayed as and when required.
16 Adams View Commands
interface data_table clear
Format:
interface coord_window
display = on_off_with_toggle
Example:
interface coord_window &
display = toggle
Description:
Extended Definition:
The coordinates of the cursor location on the Adams view window are displayed live in the coordinate
window. The window display can be controlled by ON, OFF, or TOGGLE mode.
Format:
interface data_table clear
data_table_name = an existing GI_data_table
clear_target = clear_opts
Example:
interface data_table clear &
data_table_name = .gui.param.dtable &
clear_target = changed_cell_highlights
interface 17
interface data_table create
Description:
Extended Definition:
1. The contents of a data table can be erased by clear command, when the ‘clear_target’ option is set to
‘cell_contents’
2. The contents of a cell in the data table get highlighted when the data table is edited. The highlighting
can be cleared by choosing ‘changed_cell_highlights’ for clear command. This will preserve the
contents of a cell, but the highlighting will be removed.
Tips:
The parameters ‘cell contents’ and ‘changed_cell_highlights’ are mutually exclusive.
Format:
interface data_table create
data_table_name = A New GI_data_table
enabled = Boolean
help_text = String
documentation_text = String
units = Int_units
horiz_resizing = Int_h_resize
vert_resizing = Int_v_resize
location = Real
height = Real
width = Real
cell_select_commands = String
commands = String
18 Adams View Commands
interface data_table create
Example:
interface data_table create &
data_table_name = .gui.param.dtable &
enabled = yes &
help_text = "text2help" &
documentation_text = "text4doc" &
units = pixel &
horiz_resizing = attach_left &
vert_resizing = attach_top &
location = 0.0, 0.0 &
height = 280 &
width = 360 &
commands = "interface dialog display dialog=.gui.about_Adams" &
cell_select_commands = “int dialog dis dialog=.gui.moag”&
editable = yes &
auto_add_rows = yes
Description:
Extended Definition:
1. The preliminary parameters of the data table like size, associated commands and editing capability are
set using this command. The data table is then by filled by entering the appropriate fields for row and
column. The data table with specified name is created on the dialog box If parameter ‘Enabled’ is set
to ON, the data table is be preactivated.
2. The pop-up help and documentation help can be specified in appropriate columns.
3. The size of the data table can be specified either in terms of number of pixels. Alternatively, the size
can also be stated as relative to the Adams window
4. The vertical and horizontal resizing options are used to adjust the placement of the data table menu
on existing dialog box. For example, attach_left; attach_top options for Horiz_resizing and
Vert_resizing will place the data table on the top left corner of the dialog box. The location can also
be specified from the top left corner by adjusting the parameter ‘location’
5. The size of the data table window can be specified with respect to the Adams window size. The value
for parameter height and width should be a real number between 0.0 and 2.0, where 2.0 represents
the height of the dialog window. Therefore, a value of 1.0 will set the data table field window to be
one half as high as the Adams View window.
6. ‘Cell select command’ gets executed whenever any cell is selected for editing.
7. The parameter ‘command’ specifies the name of the command to be executed.
8. The data table can be edited after initializing it if the BOOLEAN option is ‘yes’ for the parameter
‘editable’
Format:
interface data_table delete
data_table_name = an existing GI_data_table
Example:
interface data_table delete &
data_table_name = .gui.param2.dtable
Description:
Extended Definition:
The data table can be deleted by choosing the appropriate data_table_name for the command ‘interface
data_table delete’
Format:
interface data_table display
data_table_name = an existing GI_data_table
Example:
interface data_table display &
data_table_name = .gui.atv.dtable
interface 21
interface data_table execute
Description:
Extended Definition:
The data table can be displayed by choosing the appropriate data_table_name and running the ‘display’
command.
Format:
interface data_table execute
data_table_name = an existing GI_data_table
Example:
interface data_table execute &
data_table_name = .gui.param2.dtable
Description:
Extended Definition:
Any command listed in the data table gets executed when the data table is edited, alternatively, this command
can be directly executed by the ‘execute’ option.
22 Adams View Commands
interface data_table insert column
Format:
interface data_table insert column
data_table_name = an existing GI_data_table
width = integer
label = string
index = integer
value_type = text_type : string/integer/real/default
db_object_type = Ent
push_button_label = string
push_button_command = string
option_menu_choices = string
option_menu_command = string
toggle_button_label = string
toggle_button_command = string
Example:
1. Default Column
interface data_table insert column &
data_table_name = .gui.param.dtable &
width = 3 &
label = length &
index = 1
Description:
Extended Definition:
1. After creating the data table, the rows and columns can be created by using the ‘insert’ command.
2. The width of a column can be specified by the parameter 'width', similar to a spreadsheet. The width
can also be entered in mm or inches as desired.
24 Adams View Commands
interface data_table insert column
3. The column can be labelled via the parameter 'label'. Moreover, the column can be directly accessed
using its index. The index of a column identifies its location similar to a 'label'.
4. Different data (value) types can be set per column. Data types are String, Integer, Real and Default.
Cell validation is based upon this setting. To set data type for a column set value_type as
a. String: This accepts only alpha numeric character string where first character is not a number or
a special character.
b. Integer: This accepts only integer value.
c. Real: This accepts floating value and integer value.
d. Default: This accepts all types (except widgets). Cell validation will NOT happen in this case.
5. Apart from basic data types, column can be of type Widgets.
• value_type and widgets are mutually exclusive to each other.
• Adams command can be associated with Widget type column.
• Adams command will be executed on Widget click operation.
• Adams command is single line command and is same for all widgets in that column.
• Column's cell values of that row can be used using %1, %2, %3 and so on, while writing Adams
command for Widget. Here, %1 is associated with the first cell of that row and %2 is associated
with the second cell of that row, and so on.
• Modifying column's Widget property will reset values of that Widget.
• Following widgets can be used.
a. DB object: Data table cell can accept exiting DB object.
On this object, standard RMB operations will be available.
b. Option Menu: Data table cell act as option menu.
c. Push Button: Data table cell act as push button.
d. Toggle Button: Data table cell act as toggle button.
Value of toggle button is "on" or "off".
Tips:
If the index of a column to be created already exists, then the existing column is shifted to the n+1th index,
where, n is the original index of the column.
To get the value of cells/widgets in CMD language use following function:
TABLE_GET_CELLS (table_name, start_row_index, end_row_index,
start_column_index, end_column_index, "blank", 0))
Users can set cell of the table using following Adams command:
"interface data_table set cell data_table_name= DATA_TABLE
row_index=index column_index=index string='value' "
interface 25
interface data_table insert row
Format:
interface data_table insert row
data_table_name = an existing GI_data_table
row_number = integer
number_to_insert = integer
column_indices = integer
insert_action = insert_actiion
Example:
interface data_table insert row&
data_table_name = .gui.param.dtable &
row_number = 3 &
number_to_insert = 5 &
column_indices = 2,3 &
insert_action = before
Description:
Extended Definition:
After creating the data table, the rows and columns can be created by using the ‘insert’ command.
26 Adams View Commands
interface data_table modify
The ‘row_number’ the row index where the row will be added . The number of rows added to this location
are decided by the parameter ‘number_to_insert’. Similarly, the parameter ‘insert action’ decides whether the
row will be added ‘before’ or ‘after’ the row indexed by the parameter ‘row_number’. As illustrated in the
above example five rows will be added after second row shifting the row 3 to 8th place.
Tips:
The rows and columns created will be symmetric independent of the column indices specified.
Format:
interface data_table modify
data_table_name = an existing GI_data_table
new_data_table_name = a new data GI table
enabled = boolean
help_text = string
documentation_text = string
units = int_units
horiz_resizing = int_h_resize
vert_resizing = int_v_resize
location = real
height = real
width = real
cell_select_commands = string
commands = string
editable = boolean
auto_add_rows = boolean
interface 27
interface data_table modify
Example:
interface data_table modify &
data_table_name = .gui.param.dtable &
new_data_table_name = .gui.param2.dtable &
enabled = yes &
help_text = "text2help" &
documentation_text = "text4doc" &
units = pixel &
horiz_resizing = attach_left &
vert_resizing = attach_top &
location = 0.0, 0.0 &
height = 280 &
width = 360 &
commands = "interface dialog display dialog=.gui.about_Adams" &
cell_select_commands = “int dialog dis dialog=.gui.moag” &
editable = yes
auto_add_rows = yes
Description:
Extended Definition:
1. The preliminary parameters of the data table like size, associated commands and editing capability are
set using this command. The data table is then by filled by entering the appropriate fields for row and
column. The data table with specified name is created on the dialog box If parameter ‘Enabled’ is set
to ON, the data table is be preactivated. A new name can be applied to an existing data table by filling
the parameter ‘NEW GI TABLE NAME’
2. The pop-up help and documentation help can be specified in appropriate columns.
3. The size of the data table can be specified either in terms of number of pixels. Alternatively, the size
can also be stated as relative to the Adams window
4. The vertical and horizontal resizing options are used to adjust the placement of the data table menu
on existing dialog box. For example, attach_left; attach_top options for Horiz_resizing and
Vert_resizing will place the data table on the top left corner of the dialog box. The location can also
be specified from the top left corner by adjusting the parameter ‘location’
5. The size of the data table window can be specified with respect to the Adams window size. The value
for parameter height and width should be a real number between 0.0 and 2.0, where 2.0 represents
the height of the dialog window. Therefore, a value of 1.0 will set the data table field window to be
one half as high as the Adams View window.
6. ‘Cell select command’ gets executed whenever any cell is selected for editing.
7. The parameter ‘command’ specifies the name of the command to be executed.
8. The data table can be edited after initializing it if the BOOLEAN option is ‘yes’ for the parameter
‘editable’
The data table is similar to a excel workbook where a categorized data can be stored as array, locating each
item by its row and column index. The data table can be created on a dialog box and the data is displayed
using this command.
Any existing numerical tabular data, for example, a tab delimited text file can be read into a data table, instead
of entering the elements manually.
Format:
interface data_table read
data_table_name = an existing GI_data_table
file_name = string
Example:
interface data_table read &
data_table_name = .gui.atv.dtable1 &
file_name = "C:/data_1.txt"
Description:
Extended Definition:
Specifies the name of the file that is to be read, written, or executed. You do not need to enclose the file name
in quotes if it only contains alpha-numeric characters and starts with a letter. If you want to include other
characters, such as a '.' for an extension or '/' or '[]' for directory paths, you must enclose the name in quotes.
Format:
interface data_table remove column
data_table_name = An Existing GI_data_table
range = Integer
column_indices = Integer
use_column_selected = True_only
Example:
interface data_table remove column &
data_table_name = dtable &
range = 3,4
Description:
Extended Definition:
1. Any number of columns can be removed either by selecting range or index of the column or by
selecting the column itself. Anyone of the parameters namely, 1) ‘range’, 2) column_indices, and, 3)
use selected column can be used to indicate the column to be removed. If the range is specified 2-7,
the value from 2 through 7 of the column index are selected to be removed. It set NONE for not
removing any column
Tips:
The parameters namely, 1) ‘range’, 2) column_indices, and, 3) use selected column are mutually exclusive to
each other.
Format:
interface data_table remove row
data_table_name = An Existing GI_data_table
range = Integer
row_numbers = Integer
use_row_selected = True_only
column_indices = Integer
Example:
interface data_table remove row &
data_table_name = .gui.atv.dtable &
range = 4,5 &
column_indices = 2
Description:
Extended Definition:
1. Any number of cell contents in a row can be removed either by selecting any of the three
combinations, namely, 1) range and column indices, 2) row_numbers and the column indices, or 3)
selected_row and column indices. Anyone of the parameters namely, 1) range, 2) row numbers and,
3) use selected row can be combined selected column to indicate the cell contents to be removed. If
the range is specified 2-7, the value from 2 through 7 of the row index are selected to be removed. It
set NONE for not removing any row.
Tips:
The parameters namely, 1) range, 2) row numbers, and, 3) use row selected are mutually exclusive to each
other.
32 Adams View Commands
interface data_table set cell
Format:
interface data_table set cell
data_table_name = An Existing GI_data_table
use_cell_selected = True_only
use_row_selected = True_only
row_range = Integer
column_range = Integer
order = Matrix_input_order
repeat_strings = Boolean
strings = String
reals = Real
action = Col_action
Example:
interface data_table set cell &
data_table_name = .gui.param.dtable &
row_range = 18,19 &
column_range= 1,2 &
order = by_row &
repeat_strings = yes &
strings = this_is_to_append &
action = prefix
Description:
Extended Definition:
1. The contents of an existing cell of a data table can be altered using the ‘SET’ command. The cells
which will be altered can be specified by multiple – mutually exclusive – choices like
‘use_cell_selected’, ‘use_row_selected’, ‘row_range’, or ‘column _range’. The parameters
‘use_row_selected’ and ‘use_cells_selected’ can directly indicate the row or cells to be affected.
Alternatively, the range of cell or rows can be entered in the ‘row_range’ and column_range’
parameters. The order of the resulting rows or columns can be set by the parameter ‘order’, which
specifies whether the result set component is to be listed in ascending or descending order. If entered,
this parameter is used regardless of whether the values are to be printed to the terminal or to a file.
This parameter is optional and if not entered, it will default to "ascending" order. The two values for
the ORDER parameter are ‘by_row’ and ‘by_column’, which specifies whether the column or the row
is to be arranged in order.
2. If the cell contains the same strings or reals as the one to be entered after alteration, then whether the
strings is to be repeated or not is decided by the parameter ‘repeat_strings’. If the ‘repeat strings’ is set
to ‘yes’ then all the rows in the column will be replaced by new contents. On the other hand, if the
‘repeat_strings’ is set to ‘no’, then only first row of the column will be replaced by the new contents.
3. The parameter ‘string’ or ‘real’ is used to specify the new contents of the cell which may replace,
append or prefix the existing contents of the cell. To specify how the new contents would be inserted
in the existing cell contents, the parameter ‘action’ which has multiple options like ‘replace’, ‘append’,
or ‘prefix’ is used.
Tips:
The parameters ‘use_row_selected’ and ‘row_range’ are mutually exclusive.
The properties of an entire column within a data table can be edited using this command.
Format:
interface data_table set column
data_table_name= An Existing GI_DATA_TABLE
widths = Integer
labels = String
use_column_selected = True_only
range = Integer
indices = Integer
strings = String
reals = Real
integers = Integer
repeat_strings = Boolean: yes/no
enabled = Boolean: yes/no
action = Col_action: replace/append/prefix
value_type = text_type
db_object_type = Ent
push_button_label = string
push_button_command = string
option_menu_choices = string
option_menu_command = string
toggle_button_label = string
toggle_button_command = string
Example:
Description:
Extended Definition:
1. The contents of an existing cell of a data table can be altered using the ‘SET’ command. The cells
which will be altered can be specified by multiple – mutually exclusive – choices like
‘use_cell_selected’, ‘range’, or ‘indices’. The parameter ‘use_cells_selected’ can directly indicate the
cells to be affected. Alternatively, the range of cell in a column can be entered in the ‘range’ or indices
parameters. Specifying the range as ‘1,6’ or entering respective column numbers as ‘1,2,3,4,5,6’ will
alter the columns with indices 1 through 6. As the three parameters namely, 1) use_column_selected,
2) range, and 3) indices are mutually exclusive, any one of the parameter is sufficient to specify the
columns to be altered.
2. The parameter 'repeat_strings' is used to determine if all rows in the column should be set with the
same values. If 'repeat strings' is set to 'yes' then all the rows in the column will be replaced by new
contents. On the other hand, if 'repeat_strings' is set to 'no', then only the first row of the columns
will be replaced by the new contents, hence the new contents will appear only once in each column.
If the values should be repeated for all the rows then the parameter 'repeat strings' needs to be set to
'yes'.
3. The parameter 'strings' or 'reals' is used to specify the new contents of the cell which may replace,
append or prefix the existing contents of the cell. To specify how the new contents should be inserted
in the existing cell contents, the parameter 'action' has the options 'replace', 'append', or 'prefix'.
interface 37
interface data_table set column
4. The parameter 'enabled' is used to specify if the specified columns can be editable or not. The rows
are specified using the use_column_selected/range/indices parameter as discussed earlier.
5. Changing columns data, value_type and widgets are mutually exclusive.
6. Different data (value) types can be set per column. Data types are String, Integer, Real and Default.
Cell validation is based upon this setting. To set the data type for a column set value_type as
a. String: This accepts only alpha numeric character string where first character is not a number or
a special character.
b. Integer: This accepts only integer value.
c. Real: This accepts floating value and integer value.
d. Default: This accepts all types (except widgets). Cell validation will NOT happen in this case.
7. Apart from the basic data types, columns can be of type Widgets.
• value_type and widgets are mutually exclusive to each other.
• Adams command can be associated with Widget type column
• Adams command will be executed on widget click operation.
• Adams command is single line command and is same for all widgets in that column.
• Column's cell values of that row can be used using %1, %2, %3 and so on, while writing Adams
command for Widget. Here, %1 is associated with the first cell of that row and %2 is associated
with the second cell of that row, and so on.
• Modifying column's Widget property will reset values of that Widget.
• Following widgets can be used.
a. DB object: Data table cell can accept exiting DB object.
On this object, standard RMB operations will be available.
b. Option Menu: Data table cell act as option menu.
c. Push Button: Data table cell act as push button.
d. Toggle Button: Data table cell act as toggle button.
Valid values of any toggle button are "on" or "off".
Tips:
The parameters ‘use_column_selected’, ‘range’ and ‘indices’ are mutually exclusive. Any one of those is
sufficient to indicate the cell to be altered.
To get the value of cells in CMD language use following function:
TABLE_GET_CELLS (table_name, start_row_index, end_row_index,
start_column_index, end_column_index, "blank", 0))
Users can set cells of the table using following Adams command:
"interface data_table set cell data_table_name= DATA_TABLE
row_index=index column_index=index string='value'"
38 Adams View Commands
interface data_table set row
Format:
interface data_table set row
data_table_name = an existing GI_data_table
use_row_selected = true_only
range = integer
indices = integer
strings = string
reals = real
repeat_strings = boolean
enabled = boolean
action = col_action
Example:
interface data_table set row &
data_table_name = .gui.atv.dtable &
indices = 2,4 &
strings = none &
action = replace &
repeat_strings = yes &
enabled = yes
Description:
Extended Definition:
1. The contents of an existing cell of a data table can be altered using the ‘SET’ command. The cells
which will be altered can be specified by multiple – mutually exclusive – choices like
‘use_row_selected’, ‘range’, or ‘indices’. The parameter ‘use_row_selected’ can directly indicate the
cells to be affected. Alternatively, the range of rows can be entered in the ‘range’ or indices parameters.
Specifying the range as ‘1,6’ or entering respective row numbers as ‘1,2,3,4,5,6’ will alter the rows
with indices 1 through 6. As the three parameters namely, 1) use_column_selected, 2) range, and 3)
indices are mutually exclusive, any one of the parameter is sufficient to specify the rows to be altered.
2. If the cell contains the same strings or reals as the one to be entered after alteration, then whether the
strings is to be repeated or not is decided by the parameter ‘repeat_strings’. If the ‘repeat strings’ is set
to ‘yes’ then all the cells in the rows will be replaced by new contents. On the other hand, if the
‘repeat_strings’ is set to ‘no’, then only first cell of the row will be replaced by the new contents, hence
the new contents will appear only once in each row. If the values are repeated for all the cells in a row
then the parameter ‘repeat strings’ need to be set to ‘yes’.
3. The parameter ‘string’ or ‘real’ is used to specify the new contents of the cell which may replace,
append or prefix the existing contents of the cell. To specify how the new contents would be inserted
in the existing cell contents, the parameter ‘action’ which has multiple options like ‘replace’, ‘append’,
or ‘prefix’ is used.
4. The parameter 'enabled' is used to specify if the specified rows can be editable or otherwise. The rows
are specified using the use_row_selected/range/indices parameter as discussed earlier.
Tips:
The parameters ‘use_row_selected’, ‘range’ and ‘indices’ are mutually exclusive. Any one of those is sufficient
to indicate the cell to be altered.
The selected cell of a data table can be edited using the ‘set selected’ command.
Format:
interface data_table set selected
data_table_name = an existing GI_data_table
strings = string
reals = real
repeat_strings = boolean
action = col_action
Example:
interface data_table set selected &
data_table_name = .gui.atv.dtable &
strings = select_new &
action = replace &
repeat_strings = yes
Description:
Extended Definition:
The contents of an existing cell of a data table can be altered using the ‘SET’ command. The cells which will
be altered can be are selected first and then the command is entered.
If the cell contains the same strings or reals as the one to be entered after alteration, then whether the strings
is to be repeated or not is decided by the parameter ‘repeat_strings’. If the ‘repeat strings’ is set to ‘yes’ then
all the selected will be replaced by new contents. On the other hand, if the ‘repeat_strings’ is set to ‘no’, then
only first selected of the group will be replaced by the new contents, hence the new contents will appear only
once. If the values are repeated for all the selected cells then the parameter ‘repeat strings’ need to be set to
‘yes’.
interface 41
interface data_table sort
The parameter ‘string’ or ‘real’ is used to specify the new contents of the cell which may replace, append or
prefix the existing contents of the cell. To specify how the new contents would be inserted in the existing cell
contents, the parameter ‘action’ which has multiple options like ‘replace’, ‘append’, or ‘prefix’ is used.
Tips:
Select the cell to be altered first and then execute the command.
Format:
interface data_table sort
data_table_name = An Existing GI_data_table
sort_column_index = Integer
affected columns = Integer
order = Sort_order
Example:
Interface data_table sort &
data_table_name = dtable &
sort_column_index = 1 &
affected_columns = 2 &
order = ascending &
type_of_sort = alphabetic
Description:
Extended Definition:
1. The contents of a column can be sorted in ascending or descending order. The sorting can be numeric
or alphabetical. Generally, the column will have one or more associated columns which will get
affected due to reallocation of the column to be sorted. Hence, the associated column contents also
need to be repositioned in accordance with the column sorted. This can be easily achieved by directly
choosing the ‘affected columns’. Hence, there is no need of repositioning of the cell contents of
associated columns.
Format:
interface data_table undisplay
data_table_name = an existing GI_data_table
Example:
interface data_table undisplay &
data_table_name = .gui.atv.dtable
Description:
Extended Definition:
The data table can be closed by choosing the appropriate data_table_name and running the ‘undisplay’
command
interface 43
interface data_table write
Format:
interface data_table write
data_table_name = An Existing GI_data_table
file_name = String
row_labels = Boolean
column_labels = Boolean
Example:
interface data_table write &
data_table_name = .gui.atv.dtable1 &
file_name = "C:/data_2.xls"
Description:
Extended Definition:
1. ‘File_name’ specifies the name of the file that is to be read, written, or executed. The proper extension
is the default but can be overridden by simply supplying a different extension. You do not need to
enclose the file name in quotes if it only contains alpha-numeric characters and starts with a letter. If
you want to include other characters, such as a '.' for an extension or '/' or '[]' for directory paths, you
must enclose the name in quotes.
2. If the BOOLEAN value for ‘row labels’ and ‘column labels’ is ‘yes’ then existing labels of the rows
and columns are exported along with the data_table contents.
44 Adams View Commands
interface database_navigator
interface database_navigator
Allows the creating a database_navigator.
The Database Navigator has several modes in which you can display object information. It can be set to just
let you browse for objects or you can set it to rename objects, view information about the objects, such as
view how the object relates to other objects, and view dependencies. The Database Navigator only displays
the types of objects that are appropriate for the command you are executing. For example, if you are renaming
a model, it only displays models in your database. On the other hand, if you are searching for any modeling
object in the database, it displays all types of modeling objects. You can also set a filter for the types of objects
that the Database Navigator displays. The Database Navigator shows objects in their database hierarchy. The
following figure shows the Database Navigator with the top-level modeling objects in a small database that
contains one model, model_1. These objects do not have parents. Double-click the name of a model, in this
case model_1, to find all the objects belonging to that model. The associativity, for example, the i_marker
and j_marker for a link can also be displayed. The display mode can thus be browse, graphical_topology,
topology_by_parts, topology_by_connections, associativity, information, rename, comments, select_list, and
display_attribute. The database navigator can also display the topology of the parts, that is, kind of
connectivity among the objects. It can display the same by graphical topology which is very convenient to
understand the model topology.
Format:
interface database_navigator
top_object = an_existing_entity
name_filter = string
type_filter = ent
display = on_off
mode = mode_options
Example:
interface database_navigator &
top_object = model_1 &
name_filter = link &
type_filter = joint &
display = on &
mode = graphical_topology
interface 45
interface dialog_box build
Description:
Extended Definition:
1. The ‘top_object’ is the object under which all the objects are arranged in hierarchical form in the
database navigator. If the ‘model’ is chosen as the ‘top_object’, it will list all the objects in the model.
On the other hand if a entity in the model, for example, ‘PART_4’ is chosen as the ‘top_object’ then
the listing starts from the ‘PART_4’ covering all the objects under ‘PART_4’.
2. The ‘name filter’ specifies the name of the object for the all the dependent parts are to be displayed.
For example, name filter ‘PART_1’ will display all the objects belonGIng to the ‘PART_1’
irrespective of the type of objects, for example, revolute joint, measure, marker and so on.
3. The ‘type filter’ specify the type of objects allowed. When specifying the objects for this operation a
wild cards can be used, which may result in too many objects being found. For example, if all the parts
for model MOD1 are desired, specifying .MOD1.* will get not only the parts, but all children of the
model, like joints, forces and so on. Using the parameter TYPE_FILTER=part will result in only the
parts being processed by this command.
4. The default parameter for ‘display’ can be set ‘on’ or ‘off’. The database navigator has several modes
of display as browse, graphical_topology, topology_by_parts, topology_by_connections,
associativity, information, rename, comments, select_list, and display_attribute. Depending on the
user requirement any useful mode can be selected such as for renaming few objects from the database,
the database can be opened in ‘renaming’ mode, it will display the names in database which can be
renamed as required. Similarly, if the display attributes like, color, transparency and so on, are to be
changed then the models can be browsed in that mode where one can change the display attributes
selectively.
Format:
interface dialog_box build
dialog_box_name = An Existing GI_dbox
Example:
interface dialog_box build &
dialog_box_name = .gui.dgbox
Description:
Extended Definition:
1. The blank dialog box is created with initial size, appearance and editing options. This dialog box can
grab various kinds of input like, push buttons, container, option menus and so on. To create these
interface options on the dialog box window. The build command can be used. The build command
opens up a new dialog box building window, with which we can edit the existing dialog box, as well
as add different menus on it.
2. The build window offers option like layout, appearance, command and help.
3. With appearance tab on build window we can edit the location and size of the dialog box. The
appearance tab on the build window helps to edit the properties like resizing ability, decorating and
iconification and so on. The command tab is used to specify the ‘start’, ‘finish’ and ‘execute’
commands.
4. The create tab on the build window is used to create various interface options like field, separator,
radio button, option menu, and so on.
5. The build box offers other capabilities like, edit, create, option, preference for building a complete
dialog box.
Format:
interface dialog_box create
dialog_box_name = a new GI_dbox
enabled = boolean
help_text = string
documentation_text = string
units = int_units
horiz_resizing = int_h_resize
vert_resizing = int_v_resize
location = real
height = real
width = real
title = string
icon_label = string
start_commnads = string
finish_commands = string
execution_commands = string
decorate = boolean
resizable = boolean
width_minimum = real
width_maximum = real
height_minimum = real
height _maximum = real
grab_all_input = boolean
iconifiable = boolean
Example:
interface dialog_box create &
dialog_box_name = dbox &
enabled = yes &
help_text = text2help &
documentation_text = text2doc &
units = relative &
horiz_resizing = attach_left &
48 Adams View Commands
interface dialog_box create
Description:
Extended Definition:
1. A new dialog box created if a dialog box with specified name do not exist. The dialog box can grab all
kinds of interface inputs on the push_button, toggle_button, option menu, and so on. The dialog
box is enabled by setting the parameter to yes.
2. The dialog box is displayed by using ‘display’ command.
3. . The pop-up help and documentation help is be specified for the respective parameters.
4. The size of the dialog box can be specified either in terms of number of pixels. Alternatively, the size
can also be stated as relative to the Adams window
5. The vertical and horizontal resizing options are used to adjust the placement of the dialog box on
existing dialog box. For example, attach_left; attach_top options for Horiz_resizing and Vert_resizing
will place the dialog on the top left corner of the dialog box. The location can also be specified from
the top left corner by adjusting the parameter ‘location’
6. The size of the dialog box can be specified with respect to the Adams window size. The value for
parameter height and width should be a real number between 0.0 and 2.0, where 2.0 represents the
height of the Adams View window. Therefore, a value of 1.0 will set the info window to be one half
as high as the Adams View window.
50 Adams View Commands
interface dialog_box delete
7. Initial height and width of the dialog box appearing on screen can be set by ‘height’ and ‘width’. If
the dialog box is made ‘resizable’ it can be dragged to resize. The resizing limits are set by the
parameters ‘height_minimum’, ‘height_maximum’, ‘width_minimum’, and ‘width_maximum’
respectively.
8. If the dialog box is made iconifiable, then it can be minimized or maximized by clicking the ‘_ ‘ and
square appearing on upper right corner. Once minimized the icon on the taskbar shows the label set
by the parameter ‘iconic_label’
9. The ‘decorate’ parameter if set to ‘no’, it will show a blank dialog box without any peripheral
decorating outline.
10. The ‘start_commands’, ‘finish_commands’, and ‘execution_commands’ are the commands
associated with the dialog box, which can be executed explicitly. The ‘start command’ gets executed
when the dialog box is displayed, whereas the ‘finish_command’ gets executed when the dialog box
is closed and the ‘execute_command’ will be run when the ‘dialog_box execute’ command is run
explicitly.
Format:
interface dialog_box delete
dialog_box_name = An Existing GI_dbox
Example:
interface dialog_box delete &
dialog_box_name = .gui.dgbox
Description:
Extended Definition:
1. The dialog box can be deleted by using this command. It will delete all the child-menus like buttons,
option menus and menus created on the dialog box.
interface 51
interface dialog_box display
Format:
interface dialog_box display
dialog_box_name = an existing GI_dbox
parameter = string
Example:
interface dialog_box display &
dialog_box_name = .gui.dgbox &
parameter = STRING
Description:
Extended Definition:
1. The dialog box may not be required to be displayed every time, and can be displayed or closed by
using the ‘dialog_box display’ and ‘dialog_box undisplay’ commands respectively.
2. The ‘start_command’ associated with the dialog get executed when the dialog box is displayed.
Format:
interface dialog_box execute
dialog_box_name = an existing GI_dbox
undisplay = boolean
Example:
interface dialog_box execute &
dialog_box_name = .gui.dgbox &
undisplay = yes
Description:
Extended Definition:
1. The command specified as ‘execution_command’ get executed with this command statement.
2. If the parameter ‘undisplay’ is set to ‘yes’, the dialog box will be closed with execution of the this
command.
Format:
interface dialog_box modify
dialog_box_name = an existing GI_dbox
new_dialog_box_name = a new GI_dbox
enabled = boolean
help_text = string
documentation_text = string
units = int_units
horiz_resizing = int_h_resize
interface 53
interface dialog_box modify
Example:
interface dialog_box modify &
dialog_box_name = .gui.dgbox &
new_dialog_box_name = .gui.dgbox2 &
enabled = yes &
help_text = text2help &
documentation_text = text2doc &
units = relative &
horiz_resizing = attach_left &
vert_resizing = attach_top &
location = 0.4,0 &
height = .4 &
width = 0.4 &
title = dbox &
icon_label = minimized_dgbox &
start_commands = "interface coord_window display=toggle" &
54 Adams View Commands
interface dialog_box modify
Description:
Extended Definition:
1. The existing dialog box will be renamed if the parameter ‘new_dialog_box_name’ is specified. The
dialog box can grab all kinds of interface inputs on the push_button, toggle_button, option menu,
and so on. The dialog box is enabled by setting the parameter to yes.
2. The dialog box is displayed by using ‘display’ command
3. The pop-up help and documentation help is be specified for the respective parameters.
4. The size of the dialog box can be specified either in terms of number of pixels. Alternatively, the size
can also be stated as relative to the Adams window
5. The vertical and horizontal resizing options are used to adjust the placement of the dialog box on
existing dialog box. For example, attach_left; attach_top options for Horiz_resizing and Vert_resizing
will place the dialog on the top left corner of the dialog box. The location can also be specified from
the top left corner by adjusting the parameter ‘location’
6. The size of the dialog box can be specified with respect to the Adams window size. The value for
parameter height and width should be a real number between 0.0 and 2.0, where 2.0 represents the
height of the Adams View window. Therefore, a value of 1.0 will set the info window to be one half
as high as the Adams View window.
7. Initial height and width of the dialog box appearing on screen can be set by ‘height’ and ‘width’. If
the dialog box is made ‘resizable’ it can be dragged to resize. The resizing limits are set by the
parameters ‘height_minimum’, ‘height_maximum’, ‘width_minimum’, and ‘width_maximum’
respectively.
8. If the dialog box is made iconifiable, then it can be minimized or maximized by clicking the ‘_ ‘ and
square appearing on upper right corner. Once minimized the icon on the taskbar shows the label set
by the parameter ‘iconic_label’
56 Adams View Commands
interface dialog_box undisplay
9. The ‘decorate’ parameter if set to ‘no’, it will show a blank dialog box without any peripheral
decorating outline.
10. The ‘start_commands’, ‘finish_commands’, and ‘execution_commands’ are the commands
associated with the dialog box, which can be executed explicitly. The ‘start command’ gets executed
when the dialog box is displayed, whereas the ‘finish_command’ gets executed when the dialog box
is closed and the ‘execute_command’ will be run when the ‘dialog_box execute’ command is run
explicitly.
Format:
interface dialog_box undisplay
dialog_box_name = an existing GI_dbox
Example:
interface dialog_box undisplay &
dialog_box_name = .gui.dgbox
Description:
Extended Definition:
1. The dialog box may not be required to be displayed every time, and can be displayed or closed by
using the ‘dialog_box display’ and ‘dialog_box undisplay’ commands respectively.
2. The ‘finish_command’ associated with the dialog get executed when the dialog box is closed.
Format:
interface entity modify
entity_name = GRAPHIC_USER_INTERFACE
enabled = YES_NO_NO_OPINION
displayed = YES_NO_NO_OPINION
Example:
interface entity modify &
entity_name = .gui.spline_cremod.c_tabular &
enabled = NO &
displayed = No_OPINION
Description:
Extended Definition:
1. The command is used to modify the "enabled" and "displayed" attributes of GUI entities such as a
field, push button dialog and so on.
2. Remember that the rules of hierarchy apply here. For example, if a container is disabled (enabled is
set to 'no'), then all elements on the container become disabled as well. When the container is enabled
thereafter, the elements on the container, will regain their previous states. For example, if a field on
the container were disabled (explicitly) before the container was disabled, it will remain so, even after
the container is enabled again.
3. A no-opinion for the displayed/enabled attributes means that the attribute of the entity in
consideration will remain unchanged. This is particularly useful, when only one of the attributes
(either "displayed" or "enabled") needs to be changed, without altering the other.
58 Adams View Commands
interface field copy
Format:
interface field copy
field_name = An Exisitng GI_field
Example:
interface field copy &
field_name = .gui.ATC.flde
Description:
Extended Definition:
The command allows copying the contents of a field to another field.
interface 59
interface field create
Format:
interface field create
field_name = A New GI_field
enabled = Boolean
help_text = String
documentation_text = String
units = Int_units
horiz_resizing = Int_h_resize
vert_resizing = Int_v_resize
location = Real
height = Real
width = Real
preload_strings = String
commands = String
scrollable = Boolean
editable = Boolean
required = Boolean
execute_cmds_on_exit= Boolean
number_of_values= Integer
string_type= Str_type
add_quotes= Add_quotes
object_type = New_old_any
type_filter = Ent
name_filter = String
numeric_type = Num_type
lower_check = Low_check
lower_limit = Real
upper_check = Upp_check
upper_limit = Real
60 Adams View Commands
interface field create
Example:
interface field create &
field_name = .gui.ATC.flde &
enabled = yes &
help_text = hlp_txt &
documentation_text = doc_txt &
units = relative &
horiz_resizing = attach_left &
vert_resizing = attach_top &
location = 0.1,0.1 &
height = 0.3 &
width = 0.3 &
preload_string = predefined_txt_display &
commands = "interface coord_window display=toggle" &
scrollable = yes &
editable = yes &
required = yes &
execute_cmds_on_exit = yes &
number_of_values = 1 &
string_type = alpha_numeric &
add_quotes = yes
interface 61
interface field create
Description:
Extended Definition:
1. The field with specified name is created on the dialog box. If parameter ‘Enabled’ is set to ON, the
field is be preactivated.
2. The pop-up help and documentation help can be specified in appropriate columns.
3. The size of the field can be specified either in terms of number of pixels. Alternatively, the size can
also be stated as relative to the Adams window.
4. The vertical and horizontal resizing options are used to adjust the placement of the field menu on
existing dialog box. For example, attach_left; attach_top options for Horiz_resizing and Vert_resizing
will place the option menu on the top left corner of the dialog box. The location can also be specified
from the top left corner by adjusting the parameter ‘location.’
5. The size of the field window can be specified with respect to the Adams window size. The value for
parameter height and width should be a real number between 0.0 and 2.0, where 2.0 represents the
height of the Adams View window. Therefore, a value of 1.0 will set the field window to be one half
as high as the Adams View window.
6. The preload string is used to specify a predefined text to be displayed in the field. Thus a string ia
preloaded in to the dialog box initially.
7. The parameter ‘command’ specifies the name of the command to be executed while exiting the field.
8. If the contents of the field do not fit the field window, then the field can be added with horizontal
and vertical scrollbars making it ‘scrollable’. The contents of a field can be edited if the field is made
‘editable’ by choosing appropriate BOOLEAN value.
9. The execution of the associated command after exiting the window can be activated by setting the
BOOLEAN option to ‘yes’. The number of values allowed in the field can be set by stating an integer
value for the parameter ‘number_of_values’.
interface 63
interface field cut
10. When specifying the objects for this operation a wild cards can be used, which may result in too many
objects being found. For example, if all the parts for model MOD1 are desired, specifying .MOD1.*
will get not only the parts, but all children of the model, like joints, forces, and so on. Using the
parameter TYPE_FILTER=part will result in only the parts being processed by this command.
Similarly, use of the NAME_FILTER will set the types of object allowed depending on the name of
the object.
11. The numeric type of the object that is, integer, real or entering the node_id is allowed, where a check
on the upper or lower limit of the numeric value can be set by choosing the upper and lower limits.
This limit will filter the value above and below the specified value depending the parameter
UPPER_CHECK and LOWER_CHECK.
12. The file type tobe read or written and its default directory can be chosen by specifying directory. if
the ‘FILTER’ value is above the specified maximum value, or below the specified minimum value, set
it to zero. For example: if the component is a discrete sampling of a sinusoidal wave with an amplitude
of one (1), and filter is requested with a maximum value of .9 (above_value=.9), All the values of the
corresponding to 'sin (x) > .9' will be set to 0.
Format:
interface field cut
field_name = an existing GI_field
Example:
interface field cut &
field_name = .gui.ATC.flde
Description:
Extended Definition:
1. The contents of a field can be cut and pasted elsewhere by using the ‘cut’ command to editing a
document.
64 Adams View Commands
interface field delete
Format:
interface field delete
field_name = an existing GI_field
Example:
interface field delete &
field_name = .gui.ATC.flde
Description:
Extended Definition:
1. Allows the deletion of the field with specified name
Format:
interface field display
field_name = an existing GI_field
Example:
interface field display &
field_name = .gui.ATC.flde
interface 65
interface field execute
Description:
Extended Definition:
1. The field created can be displayed on appropriate dialog box by the ‘DISPLAY’ command.
Alternatively, it can be closed by the ‘UNDISPLAY’ command.
Format:
interface field execute
field_name = an existing GI_field
Example:
interface field execute &
field_name = .gui.ATC.flde
Description:
Extended Definition:
1. If any command is specified while creating a field, the command is executed while exiting the field.
Alternatively, the same command can be executed by running the execute command for any specific
filed name
Format:
interface field modify
field_name = An Existing GI_field
new_field_name = A New GI_field
enabled = Boolean
help_text = String
documentation_text = String
units = Int_units
horiz_resizing = Int_h_resize
vert_resizing = Int_v_resize
location = Real
height = Real
width = Real
preload_strings = String
commands = String
scrollable = Boolean
editable = Boolean
required = Boolean
execute_cmds_on_exit = Boolean
number_of_values = Integer
string_type = Str_type
add_quotes = Add_quotes
object_type = New_old_any
type_filter = Ent
name_filter = String
numeric_type = Num_type
lower_check = Low_check
lower_limit = Real
upper_check = Upp_check
upper_limit = Real
file_type = New_old_any
directory = String
filter = String
alert_on_overwrite = Boolean
interface 67
interface field modify
Example:
interface field modify &
field_name = .gui.naresh.flde &
new_field_name = .gui.naresh.flde1 &
enabled = Yes &
help_text = hlp_txt &
documentation_text = doc_txt &
units = relative &
horiz_resizing = attach_right &
vert_resizing = attach_top &
location = 0.15,0.15 &
height = 0.4 &
width = 0.4 &
preload_string = new_predefined_txt_display &
commands = "interface coord_window display=toggle" &
scrollable = yes &
editable = yes &
required = yes &
execute_cmds_on_exit = no &
number_of_values = 1 &
string_type = literal &
add_quotes = yes
Description:
Extended Definition:
1. The field with specified name is created on the dialog box If parameter ‘Enabled’ is set to ON, the
field is be preactivated. If a new name is specified, the field will be renamed.
2. The pop-up help and documentation help can be specified in appropriate columns.
3. The size of the field can be specified either in terms of number of pixels. Alternatively, the size can
also be stated as relative to the Adams window.
4. The vertical and horizontal resizing options are used to adjust the placement of the field menu on
existing dialog box. For example, attach_left; attach_top options for Horiz_resizing and Vert_resizing
will place the option menu on the top left corner of the dialog box. The location can also be specified
from the top left corner by adjusting the parameter ‘location’.
5. The size of the field window can be specified with respect to the Adams window size. The value for
parameter height and width should be a real number between 0.0 and 2.0, where 2.0 represents the
height of the Adams View window. Therefore, a value of 1.0 will set the field window to be one half
as high as the Adams View window.
6. The preload string is used to specify a predefined text to be displayed in the field. Thus a string ia
preloaded in to the dialog box initially.
7. The parameter ‘command’ specifies the name of the command to be executed while exiting the field
8. If the contents of the field do not fit the field window, then the field can be added with horizontal
and vertical scrollbars making it ‘scrollable’. The contents of a field can be edited if the field is made
‘editable’ by choosing appropriate BOOLEAN value.
9. The execution of the associated command after exiting the window can be activated by setting the
BOOLEAN option to ‘yes’. The number of values allowed in the field can be set by stating an integer
value for the parameter ‘number_of_values’.
10. When specifying the objects for this operation a wild cards can be used, which may result in too many
objects being found. For example, if all the parts for model MOD1 are desired, specifying .MOD1.*
will get not only the parts, but all children of the model, like joints, forces, and so on. Using the
parameter TYPE_FILTER=part will result in only the parts being processed by this command.
Similarly, use of the NAME_FILTER will set the types of object allowed depending on the name of
the object.
70 Adams View Commands
interface field paste
11. The numeric type of the object that is, integer, real or entering the node_id is allowed, where a check
on the upper or lower limit of the numeric value can be set by choosing the upper and lower limits.
This limit will filter the value above and below the specified value depending the parameter
UPPER_CHECK and LOWER_CHECK.
12. The file type to be read or written and its default directory can be chosen by specifying directory. if
the ‘FILTER’ value is above the specified maximum value, or below the specified minimum value, set
it to zero. For example: if the component is a discrete sampling of a sinusoidal wave with an amplitude
of one (1), and filter is requested with a maximum value of .9 (above_value=.9), All the values of the
corresponding to 'sin (x) > .9' will be set to 0.
Format:
interface field paste
field_name = an exisitng GI_field
Example:
interface field paste &
field_name = .gui.ATC.flde
Description:
Extended Definition:
1. The command allows pasting of the contents of a remote field to another field.
Format:
interface field read
field_name = an exisitng GI_field
file_name = string
Example:
interface field read &
field_name = .gui.ATC.flde &
file_name = “c:/spring_data.txt”
Description:
Extended Definition:
1. Specifies the name of the file that is to be read, written, or executed. The proper extension is the
default but can be overridden by simply supplying a different extension. You do not need to enclose
the file name in quotes if it only contains alpha-numeric characters and starts with a letter. If you want
to include other characters, such as a '.' for an extension or '/' or '[]' for directory paths, you must
enclose the name in quotes.
Format:
interface field set
field_name = An Exisitng GI_field
strings = String
database_fields = String
action = Field_action
execute = Boolean
72 Adams View Commands
interface field undisplay
Example:
interface field set &
field_name = .gui.naresh.fldst &
strings = append_text &
action = append &
execute = yes
Description:
Extended Definition:
A string/ database field can be added, appended or inserted to the existing contents of a field
depending upon the parameter ‘action’. The command, if specified, associated with the particular
dialog box is executed depending on the BOOLEAN parameter ‘yes’ or ‘no’.
Tips:
The parameters ‘strings’ and ‘database fields’ are mutually exclusive to each other.
Format:
interface field undisplay
field_name = an existing GI_field
interface 73
interface field write
Example:
interface field undisplay &
field_name = .gui.ATC.flde
Description:
Extended Definition:
1. The displayed field can be closed by choosing the field name and running the command ‘undisplay’.
It can be displayed again by the command ‘display’ specifying the field name.
Format:
interface field write
field_name = an existing GI_field
file_name = string
Example:
interface field write &
field_name = .gui.ATC.flde &
file_name = c:/write_backup.txt
Description:
Extended Definition:
1. The contents of the field can be written to a new or existing file by ‘write’ command. If an existing
file name is suggested then the file will be overwritten after a prompt warning. The new file can be
specified with extension like .txt or .doc. If no extension is specified then the file will be created with
an extension .tab. You do not need to enclose the file name in quotes if it only contains alpha-numeric
characters and starts with a letter. If you want to include other characters, such as a '.' for an extension
or '/' or '[]' for directory paths, you must enclose the name in quotes.
Format:
interface grid copy
grid_name = an existing grid
new_grid_name = a new grid
Example:
interface grid copy &
grid_name = .model_1.grd &
new_grid_name = grd4
Description:
Extended Definition:
1. The grid can be copied and displayed in a new view. This reduces the task of repeating the grid
creation for a new view.
Cautions:
The grid settings should not exceed the maximum number of points as specified by the environment variable
'MDI_MAX_GRID_POINTS'. The default maximum is 10000 points.
interface 75
interface grid create
Format:
interface grid create
grid_name = a new grid
location = location
orientation = orientation
snapping_enabled = boolean
view_normal = boolean
extent = length
spacing = length
maximum_radius = length
circle_spacing = length
radial_increments = integer
triad_visible = boolean
lines_visible = boolean
line_weight = integer
line_style = line_style
line_color = an existing color
dots_visible = boolean
dot_size = integer
dot_color = an existing color
axes_visible = boolean
axis_weight = integer
axis_color = an existing color
Example:
interface grid create &
grid_name = .model_1.grd &
location = .model_1 &
76 Adams View Commands
interface grid create
Description:
Extended Definition:
1. The new working grid can be defined with the name ‘grid_name’. The location can be at global origin
or any other location which can be entered as coordinates of ‘picked-up’ from the view window.
Either you can keep the global origin, that is, 0,0,0, to set the center location of the grid to the center
of the view window or pick or click a location on the screen to set as the center of the working grid.
2. By orientation, select how you want to orient the grid. You can set its orientation by picking points
or by aligning it with the screen plane. Note that if you select Pick for orientation, you will also set
the location of the working grid. This orients the grid axes to the global axes.
3. By enabling the ‘snapping’, you can snap a closest grid point with the cursor. When you drag an item
with the mouse to move or resize it, the mouse position will snap to the nearest grid point.
4. The parameter ‘view normal’ always orients the grid normal to the viewer irrespective of the actual
orientation of the grid. Thus, if the grid is oriented at angle, as you change the orientation of the
object view, the grid realigns itself normal to the viewer. But if the parameter is not enabled, then the
grid will remain oriented in space as per the specified orientation.
5. The extents specifies the length of the grid in x,y directions in the model length units. The spacing
specifies the distance between the grid points in x and y directions in models length units.
6. Maximum radius specifies the radius of the outermost grid circle from the grid oriGIn and
circle_spacing specifies amount of space between each circle in the working grid. The smaller the
spacing, the more circles Adams View defines.
For radial increments, enter the number of lines radiating from the origin of the working grid. Adams
View spaces the lines equally around the working grid. The lines do not include the axes. The number
of lines (N) determines the angle increment between lines (q), as shown in the formula:
θ = 360×/N
7. You can hide the new grid triad or display it by the parameter ‘triad_visible’. The visibility of lines
and axes on the grid can be switched ON or OFF by the parameter ‘lines_visible’ and ‘axes_visible’.
The line and axes weight can be set by using the ‘line_weight’ and ‘axes_weight’ parameters. The value
range for this weight is 1 to 5. The color of the lines and axes is set by using the ‘axes_color’ and
‘line_color’ parameter. The line style can be chosen form various line style options like solid, dash and
so on.
78 Adams View Commands
interface grid delete
8. The dot properties like size, color and visibility are set by using the parameters ‘dot_size’, ‘dot_color’
and ‘dot_visible’ parameter. The dot_size range is from 1 to 3 screen pixel.
Cautions:
The grid settings should not exceed the maximum number of points as specified by the environment variable
'MDI_MAX_GRID_POINTS'. The default maximum is 10000 points.
Format:
interface grid delete
grid_name = an existing grid
Example:
interface grid delete &
grid_name = grd4
Description:
Extended Definition:
1. The existing grid can be deleted by this command.
Tips:
The grid may not be deleted if any views or objects are dependent on it. You must first delete the dependent
objects.
Cautions:
The grid settings should not exceed the maximum number of points as specified by the environment variable
'MDI_MAX_GRID_POINTS'. The default maximum is 10000 points.
interface 79
interface grid display
Format:
interface grid display
grid_name = an existing grid
view_name = an existing view
Example:
interface grid display &
grid_name = .model_1.grd5 &
view_name = front
Description:
Extended Definition:
1. The existing grid can be displayed by this command.
Cautions:
The grid settings should not exceed the maximum number of points as specified by the environment variable
'MDI_MAX_GRID_POINTS'. The default maximum is 10000 points.
Format:
interface grid modify
grid_name = an existing grid
new_grid_name = a new grid
location = location
orientation = orientation
snapping_enabled = boolean
view_normal = boolean
extent = length
spacing = length
maximum_radius = length
circle_spacing = length
radial_increments = integer
triad_visible = boolean
lines_visible = boolean
line_weight = integer
line_style = line_style
line_color = an existing color
dots_visible = boolean
dot_size = integer
dot_color = an existing color
axes_visible = boolean
axis_weight = integer
axis_color = an existing color
Example:
interface grid modify &
grid_name = .model_1.grd &
new_grid_name = .model_1.grd2 &
location = .model_1 &
orientation = .model_1 &
snapping_enabled = yes &
view_normal = yes &
extent = 1000,1000 &
spacing = 100,100 &
interface 81
interface grid modify
Description:
Extended Definition:
1. The new working grid can be defined with the name ‘grid_name’. The location can be at global
oriGIn or any other location which can be entered as coordinates of ‘picked-up’ from the view
window. Either you can keep the Global OriGIn, that is, 0,0,0, to set the center location of the grid
to the center of the view window or pick or click a location on the screen to set as the center of the
working grid.
The ‘new_grid_name’ replaces the name of the existing grid.
2. By orientation, select how you want to orient the grid. You can set its orientation by picking points
or by aligning it with the screen plane. Note that if you select Pick for orientation, you will also set
the location of the working grid. This orients the grid axes to the global axes.
3. By enabling the ‘snapping’, you can snap a closest grid point with the cursor. When you drag an item
with the mouse to move or resize it, the mouse position will snap to the nearest grid point.
4. The parameter ‘view normal’ always orients the grid normal to the viewer irrespective of the actual
orientation of the grid. Thus, if the grid is oriented at angle, as you change the orientation of the
object view, the grid realigns itself normal to the viewer. But if the parameter is not enabled, then the
grid will remain oriented in space as per the specified orientation.
5. The extents specifies the length of the grid in x,y directions in the model length units. The spacing
specifies the distance between the grid points in x and y directions in models length units.
6. Maximum radius specifies the radius of the outermost grid circle from the grid oriGIn and
circle_spacing specifies amount of space between each circle in the working grid. The smaller the
spacing, the more circles Adams View defines.
For radial increments, enter the number of lines radiating from the origin of the working grid. Adams
View spaces the lines equally around the working grid. The lines do not include the axes. The number
of lines (N) determines the angle increment between lines (q), as shown in the formula:
θ = 360×/N
7. You can hide the new grid triad or display it by the parameter ‘triad_visible’. The visibility of lines
and axes on the grid can be switched ON or OFF by the parameter ‘lines_visible’ and ‘axes_visible’.
The line and axes weight can be set by using the ‘line_weight’ and ‘axes_weight’ parameters. The value
range for this weight is 1 to 5. The color of the lines and axes is set by using the ‘axes_color’ and
‘line_color’ parameter. The line style can be chosen form various line style options like solid, dash and
so on.
interface 83
interface grid undisplay
8. The dot properties like size, color and visibility are set by using the parameters ‘dot_size’, ‘dot_color’
and ‘dot_visible’ parameter. The dot_size range is from 1 to 3 screen pixel.
Cautions:
The grid settings should not exceed the maximum number of points as specified by the environment variable
'MDI_MAX_GRID_POINTS'. The default maximum is 10000 points.
Format:
interface grid undisplay
grid_name = an existing grid
view_name = an existing view
Example:
interface grid undisplay &
grid_name = .model_1.grd5 &
view_name = front
Description:
Extended Definition:
1. The existing grid can be closed by this command.
Cautions:
The grid settings should not exceed the maximum number of points as specified by the environment variable
'MDI_MAX_GRID_POINTS'. The default maximum is 10000 points.
84 Adams View Commands
interface label create
Format:
interface label create
label_name = a new GI_label
location = real
height = real
width = real
enabled = boolean
help_text = string
documentation_text = string
units = int_units
horiz_resizing = int_h_resize
vert_resizing = int_v_resize
text = string
icon_file = string
justified = justified
Example:
interface label create &
label_name = .gui.dbox.lbl &
location = 0.0, 0.0 &
height = 0.8 &
width = 0.8 &
enabled = yes &
help_text = "help2text" &
documentation_text = "doc2text" &
units = relative &
horiz_resizing = attach_left &
vert_resizing = attach_top &
interface 85
interface label create
Description:
Extended Definition:
1. The preliminary parameters of the label like size and text to be displayed are set using this command.
2. The pop-up help and documentation help can be specified in appropriate columns.
3. The size of the label can be specified either in terms of number of pixels. Alternatively, the size can
also be stated as relative to the dialog box window
4. The vertical and horizontal resizing options are used to adjust the placement of the label menu on
existing dialog box. For example, attach_left; attach_top options for Horiz_resizing and Vert_resizing
will place the label on the top left corner of the dialog box. The location can also be specified from
the top left corner by adjusting the parameter ‘location’
5. The size of the label window can be specified with respect to the dialog box window size. The value
for parameter height and width should be a real number between 0.0 and 2.0, where 2.0 represents
the height of the dialog window. Therefore, a value of 1.0 will set the label field window to be one
half as high as the dialog box window.
86 Adams View Commands
interface label delete
6. The ‘text’ specifies the text string(s) that will comprise the note text. You may enter the text string(s)
for this parameter without double quote marks, if the string contains no "blanks" or special characters
such as *&^%$#@!-/><. If the text string(s) do have any of these special characters the string must be
quoted. To enter a multiline note, each line must be entered as a separate string, separated by a
comma. An Example: note create note=.front.n1 screen_coords=0,0 & TEXT="This is a","multi line
note" size = .12
This example command would produce a two line note located at the center of the view named
'front', and at a height of .12 units.
7. By default ‘label’ is left justified, but it can be adjusted center or right by parameter ‘JUSTIFIED’
8. The parameter ‘iconic_file’ specifies the name of the file that contains the icon definition for use on
an iconic menu.
Format:
interface label delete
label_name = an existing GI_label
Example:
interface label delete &
label_name = .gui.dobx.lbl
Description:
Extended Definition:
The label can be deleted by choosing the appropriate ‘label_name’ while the ‘delete’ command.
Specification of a label for an axis is displayed near the axis, its placement depending on where the axis is
placed. The label can be of unlimited length, but may not all fit on the plot if it's very long. If the string
contains spaces, it must be enclosed in quotation marks.
Format:
interface label display
label_name = an existing GI_label
Example:
interface label display &
label_name = .gui.dobx.lbl
Description:
Extended Definition:
The label can be displayed or closed using the ‘display’ and ‘undisplay’ commands respectively as the need
arises.
Format:
interface label modify
label_name = an existing GI_label
new_label_name = a new GI_lable
location = real
height = real
width = real
enabled = boolean
help_text = string
88 Adams View Commands
interface label modify
Example:
interface label modify &
label_name = .gui.dbox.lbl &
new_label_name = .gui.dbox.lbl &
location = 0.0, 0.0 &
height = 0.8 &
width = 0.8 &
enabled = yes &
help_text = "help2text" &
documentation_text = "doc2text" &
units = relative &
horiz_resizing = attach_left &
vert_resizing = attach_top &
text = "this_is_label" &
justified = center
Description:
Extended Definition:
1. The preliminary parameters of the label like size and text to be displayed are set using this command.
The name of the label can also be change by adding parameter ‘new_label_name’.
2. The pop-up help and documentation help can be specified in appropriate columns.
3. The size of the label can be specified either in terms of number of pixels. Alternatively, the size can
also be stated as relative to the dialog box window
4. The vertical and horizontal resizing options are used to adjust the placement of the label menu on
existing dialog box. For example, attach_left; attach_top options for Horiz_resizing and Vert_resizing
will place the label on the top left corner of the dialog box. The location can also be specified from
the top left corner by adjusting the parameter ‘location’
5. The size of the label window can be specified with respect to the dialog box window size. The value
for parameter height and width should be a real number between 0.0 and 2.0, where 2.0 represents
the height of the dialog window. Therefore, a value of 1.0 will set the label field window to be one
half as high as the dialog box window.
6. The ‘text’ specifies the text string(s) that will comprise the note text. You may enter the text string(s)
for this parameter without double quote marks, if the string contains no "blanks" or special characters
such as *&^%$#@!-/><. If the text string(s) do have any of these special characters the string must be
quoted. To enter a multiline note, each line must be entered as a separate string, separated by a
comma. An Example: note create note=.front.n1 screen_coords=0,0 & TEXT="This is a","multi line
note" size = .12
This example command would produce a two line note located at the center of the view named
'front', and at a height of .12 units.
7. By default ‘label’ is left justified, but it can be adjusted center or right by parameter ‘JUSTIFIED’
90 Adams View Commands
interface label set
8. The parameter ‘iconic_file’ specifies the name of the file that contains the icon definition for use on
an iconic menu.
Format:
interface label set
label_name = an existing GI_label
color = an existing color
rgb_color = real
Example:
interface label set &
label_name = .gui.dbox.lbl &
rgb_color = 0.3,0.4,0.1
Description:
Extended Definition:
1. The label appearance can be changed by choosing label color as either available colors or entering the
color code as real numbers, that is, rgb_color.
The ‘color’ specifies the COLOR of a graphic object. A graphic object is an object that may be drawn
on the screen by Adams View, these include curves, parts, markers, arcs, outlines, boxes, circles,
cylinders, frustums, spring damper graphics, force graphics, and plot curves and symbols. When the
COLOR of a part is specified, all graphic objects fixed to that part are drawn with the COLOR of the
part. Adams View supports the following COLOR: black, white, red, green, blue, cyan, magenta, and
yellow.
interface 91
interface label undisplay
Note: If you choose the COLOR of an entity to be drawn in the view background color (typically
white or black...) it may not show up. See help for hardcopy also.
Format:
interface label undisplay
label_name = an existing GI_label
Example:
interface label undisplay &
label_name = .gui.dobx.lbl
Description:
Extended Definition:
The label can be displayed or closed using the ‘display’ and ‘undisplay’ commands respectively as the need
arises.
Adams view menus are data base objects. You create, modify, and delete them as you would any other objects
in Adams view. With your Adams view distribution, you received a predefined set of menus and panels that
closely match the Adams view command structure. You may use them as they are, or modify them to suit
your own needs and tastes.
The main menu is named '.gui.root'. The names of other menus are derived from the keywords they
represent. The fixed menu, at the bottom of the display, is a special menu named '.gui.fixed_menu'. You may
add, modify, or delete items from the fixed menu, but you may not delete the menu itself. To get the name
of any particular menu, type on the command line (while the desired menu is displayed): "list_info pick
<CR>". Then pick the desired menu and then it's full definition, including the name, will be displayed in
the information window.
Menus work very simply. Each menu item has a command string associated with it. When you select an item
by picking on it, Adams view executes the command associated with the item. Many times, this command
will display a new menu next to the current one, allowing you to work your way down the command
structure. The final menu item will display the panel associated with the command you are entering, if it has
parameters, or issue the command immediately, if it has no parameters.
This command is used to create a menu on the menubar.
Format:
interface menu create
menu_name = a new GI_menu
enabled = boolean
help_text = string
documentation_text = string
units = int_units
horiz_resizing = int_h_resize
vert_resizing = int_v_resize
location = real
height = real
width = real
label = string
Example:
interface menu create &
menu_name = .gui.win.mnbr1.zoom &
enabled = yes &
help_text = "text2help" &
documentation_text = "text2doc" &
interface 93
interface menu create
Description:
Extended Definition:
1. The ‘menu_name’ specifies the name of an existing menu which you want to modify. You identify a
menu by typing its name. If a menu is available by default, you may identify it by entering its name
only. If it is not, you must enter its full name. To identify a menu under a different library, for
instance, you may need to enter the library name as well. For example, you may specify menu 'menu1'
from library 'gui', by entering ".gui.menu1". If you type a "?", Adams View will list the menus
available by default.
2. A menubar contains various menus. Each of these menus may be associated with different commands.
The menus on this menubar can be created by this command, adding commands to the menus is done
by ‘interface menubar build’ command. The menubar can be displayed on the main_window,
popup_window, ppt_main_window, or a user defined custom window.
94 Adams View Commands
interface menu delete
3. The menu is enabled by the parameter ‘enabled’. The popup_help_text and documentation is
specified. The size of the menu can be specified either in terms of number of pixels. Alternatively, the
size can also be stated as relative to the Adams window. The vertical and horizontal resizing options
are used to adjust the placement of the menu on existing window. For example, attach_left;
attach_top options for Horiz_resizing and Vert_resizing will place the window on the top left corner
of the window. The location can also be specified from the top left corner by adjusting the parameter
‘location’
4. The ‘label’ will appear on menu created on the menubar.
Format:
interface menu delete
menu_name = an exisitng GI_menu
interface 95
interface menu display
Example:
interface menu delete &
menu_name = zoom
Description:
Extended Definition:
1. An existing menu can be deleted from the menubar by using this command.
2. All the menus need not be displayed every time. The menus can be selectively displayed and close by
using the ‘interface menu display’ and ‘interface menu undisplay’ commands respectively by
specifying the ‘menu_name’.
Format:
interface menu display
menu_name = an exisitng GI_menu
Example:
interface menu display &
menu_name = zoom
Description:
Extended Definition:
1. All the menus need not be displayed everytime. The menus can be selectively displayed and close by
using the ‘interface menu display’ and ‘interface menu undisplay’ commands respectively by
specifying the ‘menu_name’.
structure. The final menu item will display the panel associated with the command you are entering, if it has
parameters, or issue the command immediately, if it has no parameters.
This command is used to modify a menu on the menubar.
Format:
interface menu modify
menu_name = An Existing GI_menu
new_menu_name = A New GI_menu
enabled = Boolean
help_text = String
documentation_text = String
units = Int_units
horiz_resizing = Int_h_resize
vert_resizing = Int_v_resize
location = Real
height = Real
width = Real
label = String
Example:
interface menu modify &
menu_name = .gui.win.mnbr1.zoom &
new_menu_name = .gui.win.mnbr1.zoom1 &
enabled = yes &
help_text = "text2help" &
documentation_text = "text2doc" &
units = relative &
horiz_resizing = attach_left &
vert_resizing = attach_top &
location = 0.0, 0.0 &
height = 0.3 &
width = 0.3 &
label = "zoom control"
98 Adams View Commands
interface menu modify
Description:
Extended Definition:
1. The ‘menu_name’ specifies the name of an existing menu which you want to modify. You identify a
menu by typing its name. If a menu is available by default, you may identify it by entering its name
only. If it is not, you must enter its full name. To identify a menu under a different library, for
instance, you may need to enter the library name as well. For example, you may specify menu 'menu1'
from library 'gui', by entering ".gui.menu1". If you type a "?", Adams View will list the menus
available by default.
2. A menubar contains various menus. Each of these menus may be associated with different commands.
The menus on this menubar can be created by this command, adding commands to the menus is done
by ‘interface menubar build’ command. The menubar can be displayed on the main_window,
popup_window, ppt_main_window, or a user defined custom window.
3. The ‘new_menu_name’ will specify a new name for a menu. The new name must be unique, since
you are not allowed to have two menus with the same name.
4. The menu is enabled by the parameter ‘enabled’. The popup_help_text and documentation is
specified. The size of the menu can be specified either in terms of number of pixels. Alternatively, the
size can also be stated as relative to the Adams window. The vertical and horizontal resizing options
are used to adjust the placement of the menu on existing window. For example, attach_left;
attach_top options for Horiz_resizing and Vert_resizing will place the window on the top left corner
of the window. The location can also be specified from the top left corner by adjusting the parameter
‘location’
interface 99
interface menu read
Format:
interface menu read
menu_name = an exisitng GI_menu
file_name = string
field_name = an existing GI_field
Example:
interface menu read &
menu_name = .gui.win.mnbr1.zoom.vwc_pop_up &
file_name = "D:/naresh/20 sept/z1.mnu"
100 Adams View Commands
interface menu undisplay
Description:
Extended Definition:
1. The commands can be added to a menu by the ‘interface menu read’ command. The command can
be added by reading a .mnu file already created or accessing an existing field.
2. The .mnu consists of a commands which can be written by ‘interface menu write’ and accessed by
‘interface menu read’.
for example, the zoom operation will need the following command set which is written to a .menu file
-----------------------------
NAME=vwc_pop_up
BUTTON2 Zoom In/Out <z>
HELP=Dynamically zoom the view
CMD=interface mode repeat=push mode=dyn_view_zoom
---------------------------
The above mentioned contents from a .mnu file can be read by this command, which will display the menu
zoom-in and zoom-out buttons against the already created zoom-menu.
of any particular menu, type on the command line (while the desired menu is displayed): "list_info pick
<CR>". Then pick the desired menu and then it's full definition, including the name, will be displayed in
the information window.
Menus work very simply. Each menu item has a command string associated with it. When you select an item
by picking on it, Adams view executes the command associated with the item. Many times, this command
will display a new menu next to the current one, allowing you to work your way down the command
structure. The final menu item will display the panel associated with the command you are entering, if it has
parameters, or issue the command immediately, if it has no parameters.
This command is used to close an existing menu on the menubar.
Format:
interface menu undisplay
menu_name = an exisitng GI_menu
Example:
interface menu undisplay &
menu_name = zoom
Description:
Extended Definition:
1. All the menus need not be displayed everytime. The menus can be selectively displayed and close by
using the ‘interface menu display’ and ‘interface menu undisplay’ commands respectively by
specifying the ‘menu_name’.
closely match the Adams view command structure. You may use them as they are, or modify them to suit
your own needs and tastes.
The main menu is named '.gui.root'. The names of other menus are derived from the keywords they
represent. The fixed menu, at the bottom of the display, is a special menu named '.gui.fixed_menu'. You may
add, modify, or delete items from the fixed menu, but you may not delete the menu itself. To get the name
of any particular menu, type on the command line (while the desired menu is displayed): "list_info pick
<CR>". Then pick the desired menu and then it's full definition, including the name, will be displayed in
the information window.
Menus work very simply. Each menu item has a command string associated with it. When you select an item
by picking on it, Adams view executes the command associated with the item. Many times, this command
will display a new menu next to the current one, allowing you to work your way down the command
structure. The final menu item will display the panel associated with the command you are entering, if it has
parameters, or issue the command immediately, if it has no parameters.
This command is used to write the commands associated with a menu to a file.
Format:
interface menu write
menu_name = An Exisitng GI_menu
file_name = String
field_name = An Existing GI_field
Example:
interface menu write &
menu_name = .gui.win.mnbr1.zoom.vwc_pop_up &
file_name = "D:/naresh/20 sept/z1.mnu"
Description:
Extended Definition:
1. The commands associated with a menu can be written to a .mnu file by ‘interface menu write’
command. This file can further be accessed to build another menu. Also an existing interface field can
be written by using ‘interface menu write’ command.
interface 103
interface menubar build
2. The .mnu consists of a commands which can be written by ‘interface menu write’.
for example, the zoom operation tab on the menu has the following commands set which is written
to a .mnu file
--------------------
NAME=vwc_pop_up
BUTTON2 Zoom In/Out <z>
HELP=Dynamically zoom the view
CMD=interface mode repeat=push mode=dyn_view_zoom
---------------------------
The above mentioned contents from a .mnu file can be read by ‘interface menu read’ command, which will
display the menu zoom-in and zoom-out buttons against the already created zoom-menu.
Format:
interface menubar build
menubar_name = An Existing GI_menubar
Example:
interface menubar build &
menubar_name = mnbr1
Description:
Extended Definition:
1. The command ‘interface menubar build’ will ask for the ‘menubar name’. Enter the name of an
existing menubar created by ‘create’ command.
104 Adams View Commands
interface menubar create
2. A ‘menubar builder’ will open up. It will have two object tabs namely, 1) Menu bar and 2) Edit. The
‘Edit’ tab can be used to edit the text contents of the menubar window. The ‘Menu bar’ tab has
various command options namely, 1) Load, 2) Apply, 3) Reload, 4) Import text, 5) Export text and
6) Exit.
3. Add the commands to the text window of the Menu-bar, and click ‘Load’ tab which will open a
database navigator to prompt for a GUI where the menubar should be loaded. Select the proper GUI
to load the menubar. If you do any further changes to the text in menubar-text-window, click reload
to update the changes. Lastly, click ‘Apply’ to display the menubar on GUI.
As an Example, to create a zoom menu on menubar write the following into the menubar-text-
window
MENU1= zoom control
NAME=vwc_pop_up__1
BUTTON2 Zoom In/Out <z>
HELP=Dynamically zoom the view
CMD=interface mode repeat=push mode=dyn_view_zoom
-------------------------------------------------------
After writing the text into menubar-text-window, select ‘Load’ from the main menu. It will prompt
the GUI namely, 1) main_window, 2) popup_window, 3) ppt_main_window, and 4) user defined
custom window (if already created).
Select the option 4, to display the menubar on a user defined custom window. It will display the zoom
tab on the menubar on the custom window.
By clicking this tab to perform zooming on the Adams View window.
Format:
interface menubar create
menubar_name = a new GI_menubar
enabled = boolean
help_text = string
documentation_text = string
units = int_units
interface 105
interface menubar create
Example:
interface menubar create &
menubar_name = .gui.win.mbar &
enabled = yes &
help_text = "text2help" &
documentation_text = "text2doc" &
units = relative &
horiz_resizing = attach_left &
vert_resizing = attach_top
Description:
Extended Definition:
1. A menubar contains various menus. Each of these menus may be associated with different commands.
Such a menubar can be created by this command. adding menus and commands to the buttons is
done by ‘interface menubar build’ command. The menubar can be displayed on the main_window,
popup_window, ppt_main_window, or a user defined custom window.
2. The menubar is enabled by the parameter ‘enabled’. The popup_help_text and documentation is
specified. The size of the menubar can be specified either in terms of number of pixels. Alternatively,
the size can also be stated as relative to the Adams window.
106 Adams View Commands
interface menubar delete
3. The vertical and horizontal resizing options are used to adjust the placement of the menu on existing
window. For example, attach_left; attach_top options for Horiz_resizing and Vert_resizing will place
the menu on the top left corner of the window box. The location can also be specified from the top
left corner by adjusting the parameter ‘location’
Format:
interface menubar delete
menubar_name = an existing GI_menubar
Example:
interface menubar delete &
menubar_name = mnbr1
Description:
Extended Definition:
1. The existing menubar can be deleted by using this command.
Format:
interface menubar display
menubar_name = an existing GI_menubar
Example:
interface menubar display &
menubar_name = mnbr1
Description:
Extended Definition:
1. The existing menubar can be displayed or closed as per the requirement of command menus on the
menubar, by the command ‘interface menubar display’ and ‘interface menubar undisplay’
respectively.
Format:
interface menubar modify
menubar_name = an existing GI_menubar
new_menubar_name = a new GI_menubar
enabled = boolean
help_text = string
documentation_text = string
units = int_units
horiz_resizing = int_h_resize
vert_resizing = int_v_resize
108 Adams View Commands
interface menubar modify
Example:
interface menubar modify &
menubar_name = .gui.win.mnbr &
new_menubar_name = mnbr1 &
enabled = yes &
help_text = "text2help" &
documentation_text = "text2doc" &
units = relative &
horiz_resizing = attach_left &
vert_resizing = attach_top
Description:
Extended Definition:
1. The ‘new_menubar_name’ will replace the existing menubar with the new name.
2. A menubar contains various menus. Each of these menus may be associated with different commands.
Such a menubar can be created by this command. adding menus and commands to the menus is done
by ‘interface menubar build’ command. The menubar can be displayed on the main_window,
popup_window, ppt_main_window, or a user defined custom window.
interface 109
interface menubar read
3. The menubar is enabled by the parameter ‘enabled’. The popup_help_text and documentation is
specified. The size of the menubar can be specified either in terms of number of pixels. Alternatively,
the size can also be stated as relative to the Adams window. The vertical and horizontal resizing
options are used to adjust the placement of the menubar on existing window. For example,
attach_left; attach_top options for Horiz_resizing and Vert_resizing will place the menu on the top
left corner of the window box. The location can also be specified from the top left corner by adjusting
the parameter ‘location’
Format:
interface menubar read
menubar_name = an existing GI_menubar
file_name = string
field_name = an existing GI_field
Example:
interface menubar read &
menubar_name = .gui.win.mnbr1 &
file_name = "C:/menubar_data.mnu"
Description:
Extended Definition:
1. The menubar commands data for any menubar are written to a file with extension .mnu. This file can
be accessed while using the ‘menubar read’ command to create a new menubar with same commands.
110 Adams View Commands
interface menubar undisplay
2. Alternatively, the same file can be written by using the ‘import text’ tab from the ‘menubar builder’.
As an Example, to create a zoom menu on menubar, following text appears in the menubar-text-
window.
------------------------------------------------------
MENU1 zoom control
NAME=vwc_pop_up__1
BUTTON2 Zoom In/Out <z>
HELP=Dynamically zoom the view
CMD=interface mode repeat=push mode=dyn_view_zoom
-------------------------------------------------------
which can be read from of a file with extension .mnu writtenm previously. This file can be read
directly to create similar menubar on a window.
3. Similarly, a individual ‘field’ previously written can be accessed by selecting the parameter
‘field_name’, which will read data related to a field.
Format:
interface menubar undisplay
menubar_name = an existing GI_menubar
Example:
interface menubar undisplay &
menubar_name = mnbr1
Description:
Extended Definition:
1. The existing menubar can be displayed or closed as per the requirement of command menus on the
menubar, by the command ‘interface menubar display’ and ‘interface menubar undisplay’
respectively.
interface 111
interface menubar write
Format:
interface menubar write
menubar_name = an existing GI_menubar
file_name = string
field_name = an existing GI_field
Example:
interface menubar write &
menubar_name = .gui.win.mnbr1 &
file_name = "C:/menubar_data.mnu"
Description:
Extended Definition:
1. The menubar commands data for any menubar can be written to a file with extension .mnu. This file
can be accessed while using the ‘menubar read’ command to create a new menubar with same
commands.
2. Alternatively, the same file can be written by using the ‘export text’ tab from the ‘menubar builder’
As an Example, to create a zoom menu on menubar, following text appears in the menubar-text-
window
MENU1 zoom control
NAME=vwc_pop_up__1
BUTTON2 Zoom In/Out <z>
HELP=Dynamically zoom the view
CMD=interface mode repeat=push mode=dyn_view_zoom
which can be written in the form of a file with extension .mnu. This file can be read directly to create
similar menubar on a window.
112 Adams View Commands
interface message
interface message
Allows the setting the mode of display in plot panel in the plot window
Allows you to set the messages displayed in the message window and clear the messages from the window. By
default, the message window only displays error and fatal messages and messages from commands that you
execute from the user interface (for example, menus and dialog boxes). You can also display messages that you
execute from the Command Window, Command Navigator, and command files. In addition, you can set the
severity level of the messages displayed, from informational to fatal messages.
Format:
interface message
graphic_window_level = msg_gui_level
command_window_level = msg_gui_level
start_up_level = msg_gui_level
threshold_severity = severity
message = string
enabled = boolean
Example:
interface message &
graphic_window_level = brief &
command_window_level = brief &
startup_level = brief
Description:
Extended Definition:
1. By default, the Message window only displays error and fatal messages and messages from commands
that you execute from the user interface (for example, menus and dialog boxes). You can also display
messages that you execute from the command window, Command navigator, and command files. In
addition, you can set the severity level of the messages displayed, from informational to fatal messages.
2. You can set the message level displayed for ‘graphics_window’, ‘command_window’ and at the
‘start_up’ as either of the ‘quiet’, ‘brief’ or ‘verbose’. Thus, if the parameter is set to ‘quiet’, no message
will appear, and if the parameter is set to ‘verbose’ a detail message will appear.
3. On the other hand, you can the threshold severity or severity to either of the ‘information’, ‘warning’,
‘error’ or ‘fault’. Thus the minimum level for displaying a message will be occurrence of error if the
level is set to ‘error’. Elsewise, you can set a message string by the parameter ‘message’. The limit set
to information will display messages about what is occurring during a command. Setting the message
window to display these types of messages helps you understand what is happening in Adams View
but requires no action from you. Warning message will display messages that warn you that
something unusual occurred but the operation can continue. You may want to fix or change
something to complete the operation without warnings. The error display messages that indicate that
the operation cannot be executed. You need to fix or change something to complete the operation.
The fatal error or fault displays messages that indicate that a programming error occurred. You should
report the message to MSC's Technical Support staff.
Format:
interface model_browser undisplay
Example:
interface model_browser undisplay
Extended Definition:
Undisplays the model browser.
Format:
interface model_browser display
Example:
interface model_browser display
114 Adams View Commands
interface model_browser refresh
Extended Definition:
Displays the model browser in the last displayed state (docked, undocked).
Format:
interface model_browser refresh
Example:
interface model_browser refresh
Extended Definition:
Refreshes the model browser.
Format:
interface model_browser undock
Example:
interface model_browser undock
Extended Definition:
Undocks the model browser from its docking area.
Format:
interface model_browser dock
position = left or right
interface 115
interface model_browser mbfilter create
Example:
interface model browser dock &
position = left
Description:
Extended Definition:
Docks the model browser to the specified position (left or right). Defaults to left if the position is un-
specified.
Format:
interface model_browser mbfilter create
mbfilter_name = name of the filter
objects_in_mbfilter = object list
dynamic = static or dyanamic filter
name_filters = list of name filters
type_filters = list of type filters
state_filters = list of object state filters
Example:
interface model_browser mbfilter create &
mbfilter_name = Filter1 &
name_filters = "*" &
type_filters = modeling &
state_filters = active &
dynamic = false
116 Adams View Commands
interface object_table copy_object
Description:
Extended Definition:
Creates a model browser filter object in the database with the specified parameters.
Format:
interface object_table copy_object
object_table_name = a exisitng GI_otable
use_row_selected = true_only
row_index = integer
new_object_name = string
Example:
interface object_table copy_object &
object_table_name = .gui.obj.objt &
row_index = 2 &
new_object_name = "new_object"
interface 117
interface object_table create
Description:
Extended Definition:
‘Row index’ specifies the row position of each of the N entries in the VALUES parameter for a SPARSE
MATRIX. Therefore, for each non-zero value in the SPARSE MATRIX each entry for this parameter defines
to the position in the matrix of the corresponding entry in the VALUES parameter. For example, the third
value entered for the ROW_INDEX parameter defines what matrix row the third value entered for the
VALUES parameter is located on.
The object copied can be accessed through the Adams view window, Similarly, the object copied can be
displayed in the object_table by modifying the ‘object_table’ and adding the copied object name to the
parameter ‘displayed entities’ or selecting to ‘display existing all’.
Format:
interface object_table create
object_table_name = A New GI_otable
enabled = Boolean
help_text = String
documentation_text = String
units = Int_units
horiz_resizing = Int_h_resize
vert_resizing = Int_v_resize
location = Real
height = Real
width = Real
118 Adams View Commands
interface object_table create
Example:
interface object_table create &
object_table_name = .gui.obj.otb &
enabled = yes &
help_text = "text2help" &
documentation_text = "text4doc" &
units = relative &
horiz_resizing = attach_left &
vert_resizing = attach_top &
location = 0.0, 0.0 &
height = 0.6 &
width = 0.6 &
commands = "interface coord_window display=toggle" &
cell_select_commands = "int dialog dis dialog=.gui.moag" &
entity_type = link &
fields_for_columns = i_marker,j_marker,depth &
column_widths = 5 &
displayed_entities = LINK_1,LINK_2,BOX_3,BOX_6,LINK_4,LINK_5,BOX_3,LINK_4 &
parent_entity = .model_1 &
sorting_column_index = 1 &
type_of_sort = alphabetic &
interface 119
interface object_table create
Description:
Extended Definition:
1. The preliminary parameters of the object_table like size, associated commands and editing capability
are set using this command. The object_table is then prepared by choosing the types of object,
filtering function and the parent type. The object_table with specified name is created on the dialog
box If parameter ‘Enabled’ is set to ON, the data table is be preactivated.
2. The pop-up help and documentation help can be specified in appropriate columns.
3. The size of the object_table can be specified either in terms of number of pixels. Alternatively, the size
can also be stated as relative to the Adams window.
4. The vertical and horizontal resizing options are used to adjust the placement of the object_table menu
on existing dialog box. For example, attach_left; attach_top options for Horiz_resizing and
Vert_resizing will place the object_table on the top left corner of the dialog box. The location can also
be specified from the top left corner by adjusting the parameter ‘location’.
5. The size of the object_table window can be specified with respect to the Adams window size. The
value for parameter height and width should be a real number between 0.0 and 2.0, where 2.0
represents the height of the dialog window. Therefore, a value of 1.0 will set the object_table field
window to be one half as high as the Adams View window.
6. The parameter ‘command’ specifies the name of the command to be executed.
7. ‘Cell select command’ gets executed whenever any cell is selected for editing.
8. The ‘entity_type’ is the type of object to be listed in the table. The object types can be link, box, joint,
spline and so on. If the object type is ‘link’ and the ‘parent_type’ is ‘Part_1’, then the links associated
with the Part_1 will be listed.
9. ‘Fields for columns’ are the parameters of a an object type to be selected for listing in the object_table.
For example, the ‘field for columns’ has three parameters namely, 1) mass, 2) center_marker, and 3)
inertia_marker as fields under a model ‘Model_1’ then mass, center_marker, and inertia_marker for
all the parts under ‘Model_1’ will be enlisted in the object_table.
10. The column width for field of the object_table can be specified in terms of units like mm or inches.
If not specified, it will take the default unit for the width values entered.
11. ‘Filter_function’ is used to limit the scope of the search, if you want, to include all objects beneath a
particular object in the database hierarchy by entering the name of the object. For example, enter
.model_1 to display all objects under your entire model or enter .model_1.PART_3 to display objects
belonGIng only to PART_3.
12. ‘Displayed entities’ can be limited to a few by choosing the entities of interest. Otherwise all the
entities for a particular filed will be listed in the object_table. By default the ‘displayed entities’ are
‘Existing all’.
interface 121
interface object_table delete
13. The displayed object can further be limited a parent part by choosing ‘parent type’. For example, the
‘field for column’ has the STRING ‘joints’ with ‘parent type’ as PART_1, all the joint applied to the
PART_1 will be listed in the object_table.
14. All the data listed in the object_table can be sorted either ‘alphabetically’ or ‘numerically’ as required
by choosing the parameter ‘type_of_sort’. Moreover, the all the data will be sorted in accordance with
cell contents of the column marked by ‘sorting column index’. The cell contents of the other affected
columns will be repositioned according to the sorted cell contents of the column marked by ‘sorting
column’. The ‘ground reference frame’ is marked if the BOOLEAN option for ‘ground reference
frame’ is ‘yes’.
15. object_table can be edited after initializing it if the BOOLEAN option is ‘yes’ for the parameter
‘editable’
Format:
interface object_table delete
object_table_name = A Exisitng GI_otable
Example:
interface object_table delete &
object_table_name = .gui.obj.otb
Description:
Extended Definition:
1. The object_table is deleted by specifying the appropriate ‘object_table name’ in the ‘delete’ command
The object_table is used to list one or more types of objects in a modeling environment. For example, a type
of entities like link, center_marker or properties like mass, inertia can be selectively listed and displayed using
this command. The objects listed can be edited, or copied as required.
The object_table may not be displayed always, it can be displayed as the need arises by this command.
Format:
interface object_table display
object_table_name = a exisitng GI_otable
Example:
interface object_table display &
object_table_name = .gui.obj.otb
Description:
Extended Definition:
1. The object_table is displayed by specifying the appropriate ‘object_table name’ in the ‘display’
command
Format:
interface object_table execute
object_table_name = a exisitng GI_otable
Example:
interface object_table execute &
object_table_name = .gui.obj.otb
interface 123
interface object_table modify
Description:
Extended Definition:
1. The object_table has ‘command’ as optional parameter. If any command is specified in the field, it
will be executed when the execute command is provided with the appropriate ‘object_table name’.
Tips:
The ‘cell select command gets executed whenever we switch from one cell to another
Format:
interface object_table modify
object_table_name = a exisitng GI_otable
new_object_table_name = a new GI_otable
enabled = boolean
help_text = string
documentation_text = string
units = int_units
horiz_resizing = int_h_resize
vert_resizing = int_v_resize
location = real
height = real
width = real
commands = string
cell_select_commands = string
entity_type = ent
124 Adams View Commands
interface object_table modify
Example:
interface object_table modify &
object_table_name = .gui.obj.otb &
new_object_table_name = .gui.obj.objt &
enabled = yes &
help_text = "text2help" &
documentation_text = "text4doc" &
units = relative &
horiz_resizing = attach_left &
vert_resizing = attach_top &
location = 0.4, 0.4 &
height = 0.6 &
width = 0.6 &
commands = "interface coord_window display=toggle" &
cell_select_commands = "int dialog dis dialog=.gui.moag" &
entity_type = link &
fields_for_columns = i_marker,j_marker,depth &
column_widths = 5 &
displayed_entities = LINK_1,LINK_2,BOX_3,BOX_6,LINK_4,LINK_5,BOX_3, LINK_4 &
parent_entity = .model_1 &
sorting_column_index = 1 &
type_of_sort = alphabetic &
ground_reference_frame = no &
editable = yes
interface 125
interface object_table modify
Description:
Extended Definition:
1. The preliminary parameters of the object_table like size, associated commands and editing capability
are set using this command. The object_table is then prepared by choosing the types of object,
filtering function and the parent type. If the object_table is to be renamed, then fill the parameter
‘new_object_table_name’ with the new suggested name. The object_table with specified name is
created on the dialog box If parameter ‘Enabled’ is set to ON, the data table is be preactivated.
2. The pop-up help and documentation help can be specified in appropriate columns.
3. The size of the object_table can be specified either in terms of number of pixels. Alternatively, the size
can also be stated as relative to the Adams window.
4. The vertical and horizontal resizing options are used to adjust the placement of the object_table menu
on existing dialog box. For example, attach_left, attach_top options for Horiz_resizing and
Vert_resizing will place the object_table on the top left corner of the dialog box. The location can also
be specified from the top left corner by adjusting the parameter ‘location’.
5. The size of the object_table window can be specified with respect to the Adams window size. The
value for parameter height and width should be a real number between 0.0 and 2.0, where 2.0
represents the height of the dialog window. Therefore, a value of 1.0 will set the object_table field
window to be one half as high as the Adams View window.
6. The parameter ‘command’ specifies the name of the command to be executed.
7. ‘Cell select command’ gets executed whenever any cell is selected for editing.
8. The ‘entity_type’ is the type of object to be listed in the table. The object types can be link, box, joint,
spline and so on. If the object type is ‘link’ and the ‘parent_type’ is ‘Part_1’, then the links associated
with the Part_1 will be listed.
9. ‘Fields for columns’ are the parameters of a an object type to be selected for listing in the object_table.
For example, the ‘field for columns’ has three parameters namely, 1) mass, 2) center_marker, and 3)
inertia_marker as fields under a model ‘Model_1’ then mass, center_marker, and inertia_marker for
all the parts under ‘Model_1’ will be enlisted in the object_table.
10. The column width for field of the object_table can be specified in terms of units like mm or inches.
If not specified, it will take the default unit for the width values entered.
11. ‘Filter_function’ is used to limit the scope of the search, if you want, to include all objects beneath a
particular object in the database hierarchy by entering the name of the object. For example, enter
.model_1 to display all objects under your entire model or enter .model_1.PART_3 to display objects
belonGIng only to PART_3.
12. ‘Displayed entities’ can be limited to a few by choosing the entities of interest. Otherwise all the
entities for a particular filed will be listed in the object_table. By default the ‘displayed entities’ are
‘Existing all’.
13. The displayed object can further be limited a parent part by choosing ‘parent type’. For example, the
‘field for column’ has the STRING ‘joints’ with ‘parent type’ as PART_1, all the joint applied to the
PART_1 will be listed in the object_table.
interface 127
interface object_table set cell
14. All the data listed in the object_table can be sorted either ‘alphabetically’ or ‘numerically’ as required
by choosing the parameter ‘type_of_sort’. Moreover, the all the data will be sorted in accordance with
cell contents of the column marked by ‘sorting column index’. The cell contents of the other affected
columns will be repositioned according to the sorted cell contents of the column marked by ‘sorting
column’. The ‘ground reference frame’ is marked if the BOOLEAN option for ‘ground reference
frame’ is ‘yes’.
15. object_table can be edited after initializing it if the BOOLEAN option is ‘yes’ for the parameter
‘editable’
Format:
interface object_table set cell
object_table_name = A Exisitng GI_otable
use_cell_selected= True_only
row_range= Integer
use_row_selected = True_only
object_rows = An Existing Entity
use_column_selected= True_only
column_range= Integer
field_name_of_column = String
string = String
action = Col_action
Example:
interface object_table set cell &
object_table_name = .gui.obj.objt &
row_range = 4,5 &
column_range = 1,1 &
strings = stationary &
action = replace
128 Adams View Commands
interface object_table set column
Description:
Extended Definition:
1. The cells to be altered are initially addressed by the ‘object_table name’. Next, the exact location of
the cells can be specified by various choices like, ‘use_cell_selected’, ‘row_range’, ‘use_row_selected’,
‘object rows’, ‘use_column_selected’, ‘column range’, and ‘field_name_of_ columns’.
2. The single of multiple cells to be altered can be directly selected with the choice ‘use_cell_selected’.
3. All the cells in a column or a row can be directly selected by choosing the ‘use_column_selected’ and
‘use_row_selected’ parameters.
4. Specifying ‘row range’ and ‘column range’ allows to modify the contents of multiple cells. For
example, row range = 1,2 and column range = 3 will alter the cells (1,3) and (2,3).
5. Alternatively, the row or a column can be selected by specifying the name of the ‘object name’ or the
‘field name for the column’. For example, to rename ‘i_marker’ of the ‘part_3’, the ‘object_rows’ =
part_3 and the ‘field_name_for_column’ = i_marker.
6. The parameter ‘string’ specifies the new contents of the respective cells. The mode of insertion of the
new contents depends on the choice ‘append’, ‘prefix’ or ‘replace’ denoted by the parameter ‘action’
The column properties of the object_table can be edited using this command.
Format:
interface object_table set column
object_table_name = A Exisitng GI_otable
column_width = Integer
use_column_selected = True_only
column_range = Integer
field_name_of_column = String
string = String
action = Col_action
Example:
interface object_table set column &
object_table_name = .gui.obj.objt &
column_width = 5 &
column_range = 1,2 &
strings = new_str &
action = replace
Description:
Extended Definition:
1. The cells to be altered are initially addressed by the ‘object_table name’. Next, the columns to be
altered are marked by various choices like, ‘use_column_selected’, ‘column_range, and
‘field_name_of_ columns’.
2. The width of the columns can be changed by entering a new value of ‘column_width’. The column
width can be specified in units like mm or inches. If not specified, the unit for the parameter field will
be the default length unit.
3. All the cells in a column are selected with the choice ‘use_column_selected’
4. Specifying ‘column range’ allows to modify the contents of multiple cells. For example, column range
= 1,2 will change all the cells in column 1,2.
Alternatively, a column can be selected by specifying the ‘field name for the column’. For example, to
rename cells in column ‘i_marker’ (which is field_name_of_column) the ‘field_name_for_column’ =
i_marker.
The parameter ‘string’ specifies the new contents of the respective cells. The mode of insertion of the
new contents depends on the choices like ‘append’, ‘prefix’ or ‘replace’ denoted by the parameter
‘action’
Format:
interface object_table set row
object_table_name = A Exisitng GI_otable
use_row_selected= True_only
row_range= Integer
object_rows= An Existing Entity
new_row_entity = An Existing Entity
row_action = Row_action
strings = String
interface 131
interface object_table set row
Example:
interface object_table set row &
object_table_name = .gui.obj.objt &
row_range = .model_1.PART_3.LINK_2 &
new_row_entity = .model_1.PART_2.LINK_1 &
row_action = replace
Description:
Extended Definition:
1. The cells to be altered are initially addressed by the ‘object_table name’. Next, the rows to be altered
are marked by various choices like, ‘use_row_selected’, ‘row_range’, and ‘object_rows’.
2. Specifying ‘row range’ allows to modify the contents of multiple cells in a row. For example, row range
= 1,2 will change all the cells in rows 1,2.
3. Alternatively, the row can be marked by the name of the ‘object’ contained within the row.
4. The row can be altered in two ways, namely, 1) ‘string action’ and 2) ‘object_action’.
5. The choice ‘string action’ will replace all the contents in that row with the new contents specified. On
the other hand if the ‘object action’ is specified, then keeping the ‘field for columns’ same all the
contents of the row for old entity will be replaced with values of ‘field for column’ for the new entity
mentioned.
For example, in the example above, the entity listed in the row is ‘i_marker’ for entity
‘PART_3.LINK_2’ under ‘model_1’. With the execution of the command, the field for the columns
will be replaced by the similar values for the ‘PART_2.LINK_1’ under ‘model_1’.
6. The mode of insertion of the new row contents depends on the choices like ‘before’, ‘after’, ‘delete’
or ‘replace’ denoted by the parameter ‘row_action’.
132 Adams View Commands
interface object_table set selected
Format:
interface object_table set selected
object_table_name = a exisitng GI_otable
strings = string
action = col_action
Example:
interface object_table set selected &
object_table_name = .gui.obj.objt &
strings = new_str &
action = replace
Description:
Extended Definition:
1. The cells to be altered are initially addressed by the ‘object_table name’. Next, the cells to be altered
are marked by selecting the required cells.
2. The parameter ‘strings’ will replace all the contents in the selected cells with the new contents
specified.
3. The mode of insertion of the new row contents depends on the choices like ‘append’, ‘prefix’, or
‘replace’ denoted by the parameter ‘action’.
interface 133
interface object_table undisplay
Format:
interface object_table undisplay
object_table_name = a exisitng GI_otable
Example:
interface object_table undisplay &
object_table_name = .gui.obj.otb
Description:
Extended Definition:
1. The object_table is closed by specifying the appropriate ‘object_table name’ in the ‘undisplay’
command
Format:
interface object_table write
object_table_name = A Exisitng GI_otable
file_name = String
Example:
interface object_table write &
object_table_name = .gui.obj.objt &
file_name = c:/objt_1.xls
Description:
Extended Definition:
1. ‘File_name’ specifies the name of the file that is to be read, written, or executed. The proper extension
is the default but can be overridden by simply supplying a different extension. You do not need to
enclose the file name in quotes if it only contains alpha-numeric characters and starts with a letter. If
you want to include other characters, such as a '.' for an extension or '/' or '[]' for directory paths, you
must enclose the name in quotes.
Format:
interface option_menu create
option_menu_name = a new GI_opt_menu
enabled = boolean
help_text = string
documentation_text = string
units = int_units
horiz_resizing = int_h_resize
vert_resizing = int_v_resize
interface 135
interface option_menu create
Example:
interface option_menu create &
option_menu_name = test &
enabled = yes &
help_text = help &
documentation_text = doc &
units = relative &
horiz_resizing = attach_left &
vert_resizing = attach_top &
location = 0,0 &
height = 1 &
width = 1 &
choices = one, two, three &
values = "10,20,30" &
commands = "model display fit_to_view = no view_name =
all","interface dialog & undisplay dialog=
.gui.moag","interface dialog display
dialog=.gui.moag" &
current_choice = two
136 Adams View Commands
interface option_menu create
Description:
Extended Definition:
1. A new option menu is created if the menu with the specified name does not exist. This menu has
multiple choices offered as various options or commands are to be executed. Each option or choice
has an associated command.
2. If parameter ‘Enabled’ is set to ON, the menu will be preactivated.
3. The pop-up help and documentation help can be specified in appropriate dialog boxes.
4. The size of the info window can be specified in terms of the number of pixels. Alternatively, the size
can also be stated as relative to the Adams window.
5. The vertical and horizontal resizing options are used to adjust the placement of the option menu on
the existing dialog box. For example, attach_left; attach_top options for Horiz_resizing and
Vert_resizing will place the option menu on the top left corner of the dialog box. The location can
also be specified from the top left corner by adjusting the parameter ‘location’.
interface 137
interface option_menu delete
6. The size of the option menu window can be specified with respect to the Adams window size. The
value for parameter height and width should be a real number between 0.0 and 2.0, where 2.0
represents the height of the Adams View window. Therefore, a value of 1.0 will set the info window
to be half as high as the Adams View window.
7. Multiple choices can be specified for a number of commands to be executed. The choice can be
offered as any string variable. Similarly, the choices can also be specified as values by specifying the
parameter, ‘value’9. The number of commands equal to the choices offered are entered within
quotation marks, separated by commas.
8. While executing the option menu, the default command to be executed is selected from the
parameter, ‘current choice’.
Tips:
If the values of the choices in item 12 above are numeric, it should be quoted as a string. Similarly, the
complete commands should be entered with quotations. Multiple commands are separated by commas.
Format:
interface option_menu delete
option_menu_name = an existing GI_opt_menu
Example:
interface option_menu delete &
option_menu_name = test
Description:
Extended Definition:
An option menu with the specified name is deleted.
Format:
interface option_menu display
option_menu_name = an existing GI_opt_menu
Example:
interface option_menu display &
option_menu_name = info
Description:
Extended Definition:
An existing information will be displayed.
Format:
interface option_menu execute
option_menu_name = an existing GI_opt_menu
Example:
interface option_menu execute &
option_menu_name = test
Description:
Extended Definition:
As the information window of the option menu has multiple choices, the default choice GIven as the current
choice determines the associated command to be executed. The command with parameter, ‘current choice’,
is executed.
Format:
interface option_menu modify
option_menu_name = an existing GI_opt_menu
new_option_menu_name = a new GI_opt_menu
enabled = boolean
help_text = string
documentation_text = string
Iunits = int_units
horiz_resizing = int_h_resize
vert_resizing = int_v_resize
location = real
height = real
width = real
choices = string
values = string
commands = string
current_choice = string
Example:
interface option_menu modify &
option_menu_name = test &
new_option_menu_name = new_test &
enabled = yes &
help_text = help for info window &
documentation_text = doc for the command &
units = relative &
horiz_resizing = attach_left &
140 Adams View Commands
interface option_menu modify
Description:
Extended Definition:
1. The name of the existing menu can be changed by specifying the parameter
new_option_menu_name. This menu has multiple choices offered as various option or commands
are to be executed. Each option or choice has an associated command.
2. If the parameter, ‘Enabled’, is set to ON, the menu will be preactivated.
3. The pop-up help and documentation help can be specified in appropriate dialog boxes.
4. The size of the info window can be specified in terms of the number of pixels. Alternatively, the size
can also be stated as relative to the Adams window.
5. The vertical and horizontal resizing options are used to adjust the placement of the option menu in
the existing dialog box. For example, attach_left; attach_top options for Horiz_resizing and
Vert_resizing will place the option menu in the top left corner of the dialog box. The location can
also be specified from the top left corner by adjusting the parameter, ‘location’.
6. The size of the option menu window can be specified with respect to the Adams window size. The
value for parameter height and width should be a real number between 0.0 and 2.0, where 2.0
represents the height of the Adams View window. Therefore, a value of 1.0 will set the info window
to be half as high as the Adams View window.
7. Multiple choices can be specified for a number of commands to be executed. The choice can be
offered as any string variable. Similarly, the choices can also be specified as values by specifying the
parameter, ‘value’.
8. The number of commands equal to the choices offered are entered within quotation marks, separated
by commas.
9. While executing the option menu, the default command to be executed is selected from the
parameter, ‘current choice’.
Tips:
If the values of the choices, in item 12 above, are numeric, then it should be quoted as a string.
Format:
interface option_menu set
option_menu_name = an existing GI_opt_menu
choice = string
value = string
execute = boolean
142 Adams View Commands
interface option_menu undisplay
Example:
interface option_menu set &
option_menu_name = info &
choice = one &
execute = yes
Description:
Extended Definition:
The parameter, ‘choice’, lists the options available for an option menu. Alternatively, same choices can be
represented by the parameter, ‘value’. By choosing any of the ‘choice’ or ‘value’ options, the default command
to be run is selected. The execution will run the specified command.
Tips:
The parameters, “choice” and “value”, are mutually exclusive.
Format:
interface option_menu undisplay
option_menu_name = an existing GI_opt_menu
Example:
interface option_menu undisplay &
option_menu_name = info
interface 143
interface page create
Description:
Extended Definition:
An existing information window displayed, with the specified name, is closed.
Format:
interface page create
page_name = a new page
layout_type = layout_type
expanded = boolean
header_left_text = string
header_center_text = string
header_right_text = string
footer_left_text = string
footer_center_text = string
footer_right_text = string
header_left_image_file = string
header_left_image_file = string
header_center_image_file = string
header_right_image_file = string
footer_left_image_file = string
footer_center_image_file = string
footer_right_image_file = string
display = boolean
color = an existing color
144 Adams View Commands
interface page create
Example:
interface page create &
page_name = page_5 &
layout_type = page2x1 &
expanded = yes &
header_left_text = header_left &
header_center_text = header_center &
header_right_text = header_right &
footer_left_text = footer_left &
footer_center_text = footer_center &
footer_right_text = footer_right &
header_left_image_file = "C:/lefthead.bmp" &
header_center_image_file = "C:/centerhead.bmp" &
header_right_image_file = "C:/righthead.bmp" &
footer_left_image_file = "C:/leftfoot.bmp" &
footer_center_image_file = "C:/centerfoot.bmp" &
footer_right_image_file = "C:/rightfoot.bmp" &
display = yes &
color = .colors.RED &
set_contents = yes &
page_type = plot_page
Description:
Extended Definition:
1. The ‘page’ is a plot window where either a result plot or a model can be displayed. The properties of
the page can be initially set by this command. A blank plot or model page with specified properties
will be displayed with this command.
2. The layout type allows one to display multiple plot windows on the same page where more than one
results can be displayed simultaneously. For example, PAGE 2X1 will display two horizontal plots,
one above the other. On the other hand PAGE 1X2 will display the two plots side by side on the same
page.
3. Any one of the plots on a page can be expanded fully as the need arises by parameter ‘expanded’. If
the ‘expanded’ is set to ‘yes’ one of the multiple plots will occupy full page.
4. The header and footer text can be displayed at left, center or right to add information to the plot by
selecting appropriate ‘header_text’ or ‘footer_text’. Alternatively, an image may be displayed at left,
center or right location of the header or footer to make the plot page self-explanatory. If both the
image and text is specified the image may hide the header of footer text specified. Address of any
remote image file with proper extension should be entered in the parameters ‘header_image_file’ and
‘footer_image_file’ for left, right or center location.
5. The plot will be displayed in the page in the post-processor if the parameter ‘display’ is set to ‘yes’.
6. The background ‘color’ of the page can be chosen from the ‘EXISTING COLORS’.
interface 147
interface page delete
7. The ‘set_contents’ places empty plots in the views if in plotting mode or empty ‘model_space’ in
animation mode.
8. The ‘page type’ is by default ‘plot_page’.
Format:
interface page delete
page_name = an existing page
delete_plots = boolean
delete_contents = boolean
display_next = boolean
delete_ptemplates = boolean
Example:
interface page delete &
page_name = page_5 &
delete_plots = yes &
delete_ptemplates = yes &
display_next = yes
Description:
Extended Definition:
1. The ‘page’ is a plot window where either a result plot or a model can be displayed. The properties of
the page can be initially set by this command. A blank plot or model page with specified properties
will be displayed with this command.
2. The plot can be deleted or the contents of a plots can be deleted keeping the page setting same by
choosing ‘delete_plots’ and ‘delete_contents’ respectively.
3. Once the plot is deleted from the page_window, the next plot will occupy the space if the
‘display_next’ option is set to ‘yes’.
4. The templates are deleted by choosing the parameter ‘delete_ptemplates’
Format:
interface page display
page_name = an existing page
Example:
interface page display &
page_name = page_5
Description:
Extended Definition:
1. The ‘page’ can be displayed or undisplayed from the plot window in the postprocessor as and when
required by choosing the appropriate ‘page_name’ while ‘display’ command.
The page can be created without opening the Adams postprocessor. The page is used to display plots to show
the results, or to display the model in animation mode. The page properties and layout can be set by using
this command.
Format:
interface page load_view
page_name = an existing page
view_index = integer
model = an existing model
plot = an existing plot
ptemplate = an existing ptemplate
Example:
interface page load_view &
page_name = page_2 &
view_index = 1 &
model = model_1
Description:
Extended Definition:
1. The ‘page’ is a plot window where either a result plot or a model can be displayed. The properties of
the page can be initially set by this command. A blank plot or model page with specified properties
will be displayed with this command.
2. The index of the page can be set by entering ‘view_index‘. The parameter ‘model’ state the existing
‘model_name’, where a model allows you to create and manage models. A model contains a complete
description of a mechanism, including parts, markers, joints, forces and geometry. In order to build
a mechanism in Adams View, you must first create a model object in the Adams View database. You
then add parts and other objects to the model. As you are developing your model, you may display it,
verify it, and change its attributes. Once you have created a model, you add parts to it with the 'PART
CREATE RIGID_BODY NAME_AND_POSITION' command. After you have created your first
150 Adams View Commands
interface page modify
part or two, you can continue creating parts, or you may wish to start putting markers on the parts
so you can add geometry, constraints, and forces. You use the 'MARKER CREATE' command to
add markers to a part. Adding markers may help you position other parts, and creating geometry with
markers will help you visualize your model as you are constructing it. When your model is complete,
you use the OUTPUT_CONTROL' command to request Adams output, write an Adams data set,
and then analyze it with Adams. If your analysis is fairly simple, you may use the 'SUBMIT'
command to write the dataset and invoke Adams.
3. The ‘plot’ refers to an existing plot showing results or output. The page templates can also be loaded
in to the ‘page’
Tips:
1. The model, plot and ptemplates are mutually exclusive to each other.
Format:
interface page modify
page_name = an existing page
layout_type = layout_type
expanded = boolean
header_left_text = string
header_center_text = string
header_right_text = string
footer_left_text = string
footer_center_text = string
footer_right_text = string
header_left_image_file = string
header_left_image_file = string
header_center_image_file = string
header_right_image_file = string
footer_left_image_file = string
footer_center_image_file = string
footer_right_image_file = string
interface 151
interface page modify
Example:
interface page modify &
page_name = page_5 &
layout_type = page2x1 &
expanded = yes &
header_left_text = header_left &
header_center_text = header_center &
header_right_text = header_right &
footer_left_text = footer_left &
footer_center_text = footer_center &
footer_right_text = footer_right &
header_left_image_file = "C:/lefthead.bmp" &
header_center_image_file = "C:/centerhead.bmp" &
header_right_image_file = "C:/righthead.bmp" &
footer_left_image_file = "C:/leftfoot.bmp" &
footer_center_image_file = "C:/centerfoot.bmp" &
footer_right_image_file = "C:/rightfoot.bmp" &
display = yes &
color = .colors.BLUE &
set_contents = no &
page_type = plot_page
Description:
Extended Definition:
1. The ‘page’ is a plot window where either a result plot or a model can be displayed. The properties of
the page can be initially set by this command. A blank plot or model page with specified properties
will be displayed with this command.
2. The layout type allows one to display multiple plot windows on the same page where more than one
results can be displayed simultaneously. For example, PAGE 2X1 will display two horizontal plots,
one above the other. On the other hand PAGE 1X2 will display the two plots side by side on the same
page.
3. Any one of the plots on a page can be expanded fully as the need arises by parameter ‘expanded’. If
the ‘expanded’ is set to ‘yes’ one of the multiple plots will occupy full page.
4. The header and footer text can be displayed at left, center or right to add information to the plot by
selecting appropriate ‘header_text’ or ‘footer_text’. Alternatively, an image may be displayed at left,
center or right location of the header or footer to make the plot page self-explanatory. If both the
image and text is specified the image may hide the header of footer text specified. Address of any
remote image file with proper extension should be entered in the parameters ‘header_image_file’ and
‘footer_image_file’ for left, right or center location.
5. The plot will be displayed in the page in the post-processor if the parameter ‘display’ is set to ‘yes’.
154 Adams View Commands
interface page undisplay
6. The background ‘color’ of the page can be chosen from the ‘EXISTING COLORS’.
7. The ‘set_contents’ places empty plots in the views if in plotting mode or empty ‘model_space’ in
animation mode.
8. The ‘page type’ is by default ‘plot_page’.
Format:
interface page undisplay
page_name = An Existing Page
Example:
interface page undisplay &
page_name = page_5
Description:
Extended Definition:
1. The ‘page’ can be displayed or undisplayed from the plot window in the postprocessor as and when
required by choosing the appropriate ‘page_name’ while ‘display’ command.
Format:
interface plot panel mode_set
mode = plot_panel_modes
Example:
interface plot panel mode_set &
mode = object
Description:
Extended Definition:
1. The plot panel lists the available items under a parameter like object, request, measure, result, eigen,
default, dac, rpc and so on. For example, if the mode is set to ‘object’, then the panel will display all
the objects under the model with default filters applied. One can choose any object and its
characteristics to be measured from this panel. For example, a simple pendulum modeled in Adams
View may have objects as link with filter ‘body’. The link has characteristics like CM_position,
CM_velocity and so on. for which the x,y, or z components can be displayed in the plot. Otherwise
if the mode is set to measure, then the panel will display all the measure created under the model and
any characteristic components of the same can be chiosen to be displayed.
Format:
interface plot panel reload
Example:
interface plot panel reload
156 Adams View Commands
interface plot window set mode
Extended Definition:
1. The plot panel lists the available items under a parameter like object, request, measure, result, eigen,
default, dac, rpc, and so on. For example, if the mode is set to ‘object’, then the panel will display all
the objects under the model with default filters applied. One can choose any object and its
characteristics to be measured from this panel. For example, a simple pendulum modeled in Adams
View may have objects as link with filter ‘body’. The link has characteristics like CM_position,
CM_velocity and so on. for which the x,y, or z components can be displayed in the plot.
2. Whenever, the model is edited, the new information of the model can be reloaded into the plot panel
by this command. For example, a new measure created in the model will get displayed in the plot
panel it is ‘reloaded’.
Tips:
The command needs no parameter.
Format:
interface plot window set mode
mode = plot_win_mode
Example:
interface plot window set mode &
mode = plot3d
Description:
Extended Definition:
1. The plot window can show 2D, 3D plots, animation of the model or reports. The display mode for
a particular window needs to be set to either of these to show the respective windows. Thus, one can
select the ‘animation’ mode and overlay the model to see the animation or plot any result by choosing
‘plots’
Format:
Interface plot window update_toolbar
Example:
interface plot window update_toolbar
Extended Definition:
1. Update page specific icons and fields on toolbar and status window, specifically the page number
fields in the status bar and the page layout icon on the toolbar
Tips:
No parameter needed to be specified.
Format:
Interface plot window close
Example:
interface plot window close
Extended Definition:
The plot page in the Adams postprocessor can be opened and closed by running the command ‘interface plot
window open’ and ‘’interface plot window close’. It needs no parameter and the default page in the plot
window is opened or the window is closed.
158 Adams View Commands
interface plot window create_new_page
Format:
interface plot window create new page
default_layout = boolean
display = boolean
Example:
interface plot window create_new_page &
default_layout = yes &
display = yes
Description:
Extended Definition:
1. A new page will be added to the plot window by this command. By default it will have a default layout
with no header or footer.
2. The ‘display’ option set to ‘yes’ will overlay the new page on the existing plot. Otherwise, a new page
will be created but the plot window will have the current page already displayed.
Format:
interface plot window delete_page
page_name = an existing page
delete_ptemplates = boolean
delete_plots = boolean
Example:
interface plot window delete_page
Description:
Extended Definition:
The page can be deleted by choosing the page_name. Similarly, the ‘page template delete’ will also deleted the
page having the specified template.
The ‘delete plots’ will delete the plot in the plot window and the page name is GIven to successive page.
Format:
interface plot window load_view
view = An Exisitng View
model_name = An Existing Model
plot_name = An Existing Plot
animation_name = An Existing Animaton
analysis_name = An Existing Analysis
160 Adams View Commands
interface plot window load_view
Example:
interface plot window load_view &
view = .gui.ppt_main.sash1.sash2.gfx.page_2.view_1 &
plot_name = .plot_3
Description:
Extended Definition:
1. The selective output from multiple pages and plots in the postprocessor can be displayed in the plot
window by choosing any of the parameter namely; model_name, plot_name, animation_name,
analysis_name, eigen_solution_name, or report_name.
2. The Adams View program provides a set of operations for viewing the Adams model. Some of the
operations are activate, center, erase, fill screen, translate, rotate, zoom, management and so on.
Adams View also provides support and controls for multiple windows. Views can be created,
modified, deleted, saved, restored, and so on. using the view management command. A maximum of
eight windows can exist at any GIven time. Adams View prevents the last window from being deleted.
There is always one view window which is considered the active window. The color of the view name
text and existence of the view name outlining box indicate the active view. The other view windows
have a different view name text color, as well as not having an outlining box around the view name.
The active window is selected by the user using the "view activate" command. It is important to
recognize that a view is made up of three separate parts:
• the contents (the analysis, plot and so on),
• the viewport itself (has size and location), and
• the viewport attributes (the model LOCATION and ORIENTATION in the
interface 161
interface plot window open
Format:
Interface plot window open
Example:
interface plot window open
162 Adams View Commands
interface plot window page_display
Extended Definition:
The plot page in the Adams postprocessor can be opened and closed by running the command ‘interface plot
window open’ and ‘’interface plot window close’. It needs no parameter and the default page in the plot
window is opened or the window is closed.
Format:
interface plot window page display
action = plot_page_modes
page_name = an existing page
number = integer
Example:
interface plot window page_display &
action = next
Description:
Extended Definition:
The selective output from multiple pages and plots in the postprocessor can be displayed in the plot window
by choosing any of the parameter namely 1) action, 2) page_name and 3) number.
The ‘action’ helps to choose the page directly by the choice like first, last, previous and next without specifying
the names or indices.
The ‘page_name’ parameter will display the mentioned page in the plot window, alternatively the page can
be accessed by stating its index, that is, the number of the page.
interface 163
interface push_button create
Tips:
1. The action, page_name and number are mutually exclusive to each other. Specifying any of the same
will perform the action.
Format:
interface push_button create
push_button_name = a new GI_push_btn
enabled = boolean
help_text = string
documentation_text = string
units = int_units
horiz_resizing = int_h_resize
vert_resizing = int_v_resize
location = real
height = real
width = real
label = string
icon_file= string
commands = string
dbl_commands = string
default = true_false
Example:
push_button_name = DISP_WIN &
enabled = yes &
help_text = "help_text" &
documentation_text = "doc_text" &
units = relative &
horiz_resizing = attach_left &
vert_resizing = attach_top &
location = 0.0, 0.0 &
height = 0.3 &
164 Adams View Commands
interface push_button create
Description:
Extended Definition:
1. The push button has a command associated with it which is created if the push button with specified
name. The parameter ‘Enable’ activates the push button depending on the Boolean value which is
either yes or no
2. If parameter ‘Enabled’ is set to ON, the menu will be preactivated.
3. The pop-up help and documentation help can be specified in appropriate dialog boxes.
4. The size of the info window can be specified either in terms of number of pixels. Alternatively, the
size can also be stated as relative to the Adams window
5. The vertical and horizontal resizing options are used to adjust the placement of the option menu on
existing dialog box. For example, attach_left; attach_top options for Horiz_resizing and Vert_resizing
will place the option menu on the top left corner of the dialog box. The location can also be specified
from the top left corner by adjusting the parameter ‘location’
6. The size of the option menu window can be specified with respect to the Adams window size. The
value for parameter height and width should be a real number between 0.0 and 2.0, where 2.0
represents the height of the Adams View window. Therefore, a value of 1.0 will set the info window
to be one half as high as the Adams View window.
7. The label which should appear on the button is specified by the parameter ‘label’.
8. Specify the name of the file that contains the icon definition for use on an iconic menu. If an icon file
is selected for the push button, the image will appear on the button instead of the string ‘label’. Its
placement depends on where the axis is placed. The label can be of unlimited length, but may not all
fit on the plot if it's very long. If the string contains spaces, it must be enclosed in quotation marks.
9. The parameter ‘command’ specifies the command to be executed by clicking the push button. You
can also specify a different command for double clicking of the push button. Thus, the push button
can execute two different commands depending upon the single or double click.
Tips:
If the iconic image is selected for display, the display label may not appear
Format:
interface push_button delete
push_button_name = a existing GI_push_btn
Example:
interface push_button delete &
push_button_name = operate
166 Adams View Commands
interface push_button display
Description:
Extended Definition:
The name of the push button is specified to delete an existing push button.
Format:
interface push_button display
push_button_name = an existing GI_push_btn
Example:
interface push_button display &
push_button_name = _2
Description:
Extended Definition:
The push button is displayed with iconic image, if specified, or the button carries the command name.
Format:
interface push_button execute
push_button_name = an existing GI_push_btn
action = push_btn_action
interface 167
interface push_button modify
Example:
interface push_button execute &
push_button_name = _2 &
action = single_click
Description:
Extended Definition:
The push button can execute the associated commands with a single or double-click, depending on the choice
specified by this command. A single click will carry the execution of ‘command’, while, a double-click will
carry the execution of ‘dbl command’.
Format:
interface push_button modify
push_button_name = an existing GI_push_btn
new_push_button_name = a new GI_push_btn
enabled = boolean
help_text = string
documentation_text = string
units = int_units
horiz_resizing = int_H_resize
vert_resizing = int_V_resize
location = real
height = real
width = real
label = string
icon_file= string
168 Adams View Commands
interface push_button modify
Example:
interface push_button create &
push_button_name = operate &
new_push_button_name = operate_new&
enabled = yes &
help_text = text_help &
documentation_text = doc_help &
units = relative &
horiz_resizing = expand &
vert_resizing = expand &
location = location = 0,0 &
height = 0.5 &
width = 0.5 &
label = button_label &
icon_file = "C:\ images.jpg" &
commands = "interface dialog display dialog=.gui.info_window" &
dbl_commands = "interface dialog display dialog=.gui.about_adams" &
default = true
Description:
Extended Definition:
1. The push button has a command associated with it, which is created if the push button with specified
name. The parameter ‘Enable’ activates the push button depending on the Boolean value, which is
either yes or no. The name of the existing push button can be changed by specifying the
‘new_push_button_name’
2. If the parameter ‘Enabled’ is set to ON, the menu will be preactivated.
3. The pop-up help and documentation help can be specified in appropriate dialog boxes.
4. The size of the info window can be specified in terms of the number of pixels. Alternatively, the size
can also be stated as relative to the Adams window
5. The vertical and horizontal resizing options are used to adjust the placement of the option menu on
existing dialog box. For example, attach_left; attach_top options for Horiz_resizing and Vert_resizing
will place the option menu on the top left corner of the dialog box. The location can also be specified
from the top left corner by adjusting the parameter, ‘location’
6. The size of the option menu window can be specified with respect to the Adams window size. The
value for parameter height and width should be a real number between 0.0 and 2.0, where 2.0
represents the height of the Adams View window. Therefore, a value of 1.0 will set the information
window to be half as high as the Adams View window.
7. The label which should appear on the button is specified by the parameter, ‘label’.
170 Adams View Commands
interface push_button undisplay
Specify the name of the file that contains the icon definition for use on an iconic menu. If an icon
file is selected for the push button, the image will appear on the button instead of the string,‘label’.
Its placement depends on where the axis is placed. The label can be of unlimited length, but may not
all fit on the plot if it is very long. If the string contains spaces, it must be enclosed in quotation marks.
8. The parameter ‘command’ specifies the command to be executed by clicking the push button. You
can also specify a different command for double-clicking the push button. Thus, the push button can
execute two different commands, depending upon single or double click.
Format:
interface push_button undisplay
push_button_name = an existing GI_push_btn
Example:
interface push_button undisplay &
push_button_name = _2
Description:
Format:
interface radio box create
radio_box_name = A New GI_radio_box
enabled = Boolean
help_text = String
documentation_text = String
units = Int_units
horiz_resizing = Int_h_resize
interface 171
interface radio_box create
Example:
interface radio_box create &
radio_box_name = .gui.rdbx..rdbx1 &
enabled = yes &
help_text = help_text &
documentation_text = doc_text &
units = relative &
horiz_resizing = attach_left &
vert_resizing = attach_top &
location = 0.4,0.4 &
height = 0.3 &
width = 0.3 &
choices = yes,no &
values = "1,2" &
commands = "intrface coord_window display=toggle" &
current_choice = yes
Description:
Extended Definition:
1. The name of the radio box to be created is specified initially. If parameter ‘Enabled’ is set to ON, the
radio box button will be preactivated.
2. The pop-up help and documentation help can be specified in appropriate dialog boxes.
3. The size of the radio box can be specified either in terms of number of pixels. Alternatively, the size
can also be stated as relative to the Adams window
4. The vertical and horizontal resizing options are used to adjust the placement of the radio box on
existing dialog box. For example, attach_left; attach_top options for Horiz_resizing and Vert_resizing
will place the radio box on the top left corner of the dialog box. The location can also be specified
from the top left corner by adjusting the parameter ‘location’.
5. The size of the radio box window can be specified with respect to the Adams window size. The value
for parameter height and width should be a real number between 0.0 and 2.0, where 2.0 represents
the height of the Adams View window. Therefore, a value of 1.0 will set the button window to be one
half as high as the Adams View window.
interface 173
interface radio_box delete
6. The parameter ‘command’ specifies the name of the command to be executed when the radio box is
clicked. If multiple commands are entered then the command to be executed is decided by the
parameter ‘choice’. Alternatively, the values specifies the real values to be stored in the result set
component, The values can be a list of numbers, or an expression referencing an array of existing
values. The ‘current choice’ parameter decides the default value for the radio box from the choices
offered.
Format:
interface radio box delete
radio_box_name = An Existing GI_radio_box
Example:
interface radio_box delete &
radio_box_name = .gui.rdbx..rdbx1
Description:
Extended Definition:
1. The radio box can be deleted by specifying the appropriate name in the ‘delete’ dialog box.
Format:
interface radio box display
radio_box_name = An Existing GI_radio_box
174 Adams View Commands
interface radio_box execute
Example:
interface radio_box display &
radio_box_name = .gui.naresh.rdbx &
choice = "yes" &
execute = no
Description:
Extended Definition:
1. The radio box can be displayed on the dialog box by entering appropriate name during the ‘display’
command
Format:
interface radio box execute
radio_box_name = an existing GI_radio_box
Example:
interface radio_box execute &
radio_box_name = .gui.rdbx..rdbx1
Description:
Extended Definition:
1. The command associated with the radio box can be explicitly executed by the ‘execute’ command,
which is alternatively, executed by clicking the radio box.
interface 175
interface radio_box modify
Format:
interface radio box modify
radio_box_name = An Existing GI_radio_box
new_radio_box_name = A New GI_radio Box
enabled = Boolean
help_text = String
documentation_text = String
units = Int_units
horiz_resizing = Int_h_resize
vert_resizing = Int_v_resize
location = Real
height = Real
width = Real
choices = String
values = String
commands = String
current_choice = String
Example:
interface radio_box modify &
radio_box_name = .gui.obj.rdbx &
enabled = yes &
help_text = "help_text" &
documentation_text = "doc_text" &
units = relative &
horiz_resizing = attach_left &
vert_resizing = attach_top &
location = 0.0,0.0 &
height = 0.4 &
width = 0.4 &
choices = yes &
values = “1” &
176 Adams View Commands
interface radio_box modify
Description:
Extended Definition:
1. The name of the radio box to be created is specified initially. If parameter ‘Enabled’ is set to ON, the
radio box button will be preactivated. A new name can be suggested for the radio box by specifying
the parameter ‘new_radio_box_name’.
2. The pop-up help and documentation help can be specified in appropriate dialog boxes.
interface 177
interface radio_box set
3. The size of the radio box can be specified either in terms of number of pixels. Alternatively, the size
can also be stated as relative to the Adams window
4. The vertical and horizontal resizing options are used to adjust the placement of the radio box on
existing dialog box. For example, attach_left; attach_top options for Horiz_resizing and Vert_resizing
will place the radio box on the top left corner of the dialog box. The location can also be specified
from the top left corner by adjusting the parameter ‘location’
5. The size of the radio box window can be specified with respect to the Adams window size. The value
for parameter height and width should be a real number between 0.0 and 2.0, where 2.0 represents
the height of the Adams View window. Therefore, a value of 1.0 will set the button window to be one
half as high as the Adams View window.
6. The parameter ‘command’ specifies the name of the command to be executed when the radio box is
clicked. If multiple commands are entered then the command to be executed is decided by the
parameter ‘choice’. Alternatively, the values specifies the real values to be stored in the result set
component, The values can be a list of numbers, or an expression referencing an array of existing
values. The ‘current choice’ parameter decides the default value for the radio box from the choices
offered.
Format:
interface radio box set
radio_box_name = An Existing GI_radio_box
choices = String
value= String
execute= Boolean
Example:
interface radio_box set &
radio_box_name = .gui.rdbox.rdbx &
choice = "yes" &
execute = yes
178 Adams View Commands
interface radio_box undisplay
Description:
Extended Definition:
1. The command associated with the radio box is specified while creating it. The execution of the same
can be made ON or OFF depending on the BOOLEAN parameter ‘yes’ or ‘no’ for the parameter
‘execute’. Moreover, the selective execution of a command from multiple commands can be done by
specifying the ‘choice’
Tips:
The parameters ‘choice’ and ‘value’ mutually exclusive
Format:
interface radio box undisplay
radio_box_name = an existing GI_radio_box
Example:
interface radio_box undisplay &
radio_box_name= .gui.rdbx..rdbx1
Description:
Extended Definition:
1. The displayed radio box can be closed by entering appropriate radio box name during the ‘undisplay’
command
Format:
interface separator create
separator_name = a new GI_separator
enabled = boolean
help_text = string
documentation_text = string
units = int_units
horiz_resizing = int_h_resize
vert_resizing = int_v_resize
location = real
height = real
width = real
Example:
interface separator create &
separator_name = .gui.dbox.sepr &
enabled = yes &
help_text = "help2text" &
180 Adams View Commands
interface separator create
Description:
Extended Definition:
1. The preliminary parameters of the separator like location and width are set using this command.
2. The pop-up help and documentation help can be specified in appropriate columns.
3. The separator is a element look-alike to embossing, which separated two entities on the dialog box.
It has no command or function associated. It is used to improve the readability of the contents of the
dialog box. The placement of the separator on the dialog box is decided by the location, which is the
starting point of the separator line from upper left corner on the dialog box.
4. From the point specified by ‘location’ the placement of the separator below the ‘location’ is decided
by the height and the length of the separator line is decided by the parameter ‘width’
interface 181
interface separator delete
Format:
interface separator delete
separator_name = an existing GI_separator
Example:
interface separator delete &
separator_name = .gui.dbox.sepr
Description:
Extended Definition:
1. . The separator is deleted by entering the appropriate separator name in the parameter
‘separator_name’ while ‘delete’ command.
This command helps to create the separator on the dialog box, the length of which is specified ‘width’ and
the ‘height’ will specify its placement from top of the dialog box.
Specifies whether or not Adams will write separators to the Request, Graphics, Results, and Tabular Output
Files when you modify the model topology in the middle of a simulation. You can change the model topology
by adding Adams commands to your ACF file to activate an element, deactivate an element, change a marker
position, or change the type or point of application of a force or constraint during a simulation. If you specify
SEPARATOR=ON (this is the default) the analysis information will be read into Adams View, one analysis
for each block of output between the separators. If you specify SEPARATOR=OFF the analysis information
will be read into Adams View as a single analysis. This allow you to plot or animate the analysis from
beginning to end.
This command allows displaying of an existing separator.
Format:
interface separator display
separator_name = an existing GI_separator
Example:
interface separator display &
separator_name = .gui.dbox.sepr
Description:
Extended Definition:
1. The separator is displayed by entering the appropriate separator name in the parameter
‘separator_name’ while ‘display’ command.
position, or change the type or point of application of a force or constraint during a simulation. If you specify
SEPARATOR=ON (this is the default) the analysis information will be read into Adams View, one analysis
for each block of output between the separators. If you specify SEPARATOR=OFF the analysis information
will be read into Adams View as a single analysis. This allow you to plot or animate the analysis from
beGInning to end.
Format:
interface separator modify
separator_name = an existing GI_separator
new_separator_name= a new GI_separator
enabled= boolean
help_text = string
documentation_text = string
units = int_units
horiz_resizing = int_h_resize
vert_resizing = int_v_resize
location = real
height = real
width = real
Example:
interface separator modify &
separator_name = .gui.dbox.sepr &
new_separator_name = .gui.dbox.sepr1 &
enabled = yes &
help_text = "help2text" &
documentation_text = "doc2text" &
units = relative &
horiz_resizing = attach_left &
vert_resizing = attach_top &
location = 0.2, 0.0 &
height = 0.6 &
width = 0.7
184 Adams View Commands
interface separator undisplay
Description:
Extended Definition:
1. The preliminary parameters of the separator like location and width are set using this command. A
new name can be specified for an existing separator by the parameter ‘new_separator_name’.
2. The pop-up help and documentation help can be specified in appropriate columns.
3. The separator is a element look-alike to embossing, which separated two entities on the dialog box.
It has no command or function associated. It is used to improve the readability of the contents of the
dialog box. The placement of the separator on the dialog box is decided by the location, which is the
starting point of the separator line from upper left corner on the dialog box.
4. From the point specified by ‘location’ the placement of the separator below the ‘location’ is decided
by the height and the length of the separator line is decided by the parameter ‘width’
Specifies whether or not Adams will write separators to the Request, Graphics, Results, and Tabular Output
Files when you modify the model topology in the middle of a simulation. You can change the model topology
by adding Adams commands to your ACF file to activate an element, deactivate an element, change a marker
position, or change the type or point of application of a force or constraint during a simulation. If you specify
SEPARATOR=ON (this is the default) the analysis information will be read into Adams View, one analysis
for each block of output between the separators. If you specify SEPARATOR=OFF the analysis information
will be read into Adams View as a single analysis. This allow you to plot or animate the analysis from
beGInning to end.
This command allows undisplaying of an existing separator.
Format:
interface separator undisplay
separator_name = an existing GI_separator
Example:
interface separator undisplay &
separator_name = .gui.dbox.sepr
Description:
Extended Definition:
1. The separator is closed by entering the appropriate separator name in the parameter ‘separator_name’
while ‘undisplay’ command.
Format:
interface slider create
slider_name = A New GI_slider
enabled = Boolean
help_text = String
186 Adams View Commands
interface slider create
Example:
interface slider create &
slider_name = .gui.dbox.sldr &
enabled = yes &
help_text = "help2text" &
documentation_text = "doc2text" &
units = relative &
horiz_resizing = attach_left &
vert_resizing = attach_top &
location = 0.2, 0.2 &
height = 0.2 &
width = 0.6 &
commands = "view zoom view=.gui.main.front zoom=1.0" &
value = 1 &
minimum = 0 &
maximum = 10 &
live_drag = yes &
show_value = yes
interface 187
interface slider create
Description:
Extended Definition:
1. The preliminary parameters of the slider like size, associated commands and range of values are set
using this command.
2. The pop-up help and documentation help can be specified in appropriate columns.
3. The size of the slider can be specified either in terms of number of pixels. Alternatively, the size can
also be stated as relative to the dialog box window
4. The vertical and horizontal resizing options are used to adjust the placement of the slider menu on
existing dialog box. For example, attach_left; attach_top options for Horiz_resizing and Vert_resizing
will place the slider on the top left corner of the dialog box. The location can also be specified from
the top left corner by adjusting the parameter ‘location’
188 Adams View Commands
interface slider delete
5. The size of the slider window can be specified with respect to the dialog box window size. The value
for parameter height and width should be a real number between 0.0 and 2.0, where 2.0 represents
the height of the dialog window. Therefore, a value of 1.0 will set the slider field window to be one
half as high as the dialog box window.
6. The parameter ‘command’ specifies the name of the command to be executed, when the slider is
dragged. The parameters ‘minimum’ and ‘maximum’ shows the slider lower and upper limit values,
the instantaneous or current value of which is displayed over the slider, if the parameter ‘show_value’
is set to ‘yes’. Similarly, if the command to be executed concurrently with the slider movement, when
the slider is dragGIng, the parameter ‘live_drag’ needs to be set to ‘yes’.
Format:
interface slider delete
slider_name = An Existing GI_slider
Example:
interface slider delete &
slider_name = .gui.dbox.sldr
Description:
Extended Definition:
1. The slider can be deleted by specifying the appropriate name for the parameter ‘slider_name’ in the
delete dialog box.
The slider is an element on the dialog box, specifying a variable parameter, the dragGIng of the slider bar,
will vary the parameter value between minimum and maximum depending on the current position of the
slider.
Format:
interface slider display
slider_name = an existing GI_slider
Example:
interface slider display &
slider_name = .gui.dbox.sldr
Description:
Extended Definition:
1. The slider can be displayed by specifying the appropriate name for the parameter ‘slider_name’ in the
display dialog box.
Format:
interface slider execute
slider_name = An Existing GI_slider
Example:
interface slider execute &
slider_name = .gui.dbox.sldr
190 Adams View Commands
interface slider modify
Description:
Extended Definition:
1. The slider has an optional parameter, ‘command’, if specified gets executed explicitly without
dragGIng the slider bar by the command ‘execute’.
Format:
interface slider modify
slider_name = An Existing GI_slider
new_slider_name = A New GI_slider
enabled = Boolean
help_text = String
documentation_text = String
units = Int_units
horiz_resizing = Int_h_resize
vert_resizing = Int_v_resize
location = Real
height = Real
width = Real
commands = String
value = Integer
minimum = Integer
maximum = Integer
live_drag = Boolean
show_value = Boolean
interface 191
interface slider modify
Example:
interface slider modify &
slider_name = .gui.dbox.sldr &
new_slider_name = .gui.dbox.sldr1 &
enabled = yes &
help_text = "help2text" &
documentation_text = "doc2text" &
units = relative &
horiz_resizing = attach_left &
vert_resizing = attach_top &
location = 0.2,0.2 &
height = 0.2 &
width = 0.6 &
commands = "interface dialog display dialog=.gui.about_Adams" &
value = 0 &
minimum = 0 &
maximum = 1 &
live_drag = yes &
show_value = yes
Description:
Extended Definition:
1. The preliminary parameters of the slider like size, associated commands and range of values are set
using this command. A new name can be specified for the slider by using parameter
‘new_slider_name’.
2. The pop-up help and documentation help can be specified in appropriate columns.
3. The size of the slider can be specified either in terms of number of pixels. Alternatively, the size can
also be stated as relative to the dialog box window
4. The vertical and horizontal resizing options are used to adjust the placement of the slider menu on
existing dialog box. For example, attach_left; attach_top options for Horiz_resizing and Vert_resizing
will place the slider on the top left corner of the dialog box. The location can also be specified from
the top left corner by adjusting the parameter ‘location’
5. The size of the slider window can be specified with respect to the dialog box window size. The value
for parameter height and width should be a real number between 0.0 and 2.0, where 2.0 represents
the height of the dialog window. Therefore, a value of 1.0 will set the slider field window to be one
half as high as the dialog box window.
6. The parameter ‘command’ specifies the name of the command to be executed, when the slider is
dragged. The parameters ‘minimum’ and ‘maximum’ shows the slider lower and upper limit values,
the instantaneous or current value of which is displayed over the slider, if the parameter ‘show_value’
is set to ‘yes’. Similarly, if the command to be executed concurrently with the slider movement, when
the slider is dragGIng, the parameter ‘live_drag’ needs to be set to ‘yes’.
Format:
interface slider set
slider_name = An Existing GI_slider
value = Integer
execute = Boolean
Example:
interface slider set &
slider_name = .gui.dbox.sldr &
value = 3 &
execute = yes
Description:
Extended Definition:
1. The slider can be set to default parameter by choosing the parameter ‘value’, which denotes the
instantaneous current value of the slider position between the minimum and maximum values
specified. The execute option specifies the whether the associated command will be executed or not,
when the slider is dragged.
Format:
interface slider undisplay
slider_name = an existing GI_slider
194 Adams View Commands
interface tab_container create
Example:
interface slider undisplay &
slider_name = .gui.dbox.sldr
Description:
Extended Definition:
1. The slider can be closed by specifying the appropriate name for the parameter ‘slider_name’ in the
‘undisplay’ dialog box.
Format:
interface object tab_container create
object_table_name = A New GI_tab_container
enabled = Boolean
help_text = String
documentation_text = String
units = Int_units
horiz_resizing = Int_h_resize
vert_resizing = Int_v_resize
location = Real
height = Real
width = Real
commands = String
current choice = String
interface 195
interface tab_container create
Example:
interface tab_container create &
tab_container_name = .gui.cntr.tabcnt &
enabled = yes &
help_text = "help2text" &
documentation_text = "doc2text" &
units = relative &
horiz_resizing = attach_left &
vert_resizing = attach_top &
location = 0.0, 0.0 &
height = 0.4 &
width = 0.4 &
commands = "interface dialog display dialog=.gui.about_Adams" &
current_choice = "yes"
Description:
Extended Definition:
1. The preliminary parameters of the tab_container like size, associated commands and editing
capability are set using this command.
2. The pop-up help and documentation help can be specified in appropriate columns.
3. The size of the tab_container can be specified either in terms of number of pixels. Alternatively, the
size can also be stated as relative to the Adams window
4. The vertical and horizontal resizing options are used to adjust the placement of the tab_container
menu on existing dialog box. For example, attach_left; attach_top options for Horiz_resizing and
Vert_resizing will place the tab_container on the top left corner of the dialog box. The location can
also be specified from the top left corner by adjusting the parameter ‘location’
5. The size of the tab_container window can be specified with respect to the Adams window size. The
value for parameter height and width should be a real number between 0.0 and 2.0, where 2.0
represents the height of the dialog window. Therefore, a value of 1.0 will set the tab_container field
window to be one half as high as the Adams View window.
6. The parameter ‘command’ specifies the name of the command to be executed, whereas the current
choice determines the default choice for the execution of the command.
Format:
interface object tab_container delete
tab_container_name = an exisitng GI_tab_container
Example:
interface tab_container delete &
tab_container_name = .gui.cntr.tabcnt
interface 197
interface tab_container display
Description:
Extended Definition:
1. The tab_container can be deleted by choosing the appropriate name for the ‘tab_container’ during
the ‘delete’ command
Format:
interface object tab_container display
tab_container_name = an exisitng gi_tab_container
Example:
interface tab_container display &
tab_container_name = .gui.cntr.tabcnt
Description:
Extended Definition:
1. The tab_container can be displayed by choosing the appropriate name for the ‘tab_container’ during
the ‘display’ command
Tab_container is similar to a container but can be added to a dialog box or another container. When you add
a tab_container, a tab appears in the parent container.
The tab_container has an optional command parameter, if specified a command, it gets executed while
running the ‘execute’ command.
Format:
interface object tab_container execute
tab_container_name = an exisitng gi_tab_container
Example:
interface tab_container execute &
tab_container_name = .gui.cntr.tabcnt
Description:
Extended Definition:
1. The tab_container associated command can be executed by running explicitly the ‘execute’
command.
Format:
interface object tab_container modify
tab_container_name = an exisitng gi_tab_container
new_ tab_container_name = a new gi_tab_container
enabled = boolean
help_text = string
documentation_text = string
units = int_units
interface 199
interface tab_container modify
Example:
interface tab_container create &
tab_container_name = .gui.cntr.tabcnt &
enabled = yes &
help_text = "help2text" &
documentation_text = "doc2text" &
units = relative &
horiz_resizing = attach_left &
vert_resizing = attach_top &
location = 0.0, 0.0 &
height = 0.4 &
width = 0.4 &
commands = "interface dialog display dialog=.gui.about_Adams" &
current_choice = "yes"
Description:
Extended Definition:
1. The preliminary parameters of the tab_container like size, associated commands and editing
capability are set using this command. To rename the tab_container, fill the parameter
‘new_tab_container_name’.
2. The pop-up help and documentation help can be specified in appropriate columns.
3. The size of the tab_container can be specified either in terms of number of pixels. Alternatively, the
size can also be stated as relative to the Adams window.
4. The vertical and horizontal resizing options are used to adjust the placement of the tab_container
menu on existing dialog box. For example, attach_left; attach_top options for Horiz_resizing and
Vert_resizing will place the tab_container on the top left corner of the dialog box. The location can
also be specified from the top left corner by adjusting the parameter ‘location’.
5. The size of the tab_container window can be specified with respect to the Adams window size. The
value for parameter height and width should be a real number between 0.0 and 2.0, where 2.0
represents the height of the dialog window. Therefore, a value of 1.0 will set the tab_container field
window to be one half as high as the Adams View window.
6. The parameter ‘command’ specifies the name of the command to be executed, whereas the current
choice determines the default choice for the execution of the command.
The tab_container has an optional command parameter, if specified a command, it gets executed while
running the ‘execute’ command.
Format:
interface object tab_container set
tab_container_name = an exisitng gi_tab_container
choice = stirng
execute = boolean
Example:
interface tab_container set &
tab_container_name = .gui.cntr.tabcnt &
choice = "1" &
execute = yes
Description:
Extended Definition:
1. The tab_container associated command can be executed by running explicitly the ‘execute’
command. The default state for running a command depends on the BOOLEAN value of the
parameter ‘execute’ in the ‘set’ command.
Format:
interface object tab_container undisplay
tab_container_name = an exisitng gi_tab_container
Example:
interface tab_container undisplay &
tab_container_name = .gui.cntr.tabcnt
Description:
Extended Definition:
1. The tab_container can be closed by choosing the appropriate name for the ‘tab_container’ during the
‘undisplay’ command
Format:
interface toggle_button create
toggle_button_name = a new GI_toggl_btn
enabled = boolean
help_text = string
documentation_text = string
units = int_units
horiz_resizing = int_H_resize
vert_resizing = int_V_resize
location = real
height = real
width = real
label = string
state = on_off
interface 203
interface toggle_button create
Example:
interface toggle_button create &
toggle_button_name = tgb &
enabled = yes &
help_text = text_help &
documentation_text = doc_help &
units = relative &
horiz_resizing = attach_left &
vert_resizing = attach_top &
location = 0.0, 0.0 &
height = 0.5 &
width = 0.5 &
label = button_label &
state = on &
on value = on &
off value = off &
commands = "interface dialog display dialog=.gui.info_window" &
icon file = c:/images.jpg &
Hit icon file = c:/images1.jpg
Description:
Extended Definition:
1. The name of the toggle button to be created is specified initially. If parameter ‘Enabled’ is set to ON,
the toggle button will be preactivated.
2. The pop-up help and documentation help can be specified in appropriate dialog boxes.
3. The size of the toggle button can be specified in terms of the number of pixels. Alternatively, the size
can also be stated as relative to the Adams window.
4. The vertical and horizontal resizing options are used to adjust the placement of the option menu in
the existing dialog box. For example, attach_left; attach_top options for Horiz_resizing and
Vert_resizing will place the option menu on the top left corner of the dialog box. The location can
also be specified from the top left corner by adjusting the parameter, ‘location’.
5. The size of the toggle button window can be specified with respect to the Adams window size. The
value for parameter height and width should be a real number between 0.0 and 2.0, where 2.0
represents the height of the Adams View window. Therefore, a value of 1.0 will set the information
window to be half as high as the Adams View window.
interface 205
interface toggle_button delete
6. If the Label is specified, then the string associated will appear with a toggle window, where click and
unclick will be denoted by a ‘tick’. Alternatively, if the iconic image is selected for the toggle button,
then the iconic button will be displayed with corresponding image on it, with no label of ‘tick-mark’.
The label for an axis will be displayed near the axis, its placement depending on where the axis is
placed. The label can be of unlimited length, but may not all fit on the plot if it is very long. If the
string contains spaces, it must be enclosed in quotation marks. The parameter ‘icon_file’ specifies the
name of the file that contains the icon definition for use on an iconic menu.
7. The default state of the toggle button is specified by ‘state’, whether it is on or off. Otherwise, the
values are specified as string where the status of the toggle button can marked. It is mutually exclusive
with the ‘state’ mentioned above.
8. The parameter ‘command’ specifies the name of the command to be executed when the toggle button
status is ON.
9. The push button iconic image can be changed by specifying the ‘Hit_icon_file’, that is, when the
push button is active, it will show one image on the button, and when it is toggled or inactive, the
iconic image will toggle to another image file specified.
Tips:
The parameters, ‘state’ and ‘value’, are mutually exclusive. The display and undisplay of commands work
when any menu box is open, as the button will be created on existing menu
Format:
interface toggle_button delete
toggle_button_name = an existing GI_toggl_btn
Example:
interface toggle_button delete &
toggle_button_name = tgb
Description:
Extended Definition:
An existing toggle button is deleted by specifying the name of the toggle button.
206 Adams View Commands
interface toggle_button display
Format:
interface toggle_button display
toggle_button_name = an existing GI_toggl_btn
Example:
interface toggle_button display &
toggle_button_name = tgb
Description:
Extended Definition:
The toggle button appears on any of the menus displayed.
Tips:
Atleast one menu needs to be displayed initially to place a toggle button.
Format:
interface toggle_button execute
toggle_button_name = an existing GI_toggl_btn
Example:
interface toggle_button execute &
toggle_button_name = tgb
Extended Definition:
The command associated with a toggle button can be executed directly, without clicking the button.
Format:
interface toggle_button create
toggle_button_name = an existing GI_toggl_btn
new_toggle_button_name = a new GI_toggl_btn
enabled = boolean
help_text = string
documentation_text = string
units = int_units
horiz_resizing = int_H_resize
vert_resizing = int_V_resize
location = real
height = real
width = real
label = string
state = on_off
on_value = string
off_value = string
commands = string
icon_file = string
hit_icon_file = string
Example:
interface toggle_button modify &
toggle_button_name = tgb &
new_toggle_button_name = tgb2 &
enabled = yes &
help_text = "text_help" &
documentation_text = "text_doc" &
units = relative &
208 Adams View Commands
interface toggle_button modify
Description:
Extended Definition:
1. The name of an existing toggle button is specified initially. If parameter ‘Enabled’ is set to ON, the
toggle button will be preactivated.
2. The pop-up help and documentation help can be specified in appropriate dialog boxes.
3. The size of the toggle button can be specified in terms of the number of pixels. Alternatively, the size
can also be stated as relative to the Adams window.
4. The vertical and horizontal resizing options are used to adjust the placement of the option menu on
existing dialog box. For example, attach_left; attach_top options for Horiz_resizing and Vert_resizing
will place the option menu on the top left corner of the dialog box. The location can also be specified
from the top left corner by adjusting the parameter, ‘location’.
5. The size of the toggle button window can be specified with respect to the Adams window size. The
value for parameter height and width should be a real number between 0.0 and 2.0, where 2.0
represents the height of the Adams View window. Therefore, a value of 1.0 will set the information
window to half as high as the Adams View window.
6. If the Label is specified, then the string associated will appear with a toggle window, where click and
unclick will be denoted by a ‘tick’. Alternatively, if the iconic image is selected for the toggle button,
then the iconic button will be displayed with corresponding image on it, with no label of ‘tick-mark’.
The label for an axis will be displayed near the axis, its placement depending on where the axis is
placed. The label can be of unlimited length, but may not all fit on the plot if it is very long. If the
string contains spaces, it must be enclosed in quotation marks. The parameter, ‘icon_file’ specifies the
name of the file that contains the icon definition for use on an iconic menu.
7. The default state of the toggle button is specified by ‘state’, whether it is on or off. Otherwise, the
values are specified as string where the status of the toggle button can be marked. It is mutually
exclusive with the ‘state’ mentioned above.
8. The parameter ‘command’ specifies the name of the command to be executed when the toggle button
status is ON.
9. The push button iconic image can be changed by specifying the ‘Hit_icon_file’, that is, when the push
button is active, it will show one image on the button, and when it is toggled or inactive, the iconic
image will toggle to another image file specified.
210 Adams View Commands
interface toggle_button set
Tips:
The parameters, ‘state’ and ‘value’, are mutually exclusive.
The commands display and undisplay works when any menu box is open, as the button will be created on
an existing menu.
Format:
interface toggle_button set
toggle_button_name = an existing GI_toggl_btn
state = on_off
value = string
execute = boolean
Example:
interface toggle_button set &
toggle_button_name = tgb &
state = on &
execute = yes
Description:
Extended Definition:
1. The state or the value denotes the current status of the button when it is displayed. Thus, if the status
is ON, the toggle button will be ON when displayed.
2. The SET command is used to setup the initial condition of the parameters when the button is
displayed or activated.
interface 211
interface toggle_button undisplay
Tips:
The parameters, ‘value’ and ‘state’, are mutually exclusive.
Format:
interface toggle_button undisplay
toggle_button_name = an existing GI_toggl_btn
Example:
interface toggle_button display &
toggle_button_name = tgb
Extended Definition:
The toggle button displayed on of the any menus, is closed.
Format:
interface toolbar create
toolbar_name = a new GI_toolbar
enabled = boolean
help_text = string
documentation_text = string
units = int_units
horiz_resizing = int_h_resize
vert_resizing = int_v_resize
location = real
212 Adams View Commands
interface toolbar create
Example:
interface toolbar create &
toolbar_name = .gui.ppwndw.tlbr &
location = 0.2, 0.2 &
height = 0.2 &
width = 0.9 &
enabled = yes &
help_text = "text2help" &
documentation_text = "text2doc" &
units = relative &
horiz_resizing = attach_left &
vert_resizing = attach_top &
rank = 2 &
top = yes
Description:
Extended Definition:
1. The preliminary parameters of the toolbar like size, rank and label are set using this command.
2. The pop-up help and documentation help can be specified in appropriate columns.
3. The size of the toolbar can be specified either in terms of number of pixels. Alternatively, the size can
also be stated as relative to the pop_up window
4. The vertical and horizontal resizing options are used to adjust the placement of the toolbar menu on
existing pop_window. For example, attach_left; attach_top options for Horiz_resizing and
Vert_resizing will place the toolbar on the top left corner of the pop_up. The location can also be
specified from the top left corner by adjusting the parameter ‘location’
5. The size of the toolbar window can be specified with respect to the pop_up window size. The value
for parameter height and width should be a real number between 0.0 and 2.0, where 2.0 represents
the height of the window. Therefore, a value of 1.0 will set the toolbar to be one half as high as the
pop_up window.
6. The toolbar remains on the ‘top’ of other windows if specified ‘yes’ for the parameter ‘top’
Format:
interface toolbar delete
toolbar_name = an existing GI_toolbar
Example:
interface toolbar delete &
toolbar_name = .gui.ppwndw.tlbr
214 Adams View Commands
interface toolbar display
Description:
Extended Definition:
1. The toolbar can be deleted by specifying the ‘toolbar name’ while the ‘delete’ command.
Format:
interface toolbar display
toolbar_name = an existing GI_toolbar
Example:
interface toolbar display &
toolbar_name = .gui.new_window.tlbr
Description:
Extended Definition:
1. The toolbar can be displayed or closed as the need arises by using the ‘display’ and ‘undisplay’
commands.
Format:
interface toolbar modify
toolbar_name = an existing GI_toolbar
new_toolbar_name = a new GI_toolbar
enabled = boolean
help_text = string
documentation_text = string
units = nt_units
horiz_resizing = int_h_resize
vert_resizing = int_v_resize
location = real
height = real
width = real
rank = integer
top = boolean
Example:
interface toolbar modify &
toolbar_name = .gui.ppwndw.tlbr &
new_toolbar_name = .gui.ppwndw.tlbr1 &
location = 0.2, 0.2 &
height = 0.2 &
width = 0.9 &
enabled = yes &
help_text = "text2help" &
documentation_text = "text2doc" &
units = relative &
horiz_resizing = attach_left &
vert_resizing = attach_top &
rank = 2 &
top = yes
216 Adams View Commands
interface toolbar modify
Description:
Extended Definition:
1. The preliminary parameters of the toolbar like size, rank and label are set using this command.
2. The pop-up help and documentation help can be specified in appropriate columns.
3. The size of the toolbar can be specified either in terms of number of pixels. Alternatively, the size can
also be stated as relative to the pop_up window
4. The vertical and horizontal resizing options are used to adjust the placement of the toolbar menu on
existing pop_window. For example, attach_left; attach_top options for Horiz_resizing and
Vert_resizing will place the toolbar on the top left corner of the pop_up. The location can also be
specified from the top left corner by adjusting the parameter ‘location’
5. The size of the toolbar window can be specified with respect to the pop_up window size. The value
for parameter height and width should be a real number between 0.0 and 2.0, where 2.0 represents
the height of the window. Therefore, a value of 1.0 will set the toolbar to be one half as high as the
pop_up window.
interface 217
interface toolbar undisplay
6. The toolbar remains on the ‘top’ of other windows if specified ‘yes’ for the parameter ‘top’
Format:
interface toolbar undisplay
toolbar_name = an existing GI_toolbar
Example:
interface toolbar undisplay &
toolbar_name = .gui.ppwndw.tlbr
Description:
Extended Definition:
1. The toolbar can be displayed or closed as the need arises by using the ‘display’ and ‘undisplay’
commands.
Format:
Interface view create
view_name = a new view
enabled = boolean
help_text = string
documentation_text = string
218 Adams View Commands
interface view create
Example:
interface view create &
view_name = .gui.win.user_view &
enabled = yes &
help_text = "text2help" &
documentation_text = "text2doc" &
units = relative &
horiz_resizing = attach_left &
vert_resizing = attach_top &
location = 0.0, 0.0 &
height = .4 &
width = .4 &
eye = 0,0,1000 &
target = 500,0,0 &
up_vector = 0,1000,0
Description:
Extended Definition:
1. A view name is string of characters that identifies a viewport or set of viewport attributes stored in the
database. View_names are assigned by the user when a view is created. After a view has been created,
it may be referenced by its name until it is deleted. A view may not have the same name as another
view. A view_name may be arbitrarily long and a combination of letters of the alphabet and numbers
may be used. The leading character must be a letter.
2. The pop-up help and documentation help can be specified initially.
3. The size of the view window can be specified either in terms of number of pixels. Alternatively, the
size can also be stated as relative to the Adams or custom window.
4. The vertical and horizontal resizing options are used to adjust the placement of the view window on
existing dialog box. For example, attach_left; attach_top options for Horiz_resizing and Vert_resizing
will place the view window on the top left corner of the Adams or custom window. The location can
also be specified from the top left corner by adjusting the parameter ‘location’
5. The size of the view window can be specified with respect to the custom of Adams window size value
for parameter height and width should be a real number between 0.0 and 2.0, where 2.0 represents
the height of the Adams or custom window. Therefore, a value of 1.0 will set the view field window
to be one half as high as the Adams or custom window.
6. The ‘eye’ is similar to a camera position. The eye is specified by its x,y,z coordinates which specifies
the location from where the object is being viewed.
220 Adams View Commands
interface view delete
7. The parameter ‘target’ is the location to which is camera is targeted. The ‘target’ is also specified by
its x,y and z coordinates. This location will be positioned at the center of the view window to be
created.
8. The ‘up_vector’ determines the inclination of the of the camera or the upward direction of the model.
For example, setting the up_vector to 0,1000,0, the global y axis will be directed upwards showing
the front view of the object, if the eye is set at 0,0,0. Note that, if the eye is set at 0,0,0 which implies
that the camera is set at oriGIn, it will not capture the object targeted at unless the object is at
sufficient distance in z direction.
9. The camera should be away from the object in the respective axis to view the object – specified by
parameter ‘eye’. The target location appears at the center of the view, thus if you target at the center
of a circular object, the object will be viewed with its center at the middle of the view window. The
inclination of viewing, which is similar to rotating an object, is achieved by setting the up-vector in
coordination with ‘eye’.
Format:
interface view delete
view_name = an existing view
Example:
interface view delete &
view_name = .gui.win.user_view
Description:
Extended Definition:
1. A view name is string of characters that identifies a viewport or set of viewport attributes stored in the
database. View_names are assigned by the user when a view is created. After a view has been created,
it may be referenced by its name until it is deleted. A view may not have the same name as another
view. A view_name may be arbitrarily long and a combination of letters of the alphabet and numbers
may be used. The leading character must be a letter.
A new_view_name will replace the name of an existing view.
2. The view can be deleted by this command.
Format:
interface view display
view_name = an existing view
Example:
interface view display &
view_name = .gui.win.user_view
Description:
Extended Definition:
1. A view name is string of characters that identifies a viewport or set of viewport attributes stored in the
database. View_names are assigned by the user when a view is created. After a view has been created,
it may be referenced by its name until it is deleted. A view may not have the same name as another
view. A view_name may be arbitrarily long and a combination of letters of the alphabet and numbers
may be used. The leading character must be a letter.
A new_view_name will replace the name of an existing view.
2. The view can be displayed by this command.
222 Adams View Commands
interface view modify
Format:
interface view modify
view_name = an existing view
new_view_name = a new view
enabled = boolean
help_text = string
documentation_text = string
units = int_units
horiz_resizing = int_h_resize
vert_resizing = int_v_resize
location = real
height = real
width = real
eye = location
target = location
up_vector = location
Example:
interface view modify &
view_name = .gui.win.user_view &
new_view_name = .gui.win.user_view2 &
enabled = yes &
help_text = "text2help" &
documentation_text = "text2doc" &
units = relative &
horiz_resizing = attach_left &
vert_resizing = attach_top &
location = 0.0, 0.0 &
interface 223
interface view modify
Description:
Extended Definition:
1. A view name is string of characters that identifies a viewport or set of viewport attributes stored in the
database. View_names are assigned by the user when a view is created. After a view has been created,
it may be referenced by its name until it is deleted. A view may not have the same name as another
view. A view_name may be arbitrarily long and a combination of letters of the alphabet and numbers
may be used. The leading character must be a letter.
A new_view_name will replace the name of an existing view.
2. The pop-up help and documentation help can be specified initially.
3. The size of the view window can be specified either in terms of number of pixels. Alternatively, the
size can also be stated as relative to the Adams or custom window
4. The vertical and horizontal resizing options are used to adjust the placement of the view window on
existing dialog box. For example, attach_left; attach_top options for Horiz_resizing and Vert_resizing
will place the view window on the top left corner of the Adams or custom window. The location can
also be specified from the top left corner by adjusting the parameter ‘location’
5. The size of the view window can be specified with respect to the custom of Adams window size value
for parameter height and width should be a real number between 0.0 and 2.0, where 2.0 represents
the height of the Adams or custom window. Therefore, a value of 1.0 will set the view field window
to be one half as high as the Adams or custom window.
6. The ‘eye’ is similar to a camera position. The eye is specified by its x,y,z coordinates which specifies
the location from where the object is being viewed.
7. The parameter ‘target’ is the location to which is camera is targeted. The ‘target’ is also specified by
its x,y and z coordinates. This location will be positioned at the center of the view window to be
created.
8. The ‘up_vector’ determines the inclination of the of the camera or the upward direction of the model.
For example, setting the up_vector to 0,1000,0, the global y axis will be directed upwards showing
the front view of the object, if the eye is set at 0,0,0. Note that, if the eye is set at 0,0,0 which implies
that the camera is set at oriGIn, it will not capture the object targeted at unless the object is at
sufficient distance in z direction.
9. The camera should be away from the object in the respective axis to view the object – specified by
parameter ‘eye’. The target location appears at the center of the view, thus if you target at the center
of a circular object, the object will be viewed with its center at the middle of the view window. The
inclination of viewing, which is similar to rotating an object, is achieved by setting the up-vector in
coordination with ‘eye’.
Format:
interface view undisplay
view_name = an existing view
Example:
interface view undisplay &
view_name = .gui.win.user_view
Description:
Extended Definition:
1. A view name is a string of characters that identifies a viewport or set of viewport attributes stored in
the database. View_names are assigned by the user when a view is created. After a view has been
created, it may be referenced by its name until it is deleted. A view may not have the same name as
another view. A view_name may be arbitrarily long and a combination of letters of the alphabet and
numbers may be used. The leading character must be a letter.
A new_view_name will replace the name of an existing view.
2. The view can be closed by this command.
Format:
interface window create
window_name = new_GI_window
enabled = boolean
help_text = String
documentation_text = String
units = int_units
horiz_resizing = int_h_resize
vert_resizing = int v_resize
226 Adams View Commands
interface window create
Example:
interface window create &
window_name = my_window &
height = 1.0 &
width = 2.0 &
enabled = yes &
help_text = "My first window" &
width_minimum = 250 &
width_maximum = 500 &
title = "My window"
This will create a window having the title “My Window” with height =1.0[Half of the Adams View window)
and width=2.0(Same Width as Adams View window). The minimum width beyond which the user will not
be able to resize would be 250 and the maximum width would be 500. Since there is no height minimum
and maximum specified, the user can resize the window created to any size.
interface 227
interface window create
Description:
Extended Definition:
1. The title is a "quoted" character string that will be displayed at the top of the window. The title will
be scaled and centered automatically.
Titles need not be unique.A title may be arbitrarily long and a combination of letters of the alphabet
and numbers may be used.
Format:
interface window delete
Window_name = existing GI_window
Example:
interface window delete &
Window_name = WIN_1
Description:
Format:
interface window display
Window_name = existing GI_window
Parameters = string
Example:
interface window display &
Window_name = WIN_1
Description:
Format:
interface window modify
window_name = existing_GI_window
new_window_name = new name for the window
enabled = boolean
230 Adams View Commands
interface window modify
Example:
interface window modify &
window_name = MY_WINDOW &
new_window_name = MODIFIED_WINDOW &
height = 1.0 &
width = 2.0 &
enabled = yes &
help_text = "My first window" &
width_minimum = 250 &
width_maximum = 500 &
title = "My window"
This will modify the window having the title “My Window” with height =1.0 [Half of the Adams View
window) and width=2.0 (Same Width as Adams View window). The minimum width beyond which the user
will not be able to resize would be 250 and the maximum width would be 500. Since there is no height
minimum and maximum specified, the user can resize the window created to any size.
231 Adams View Commands
interface window modify
Description:
Extended Definition:
1. The title is a "quoted" character string that will be displayed at the top of the window. The title will
be scaled and centered automatically.
Titles need not be unique.A title may be arbitrarily long and a combination of letters of the alphabet
and numbers may be used.
Format:
interface window undisplay
window_name = an existing GI_window
Example:
interface window undisplay &
window_name = .gui.win
interface write
Allows the writing a set of commands for creating a GUI.
The graphic user interface (gui) is created with a set of commands. The GUI may be a window or a dialog
box created. The set of commands used to create the GUI are written to a file using the ‘write’ command.
Format:
interface write
gui_name = an existing GI_gui
file_name = string
Example:
interface write &
gui_name = .gui.dbox &
file_name = "c:/gui_text.txt"
Description:
Extended Definition:
1. Any GUI, for example, a toolbar, window, dialog box and so on, created using a set of commands.
These commands can be written to a file, where the file_name specifies the name of the file that is to
be read, written, or executed. The proper extension is the default but can be overridden by simply
supplying a different extension. You do not need to enclose the file name in quotes if it only contains
alpha-numeric characters and starts with a letter. If you want to include other characters, such as a '.'
for an extension or '/' or ‘[]' for directory paths, you must enclose the name in quotes.
234 Adams View Commands
interface write
library 1
library copy
library
library copy
Allows you to copy an existing library.
The command allows copying an existing library to a new library.
Format:
library copy
library_name = an existing library
new_library_name = a new library
Example:
library copy &
library_name = .MDI.image &
new_library_name = new_images
Description:
Extended Definition:
The existing library can be copied to a new library by this command, by specifying the ‘library_name’ and
the ‘new_library_name’.
library create
Allows you to create a new library.
The command allows creation of a new library in the database.
Format:
library create
library_name = a new library
2 Adams View Commands
library delete
Example:
library create &
library_name = .materials.LIBRARY1
Description:
Extended Definition:
A new library can be created by using the command, ‘library create’.
library delete
Allows you to delete an existing library.
The command allows deletion of an existing library.
Format:
library delete
library_name = an existing library
Example:
library delete &
library_name = new_images
Description:
Extended Definition:
The existing library can be deleted by using the command, and specifying the ‘library_name’.
library modify
Allows you to modify an existing library.
The command allows modifying an existing library to a new library.
library 3
library modify
Format:
library modify
library_name = an existing library
new_library_name = a new library
Example:
library modify &
library_name = .materials.LIBRARY1 &
new_library_name = library2
Description:
Extended Definition:
The existing library can be modified to a new library by this command, by specifying the ‘library_name’ and
the ‘new_library_name’.
4 Adams View Commands
library modify
list_info 1
list_info aggregate_mass
list_info
list_info aggregate_mass
Computes the total mass and inertia properties of the requested parts.
Format:
list_info aggregate_mass
part_names = existing body
model_name = existing model
relative_to = existing model/part/marker
brief = on/off
write_to_terminal = on/off
file_name = string
Example:
list_info aggregate_mass &
model_name = .model_1 &
brief = on &
write_to_terminal = off &
file_name = “c:\AView\model_info.txt”
This will display the mass and inertia properties of the model in the file model_info.txt.
Description:
Extended Definition:
1. If the relative_to parameter is not specified, the default coordinate system is used. The default
coordinate system is initially your model, i.e. the global coordinate system. You may change the
default coordinate system using the 'defaults coordinate_system' command.
Cautions:
1. The ground part, and any part with zero mass will be ignored.
list_info analysis
Specifies information about the analysis within the model such as the result set, graphics file, result file,
request file, parent etc.
Format:
list_info analysis
analysis_name = existing analysis
brief = on/off
write_to_terminal = on/off
file_name = string
Example:
list_info analysis &
brief = on
If no parameters are specified, the above command will display brief information about all the analysis
existing within the current model. If brief was turned off then it would display the details of all the steps of
the internal solver.
Object Name : .model_1.Last_Run
Object Type : Analysis
list_info 3
list_info constraint
Result_Set:
PART_2_XFORM ADAMS ID: None TYPE: Result_Set
PART_3_XFORM ADAMS ID: None TYPE: Result_Set
JOINT_1 ADAMS ID: None TYPE: Result_Set
JOINT_2 ADAMS ID: None TYPE: Result_Set
Description:
Tips:
1. Typing ? after file_name parameter will open the browse window in Windows platform making it
easier to specify the file to which the information would be written into.
list_info constraint
lists information about the current state of the constraint in the system.
Format:
list_info constraint
constraint_name = existing constraint
joint_name = existing joint
gear_name = existing gear name
coupler_name = existing coupler name
jprim_name = existing jprim name
point_curve_name = existing point_curve name
4 Adams View Commands
list_info constraint
list_info constraint
curve_curve_name = existing curve curve name
motion_name = existing motion name
user_constraint_name = existing user constraint name
brief = on/off
write_to_terminal = on/off
file_name = String
Example:
list_info constraint &
joint_name = JOINT_1 &
point_curve_name = PTCV_1 &
brief = off
This command will display the detailed information about the specified joint and the point curve and its
dependants on the screen in the information dialog window .
Description:
Extended Definition:
1. If the parameter “Brief” is turned on then only the information about the constraint is displayed such
as location and orientation without specifying the information on the dependants. If “Brief” is turned
off then the information about the dependents is also displayed.
Caution:
1. The directory which you specify the file_name should exist. If it does not then the constraint
information will not be copied into the specified filename.
Tips:
1. To specify file_name parameter, typing “?” after the “file_name=” will open the Browse window using
which the required filename can be specified.
2. The information in list_info constraint can be sent to the information window, a file, or both.
list_info curves
Format:
list_info curves
curve_name = existing plot curve name
brief = on/off
write_to_terminal = on/off
file_name = string
Example:
list_info curves &
Brief = on
If no parameters are specified, the above command will display brief information about all the plot curve
names existing within the current model.
Description:
Tips:
1. Typing ? after file_name parameter will open the browse window in Windows platform making it
easier to specify the file to which the information would be written into.
list_info data_element
Format:
list_info data_element
data_element_name = existing data element name
curve_name = existing curve name
spline_name = existing spline name
variable_name = existing variable name
array_name = existing array name
matrix_name = existing matrix name
plant_input_name = existing plant input
plant_output_name = existing plant output
plant_state_name = existing plant state name
string_name = existing ADAMS string name
brief = on/off
write_to_terminal = on/off
file_name = String
Example:
list_info data_element &
Curve_name = curve_1 &
Write_to_terminal = off &
list_info 7
list_info defaults
The above statements will write the brief information about the curve data element in the file specified. The
information window will not be displayed on the terminal as the write_to_terminal parameter is turned off.
Description:
list_info defaults
The LIST_INFO DEFAULTS command is used to list information about the current settings of the systems
defaults. The information can be sent to the information window, a file, or both.
Format:
list_info defaults
brief = on/off
write_to_terminal = on/off
file_name = string specifying the file path
8 Adams View Commands
list_info eigen_values
Example:
list_info defaults &
brief = on &
write_to_terminal = off &
file_name = "C:\info.txt"
Description:
Extended Definition:
1. The ‘write_to_terminal’ parameter is most likely be used in conjunction with the FILE_NAME
parameter to get the information put to a file only.
list_info eigen_values
List information about all the eigen solution's predicted eigenvalues. You may instruct Adams View to print
this information to the "Info Window" or to a file or both.
Format:
list_info eigen_values
eigen_solution_name = an existing eigen
brief = on/off
write_to_terminal = on/off
file_name = string specifying the file path
Example:
list_info eigen_values &
eigen_solution_name = eigen_1 &
brief = on &
write_to_terminal = off &
file_name = "C:\info.txt"
list_info 9
list_info eigen_values
Description:
Extended Definition:
1. The information includes:
• MODE_NUMBER -the sequential number of the mode that was predicted by the eigen
solution.
• FREQUENCY -the natural frequency corresponding to the mode (that is, the eigenvalue)
• DAMPING -the damping ratio for the mode (the log decrement is another way to represent
this quantity).
• EIGENVALUES -list the real and imaginary part of the eigenvalue.
2. You may identify a eigen_solution by typing its name. Specifies an EIGEN_SOLUTION in a
existing analysis. If an eigen_solution is available by default, you may identify it by entering its name
only. The EIGEN_SOLUTION must be in an existing analysis that is associated to an existing
model. Therefore, any reference to the EIGEN_SOLUTION can include the model and analysis
name. For example, assume you have read a result file called "SECOND_GEAR.RES", and this result
file contains the analysis "SECOND_GEAR". If you wish to refer to the EIGEN_SOLUTION
named "EIG1" for the model "TRANSMISSION", enter
.TRANSMISSION.SECOND_GEAR.EIG1 (the .TRANSMISSION.SECOND_GEAR. may be
omitted if SECOND_GEAR is the current default analysis_name). SECOND_GEAR refers to the
analysis name that the result set came from (or is stored under). The eigen_solution name begins with
the letters EIG and ends with the eigen_solution ID number. You must separate multiple
eigen_solution names by commas. If the eigen_solution is visible in one of your views, you may
identify it by picking on any of the graphics associated with it.
3. The ‘write_to_terminal’ parameter is most likely be used in conjunction with the FILE_NAME
parameter to get the information put to a file only.
Tips:
1. If you type a "?", Adams View will list the eigen_solutions available by default.
10 Adams View Commands
list_info entity
list_info entity
Lists information about the variables’s in the current model.
Format:
list_info entity
Entity_name = Existing entity name
Type_filter = Object type
Brief = on/off
Write_to_terminal = on/off
File_name = string
Example:
list_info entity &
entity_name = MACRO_1
type_filter = macro
brief = off
write_to_terminal = on
file_name = "C:\Documents and Settings\aview\My Documents\my_file"
This will display the following information on the terminal as well as in the file “my_file”,
Object Name : .MACRO_1
Object Type : Macro
User Command : None specified, using the macro name
'MACRO_1'
Wrap in Undo : No
Help : None specified
Commands :
! $FIRST_MARKER: T=marker
! $SECOND_MARKER: T=marker
! $NEW_MARKER_NAME: T=new_marker
!
marker create marker_name=$NEW_MARKER_NAME &
location = (( ($FIRST_MARKER.loc_x)+($SECOND_MARKER.loc_x)
)/2 ), &
(( ($FIRST_MARKER.loc_y)+($SECOND_MARKER.loc_y) )/2 ), &
(( ($FIRST_MARKER.loc_z)+($SECOND_MARKER.loc_z) )/2 ) &
orientation = 0,0,0 &
relative_to = ground
If brief is turned on then the dependant information will not be displayed.
list_info 11
list_info executive_control equilibrium_parameters
Description:
Tips:
1. Typing “?” after “file_name=” parameter will open the file browse window in Windows environment,
making it easier to specify the file name.
Example:
list_info executive_control equilibrium_parameters
Without specifying any parameters, the command above will display the following:
Equilibrium Analysis Settings For Model: .MODEL_2
Dynamic : No
Alimit : 10.0 deg
Error : 1.0E-004
Imbalance : 1.0E-004 newton
Maxit : 25
Pattern For Jacobian : Yes, Yes, Yes, Yes, Yes, Yes, Yes, Yes, Yes, Yes
12 Adams View Commands
list_info executive_control initial_conditions_parameters
Stability : 1.0E-005
Tlimit : 20.0
Global Damping : 0.0
Max Settling Time : 100.0 sec
Acceleration Error : 2.0E-002
Kinetic Energy Error : 2.0E-002
Static Method : Original
It will take the default model open as the argument and shows the equilibrium parameters for that.
Description:
Tips:
1. Typing ? after file_name parameter will open the browse window in Windows platform making it
easier to specify the file to which the information would be written into.
Format:
list_info executive_control initial_conditions_parameters
model_name = an existing model name
brief = on/off
write_to_terminal = on/off
file_name = string specifying the file path
list_info 13
list_info executive_control initial_conditions_parameters
Example:
list_info executive_control initial_conditions_parameters &
model_name = model_1 &
brief = on &
write_to_terminal = off &
file_name = "C:\info.txt"
Description:
Extended Definition:
1. Initial conditions parameters include error tolerances and other parameters that control the initial
conditions analysis.
2. You would set these parameters only when requesting a dynamic, static equilibrium, or quasi-static
equilibrium analysis, and wish to change one or more of the tolerances for the initial conditions
analysis.
3. ADAMS automatically does an initial conditions analysis. An initial conditions analysis is not
necessary when the system has zero degrees of freedom because, in that case the kinematics of the
system fully determine its configuration.
4. The initial conditions analysis ensures that the system satisfies all constraints within the system. If
necessary ADAMS moves parts until both parts of each joint are in contact. This analysis involves
three separate phases. First, ADAMS makes the displacements between all parts and all joints in the
system physically consistent. This requires the use of Newton-Raphson iteration to solve a set of
nonlinear algebraic equations. Once the displacements are consistent, ADAMS makes the velocities
physically consistent. Because this requires solving a set of linear equations, iteration is not necessary.
Finally, ADAMS calculates consistent accelerations and forces. This solution also requires solving a
set of linear equations.
14 Adams View Commands
list_info executive_control integrator_parameters
5. You may identify a model by typing its name or by picking it from the screen. If the model is not
visible on the screen, you must type the name. You may also find it convenient to type the name even
if the model is displayed. You must separate multiple model names by commas. If the model is visible
in one of your views, you may identify it by picking on any of the graphics associated with it. You
need not separate multiple model picks by commas.
6. The ‘write_to_terminal’ parameter is most likely be used in conjunction with the FILE_NAME
parameter to get the information put to a file only.
Tips:
1. If the model is visible in one of your views, you may identify it by picking on any of the graphics
associated with it.
Format:
list_info executive_control integrator_parameters
model_name = existing model name
brief = on/off
write_to_terminal = on/off
file_name = string
Example:
list_info executive_control equilibrium_parameters
Beta : 0.36
Gamma : 0.7
It will take the default model open as the argument and show the equilibrium parameters for that.
Description:
Tips:
1. Typing ? after file_name parameter will open the browse window in Windows platform making it
easier to specify the file to which the information would be written into.
Format:
list_info executive_control kinematics_parameters
model_name = an existing model name
brief = on/off
write_to_terminal = on/off
file_name = string specifying the file path
Example:
list_info executive_control kinematics_parameters &
model_name = model_1 &
brief = on &
write_to_terminal = off &
file_name = "C:\info.txt"
16 Adams View Commands
list_info executive_control numeric_integration_parameters
Description:
Extended Definition:
1. Kinematics parameters include error tolerances and other parameters for kinematic analyses. You
would set these parameters only when you are requesting a kinematic analysis and you want to change
one or more of the tolerances and parameters from the default values. A kinematic analysis is only
appropriate when a system has zero degrees of freedom. A kinematic analysis solves for the
displacements, velocities, accelerations, and forces (if any) at a series of points in time.
2. To find the displacements, ADAMS uses Newton-Raphson iteration to solve a nonlinear set of
algebraic equations. After finding the displacements, ADAMS solves linear equations without
iteration to find the velocities, accelerations, and forces. ADAMS repeats this procedure at
successively later times until it obtains results over the period of time specified in the ADAMS
SIMULATE command.
3. You may identify a model by typing its name or by picking it from the screen. If the model is not
visible on the screen, you must type the name. You may also find it convenient to type the name even
if the model is displayed. You must separate multiple model names by commas. If the model is visible
in one of your views, you may identify it by picking on any of the graphics associated with it. You
need not separate multiple model picks by commas.
4. The ‘write_to_terminal’ parameter is most likely be used in conjunction with the FILE_NAME
parameter to get the information put to a file only.
list_info executive_control
numeric_integration_parameters
Format:
list_info executive_control numeric_integration_parameters
model_name = existing model name
brief = on/off
list_info 17
list_info executive_control sensor
Description:
Tips:
1. Typing ? after file_name parameter will open the browse window in Windows platform making it
easier to specify the file to which the information would be written into.
Format:
list_info executive_control sensor
model_name = an existing model name
brief = on/off
write_to_terminal = on/off
file_name = string specifying the file path
Example:
list_info executive_control sensor &
model_name = model_1 &
brief = on &
write_to_terminal = off &
file_name = "C:\info.txt"
18 Adams View Commands
list_info executive_control solver_parameters
Description:
Extended Definition:
1. You may identify a model by typing its name or by picking it from the screen. If the model is not
visible on the screen, you must type the name. You may also find it convenient to type the name even
if the model is displayed. You must separate multiple model names by commas. If the model is visible
in one of your views, you may identify it by picking on any of the graphics associated with it. You
need not separate multiple model picks by commas.
2. The ‘write_to_terminal’ parameter is most likely be used in conjunction with the FILE_NAME
parameter to get the information put to a file only.
Tips:
1. If the model is visible in one of your views, you may identify it by picking on any of the graphics
associated with it.
Format:
list_info executive_control solver_parameters
model_name = an existing model name
brief = on/off
write_to_terminal = on/off
file_name = string specifying the file path
list_info 19
list_info files
Example:
list_info executive_control solver_parameters &
model_name = model_1 &
brief = on &
write_to_terminal = off &
file_name = "C:\info.txt"
Description:
Extended Definition:
1. You can select between the harwell and calahan integration solvers in ADAMS. This selection is made
on a model by model basis. Therefore, each time you submit the model the chosen solver will be used
until this command is used to select the alternative. For a complete description of these solvers see the
ADAMS documentation.
2. You may identify a model by typing its name or by picking it from the screen. If the model is not
visible on the screen, you must type the name. You may also find it convenient to type the name even
if the model is displayed. You must separate multiple model names by commas. If the model is visible
in one of your views, you may identify it by picking on any of the graphics associated with it. You
need not separate multiple model picks by commas.
3. The ‘write_to_terminal’ parameter is most likely be used in conjunction with the FILE_NAME
parameter to get the information put to a file only.
Tips:
1. If the model is visible in one of your views, you may identify it by picking on any of the graphics
associated with it.
list_info files
List information about the ADAMS files that have been read. It does not list the command files or the user
data files.
20 Adams View Commands
list_info files
Format:
list_info files
analysis_name = an existing analysis
graphics_file = an existing analysis
request_file = an existing analysis
results_file = an existing analysis
brief = on/off
write_to_terminal = on/off
file_name = string specifying the file path
Example:
list_info files &
analysis_name = Last_Run &
graphics_file = Last_Run &
request_file = Last_Run &
results_file = Last_Run &
brief = on &
write_to_terminal = off &
file_name = "C:\info.txt"
Description:
Extended Definition:
1. The information includes:
• name: the name of the file specified on the file read command, minus the path and extension.
• type: request, results, or graphics steps the number of time steps
• date: the internal time stamp placed in the file by ADAMS corresponding to when the file was
created.
• title: the internal title placed in the file by ADAMS
2. You may identify a analysis by typing its name or by picking it from the screen.
An analysis may be picked from the screen if you have read an ADAMS Graphics file, and use the
GRAPHIC_RESULTS command to display it. If the analysis is not visible on the screen, you must
type the name. You may also find it convenient to type the name even if the analysis is displayed. You
may have explicitly named the analysis when you created it by reading one or more ADAMS output
files. By default, the name of the analysis is the root name of the ADAMS output files. If you created
the analysis by reading an ADAMS Graphics file, for instance, the analysis name is
the name of the graphics file without the '.gra' extension. You must separate multiple analysis names
by commas. If the analysis is visible in one of your views, you may identify it by picking on any of the
graphics associated with it. You need not separate multiple analysis picks by commas.
3. When a graphics file is read by Adams View a new analysis run is created and the information found
in the graphics file is stored under the analysis run name. The default name of the analysis run will
be the name of the graphics file excluding the extension.
4. When a request file is read by Adams View a new analysis run is created. Each block of data in the
request file that corresponds to a REQUEST statement in the ADAMS input data is stored as result
set in the analysis run. The default name of the analysis run will be the name of the request file
excluding the extension. This defaults analysis name can be overridden using the file_name
parameter. The the name of each result set will be "req" with the request statement ID appended to
it. For example, REQUEST/1508 would produce a result set name of "req1508".
5. When a results file is read by Adams View a new analysis run is created. Each block of data in the
results file corresponds to an ADAMS entity like PART JOINT,
22 Adams View Commands
list_info force
BUSHING, etc. The data corresponding to these entities is stored as result set in the analysis run.
The default name of the analysis run will be the name of the results file excluding the extension. This
defaults analysis name can be overridden using the file_name parameter. The the name of each result
set will be the first three letters of the entity name with the entity statement ID number appended to
it. For example, PART/101 would produce a result set name of "par101".
6. The ‘write_to_terminal’ parameter is most likely be used in conjunction with the FILE_NAME
parameter to get the information put to a file only.
Tips:
1. You may get a list of analysis by typing a "?" in response to a parameter that requires an analysis name
be entered.
list_info force
This command is used to display information about the force on the terminal or in a file.
Format:
list_info force
force_name = existing force name
single_component_force_name = existing single component force name
force_vector_name = existing force vector name
torque_vector_name = existing torque vector name
general_force_name = existing general force name
multi_point_force_name = existing multi_point force
gravity_field_name = existing gravity field
beam_name = existing beam name
bushing_name = existing bushing name
field_name = existing field name
spring_damper_name = existing spring damper name,
brief = on/off
write_to_terminal = on/off
file_name = string
Example:
list_info force &
force_name = SFORCE_1 &
list_info 23
list_info force
Description:
Extended Definition:
1. If the parameter brief is turned on then only the information about the force is displayed without
specifying the information on the I and the J marker. If brief is turned off then the information about
the I and J marker is also displayed.
Caution:
1. The directory which you specify the file_name should exist. If it does not then the constraint
information will not be copied into the specified filename.
list_info geometry
Will display information about the geometry. This information can be displayed either on the terminal or in
a file or both.
Format:
list_info geometry
geometry_name = existing geometry_name
arc_name = existing arc_name
block_name = existing block_name
circle_name = existing circle_name
cylinder_name = existing cylinder_name
frustum_name = existing frustrum name
force_name = existing force_name
outline_name = existing outline_name
polyline_name = existing polyline_name
spring_damper_name = existing spring_damper name
gstring_name = existing gstring name
ellipsoid_name = existing ellipsoid name
torus_name = existing torus name
revolution_name = existing revolution name
extrusion_name = existing extrusion name
plane_name = existing plane name
brief = on/off
write_to_terminal = on/off
file_name = string
list_info 25
list_info geometry
Example:
list_info geometry &
Geometry_name = LINK_1 &
Brief = off &
Write_to_terminal = on &
File_name = ” c:\geometry_info.txt”
This will display information about the Link geometry as shown below on the terminal as well as the file
“c:\geometry_info.txt”
I Marker : .model_1.PART_5.MARKER_5
Local :
Location : -50.0, 50.0, 0.0 (mm, mm, mm)
Orientation : 315.0, 0.0, 0.0 (deg)
Global :
Location : -50.0, 50.0, 0.0 (mm, mm, mm)
Orientation : 315.0, 0.0, 0.0 (deg)
J Marker : .model_1.PART_5.MARKER_6
Local :
Location : 150.0, -150.0, 0.0 (mm, mm, mm)
Orientation : 315.0, 0.0, 0.0 (deg)
Global :
Location : 150.0, -150.0, 0.0 (mm, mm, mm)
Orientation : 315.0, 0.0, 0.0 (deg)
Comments : None
Extended Definition:
1. If the parameter “brief” = ON, then the information of the dependants of the geometry will not be
displayed. If brief is OFF then the information of the geometry as well as its dependants is displayed.
Tips:
1. IF no parameters are specified to the list_info geometry command, it will display the information of
all the geometry objects in the current model.
2. On typing ? after the “file_name =”, the file browse window will appear allowing the file to be
specified.
list_info 27
list_info group
list_info group
Lists information about the groups in the current model.
Format:
list_info group
group_name = Existing group name
Brief = on/off
Write_to_terminal = on/off
File_name = string
Example:
list_info group &
group_name = GROUP_1 &
brief = off &
write_to_terminal = on &
file_name = "C:\My Documents\my_file"
This will display the following information on the terminal as well as in the file “my_file”,
Object Name : .model_1.GROUP1
Object Type : Group
Parent Type : Model
Objects :
PART_2 (Part)
PART_3 (Part)
MARKER_8 above was displayed because the parameter “brief ” was turned OFF and MARKER_8 was a
dependant on the part in the group. If brief is turned on then the dependant information will not be
displayed.
28 Adams View Commands
list_info linear_mode_shapes
Description:
Tips:
1. Typing “?” after “file_name=” parameter will open the file browse window in Windows environment,
making it easier to specify the file name.
list_info linear_mode_shapes
List the mode shapes for the model's bodies and equations for a linear analysis made during the simulation.
Format:
list_info linear_mode_shapes
eigen_solution_name = an existing eigen
accuracy = integer
normalize = on/off
brief = on/off
write_to_terminal = on/off
file_name = string specifying the file path
Example:
list_info linear_mode_shapes &
eigen_solution_name = eigen_1 &
accuracy = 10 &
normalize = off &
brief = on &
write_to_terminal = off &
file_name = "C:\info.txt"
list_info 29
list_info macro
Description:
Extended Definition:
1. The object type and ID number of all the objects in the mode shape are given, followed by the
coordinates of the object's mode shape, labeled with the coordinate's name.
2. You may identify a eigen_solution by typing its name. Specifies an EIGEN_SOLUTION in a
existing analysis. If an eigen_solution is available by default, you may identify it by entering its name
only. The EIGEN_SOLUTION must be in an existing analysis that is associated to an existing
model. Therefore, any reference to the EIGEN_SOLUTION can include the model and analysis
name. For example, assume you have read a result file called "SECOND_GEAR.RES", and this result
file contains the analysis "SECOND_GEAR". If you wish to refer to the EIGEN_SOLUTION
named "EIG1" for the model "TRANSMISSION", enter
.TRANSMISSION.SECOND_GEAR.EIG1 (the .TRANSMISSION.SECOND_GEAR. may be
omitted if SECOND_GEAR is the current default analysis_name). SECOND_GEAR refers to the
analysis name that the result set came from (or is stored under).
The eigen_solution name begins with the letters EIG and ends with the eigen_solution ID number.
You must separate multiple eigen_solution names by commas. If the eigen_solution is visible in one
of your views, you may identify it by picking on any of the graphics associated with it.
3. The ‘write_to_terminal’ parameter is most likely be used in conjunction with the FILE_NAME
parameter to get the information put to a file only.
Tips:
1. If you type a "?", Adams View will list the eigen_solutions available by default.
list_info macro
Lists information about the macro’s in the current model.
30 Adams View Commands
list_info macro
Format:
list_info macro
Macro_name = Existing macro
Brief = on/off
Write_to_terminal = on/off
File_name = string
Example:
list_info macro &
macro_name = MACRO_1 &
brief = off &
write_to_terminal = on &
file_name = "C:\My Documents\my_file"
This will display the following information on the terminal as well as in the file “my_file”,
Object Name : .MACRO_1
Object Type : Macro
User Command : None specified, using the macro name
'MACRO_1'
Wrap in Undo : No
Help : None specified
Commands :
! $FIRST_MARKER: T=marker
! $SECOND_MARKER: T=marker
! $NEW_MARKER_NAME: T=new_marker
!
marker create marker_name=$NEW_MARKER_NAME &
location = (( ($FIRST_MARKER.loc_x)+($SECOND_MARKER.loc_x) )/2 ), &
(( ($FIRST_MARKER.loc_y)+($SECOND_MARKER.loc_y) )/2 ), &
(( ($FIRST_MARKER.loc_z)+($SECOND_MARKER.loc_z) )/2 ) &
orientation = 0,0,0 &
relative_to = ground
list_info 31
list_info marker
Description:
Tips:
1. Typing “?” after “file_name=” parameter will open the file browse window in Windows environment,
making it easier to specify the file name.
list_info marker
lists information about the current state of the markers in the system.
Format:
list_info marker
marker_name = existing_marker
brief = on/off
write_to_terminal = on/off
file_name = string
Example:
:
This command will give the brief information about the marker_1 in the file specified.
Adams ID : 1
Active : NO_OPINION
Local :
Location : -500.0, 300.0, 0.0 (mm, mm, mm)
Orientation : 315.0, 0.0, 0.0 (deg)
Global :
Location : -500.0, 300.0, 0.0 (mm, mm, mm)
Orientation : 315.0, 0.0, 0.0 (deg)
If the Write_to_terminal parameter is turned on then the marker information is displayed on the terminal as
well.
Description:
Extended Definition:
1. If the parameter “Brief” is turned on then only the information about the marker is displayed such as
location and orientation without specifying the information on the markers dependants. If “Brief” is
turned off then the information about the marker dependents is also displayed.
Example of list_info marker with Brief = on
Object Name : .model_1.PART_2.MARKER_1
Object Type : Marker
Parent Type : Part
Adams ID : 1
Active : NO_OPINION
Local :
Location : -500.0, 300.0, 0.0 (mm, mm, mm)
Orientation : 315.0, 0.0, 0.0 (deg)
Global :
Location : -500.0, 300.0, 0.0 (mm, mm, mm)
Orientation : 315.0, 0.0, 0.0 (deg)
Example of list_info marker with Brief=off
Object Name : .model_1.PART_2.MARKER_1
Object Type : Marker
Parent Type : Part
Adams ID : 1
Active : NO_OPINION
list_info 33
list_info measure
Local :
Location : -500.0, 300.0, 0.0 (mm, mm, mm)
Orientation : 315.0, 0.0, 0.0 (deg)
Global :
Location : -500.0, 300.0, 0.0 (mm, mm, mm)
Orientation : 315.0, 0.0, 0.0 (deg)
Marker's Dependents:
LINK_1 ADAMS ID: 0 TYPE: Link
Comments : None
Caution:
1. The directory which you specify the file_name should exist. If it does not then the marker information
will not be copied into the specified filename.
Tips:
1. To specify file_name parameter, typing “?” after the “file_name=” will open the Browse window using
which the required filename can be specified.
2. The information in list_info marker can be sent to the information window, a file, or both.
list_info measure
List the distance between a marker and ground, or between two markers. The distance can be listed relative
to ground or a third marker.
The magnitude, X component, Y component, and the Z component are listed.
If the J_MARKER_NAME parameter is specified, the distance will be between the I and the J marker,
otherwise the distance will be from the I marker to ground.
If the R_MARKER_NAME parameter is specified the data will be relative to it, otherwise the data will be
relative to ground.
Because the location of the markers is time dependent, you can specify the time, frame_number, or
configuration of the model that the measurements are to be taken.
The information can be sent to the information window, a file, or both.
34 Adams View Commands
list_info measure
Format:
list_info measure
i_marker_name = existing marker
j_marker_name = existing marker
r_marker_name = existing marker
model_name = existing model
analysis_name = existing analysis
Configuration = display_frame
time = real
frame_number = integer
brief = on/off
write_to_terminal = on/off
file_name = string
Example:
list_info measure &
i_marker_name = MARKER_5 &
j_marker_name = MARKER_6 &
model_name = model_1 &
brief = off
This will measure the distance between MARKER_5 and MARKER_6 relative to the ground. The following
information will be displayed in the information window.
Measurements for the model:.model_1
The distance between MARKER_5 and MARKER_6 is:
MAG = 492.4428900898 mm
X = -200.0 mm
Y = 450.0 mm
Z = 0.0 mm
The angular offsets between MARKER_5 and MARKER_6 are:
ANG1 = 0.0 deg
ANG2 = 0.0 deg
ANG3 = 0.0 deg
list_info 35
list_info measure
Description:
Extended Definition:
1. The I_MARKER_NAME parameter is used with the LIST_INFO MEASURE command to list the
distance between two markers. The I_MARKER_NAME is the marker that the measurement is
from.
The I_MARKER_NAME parameter is a required parameter and a legal marker name must be
entered.
It Specifies an existing marker.
2. The J_MARKER_NAME parameter is used with the LIST_INFO MEASURE command to list the
distance between two markers. The J_MARKER_NAME is the marker that the measurement is "to".
36 Adams View Commands
list_info measure
The J_MARKER_NAME parameter is a required parameter and a legal marker name must be
entered.
It specifies an existing marker.
3. The R_MARKER_NAME parameter is used with the LIST_INFO MEASURE command to list the
distance between two markers. This means that the output from the measurement calculations will
be in a coordinate system based on the definition (orientation) of the R_MARKER_NAME.
The R_MARKER_NAME parameter is an optional parameter and if not entered the measurement
will be relative to the global (ground) coordinate system. If the R_MARKER_NAME parameter is
entered a legal marker name must be entered.
It specifies an existing marker.
4. You may identify a marker/model by typing its name or by picking it from the screen.
If the marker/model is not visible on the screen, you must type the name. You may also find it
convenient to type the name even if the marker is displayed.
If you created the marker/model by reading an ADAMS data set or graphics file, the marker name is
the letters MAR/ANA/MODEL followed by the ADAMS data set marker ID number. The name of
ADAMS MARKER/101 is MAR101, for example. If you created the marker/model during
preprocessing, you gave it a name at that time.
If a marker/model is available by default, you may identify it by entering its name only. If it is not,
you must enter its full name.
You must separate multiple marker/model names by commas.
If the marker/model is visible in one of your views, you may identify it by picking on it.
You need not separate multiple marker picks by commas.
5. An analysis may be picked from the screen if you have read an ADAMS Graphics file, and use the
GRAPHIC_RESULTS command to display it. If the analysis is not visible on the screen, you must
type the name. You may also find it convenient to type the name even if the analysis is displayed.
You may have explicitly named the analysis when you created it by reading one or more ADAMS
output files. By default, the name of the analysis is the root name of the ADAMS output files. If you
created the analysis by reading an ADAMS Graphics file, for instance, the analysis name is the name
of the graphics file without the '.gra' extension.
You may get a list of analysis by typing a "?" in response to a parameter that requires an analysis name
be entered.
You must separate multiple analysis names by commas.
If the analysis is visible in one of your views, you may identify it by picking on any of the graphics
associated with it.
You need not separate multiple analysis picks by commas.
6. The legal values for the configuration parameter are:
MODEL_INPUT, the configuration as input to ADAMS before analysis,
INITIAL_CONDITIONS, the configuration after initial conditions are met,
EQUILIBRIUM, the configuration after an equilibrium analysis,
list_info 37
list_info memory_usage parasolid
FORWARD, one frame forward from the current one displayed, and
BACKWARD, one frame backward from the current one displayed.
Therefore, this parameter is not used to specify a particular time or frame_number. In fact, this
parameter is mutually exclusive with the FRAME_NUMBER and TIME parameters. These two
parameter are used to specify the time dependent frames of the simulation output.
The CONFIGURATION parameter is optional and if not entered the system will display the 1st
time dependent frame in the graphics file (assuming it's mutually exclusive counterparts are not
entered either).
7. The frame with the closest time value to the time specified in this parameter will be selected. Adams
View will display the last frame if the time entered is greater than the time for the last frame in the
simulation.
This parameter is optional and mutually exclusive with the CONFIGURATION and
FRAME_NUMBER parameters. If none of the three are entered, the first frame will be displayed.
Special Note: Even if only one view_name is provided, the frame number will be applied to the
specified view and any other views that contain the same model (the model indicated by
analysis_name parameter). If only analysis_name is provided (view_name parameter is omitted), any
views that contain the model indicated by analysis_name will be affected.
8. If entered the frame_number must be a positive integer corresponding to the desired frame (output
time step) and the default value is initially 1. If a new value is entered, this value will be remembered
and be the default next time the command is used. If a value greater than the last frame number is
entered, the system will display the last frame.
This parameter is optional and mutually exclusive with the CONFIGURATION and TIME
parameters. If none of the three are entered, the first frame will be displayed.
Cautions:
1. Even if only one view_name is provided, the frame number will be applied to the specified view and
any other views that contain the same model (the model indicated by analysis_name parameter). If
only analysis_name is provided (view_name parameter is omitted), any views that contain the model
indicated by analysis_name will be affected.
Tips:
1. To identify a marker under a different part, for instance, you may need to enter the model and part
names as well. For example, you may specify marker 'pivot' from model 'links', part 'lower_arm' by
entering ".links.lower_arm.pivot". If you type a "?", Adams View will list the markers available by
default.
Format:
list_info memory_usage parasolid
brief = on/off
write_to_terminal = on/off
file_name = string specifying the file path
Example:
list_info memory_usage parasolid &
brief = on &
write_to_terminal = off &
file_name = "C:\info.txt"
Description:
Extended Definition:
1. The ‘write_to_terminal’ parameter is most likely be used in conjunction withthe FILE_NAME
parameter to get the information put to a file only.
list_info model
The LIST_INFO MODEL command is used to list the various elements known to the system (i.e. parts,
joints, ...). The information can be sent to the information window, a file, or both.
Format:
list_info model
model_name = model_name
brief = on/off
write_to_terminal = on/off
file_name = file path
list_info 39
list_info name_generation
Example:
list_info model &
model_name = model_1 &
brief = on &
write_to_terminal = on &
file_name = "C:\info.txt"
Description:
Extended Definition:
1. You may identify a model by typing its name or by picking it from the screen.
If the model is not visible on the screen, you must type the name. You may also find it convenient to
type the name even if the model is displayed. You must separate multiple model names by commas.
If the model is visible in one of your views, you may identify it by picking on any of the graphics
associated with it. You need not separate multiple model picks by commas.
2. The write_to_terminal parameter is most likely be used in conjunction with the FILE_NAME
parameter to get the information put to a file only.
list_info name_generation
Allows the user to obtain information for the default names Adams View generates.
Information for the default name settings includes: a general prefix, an entity-specific prefix, an integer entity
identifier, and a general suffix. These prefixes, suffixes, and identifiers are combined together to form the
default name.
You may instruct Adams View to print this information to the "Info Window" or to a file.
40 Adams View Commands
list_info name_generation
Format:
list_info name_generation
Brief = on/off
Write_to_terminal = on/off
File_name = string
Example:
list_info name_generation &
brief = on &
write_to_terminal = on &
file_name = "C:\My Documents\my_file"
This will display the following information on the terminal as well as in the file “my_file”,
Description:
Tips:
1. Typing “?” after “file_name=” parameter will open the file browse window in Windows environment,
making it easier to specify the file name.
list_info names
Allows the user to obtain information for existing database entities. You may instruct Adams View to print
this information to the "Info Window" or to a file or both.
42 Adams View Commands
list_info names
Format:
list_info names
entity_name = an existing entity
type_filter = an existing object type
brief = on/off
write_to_terminal = on/off
file_name = "C:\info.txt"
Example:
list_info names &
entity_name = gui &
type_filter = color &
brief = off &
write_to_terminal = on &
file_name = "C:\info.txt"
Description:
Extended Definition:
1. You may identify a database entity by typing its name or by picking it from the screen. If the database
entity is not visible on the screen, you must type the name. You may also find it convenient to type
the name even if the database entity is displayed. If you created the database entity by reading an
ADAMS data set or graphics file, the database entity name is the first three letters of the ADAMS
object, followed by the ADAMS data set database entity ID number. The name of ADAMS
PART/101 is PAR101, for example. If you created the database entity during preprocessing, you gave
it a name at that time.
list_info 43
list_info notes
2. If the database entity is available by default, you may identify it by entering its name only. If it is not,
you must enter its full name. For example, to identify a part under an analysis, you may need to enter
the analysis name as well. You may specify the part named par101 from the analysis named test by
entering "/test/par101". You must separate multiple database entity names by commas.
If the database entity is visible in one of your views, you may identify it by picking on any of the
graphics associated with it.
3. The ‘write_to_terminal’ parameter is most likely be used in conjunction with the FILE_NAME
parameter to get the information put to a file only.
Tips:
1. If you type a "?", Adams View will list the database entities available by default.
list_info notes
Allows the user to obtain information for Notes. You may instruct Adams View to print this information to
the "Info Window" or to a file or both.
Format:
list_info notes
note_name = an existing note name
brief = on/off
write_to_terminal = on/off
file_name = string specifying the file path
Example:
list_info notes &
note_name = note_1 &
brief = on &
write_to_terminal = off &
file_name = "C:\info.txt"
44 Adams View Commands
list_info output_control debug
Description:
Extended Definition:
1. All information for the specified note name will be displayed. This information includes note name,
type, parent name, parent type, location, and the note.The note name can be entered, or a note can
be picked from the screen.
2. You may identify a note by typing its name or by picking it from the screen.
If the note is not visible on the screen, you must type the name. You may also find it convenient to
type the name even if the note is displayed. If a note is available by default, you may identify it by
entering its name only. If it is not, you must enter its full name. To identify a note under a model,
for instance, you may need to enter the model name as well. For example, you may specify note "n1"
from the model named test by entering ".test.n1". You must separate multiple note names by
commas. If the note is visible in one of your views, you may identify it by picking on any of the
graphics associated with it. You need not separate multiple note picks by commas.
3. The ‘write_to_terminal’ parameter is most likely be used in conjunction with the FILE_NAME
parameter to get the information put to a file only.
Tips:
1. If you type a "?", Adams View will list the notes available by default.
Format:
list_info output_control debug
model_name = an existing model name
brief = on/off
list_info 45
list_info output_control debug
Example:
list_info output_control debug &
model_name = model_1 &
brief = on &
write_to_terminal = off &
file_name = "C:\info.txt"
Description:
Extended Definition:
1. You can expect information on the following parameters.
• DUMP Instructs Adams to write the internal representation of your data set.
• EPRINT Instructs Adams to print simulation information for each integration step and
convergence information for each iteration.
• VERBOSE Instructs Adams to output full rather than partial diagnostics.
• REQDUMP Instructs Adams to dump request output at each iteration.
• JMDUMP Instructs Adams to dump the Jacobian Matrix at each iteration.
• RHSDUMP Instructs Adams to dump the if you want to dump the state vector at each iteration.
• DOF Instructs Adams to print a degree-of-freedom table in the tabular output file.
• TOPOLOGY Instructs Adams to print topological data in the tabular output file.
46 Adams View Commands
list_info output_control femdata
2. You may identify a model by typing its name or by picking it from the screen. If the model is not
visible on the screen, you must type the name. You may also find it convenient to type the name even
if the model is displayed. You must separate multiple model names by commas. If the model is visible
in one of your views, you may identify it by picking on any of the graphics associated with it. You
need not separate multiple model picks by commas.
3. The ‘write_to_terminal’ parameter is most likely be used in conjunction with the FILE_NAME
parameter to get the information put to a file only.
Tips:
1. If the model is visible in one of your views, you may identify it by picking on any of the graphics
associated with it.
Description:
Tips:
1. Typing ? after file_name parameter will open the browse window in Windows platform making it
easier to specify the file to which the information would be written into.
list_info 47
list_info output_control madata
Format:
list_info output_control madata
model_name = an existing model name
brief = on/off
write_to_terminal = on/off
file_name = string specifying the file path
Example:
list_info output_control madata &
model_name = model_1 &
brief = on &
write_to_terminal = off &
file_name = "C:\info.txt"
Description:
Extended Definition:
1. You may identify a model by typing its name or by picking it from the screen. If the model is not
visible on the screen, you must type the name. You may also find it convenient to type the name even
if the model is displayed. You must separate multiple model names by commas. If the model is visible
in one of your views, you may identify it by picking on any of the graphics associated with it. You
need not separate multiple model picks by commas.
2. The ‘write_to_terminal’ parameter is most likely be used in conjunction with the FILE_NAME
parameter to get the information put to a file only.
48 Adams View Commands
list_info output_control mrequest
Tips:
1. If the model is visible in one of your views, you may identify it by picking on any of the graphics
associated with it.
Format:
list_info output_control mrequest
Mrequest_name = existing mrequest
brief = on/off
write_to_terminal = on/off
file_name = string
Description:
Tips:
1. Typing ? after file_name parameter will open the browse window in Windows platform making it
easier to specify the file to which the information would be written into.
Format:
list_info output_control output
model_name = an existing model name
brief = on/off
write_to_terminal = on/off
file_name = string specifying the file path
Example:
list_info output_control output &
model_name = model_1 &
brief = on &
write_to_terminal = off &
file_name = "C:\info.txt"
Description:
Extended Definition:
1. OUTPUT controls the generation of request, graphics, and initial conditions files.
In addition, it controls the form, format, coordinates, filtering, and scaling of request data in the
tabular output file. Information generated for OUTPUT includes output name, type, parent name,
parent type, acceleration - displacement - Force and Velocity scales, acceleration - displacement -
Force and Velocity minimum values, request - graphics - and initial condition file creation, and the
formatting parameters.
2. You may identify a model by typing its name or by picking it from the screen. If the model is not
visible on the screen, you must type the name. You may also find it convenient to type the name even
if the model is displayed. You must separate multiple model names by commas. If the model is visible
in one of your views, you may identify it by picking on any of the graphics associated with it. You
need not separate multiple model picks by commas.
50 Adams View Commands
list_info output_control request
3. The ‘write_to_terminal’ parameter is most likely be used in conjunction with the FILE_NAME
parameter to get the information put to a file only.
Tips:
1. If the model is visible in one of your views, you may identify it by picking on any of the graphics
associated with it.
Description:
Tips:
1. Typing ? after file_name parameter will open the browse window in Windows platform making it
easier to specify the file to which the information would be written into.
Format:
list_info output_control results
model_name = existing model name
brief = on/off
write_to_terminal = on/off
file_name = string
Example:
list_info output_control results
Results Settings For Model: .MODEL_2
Formatted : Off
XRF : On
Accelerations : On
Applied Forces : On
Displacements : On
Reaction Forces : On
Velocities : On
Data Structures : On
System Elements : On
Linear : On
Floating Markers: On
Friction Summary: Off
Request : On
Comment : None
It will take the default model open as the argument and show the equilibrium parameters for that.
52 Adams View Commands
list_info part
Description:
Tips:
1. Typing ? after file_name parameter will open the browse window in Windows platform making it
easier to specify the file to which the information would be written into.
list_info part
The LIST_INFO part command is used to list the information about a part or (various parts) in the model.
The information can be sent to the information window, a file, or both.
Format:
list_info part
part_name = an existing part
flexible_body_name = an existing flexible body
point_mass_name = an existing mass name
equation_name = an existing eq
brief = on/off
write_to_terminal = on/off
file_name = file name
Example:
:
Description:
same model.
point_mass_name AN EXISTING Specifies an existing point_mass.
POINT_MASS
equation_name AN EXISTING Specifies an existing equation.
EQU
brief ON_OFF Specifies whether to use the brief form (default) or an
extended form of the requested information to be
displayed.
write_to_terminal ON_OFF Specify if the information requested is to be sent to the
informational window or not.
file_name STRING Specify that the information requested is to be sent to
a file with the name specified with the parameter.
Extended Definition:
1. You may identify a part by typing its name or by picking it from the screen.
If the part is not visible on the screen, you must type the name. You may also find it convenient to
type the name even if the part is displayed.
2. If you created the part by reading an ADAMS data set or graphics file, the part name is the letters
PAR followed by the ADAMS data set part ID number. The name of ADAMS PART/101 is
PAR101, for example. If you created the part during preprocessing, you gave it a name at that time.
If a part is available by default, you may identify it by entering its name only. If it is not, you must
enter its full name. To identify a part under another model, for instance, you may need to enter the
model name as well. For example, you may specify part 'arm' from model 'robot' by entering
".robot.arm". You must separate multiple part names by commas. If the part is visible in one of your
views, you may identify it by picking on any of the graphics associated with it. You need not separate
multiple part picks by commas.
3. You may identify a flexible body by typing its name, by selecting it from the database navigator's select
list or by picking its graphical representation from the screen, whichever is most convenient. If Adams
View created the flexible body by reading an ADAMS data set, the name may either come from the
"adams_view_name" field of the preceding comment, or be synthesized from the ADAMS id
number. In the case that the flexible body is created as a result of reading a results or graphics file, the
54 Adams View Commands
list_info part
flexible body name will be synthesized from the ADAMS id number. When the name is created by
Adams View it will be composed of "FLX" concatenated with the ADAMS data set flexible body ID
number. For example, the Adams View name of FLEX_BODY/42 would be FLX42. Flexible bodies
you create during preprocessing have userspecified names.
4. You may identify a flexible body belonging to the current default model by entering just its name.
For others, you must enter the full name. To identify a flexible body under another model, for
instance, you need to enter the model name as well. For example, you may specify flexible body
'snake' from model 'reptiles' by entering ".reptiles.snake". You can invoke the database navigator by
typing "?", which will bring up the select list from which you can pick a flexible body. For commands
which accept multiple flexible body names, you must separate the names by commas. If the flexible
body is visible in one of your views, you may identify it by picking on any of the graphics associated
with it. When you do this Adams View will automatically separate multiple flexible body picks by
commas.
5. You may identify a point_mass by typing its name or by picking it from the screen.
If the point_mass is not visible on the screen, you must type the name. You may also find it
convenient to type the name even if the point_mass is displayed. If you created the point_mass by
reading an ADAMS data set or graphics file, the point_mass name is the letters POI followed by the
ADAMS data set point_mass ID number. The name of ADAMS POINT_MASS/101 is POI101, for
example. If you created the point_mass during preprocessing, you gave it a name at that time.
If a point_mass is available by default, you may identify it by entering its name only. If it is not, you
must enter its full name. To identify a point_mass under another model, for instance, you may need
to enter the model name as well. For example, you may specify point_mass 'arm' from model 'robot'
by entering ".robot.arm". If you type a "?", Adams View will list the point_masss available by default.
You must separate multiple point_mass names by commas. If the point_mass is visible in one of your
views, you may identify it by picking on any of the graphics associated with it. You need not separate
multiple point_mass picks by commas.
6. You may identify an equation by typing its name or by picking it from the screen.
Since equations do not have a geometric position, Adams View displays equation icons at the model
origin. If the equation icon is not visible on the screen, you must type the name. You may also find
it convenient to type the name even if the equation icon is displayed. If you created the equation by
reading an ADAMS data set or graphics file, the equation name is the letters DIF followed by the
ADAMS data set equation ID number. The name of ADAMS DIFF/101 is DIF101, for example. If
you created the equation during preprocessing, you gave it a name at that time. If a equation is
available by default, you may identify it by entering its name only. If it is not, you must enter its full
name. To identify a equation under a different model, for instance, you may need to enter the model
name as well. For example, you may specify equation 'fluid_volume' from model 'hydro' by entering
".hydro.fluid_volume'". If you type a "?", Adams View will list the equations available by default. You
must separate multiple equation names by commas.
If the equation is visible in one of your views, you may identify it by picking on any of the graphics
associated with it. You need not separate multiple equation picks by commas.
7. The write_to_terminal parameter is most likely be used in conjunction with the FILE_NAME
parameter to get the information put to a file only.
list_info 55
list_info plots
Tips:
1. If you type a "?", Adams View will list the parts available by default.
list_info plots
Lists information about the plots such as the title, subtitle, analysis, data and time stamp in a current model
Format:
list_info plots
plot_name = existing plot
brief = on/off
write_to_terminal = on/off
file_name = string
Example:
list_info plots &
Brief = on
If no parameters are specified, the above command will display brief information about all the plots existing
within the current model.
Object Name : .plot_1
Object Type : Plot
Title : No Title
Subtitle : No Subtitle
Analysis : No Analysis Stamp
Date : No Date Stamp
Type : None
Description:
Extended Definition:
1. If brief is turned off, it will display other details such as the legend visibility, the values of the
horizontal and vertical axes, colors etc
Tips:
1. Typing ? after file_name parameter will open the browse window in Windows platform making it
easier to specify the file to which the information would be written into.
list_info results
List information about all the result sets. You may instruct Adams View to print this information to the "Info
Window" or to a file or both.
Format:
list_info results
model_name = an existing model name
brief = on/off
write_to_terminal = on/off
file_name = string specifying the file path
Example:
list_info results &
model_name = model_1 &
brief = on &
write_to_terminal = off &
file_name = "C:\info.txt"
Description:
Extended Definition:
1. The information includes:
name - name of the result set.
type - the type of result set (displacement, computed, etc.)
comment - the internal comment of the result set provided by the user on the REQUEST statement
in ADAMS.
number of steps* - the number of output time steps of the result set.
I marker id** - The I marker for this request, if specified.
J marker id** - The J marker for this request, if specified.
**These fields are displayed for result sets read from a request file only.
* All components read in from an ADAMS file will have the same number of steps.
It is possible to create components that have lengths different from the number_of_steps value in the
result set. (i.e.: numeric_results create interpolate).
2. You may identify a model by typing its name or by picking it from the screen. If the model is not
visible on the screen, you must type the name. You may also find it convenient to type the name even
if the model is displayed. You must separate multiple model names by commas. If the model is visible
in one of your views, you may identify it by picking on any of the graphics associated with it. You
need not separate multiple model picks by commas.
3. The ‘write_to_terminal’ parameter is most likely be used in conjunction with the FILE_NAME
parameter to get the information put to a file only.
Tips:
1. If the model is visible in one of your views, you may identify it by picking on any of the graphics
associated with it.
list_info statistics
Allows the user to obtain information for existing database entities. You may instruct Adams View to print
this information to the "Info Window" or to a file or both.
Format:
list_info statistics
entity_name = an existing entity
type_filter = an existing object type
depth = an integer
brief = on/off
write_to_terminal = on/off
file_name = string specifying the file path
58 Adams View Commands
list_info statistics
Example:
list_info statistics &
entity_name = * &
type_filter = color &
depth = 1 &
brief = on &
write_to_terminal = off &
file_name = "C:\info.txt"
Description:
Extended Definition:
1. You may identify a database entity by typing its name or by picking it from the screen. If the database
entity is not visible on the screen, you must type the name. You may also find it convenient to type
the name even if the database entity is displayed. If you created the database entity by reading an
ADAMS data set or graphics file, the database entity name is the first three letters of the ADAMS
object, followed by the ADAMS data set database entity ID number. The name of ADAMS
PART/101 is PAR101, for example. If you created the database entity during preprocessing, you gave
it a name at that time.
2. When specifying the objects for this operation a wild cards can be used, which may result in too many
objects being found. For example, if all the parts for model MOD1 are desired, specifying .MOD1.*
will get not only the parts, but all children of the model, like joints, forces, etc. Using the parameter
TYPE_FILTER=part will result in only the parts being processed by this command.
3. If the database entity is available by default, you may identify it by entering its name only. If it is not,
you must enter its full name. For example, to identify a part under an analysis, you may need to enter
the analysis name as well. You may specify the part named par101 from the analysis named test by
entering "/test/par101". You must separate multiple database entity names by commas.
list_info 59
list_info topology
If the database entity is visible in one of your views, you may identify it by picking on any of the
graphics associated with it.
4. The ‘write_to_terminal’ parameter is most likely be used in conjunction with the FILE_NAME
parameter to get the information put to a file only.
Tips:
1. If you type a "?", Adams View will list the database entities available by default.
list_info topology
Lists information on how a model's parts are connected to each other.
When you request information about a models topology, Adams View will determine what joints, jprims,
point curves, and curve curves are owned be the model and what parts these objects are connected to by
determining the parent of the I and J markers of the connecting objects.
You can request the information to be output by part or by the object connecting the parts with the
OUTPUT_BY parameter.
If you specify OUTPUT_BY=PARTS (this is the default) every part in the model will be listed, along with
the parts it is connected to and what joint, jprim, point curve, curve curve or force is connecting it.
If you specify OUTPUT_BY=CONNECTIONS each joint, jprim, point curve, curve curve and force will
be listed and what parts it connects. A listing of the unconnected parts will also be displayed.
Format:
list_info topology
model_name = existing model
output_by = topology_output
brief = on/off
write_to_terminal = on/off
file_name = string
Example:
list_info topology &
model_name = model_1 &
output_by = parts &
write_to_terminal = on
Part ground
Is not connected to any parts
Part PART_2
Is connected to:
PART_3 via JOINT_1 (Revolute Joint)
Part PART_3
Is connected to:
PART_2 via JOINT_1 (Revolute Joint)
Description:
Extended Definition:
1. You may identify a model by typing its name or by picking it from the screen.
If the model is not visible on the screen, you must type the name. You may also find it convenient to
type the name even if the model is displayed.
You must separate multiple model names by commas.
If the model is visible in one of your views, you may identify it by picking on any of the graphics
associated with it.
You need not separate multiple model picks by commas.
2. If you specify OUTPUT_BY=PARTS (this is the default) every part in the model will be listed, along
with the parts it is connected to and what joint, jprim, point curve, curve curve or force is connecting
it.
If you specify OUTPUT_BY=CONNECTIONS each joint, jprim, point curve, curve curve and
force will be listed and what parts it connects. A listing of the unconnected parts will also be
displayed.
list_info triglue
You may instruct Adams View to print this information to the "Info Window" or to a file or both.
list_info 61
list_info undo
Format:
list_info triglue
brief = on/off
write_to_terminal = on/off
file_name = string specifying the file path
Example:
list_info undo &
brief = on &
write_to_terminal = off &
file_name = "C:\info.txt"
Description:
Extended Definition:
1. The ‘write_to_terminal’ parameter is most likely be used in conjunction with the FILE_NAME
parameter to get the information put to a file only.
list_info undo
Allows you to obtain the amount of memory being consumed by the undo stack. You may instruct Adams
View to print this information to the "Info Window" or to a file or both.
Format:
list_info undo
brief = on/off
write_to_terminal = on/off
file_name = string specifying the file path
62 Adams View Commands
list_info variable
Example:
list_info undo &
brief = on &
write_to_terminal = off &
file_name = "C:\info.txt"
Dsecription:
list_info variable
Lists information about the variables’s in the current model.
Format:
list_info variable
variable_name = Existing variable name
Brief = on/off
Write_to_terminal = on/off
File_name = string
Example:
list_info variable &
variable_name = DV_1 &
brief = off &
write_to_terminal = on &
file_name = "C:\My Documents\my_file"
This will display the following information on the terminal as well as in the file “my_file”,
Object Name : .model_1.DV_1
Object Type : Variable
Parent Type : Model
list_info 63
list_info views
Description:
Tips:
1. Typing “?” after “file_name=” parameter will open the file browse window in Windows environment,
making it easier to specify the file name.
list_info views
List information about all the result sets. The information can be sent to the information window, a file, or
both.
Format:
list_info views
view_name = an existing view name
view_layout_name = an existing view layout
brief = on/off
write_to_terminal = on/off
file_name = string specifying the file path
Example:
list_info views &
view_name = view_1 &
view_layout_name = vlayout_1 &
64 Adams View Commands
list_info views
Description:
Extended Definition:
1. The information includes:
• name - the name of the view
• center - the view center in global model coordinates.
• field of view - the width (x) and the height (y) of the view in global model coordinates
• project - the view is drawn in either (orthographic or perspective) mode
• render - the view is drawn in (wireframe, solid, or shaded) mode
• saved - whether the view has been saved.
2. Each view created has a name associated with it. The view_name parameter is used to identify a view
for a particular operation. In most cases, view_name=all is also a valid entry. The all option indicates
"all displayed views". There are eight standard views available when the Adams View is started. These
views are: front, top, right, iso, bottom, left, and back. The first four of these standard views are
displayed by default when Adams View is started. The user may create new views using the 'VIEW
MANAGEMENT CREATE' command, and save/restore their attributes.
3. You may identify a view_layout by typing its name. If a view_layout is available by default, you may
identify it by entering its name only. If it is not, you must enter its full name. If you type a "?", Adams
View will list the view_layouts available by default. You must separate multiple view_layout names
by commas.
list_info 65
list_info views
4. The ‘write_to_terminal’ parameter is most likely be used in conjunction with the FILE_NAME
parameter to get the information put to a file only.
Cautions:
1. Typing the name is the only way to identify a stored view that is not displayed.
Tips:
1. If the VIEW_NAME parameter is used, the desired view can be identified by picking in the window
or entering the name from the keyboard.
66 Adams View Commands
list_info views
macro 1
macro create
macro
macro create
A macro is a single command that you create to execute a series of Adams View commands. To create a macro,
you give Adams View the list of commands you want executed, as well as the new command (i.e., the macro)
that will execute them.
Format:
macro create
macro_name = macro name
user_entered_command = command representing the macro
commands_to_be_executed = list of commands to be executed
wrap_in_undo = yes/no
help_file = help file path
help_string = help text
create_panel = yes/no
security_code = alpha-numeric code to run a macro
Example:
!
wrap_in_undo = No &
help_string = "This test macro can export part XFORM results." &
create_panel = No
!
Description:
Extended Definition:
1. Adams View will not allow you to have two macros with the same full name, so you must provide a
unique name. You must separate multiple macro names by commas.
2. The user_entered_command is a string with list of keywords separated by blanks. The keywords can
match existing keywords, but the final command defined must be unique.
For example: user_entered_command = "force my_force create"
If this parameter is not entered, the name of the macro will become the new command.
3. You can specify the Adams View commands that are to be executed when the macro is used with the
commands_to_be_executed parameter on the macro read and macro modify commands, or from a
file on the macro read command. Adams View does not check your entries in this field for correct
syntax when you create the macro, only when the macro is executed the syntax errors will be notified.
You enter these commands as quoted strings separated by commas. You can have quotes inside a
string by proceeding them with a backslash "\". You can indicate parameters to associate with the
macro be placing a dollar sign '$' followed by the name of the parameter you want anywhere in the
commands.
macro 3
macro delete
4. The help that is obtained by help_file is the same as you would get if you supplied the help string to
the command: help command_or_topic=. You must specify the entire file name, there is no default
extension. The search path facility is used to find the specified file.
5. If there are no parameters in the macro, no panel will be created. The name of the macro panel will
be macro_ appended with the macro name. For example, if the name of macro being created or
modified is MAC1, the panel will be named macro_MAC1.
Cautions:
1. If the macro is very large turning the wrap_in_undo option to yes may decrease the speed of it's
execution.
Tips:
1. You may identify a macro by typing its name. If a macro is available by default, you may identify it
by entering its name only. If it is not, you must enter its full name. If you type a "?", Adams View will
list the macros available by default.
macro delete
Allows you to delete existing macros.
Format:
macro delete
macro_name = macro name/list
Description:
Extended Definition:
1. Adams View will not allow you to have two macros with the same name, so you must provide a unique
name. You must separate multiple macro names by commas.
Tips:
1. You may identify a macro by typing its name. If a macro is available by default, you may identify it
by entering its name only. If it is not, you must enter its full name. If you type a "?", Adams View will
list the macros available by default.
4 Adams View Commands
macro modify
macro modify
A macro is a single command that you create to execute a series of Adams View commands. The macro
modify command allows edition of existing macros.
Format:
macro modify
macro_name = macro name
new_macro_name = modified macro name
user_entered_command = command representing the macro
commands_to_be_executed = list of commands to be executed
wrap_in_undo = yes/no
help_file = help file path
help_string = help text
create_panel = yes/no
security_code = alpha-numeric code to run a macro
Example:
macro modify&
macro_name = .TEST_MACRO &
new_macro_name = .TEST_MACRO_1 &
user_entered_command = "TESTMAC" &
commands_to_be_executed = &
"!$parts:T=part:C=0", &
"!$analysis:T=analysis:D=Last_Run", &
"!END_OF_PARAMETERS", &
"!", &
"!---set the default analysis", &
"defaults analysis analysis_name = $analysis", &
"",&
"!---loop through part list", &
"for var=the_part obj=$parts", &
" defaults model part_name=(the_part)", &
" file spread_sheet write &", &
" file_name = (DB_DEFAULT(SYSTEM_DEFAULTS,\"PART\").name) &", &
" result_set_name =
((DB_DEFAULT(SYSTEM_DEFAULTS,\"PART\").name)//\"_XFORM\")", &
"end", &
"", &
"!---clean-up", &
"variable delete
variable_name=(eval(db_children($_self,\"variable\")))" &
!
wrap_in_undo = No &
macro 5
macro modify
help_string = "This test macro can export part XFORM results." &
create_panel = No
!
Description:
Extended Definition:
1. Adams View will not allow you to have two macros with the same full name, so you must provide a
unique name. You must separate multiple macro names by commas.
2. You may use this name later to refer to this macro. Adams View will not allow you to have two macros
with the same full name, so you must provide a unique name. Normally, entity names are composed
of alphabetic, numeric, or '_' (underscore) characters, and start with an alphabetic or '_' character.
They may be any length. By enclosing the name in double quotes, you may use other printable
characters, or start the name with a numeral. If a name contains characters, or starts with a numeral,
you must always quote the name when entering it. Note that you can specify the parentage of an
entity (e.g. what part "owns" a marker or a geometry element) when you CREATE it by changing the
name. If you enter just the entity name, then the default parent will be assigned by Adams View. If
you type in the full name, then you may over ride the default parent. In most cases, when creating an
entity, Adams View will provide a default name. The default name that Adams View provides will
specify the parentage that it has assumed. You may, of course, delete this name and use your own.
The form of a full name is: "...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME" The
number of levels used varies from case to case and the parentage must exist before an entity can be
assigned to it.
6 Adams View Commands
macro read
3. The user entered command is a string is a list of keywords separated by blanks. The keywords can
match existing keywords, but the final command defined must be unique. For example:
user_entered_command = "force my_force create" If this parameter is not entered, the name of the
macro will become the new command.
4. You can specify the Adams View commands that are to be executed when the macro is used with the
COMMANDS_TO_BE_EXECUTED parameter on the MACRO READ and MACRO MODIFY
commands, or from a file on the MACRO READ command. Adams View does not check your
entries in this field for correct syntax when you create the macro, only when the macro is executed.
You enter these commands as quoted strings separated by commas. You can have quotes inside a
string by proceeding them with a backslash "\". You can indicate parameters to associate with the
macro be placing a dollar sign '$' followed by the name of the parameter you want anywhere in the
commands (see MACRO).
5. The help that is obtained by this string is the same as you would get if you supplied the help string to
the command: help command_or_topic=. You must specify the entire file name, there is no default
extension. The search path facility is used to find the specified file.
6. If there are not parameters in the macro, no panel will be created. The name of the macro panel will
be 'macro_' appended with the macro name. For example, if the name of macro being created or
modified is MAC1, the panel will be named 'macro_MAC1'.
Tips:
1. You may identify a macro by typing its name. If a macro is available by default, you may identify it
by entering its name only. If it is not, you must enter its full name. If you type a "?", Adams View will
list the macros available by default.
macro read
Allows you to create a macro by reading the commands to be executed from a file. Thus, instead of creating
a new macro from the scratch, an existing command file can be used as a template.
Format:
macro read
macro_name = macro name
file_name = file name with path
user_entered_command = command
wrap_in_undo = yes/no
help_file = help file path
help_string = help text
create_panel = yes/no
macro 7
macro read
Example:
macro read &
macro_name = TEST_MACRO &
file_name = “C:\macros\test_mac.cmd” &
user_entered_command = “TESTMAC” &
wrap_in_undo = No &
help_string = ‘This is a test macro’ &
create_panel = No
Description:
Extended Definition:
1. Adams View will not allow you to have two macros with the same full name, so you must provide a
unique name. You must separate multiple macro names by commas.
2. The user_entered_command is a string with a list of keywords separated by blanks. The keywords
can match existing keywords, but the final command defined must be unique.
For example: user_entered_command = "force my_force create"
If this parameter is not entered, the name of the macro will become the new command.
3. You can specify the Adams View commands that are to be executed when the macro is used with the
commands_to_be_executed parameter on the macro read and macro modify commands, or from a
file on the macro read command. Adams View does not check your entries in this field for correct
syntax when you create the macro, only when the macro is executed the syntax errors will be notified.
8 Adams View Commands
macro write
You enter these commands as quoted strings separated by commas. You can have quotes inside a
string by proceeding them with a backslash "\". You can indicate parameters to associate with the
macro be placing a dollar sign '$' followed by the name of the parameter you want anywhere in the
commands.
4. The help that is obtained by help_file string is the same as you would get if you supplied the help
string to the command: help command_or_topic=. You must specify the entire file name, there is no
default extension. The search path facility is used to find the specified file.
5. If there are no parameters in the macro, no panel will be created. The name of the macro panel will
be macro_ appended with the macro name. For example, if the name of macro being created or
modified is MAC1, the panel will be named macro_MAC1.
Cautions:
1. If the macro is very large turning the wrap_in_undo option to yes may decrease the speed of it's
execution.
Tips:
1. You may identify a macro by typing its name. If a macro is available by default, you may identify it
by entering its name only. If it is not, you must enter its full name. If you type a "?", Adams View will
list the macros available by default.
macro write
Write the commands that are to be executed (defined by the commands_to_be_executed parameter) from
the macro to a file. The file will contain comments at the top about the macro definition and the commands
to be executed.
Format:
macro write
macro_name = macro name
file_name = file name with path
Example:
macro write &
macro_name = ANALYSIS_DELETE
Case:
macro create &
macro_name=ANALYSIS_DELETE &
user_entered_command="delete analysis" &
help_string="Quickly delete an analysis" &
commands_to_be_executed ="model delete analysis_name=$analysis_name"
macro 9
macro write
Description:
Extended Definition:
1. You may identify a macro by typing its name. If a macro is available by default, you may identify it
by entering its name only. If it is not, you must enter its full name. If you type a "?", Adams View will
list the macros available by default. You must separate multiple macro names by commas.
2. You do not need to enclose the file name in quotes if it only contains alpha-numeric characters and
starts with a letter. If you want to include other characters, such as a '.' for an extension or '/' or '[ ]'
for directory paths, you must enclose the name in quotes.
Tip:
1. You can read the macro back into Adams View with the macro read command. The default extension
for this file is '.cmd'.
10 Adams View Commands
macro write
marker 1
marker attributes
marker
marker attributes
Allows you to set the specification of attributes on an individual marker or a group of markers.
Format:
marker attributes
marker_name = an existing marker
scale_of_icons = real
size_of_icons = real
visibility = on_off_with_toggle
name_ visibility = on_off_with_toggle
color = an existing color
active = on_off_no_opinion
dependents_active = on_off_no_opinion
Example:
marker attributes &
marker_name = psmar &
scale_of_icons = 0.91 &
visibility = on &
name_visibility = on &
color = blue &
active = on &
dependents_active = off
2 Adams View Commands
marker attributes
Description :
Extended Definition:
1. You can set the following attributes on a marker.
SIZE_OF_ICONS / SCALE_OF_ICONS. These two parameters are mutually exclusive. You may
set a size of the icon used for the marker representation in modeling units, or you may scale the size
of the icon by a non-unit scale factor.
VISIBILITY. You may set a marker's visibility ON, OFF or TOGGLE the current setting. When you
set a marker's visibility OFF, the marker will not be drawn. When you set a marker's visibility ON,
you allow that marker to be drawn.
NAME_VISIBILITY. You may set a marker's name label visibility ON, OFF or TOGGLE the
current setting with this parameter.
COLOR. You may set the color of a marker with this parameter.
If an entity does not have a GRAPHICS ATTRIBUTE setting, the value for that GRAPHIC
ATTRIBUTE may be inherited from another entity.
INHERITANCE may either be TOP_DOWN or BOTTOM_UP.
BOTTOM_UP and TOP_DOWN refer to the natural hierarchy of the Adams model. The hierarchy
is a tree structure with the model at the apex.
Parts exist beneath the model, and markers exist beneath the parts.
marker 3
marker attributes
If the icon size of the model is set to 0.1, and the default INHERITANCE is set to TOP_DOWN,
then all icons displayed within the model will be displayed at this size. However, if the icon size of a
model is set to 0.1, and then the default INHERITANCE is set to BOTTOM_UP, then any icons
set to a size other than the model's icon size will be displayed in their own size.
2. You may identify a marker by typing its name or by picking it from the screen.
If the marker is not visible on the screen, you must type the name.
You may also find it convenient to type the name even if the marker is displayed.
If you created the marker by reading an Adams data set or graphics file, the marker name is the letters
MAR followed by the Adams data set marker ID number. For example, the name of Adams
MARKER/101 is MAR101. If you created the marker during preprocessing, you will have given it a
name at that time.
If a marker is available by default, you may identify it by entering only its name. If it is not, you must
enter its full name. To identify a marker under a different part, for instance, you may need to enter
the model and part names as well. For example, you may specify marker 'pivot' from model 'links',
part 'lower_arm' by entering ".links.lower_arm.pivot". If you type a "?", Adams View will list the
markers available by default.
You must separate multiple marker names by commas.
If the marker is visible in one of your views, you may identify it by picking on it.
You need not separate multiple marker picks by commas.
3. If no initial size is specified for Adams View icons, the default size will be one modeling LENGTH
unit. For example, if the modeling units are K/M/S, a part axes icon will have triad legs, one meter in
length.
When you specify SCALE_OF_ICONS, a new size is calculated by multipling the current size by the
scale, and storing the product as the new ICON_SIZE.
4. If no initial size is specified for Adams View icons, the default size will be one modeling LENGTH
unit. For example, if the modeling units are K/M/S, a part axes icon will have triad legs, one meter in
length.
When you set SIZE_OF_ICONS at the model level, all Adams View icons used in creating a model
will use the size specified.
If the model has a SIZE_OF_ICONS set, and a part under that model has a different
SIZE_OF_ICONS, the model's ICONS_SIZE will take precedence.
An Example:
.model ---------------------- SIZE_OF_ICONS = .15 meters
.part -------------------- SIZE_OF_ICONS = .125 meters
The part's icon will be 1.5 meters is size.
If the model has SIZE_OF_ICONS set to 0.0 , and a part under that model has a SIZE_OF_ICONS
set to .125, the part's icon size will be used.
An Example:
.model ---------------------- SIZE_OF_ICONS = 0.0 meters
.part -------------------- SIZE_OF_ICONS = .125 meters
4 Adams View Commands
marker attributes
Where PAR1 has a marker MAR1 which is the I marker of a joint JOI1 (which has a J marker MAR2),
then JOI1 will be deactivated.
Also, if the joint JOI1 is referenced in a request function, or if the I marker is referenced by a request,
then the request will be deactivated.
Propagation of activation status through groups is as if each element were to have its activation status
changed indvidually.
Elements affected are:
• Group
• Part
• Differential Equation
• Marker
• Geometry
• Constraints
• Forces
• Data Elements
• Output Control
marker copy
Allows you to create a replica marker within the same model.
Format:
marker copy
marker_name = an existing marker
new_marker_name = a new marker
Example:
marker copy &
marker_name = marker_1 &
new_marker_name = marker_2
Extended Definition:
1. The replica marker will be identical to the original, with the exception of the marker name. Markers
must have unique names relative to other markers under a given part. You specify the replica marker's
name with the NEW_MARKER_NAME parameter. The replica will be completely independent of
the original, and may be modified without affecting the original.
2. You may identify a marker by typing its name or by picking it from the screen.
If the marker is not visible on the screen, you must type the name.
You may also find it convenient to type the name even if the marker is displayed.
If you created the marker by reading an Adams data set or graphics file, the marker name is the letters
MAR followed by the Adams data set marker ID number. For example, the name of Adams
MARKER/101 is MAR101. If you created the marker during preprocessing, you will have given it a
name at that time.
If a marker is available by default, you may identify it by entering only its name. If it is not, you must
enter its full name. To identify a marker under a different part, for instance, you may need to enter
the model and part names, as well. For example, you may specify marker 'pivot' from model 'links',
part 'lower_arm' by entering ".links.lower_arm.pivot". If you type a "?", Adams View will list the
markers available by default.
You must separate multiple marker names by commas.
If the marker is visible in one of your views, you may identify it by picking on it.
You need not separate multiple marker picks by commas.
3. Normally, entity names are composed of alphabetic, numeric, or '_' (underscore) characters, and start
with an alphabetic or '_' character. They may be of any length.
By enclosing the name in double quotes, you may use other printable characters, or start the name
with a numeral. If a name contains characters, or starts with a numeral, you must always quote the
name when entering it.
Note that you can specify the parentage of an entity (for example, which part "owns" a marker or a
geometry element) when you CREATE it by changing the name. If you enter just the entity name,
then the default parent will be assigned by Adams View. If you type in the full name, then you may
override the default parent. In most cases, when creating an entity, Adams View will provide a default
name. The default name that Adams View provides will specify the parentage that it has assumed.
You may, of course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
Cautions:
1. Adams View will not allow you to have two markers with the same name, so you must provide a
unique name.
marker 7
marker create
marker create
Allows you to create a marker. You may reverse this creation at a later time with an UNDO command.
Format:
marker create
marker_name = a new marker
adams_id = adams_id
comments = string
location = location
preserve_location = true_only
node_id = integer
orientation = orientation
along_axis_orientation = location
in_plane_orientation = location
relative_to = an existing model, part or marker
curve_name = an existing curve
velocity = real
vx = real
vy = real
vz = real
reference_marker_name = an existing marker
Example:
marker create &
marker_name = marker__1 &
adams_id = 1 &
comments = "a new marker" &
location = 10 , 20 , 10 &
node_id = 5 &
orientation = 10 , 10 , 10 &
relative_to = piston &
reference_marker_name = marker_33
8 Adams View Commands
marker create
Description:
OR
Extended Definition:
1. Markers are attached to parts, which are contained in models. Before creating markers, you must use
the 'MODEL CREATE' and 'PART CREATE RIGID_BODY NAME_AND_POSITION'
command to create at least one model and part.
2. Normally, entity names are composed of alphabetic, numeric, or '_' (underscore) characters, and start
with an alphabetic or '_' character. They may be of any length.
By enclosing the name in double quotes, you may use other printable characters, or start the name
with a numeral. If a name contains characters, or starts with a numeral, you must always quote the
name when entering it.
Note that you can specify the parentage of an entity (for example, what part "owns" a marker or a
geometry element) when you CREATE it by changing the name. If you enter just the entity name,
then the default parent will be assigned by Adams View. If you type in the full name, then you may
override the default parent. In most cases, when creating an entity, Adams View will provide a default
name. The default name that Adams View provides will specify the parentage that it has assumed.
You may, of course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
3. When you use the FILE ADAMS_DATA_SET WRITE command, Adams View writes an Adams
data file for your model. Adams requires that each modeling element be identified by a unique integer
identifier. If you use this parameter to specify a non-zero identifier, Adams View will use it in the
corresponding statement in the Adams data file.
You may also enter zero as an identifier, either explicitly or by default. The next time you write an
Adams file, Adams View will replace the zero with a unique, internally-generated identifier.
10 Adams View Commands
marker create
Adams View will permanently store this identifier with the element just as if you had entered it
yourself.
Normally, you would let all identifiers default to zero, and Adams View would generate the identifiers
for you. You are never required to enter a non-zero identifier. You only need to specify it if, for some
reason, you wish to control the Adams file output.
4. When an Adams Solver data file (.adm) is read into Adams View, all comments associated with a
statement (from the end of the previous statement through the end of the current statement) are
stored with the object. Comments in the data file can be associated with model.
These comments must follow the title statement and be followed by the comment 'END OF
MODEL COMMENTS'. This string must be uppercase.
When an Adams Solver data file is written, the comments for an object are written before the
statement corresponding to the object.
5. By default, you supply Cartesian (x, y, z) coordinates. You may use the 'defaults units
coordinate_system_type =' command to change this convention. For example, selecting 'cylindrical'
means you will subsequently be supplying r, theta, and z coordinates.
Adams View applies your location coordinates in the coordinate system you identify with the
RELATIVE_TO parameter. The default for the RELATIVE_TO parameter is the default coordinate
system.
6. The preserve_location parameter is specified to indicate that the specified marker location is to be
preserved. The parameter comes into play for markers on a flex body or on an external system (where
an MNF/MD DB is specified). For example, a flex marker will not be snapped to the node nearest to
the specified location, if this parameter is specified. This parameter is mutually exclusive with the
node_id parameter for the marker create command.
7. The value must be an integer which is a valid node ID from your flexible element model.
8. Adams View will orient the coordinate system by starting from the initial coordinate system and
applying three successive rotations. Depending on the convention you have selected, the rotations
may occur about space-fixed or body-fixed axes in any meaningful combination of the x, y, and z axes.
By default, you supply Euler (body313, or body-fixed z, x, z) angles.
You may change this convention with the 'DEFAULTS UNITS ORIENTATION_TYPE='
command. For example, selecting SPACE123 means you will subsequently be supplying space-fixed
x, y, and z angles.
Adams View applies your orientation angles starting from the coordinate system you identify with the
RELATIVE_TO parameter. The default for the RELATIVE_TO parameter is the default coordinate
system.
9. You may enter either one or two locations to direct the axis using the along_axis_orientation
paramater. If you enter one location, the axis will point towards the location. If you specify two
locations, the axis will be parallel to, and pointing the same way as the vector from the first location
to the second.
Note that this does not completely dictate the orientation of the coordinate system. Adams View will
position the coordinate system with an arbitrary rotation about the axis. If you must completely
control the coordinate system orientation, use ORIENTATION or IN_PLANE_ORIENTATION.
marker 11
marker delete
By default, you direct the Z axis of the coordinate system. You may change this convention with the
'DEFAULTS ORIENT_AXIS_AND_PLANE AXIS_AND_PLANE_SETTING=' command. For
example, selecting either X_AXIS_XY_PLANE or X_AXIS_XZ_PLANE means you will
subsequently be directing the X axis. The plane-convention setting does not affect this parameter.
Adams View applies your location coordinates in the coordinate system you identify with the
RELATIVE_TO parameter. The default for the RELATIVE_TO parameter is the default coordinate
system.
10. You may enter either two or three locations for the in_plane_orientation parameter. If you enter two
locations, the axis will point towards the first location and the plane will fall on the second. If you
specify three locations, the axis will be parallel to, and pointing the same way as the vector from the
first location to the second and the plane will be parallel to the plane defined by the three locations.
By default, you direct the Z axis of the coordinate system and locate the ZX plane. You may use the
'DEFAULTS ORIENT_AXIS_AND_PLANE AXIS_AND_PLANE_SETTING=' command to
change this convention. For example, selecting X_AXIS_XY_PLANE means you will subsequently
be directing the X axis and locating the XY plane.
Adams View applies your location coordinates in the coordinate system you identify with the
RELATIVE_TO parameter. The default for the RELATIVE_TO parameter is the default coordinate
system.
11. If the relative_to parameter is not specified, the default coordinate system is used. The default
coordinate system is initially your model, that is, the global coordinate system. You may change the
default coordinate system using the 'defaults coordinate_system' command.
Cautions:
Adams View will not allow you to have two markers with the same name, so you must provide a
unique name.
marker delete
Allows you to delete an existing marker.
Format:
marker delete
marker_name = an existing marker
Example:
marker delete &
marker_name = marker_2
12 Adams View Commands
marker modify
Description:
Extended Definition:
1. You must enter the name of the marker you wish to delete either by picking it from the screen or
specifying the full name.
2. Any Adams View object you delete, may be "undeleted" by using the UNDO commands. If you have
deleted something you would like back, enter the command "undo backward", or pick on the fixed
menu entry, 'UNDO'.
You may identify a marker by typing its name or by picking it from the screen.
If the marker is not visible on the screen, you must type the name.
You may also find it convenient to type the name even if the marker is displayed.
If you created the marker by reading an Adams data set or graphics file, the marker name is the letters
MAR followed by the Adams data set marker ID number. For example, the name of Adams
MARKER/101 is MAR101. If you created the marker during preprocessing, you will have given it a
name at that time.
3. If a marker is available by default, you may identify it by entering only its name. If it is not, you must
enter its full name. To identify a marker under a different part, for instance, you may need to enter
the model and part names, as well. For example, you may specify marker 'pivot' from model 'links',
part 'lower_arm' by entering ".links.lower_arm.pivot". If you type a "?", Adams View will list the
markers available by default.
You must separate multiple marker names by commas.
If the marker is visible in one of your views, you may identify it by picking on it.
You need not separate multiple marker picks by commas.
Tips:
1. You may reverse this deletion at a later time with an UNDO command.
Also refer marker delete_unused in mdi command.
marker modify
Allows you to modify an existing marker.
marker 13
marker modify
Format:
marker modify
marker_name = an existing marker
new_marker_name = a new marker
adams_id = adams_id
comments = string
location = location
preserve_location = true_only
node_id = integer
orientation = orientation
along_axis_orientation = location
in_plane_orientation = location
relative_to = an existing model, part or marker
curve_name = an existing curve
velocity = real
vx = real
vy = real
vz = real
reference_marker_name = an existing marker
Example:
marker modify &
marker_name = marker__1 &
new_marker_name = marker__2 &
adams_id = 1 &
comments = "modifying an existing marker" &
location = 10 , 20 , 10 &
node_id = 5 &
orientation = 10,10,10 &
relative_to = piston &
reference_marker_name = marker_33
14 Adams View Commands
marker modify
Description:
Extended Definition:
1. You may identify a marker by typing its name or by picking it from the screen.
marker 15
marker modify
If the marker is not visible on the screen, you must type the name.
You may also find it convenient to type the name even if the marker is displayed.
If you created the marker by reading an Adams data set or graphics file, the marker name is the letters
MAR followed by the Adams data set marker ID number. For example, the name of Adams
MARKER/101 is MAR101. If you created the marker during preprocessing, you will have given it a
name at that time.
If a marker is available by default, you may identify it by entering only its name. If it is not, you must
enter its full name. To identify a marker under a different part, for instance, you may need to enter
the model and part names as well. For example, you may specify marker 'pivot' from model 'links',
part 'lower_arm' by entering ".links.lower_arm.pivot". If you type a "?", Adams View will list the
markers available by default.
You must separate multiple marker names by commas. If the marker is visible in one of your views,
you may identify it by picking on it. You need not separate multiple marker picks by commas.
2. Normally, entity names are composed of alphabetic, numeric, or '_' (underscore) characters, and start
with an alphabetic or '_' character. They may be of any length.
By enclosing the name in double quotes, you may use other printable characters, or start the name
with a numeral. If a name contains characters, or starts with a numeral, you must always quote the
name when entering it.
Note that you can specify the parentage of an entity (for example, what part "owns" a marker or a
geometry element) when you CREATE it by changing the name. If you enter just the entity name,
then the default parent will be assigned by Adams View. If you type in the full name, then you may
override the default parent. In most cases, when creating an entity, Adams View will provide a default
name. The default name that Adams View provides will specify the parentage that it has assumed.
You may, of course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
3. When you use the FILE ADAMS_DATA_SET WRITE command, Adams View writes an Adams
data file for your model. Adams requires that each modeling element be identified by a unique integer
identifier. If you use this parameter to specify a non-zero identifier, Adams View will use it in the
corresponding statement in the Adams data file.
You may also enter zero as an identifier, either explicitly or by default. The next time you write an
Adams file, Adams View will replace the zero with a unique, internally-generated identifier.
Adams View will permanently store this identifier with the element just as if you had entered it
yourself.
Normally, you would let all identifiers default to zero, and Adams View would generate the identifiers
for you. You are never required to enter a non-zero identifier. You only need to specify it if, for some
reason, you wish to control the Adams file output.
4. When an Adams Solver data file (.adm) is read into AdamsAdams View, all comments associated with
a statement (from the end of the previous statement through the end of the current statement) are
stored with the object. Comments in the data file can be associated with model.
16 Adams View Commands
marker modify
These comments must follow the title statement and be followed by the comment 'END OF
MODEL COMMENTS'. This string must be uppercase.
When an Adams Solver data file is written, the comments for an object are written before the
statement corresponding to the object.
5. By default, you supply Cartesian (x, y, z) coordinates. You may use the 'defaults units
coordinate_system_type =' command to change this convention. For example, selecting 'cylindrical'
means you will subsequently be supplying r, theta, and z coordinates.
Adams View applies your location coordinates in the coordinate system you identify with the
RELATIVE_TO parameter. The default for the RELATIVE_TO parameter is the default coordinate
system.
6. The preserve_location parameter is specified to indicate that the specified marker location is to be
preserved. The parameter comes into play for markers on a flex body or on an external system (where
an MNF/MD DB is specified). For example, a flex marker will not be snapped to the node nearest to
the specified location, if this parameter is specified.
This parameter can be specified with the node_id parameter during marker modification, to indicate
that the marker is NOT to be snapped to the nearest node, but instead its existing location is to be
maintained.
for example, marker create marker = .model_1.flex_body_1.marker_1 node_id = 15 location =
10,10,10
marker modify marker = .model_1.flex_body_1.marker_1 node_id = 20 preserve_location = true
The modify marker command will change the node_id of the marker to 20 and its original location
(10,10,10) will be maintained.
7. The node_id value must be an integer which is a valid node ID from your flexible element model.
8. Adams View will orient the coordinate system by starting from the initial coordinate system and
applying three successive rotations.
Depending on the convention you have selected, the rotations may occur about space-fixed or body-
fixed axes in any meaningful combination of the x, y, and z axes.
By default, you supply Euler (body313, or body-fixed z, x, z) angles.
You may change this convention with the 'DEFAULTS UNITS ORIENTATION_TYPE='
command. For example, selecting SPACE123 means you will subsequently be supplying space-fixed
x, y, and z angles.
Adams View applies your orientation angles starting from the coordinate system you identify with the
RELATIVE_TO parameter. The default for the RELATIVE_TO parameter is the default coordinate
system.
9. You may enter either one or two locations to direct the axis using the along_axis_orientation
parameter. If you enter one location, the axis will point toward the location. If you specify two
locations, the axis will be parallel to, and pointing the same way as the vector from the first location
to the second.
marker 17
marker modify
Note that this does not completely dictate the orientation of the coordinate system. Adams View will
position the coordinate system with an arbitrary rotation about the axis. If you must completely
control the coordinate system orientation, use ORIENTATION or IN_PLANE_ORIENTATION.
By default, you direct the Z axis of the coordinate system. You may change this convention with the
'DEFAULTS ORIENT_AXIS_AND_PLANE AXIS_AND_PLANE_SETTING=' command. For
example, selecting either X_AXIS_XY_PLANE or X_AXIS_XZ_PLANE means you will
subsequently be directing the X axis. The plane-convention setting does not affect this parameter.
Adams View applies your location coordinates in the coordinate system you identify with the
RELATIVE_TO parameter. The default for the RELATIVE_TO parameter is the default coordinate
system.
10. You may enter either two or three locations for the in_plane_orientation paramater. If you enter two
locations, the axis will point toward the first location and the plane will fall on the second. If you
specify three locations, the axis will be parallel to, and pointing the same way as the vector from the
first location to the second and the plane will be parallel to the plane defined by the three locations.
By default, you direct the Z axis of the coordinate system and locate the ZX plane. You may use the
'DEFAULTS ORIENT_AXIS_AND_PLANE AXIS_AND_PLANE_SETTING=' command to
change this convention. For example, selecting X_AXIS_XY_PLANE means you will subsequently
be directing the X axis and locating the XY plane.
Adams View applies your location coordinates in the coordinate system you identify with the
RELATIVE_TO parameter. The default for the RELATIVE_TO parameter is the default coordinate
system.
11. If the relative_to parameter is not specified, the default coordinate system is used. The default
coordinate system is initially your model, that is, the global coordinate system. You may change the
default coordinate system using the 'defaults coordinate_system' command.
Cautions:
Adams View will not allow you to have two markers with the same name, so you must provide a
unique name.
Tips:
1. You must enter the name of the marker you wish to modify by either picking it from the screen or
specifying the full name.
2. You may reverse this modification at a later time with an UNDO command.
18 Adams View Commands
marker modify
material 1
material copy
material
material copy
Allows you to copy the existing material properties to a new material in the model database.
The material can be specified with the essential properties, namely, 1) Young’s modulus, 2) Poisson’s ratio,
and 3) Density. Any new material can be specified by entering these properties in the material database.
Format:
material copy
material_name = an existing material
new_material_name = a new material
Example:
material copy &
material_name = alloy &
new_material_name = alloy_new
Description:
Extended Definition:
The material with its existing properties can be copied to a new material with a different name.
material create
Allows you to create a new material in the model database.
The material can be specified with the essential properties, namely, 1) Young’s modulus, 2) Poisson’s ratio,
and 3) Density. Any new material can be specified by entering these properties in the material database.
2 Adams View Commands
material create
Format:
material create
material_name= a new material
adams_id = adams_id
comments = string
youngs_modulus = pressure
poissons_ratio = real
density = density
Example:
material create &
material_name = .materials.alloy &
adams_id = 2 &
comments = toughened_alloy &
youngs_modulus = 2.4e5 &
poissons_ratio = 0.29 &
density = 7.8
Description:
Extended Definition:
1. The material name specifies a new material to be defined. The ‘adams_id’ specifies an integer used to
identify this element in the Adams data file. When you use the FILE ADAMS_DATA_SET WRITE
command, Adams View writes an Adams data file for your model. Adams requires that each modeling
element be identified by a unique integer identifier. If you use this parameter to specify a non-zero
identifier, Adams View will use it in the corresponding statement in the Adams data file.
material 3
material delete
You may also enter zero as an identifier, either explicitly or by default. The next time you write an
Adams file, Adams View will replace the zero with a unique, internally-generated identifier. Adams
View will permanently store this identifier with the element just as if you had entered it yourself.
Normally, you would let all identifiers default to zero, and Adams View would generate the identifiers
for you. You are never required to enter a non-zero identifier. You only need to specify it if, for some
reason, you wish to control the Adams file output.
2. The ‘comment’ specifies comments for the object being created or modified. When an Adams Solver
data file (.adm) is read into Adams View, all comments associated with a statement (from the end of
the previous statement through the end of the current statement) are stored with the object.
Comments in the data file can be associated with model. These comments must follow the title
statement and be followed by the comment 'END OF MODEL COMMENTS'. This string must
be uppercase. When an Adams Solver data file is written, the comments for an object are written
before the statement corresponding to the object.
3. The Young’s Modulus specifies modulus of elasticity for the beam material and the poisson’s ratio is
also entered for the material. Specifies the part density and that the mass properties of the part are to
be automatically calculated. The calculated mass properties are based upon the solid geometry that
belongs to the part.
material delete
Allows you to delete an existing material in the model database.
The material can be specified with the essential properties, namely, 1) Young’s modulus, 2) Poisson’s ratio,
and 3) Density. Any new material can be specified by entering these properties in the material database.
Format:
material delete
material_name = an existing material
Example:
material delete &
material_name = .materials.alloy
Description:
Extended Definition:
An existing material can be removed from the database by providing the appropriate material name with the
‘delete’ command.
4 Adams View Commands
material modify
material modify
Allows you to modify an existing material in the model database.
The material can be specified with the essential properties, namely, 1) Young’s modulus, 2) Poisson’s ratio,
and 3) Density. Any new material can be specified by entering those properties in the material database.
Format:
material modify
material_name = an existing material
new_material_name = a new material
adams_id = integer
comments = string
youngs_modulus = pressure
poissons_ratio = real
density = density
Example:
material modify &
material_name = .materials.alloy &
new_material_name = .materials.modified_alloy &
adams_id = 2 &
comments = toughened_alloy &
youngs_modulus = 2.4E+005 &
poissons_ratio = 0.29 &
density = 7.8
Description:
Extended Definition:
1. The material name specifies the name of an existing material, which can be renamed by the parameter
‘new_material_name’. The ‘adams_id’ specifies an integer used to identify this element in the Adams
data file. When you use the FILE ADAMS_DATA_SET WRITE command, Adams View writes an
Adams data file for your model. Adams requires that each modeling element be identified by a
unique integer identifier. If you use this parameter to specify a non-zero identifier, Adams View will
use it in the corresponding statement in the Adams data file.
You may also enter zero as an identifier, either explicitly or by default. The next time you write an
Adams file, Adams View will replace the zero with a unique, internally-generated identifier. Adams
View will permanently store this identifier with the element just as if you had entered it yourself.
Normally, you would let all identifiers default to zero, and Adams View would generate the identifiers
for you. You are never required to enter a non-zero identifier. You only need to specify it if, for some
reason, you wish to control the Adams file output.
2. The ‘comment’ specifies comments for the object being created or modified. When an Adams Solver
data file (.adm) is read into Adams View, all comments associated with a statement (from the end of
the previous statement through the end of the current statement) are stored with the object.
Comments in the data file can be associated with model. These comments must follow the title
statement and be followed by the comment 'END OF MODEL COMMENTS'. This string must
be uppercase. When an Adams Solver data file is written, the comments for an object are written
before the statement corresponding to the object.
3. The Young’s Modulus specifies modulus of elasticity for the beam material and the Poisson’s Ratio is
also entered for the material. Specifies the part density and that the mass properties of the part are to
be automatically calculated. The calculated mass properties are based upon the solid geometry that
belongs to the part.
6 Adams View Commands
marker delete_unused
mdi
marker delete_unused
Identifies and deletes the markers that are unused anywhere in a single model in an Adams View or Adams
Car Template Builder session.
Format:
mdi marker delete_unused
model = an existing model
body = an existing body
Example:
mdi marker delete_unused &
model = Model_1
body = body_1
Description:
Extended Definition:
1. You must enter the name of the model under which you wish to delete unused markers.
2. Unused markers are considered those with no dependents; that is, any marker not involved in
a. object definitions like geometry, constraints or forces
b. body definitions like center or mass or inertia reference markers
c. design-time expressions, for example for parametrization
d. run-time functions, for example defining the value of a motion or force component
Cautions:
Markers used only by user subroutine functions hardcoded to the marker ID will be identified by
this command as unused. If you reference marker ID's directly in object runtime functions calling
user subroutines, then use this command very cautiously.
You need not separate multiple models by commas.
mdi 7
marker delete_unused
Tips:
You may reverse this deletion immediately following the action with an UNDO command.
8 Adams View Commands
marker delete_unused
measure 1
measure attributes
measure
measure attributes
Allows you can set the attributes for a strip chart, including creating a legend, setting axis limits, and setting
the color and line type for the curve.
Strip chart is a monitoring device in which Adams View plots a measure. The strip chart monitors the
measure during a simulation.
Format:
measure attributes
measure_name = existing measure
comment = string
legend = string
axis_lower = real
axis_upper = real
axis_labe l= string
axis_type = axis_units
curve_color = existing color
curve_line_type = line_style
curve_thickness = real
curve_symbol_type = plot_symbols
Example:
measure attributes &
measure_name = mea_angle__1 &
comment = "change the attributes" &
legend = "angle measure" &
axis_type = linear &
curve_color = red &
curve_thickness = 2.5 &
curve_line_type = dash
2 Adams View Commands
measure attributes
Description:
Extended Definition:
1. The text specified in the legend parameter appears in the title bar of the strip chart. Note that you
have to redisplay the strip chart to see the effects of changing the legend.
2. There are 4 types of plots that can be specified in the axis_type parameter:
linear - Performs no transformation of data or axis values. This is the default.
logar (Logarithmic) - Scales the axis values so that each power of 10 is separated by the same
distance. For example, the values 1, 10, 100, 1000, and 10,000 are equally spaced.
db (Decibel) - Displays 20 * log 10 (value) for each value.
default - Selecting this means no specific axis type is requested and it appears in the default axis type,
which is usually linear.
Cautions:
1. You have to redisplay the strip chart to see the effects of changing the legend, color, line type, line
symbol, and line thickness. Learn about redisplaying strip charts.
The axis_Lower, axis_Upper, and axis_Label options currently are not available.
measure 3
measure copy
measure copy
Creates a copy of an existing measure.
Format:
measure copy
measure_name = existing measure
new_measure_name = new name for the copy
Example:
measure copy &
measure_name = my_angle_mea_1 &
new_measure_name = angle_mea_1_copy
Description:
Format:
measure create angle
measure_name = new mea_angle
first_point = existing marker
middle_point = existing marker
last_point = existing marker
comments = string
legend = string
Example:
measure create angle &
measure_name = angle_between_link1_link2 &
first_point = marker_2 &
4 Adams View Commands
measure create angle
If Link1 and Link2 are connected by a revolute joint and Marker2 lies on Link1, Marker 3 lies on Link2 and
Marker 1 lies in the intersection of Link1 and Link2, then the above command will create an angle measure
to compute the angle between the two links. The title of the measure will be the string specified in the legend
parameter.
Description:
Extended Definition:
1. About Measuring Included Angle Characteristics
The included angle measure captures the instantaneous angle between two vectors defined by three
markers. For example, you can use the angle measure to find the included angle between any two links
connected by a revolute joint. The default unit for angle measures is degrees.
To create an included angle, you select three markers, as illustrated in the figure below. These three
markers define two vectors:
It is the instantaneous angle between these vectors that Adams View tracks in an included angle
measure. Note that the included angle changes over time as the markers move during a simulation.
Example of Points That Define Included Angles
measure 5
measure create computed
There are two conventions used in Adams View to define the sign and magnitude of an included angle
measure as it changes over time:
2. The sign and magnitude is always calculated so as to have an initial value within the range [0, PI]
regardless of the order in which you select the points.
Format:
measure create computed
measure_name = new computed measure
text_of_expression = string
units = string
create_measure_display = boolean
legend = string
comments = string
Example:
Assuming that ADAMS_KE is an existing measure of the kinetic energy of a pendulum and MY_KE is an
existing analytical measure if the kinetic energy.
6 Adams View Commands
measure create function
Description:
Cautions:
1. Be careful, however, about the changes you make in your model. Making changes can cause a
potential problem because model changes can invalidate the accuracy of any measure that depends on
the results of a simulation. The simulation redefines the model data and re-evaluates your Adams
View computed measures.
Format:
measure create function
measure_name = new function measure
function = function
user_function = real
routine = string
units = string
create_measure_display = boolean
legend = string,
comments = string
Example:
measure cre function measure = .model_1.function_mea_1 &
function = "0.5*wz(.model_1.part_2.cm)**2*(15*(50**2
+ 300**2) + 15000)/1000" &
units = no_units &
create_measure_display = yes
Description:
Cautions:
1. Be careful, however, about the number of Adams Solver function measures you create because Adams
View writes each measure to the Adams Solver dataset as a VARIABLE statement. Each VARIABLE
statement adds another equation to the overall set of equations. The more equations Adams Solver
must solve, the longer your simulation takes.
Format:
measure cre‘ate object
measure_name = new object measure
component = coordinate_component
motion_rframe = existing marker
coordinate_rframe = existing marker
characteristic = measure_object_characteristic
object = existing object
from_first = boolean
legend = string
create_measure_display = boolean
comments = string
Example:
measure create object &
measure_name = mea_object__1 &
from_first = yes &
component = x_component &
characteristic = angular_acceleration &
object = joint_2 &
create_measure_display = yes &
legend = "joint_2 object measure"
measure 9
measure create object
Description:
Extended Definition:
The measurable characteristics of objects are shown in the table below. Click an object characteristic to view
the description.
12 Adams View Commands
measure create object
Curve-curve pressure_angle
constraint, point-curve element_force
constraint
contact_point_location
14 Adams View Commands
measure create orient
Three-component element_force
force, three- element_torque
component torque,
general force/torque
Contact force element_force
element_torque
Double-click a ack to view:
I_Point
I_Normal_Force
I_Friction_Force
I_Normal_Unit_Vector
I_Friction_Unit_Vector
J_Point
J_Normal_Force
J_Friction_Force
J_Normal_Unit_Vector
J_Friction_Unit_Vector
Slip_Deformation
Slip_Velocity
Penetration
Format:
measure create orient
measure_name = name for the orientation measure
component = orientation_component
characteristic = measure_orient_characteristic
to_frame = an existing model, part or marker
from_frame = an existing model, part or marker
create_measure_display = boolean
legend = string
Example:
measure create orient &
measure_name = mea_orient__1 &
component = angle_1_component &
characteristic = yaw_pitch_roll &
to_frame = part_2 &
from_frame = part_3 &
legend = "orientation of yaw pitch"
16 Adams View Commands
measure create orient
Description:
measure 17
measure create orient
18 Adams View Commands
measure create orient
Extended Definition:
1. The orientation characteristics that you can measure are shown in the table below
Format:
measure create point
measure_name = new point measure
component = coordinate_component
motion_rframe = existing marker
coordinate_rframe = existing marker
characteristic = measure_point_characteristic
point = existing marker
legend = string
create_measure_display = boolean
comments = string
Example:
measure create point &
measure_name = .model_1.mea_point_1 &
point = .model_1.part_3.marker_4 &
characteristic = " total_force_on_point " &
component = "mag_component" &
coordinate_rframe = .model_1.ground.marker_10&
comments = "point measure to capture the total force of
point marker_3" &
create_measure_display = yes
22 Adams View Commands
measure create point
Description:
Extended Definition:
Point Characteristics You Can Measure
The characteristics of markers that you can measure are shown in the table below. All types of markers have
the same measurable characteristics, but markers on flexible bodies have additional characteristics for
deformation
.
Format:
measure create pt2pt
measure_name = new point-to-point measure
component = coordinate_component
motion_rframe = existing marker
24 Adams View Commands
measure create pt2pt
Example:
measure create pt2pt &
measure_name = .model_1.mea_pt2pt_1 &
to_point = .model_1.part_3.marker_4 &
characteristic = "translational_displacement" &
component = "mag_component" &
coordinate_rframe = .model_1.ground.marker_10 &
comments = "point 2 point measure to capture the
translational displacement of point marker_3" &
create_measure_display = yes
Description:
Extended Definition:
The point-to-point kinematic characteristics that you can measure are shown in the table below.
Description:
Format:
measure create range
measure_name = new mea_range
type = range_type
of_measure_name = existing measure name
create_measure_display = boolean
legend = string
Example:
measure create range &
measure_name = range_mea_angle_measure &
tpe = maximum &
of_measure_name = my_mea_angle__1 &
measure 27
measure delete
Description:
Extended Definition:
Range Measure Characteristic Descriptions
The following table describes the characteristics that range measures provide. For information on the
conventions used, see Conventions.
Minimum Minimum value in the current set of measured data. Min (M1, M2, ..., Mn)
Maximum Maximum value in the current set of measured data. Max (M1, M2, ..., Mn)
Variation Difference between the maximum and minimum value in Maximum - Minimum
the current set of measured data.
measure delete
This command will delete the specified marker.
28 Adams View Commands
measure modify angle
Format:
measure delete
measure_name = existing measure
Example:
measure delete &
measure_name = mea_1
Description:
Format:
measure modify angle
measure_name = existing mea_angle
new_measure_name = new name for the measure
first_point = existing marker
middle_point = existing marker
last_point = existing marker
comments = string
legend = string
Example:
measure modify angle &
measure_name = angle_between_link1_link2 &
first_point = marker_2 &
last_point = marker_4 &
middle_point = marker_1 &
legend = "angle between two links" &
comments = "this measure will track the angle between
the two links"
measure 29
measure modify angle
If Link1 and Link2 are connected by a revolute joint and Marker2 lies on Link1, Marker 3 lies on Link2 and
Marker 1 lies in the intersection of Link1 and Link2, then the above command will modify the existing angle
measure to compute the angle between the two links. The title of the measure will be the string specified in
the legend parameter.
Description:
Extended Definition:
About Measuring Included Angle Characteristics
The included angle measure captures the instantaneous angle between two vectors defined by three markers.
For example, you can use the angle measure to find the included angle between any two links connected by
a revolute joint. The default unit for angle measures is degrees.
To create an included angle, you select three markers, as illustrated in the figure below. These three markers
define two vectors:
It is the instantaneous angle between these vectors that Adams View tracks in an included angle measure.
Note that the included angle changes over time as the markers move during a simulation.
Example of Points That Define Included Angles
30 Adams View Commands
measure modify computed
There are two conventions used in Adams View to define the sign and magnitude of an included angle
measure as it changes over time:
The sign and magnitude is always calculated so as to have an initial value within the range [0, PI]
regardless of the order in which you select the points.
Format:
measure modify computed
measure_name = existing computed measure
new_measure_name = new name for the measure
text_of_expression = string
units = string
create_measure_display = boolean
legend = string
comments = string
measure 31
measure modify function
Example:
Assuming that ADAMS_KE is an existing measure of the kinetic energy of a pendulum and MY_KE is an
existing analytical measure if the kinetic energy.
.
Description:
Cautions:
1. Be careful, however, about the changes you make in your model. Making changes can cause a
potential problem because model changes can invalidate the accuracy of any measure that depends on
the results of a simulation. The simulation redefines the model data and re-evaluates your Adams
View computed measures.
measure is convenient because it lets you reference any user-defined Adams Solver function or subroutine .
Function measures are built from Adams Solver run-time functions.
Format:
measure function
measure_name = existing function measure
new_measure_name = new function measure name
function = function
user_function = real
routine = string
units = string
create_measure_display = boolean
legend = string,
comments = string
Example:
measure modify function measure = .model_1.function_mea_1 &
new_measure_name = .model_1.my_function_mea &
function = "0.5*wz(.model_1.part_2.cm)**2*(15*(50**2 +
300**2) + 15000)/1000" &
units = no_units &
create_measure_display = yes
Description:
Cautions:
1. Be careful, however, about the number of Adams Solver function measures you create because Adams
View writes each measure to the Adams Solver dataset as a VARIABLE statement. Each VARIABLE
statement adds another equation to the overall set of equations. The more equations Adams Solver
must solve, the longer your simulation takes.
Format:
measure modify object
measure_name = existing object measure
new_measure_name = new name for the object measure
component = coordinate_component
motion_rframe = existing marker
coordinate_rframe = existing marker
characteristic = measure_object_characteristic
object = existing object
from_first = boolean
legend = string
create_measure_display = boolean
comments = string
34 Adams View Commands
measure modify object
Example:
measure modify object &
measure_name = mea_object__1 &
from_first = yes &
component = y_component &
characteristic = angular_acceleration &
object = joint_2 &
create_measure_display = yes &
legend = "joint_2 object measure"
Description:
Extended Definition:
The measurable characteristics of objects are shown in the table below. Click an object characteristic to view
the description.
36 Adams View Commands
measure modify object
Format:
measure modify orient
measure_name = name of existing orientation measure
new_measure_name = new name for the measure
component = orientation_component
characteristic = measure_orient_characteristic
to_frame = an existing model, part or marker
from_frame = an existing model, part or marker
create_measure_display = boolean
legend = string
Example:
measure modify orient &
measure_name = mea_orient__1 &
new_measure_name = mea_yaw_orient &
component = angle_1_component &
characteristic = yaw_pitch_roll &
to_frame = part_2 &
40 Adams View Commands
measure modify orient
Description:
Extended Definition:
1. The orientation characteristics that you can measure are shown in the table below.
.
Format:
measure modify point
measure_name = existing point measure
new_measure_name = new name for measure
component = coordinate_component
motion_rframe = existing marker
coordinate_rframe = existing marker
characteristic = measure_point_characteristic
point = existing marker
legend = string
create_measure_display = boolean
comments = string
Example:
measure modify point &
measure_name = .model_1.mea_point_1 &
new_measure_name = mea_my_point &
point = .model_1.part_3.marker_4 &
characteristic = " total_force_on_point " &
component = "mag_component" &
coordinate_rframe = .model_1.ground.marker_10&
comments = "point measure to capture the total force of
point marker_3" &
create_measure_display = yes
measure 43
measure modify point
Description:
Extended Definition:
Point Characteristics You Can Measure
The characteristics of markers that you can measure are shown in the table below. All types of markers have
the same measurable characteristics, but markers on flexible bodies have additional characteristics for
deformation.
44 Adams View Commands
measure modify pt2pt
Format:
measure modify pt2pt
measure_name = existing point-to-point measure
new_measure_name = new name for the measure
component = coordinate_component
motion_rframe= existing marker
coordinate_rframe = existing marker
characteristic = measure_pt2pt_characteristic
from_point = existing marker
measure 45
measure modify pt2pt
Example:
measure modify pt2pt &
measure_name = .model_1.mea_pt2pt_1 &
new_measure_name = .model_1.mea_pt_to_pt &
to_point = .model_1.part_3.marker_4 &
characteristic = "translational_displacement" &
component = "mag_component" &
coordinate_rframe = .model_1.ground.marker_10&
comments = "point 2 point measure to capture the
translational displacement of point marker_3" &
create_measure_display = yes
Description:
Extended Definition:
The point-to-point kinematic characteristics that you can measure are shown in the table below.
Format:
measure modify query
measure_name = existing mea_query
new_measure_name = new name for query
gui_driver_name = existing gi_gui
delay_time = time
initial_condition = real
create_measure_display = boolean
legend = string
measure 47
measure modify range
Description:
Format:
measure modify range
measure_name = existing mea_range
new_measure_name = new mea_range name
type = range_type
of_measure_name = existing measure name
create_measure_display = boolean
legend = string
Example:
measure modify range &
measure_name = range_mea_angle_measure &
new_measure_name = range_angle_measure &
tpe = maximum &
of_measure_name = my_mea_angle__1 &
create_measure_display = yes &
legend = "maximum angle between the links"
48 Adams View Commands
measure modify range
Description:
Extended Definition:
1. Range Measure Characteristic Descriptions
The following table describes the characteristics that range measures provide. For information on the
conventions used, see Conventions.
Minimum Minimum value in the current set of Min (M1, M2, ..., Mn)
measured data.
Maximum Maximum value in the current set of Max (M1, M2, ..., Mn)
measured data.
Variation Difference between the maximum and Maximum - Minimum
minimum value in the current set of
measured data.
measure_display 1
measure_display create
measure_display
measure_display create
Allows you to transfer the plot on the strip chart to full_plot creation of a measure_display for an existing
measure.
A measure gauge particular quantities in your model during a simulation . For example, you can measure the
force in a spring throughout a simulation or the angle between two points or axes. The measure once created
can be displayed as a strip chart or can be transferred to full plot.
The measured quantity is displayed against TIME as default axis, or it can be displayed against any
‘independent_measure’ existing in the model.
Format:
measure_display create
measure_name = an existing measure
mea_display = a new mea_display
independent_measure_name = an existing measure
Example:
measure_display create &
mea_display = .model_1.mdsp &
measure_name = .model_1.msr &
independent_measure_name = .model_1.mea_3
Description:
Extended Definition:
1. While creating a measure a strip chart of the measure can be displayed by clicking the toggle button
to ‘create strip chart’. If a display of the measure at an later stage, it can be created using this
command.
2 Adams View Commands
measure_display delete
2. The command ‘measure_display create’ will create a display of an existing measure, the quantity
variation being displayed along default axis as ‘TIME’, when ‘independent_measure_name’ is not
specified. For example, the ‘ANGLE’ turned by a revolute joint with respect to ‘TIME’ will give the
angular velocity measure of the joint.
3. If the quantity is to be displayed with respect to any parameter other than default ‘TIME’, e.g., the
variation in ‘FORCE’ with respect to ‘ANGLE’ turned by crank, then two measured are first created
for force and angle. Then the new measure is created for ‘measure_name’ FORCE and the
‘independent_measure_name’ as ANGLE. This will display the variation in force with respect to the
angle.
measure_display delete
Allows deletion of a measure_display for an existing measure.
A measure gauge particular quantities in your model during a simulation . For example, you can measure the
force in a spring throughout a simulation or the angle between two points or axes. The measure once created
can be displayed as a strip chart or can be transferred to full plot.
The measured quantity is displayed against TIME as default axis, or it can be displayed against any
‘independent_measure’ existing in the model.
Format:
measure_display delete
measure_name = an existing measure
Example:
measure_display delete &
mea_display = .model_1.disp2_display
Description:
Extended Definition:
The existing measure_display can be deleted by choosing the display name while ‘delete’ command. On the
other hand, if the measure display if closed then it can be redisplayed by ‘measure’-‘display’ from the main
menu.
measure_display 3
measure_display full_plot
measure_display full_plot
Allows transferring the plot on the strip chart to full_plot creation of a measure_display for an existing
measure.
A measure gauge particular quantities in your model during a simulation . For example, you can measure the
force in a spring throughout a simulation or the angle between two points or axes. The measure once created
can be displayed as a strip chart or can be transferred to full plot.
The measured quantity is displayed against TIME as default axis, or it can be displayed against any
‘independent_measure’ existing in the model.
Format:
measure_display full_plot
measure_name = an existing measure
mea_display = a new mea_display
independent_measure_name = an existing measure
Example:
measure_display full_plot &
mea_display = .model_1.mdsp &
measure_name = .model_1.msr &
independent_measure_name = .model_1.MEA_3
Description:
Extended Definition:
1. While creating a measure a strip chart of the measure can be displayed by clicking the toggle button
to ‘create strip chart’. If a display of the measure at an later stage, it can be created using this
command.
2. The command ‘measure_display create’ will create a display of an existing measure, the quantity
variation being displayed along default axis as ‘TIME’, when ‘independent_measure_name’ is not
specified. For example, the ‘ANGLE’ turned by a revolute joint with respect to ‘TIME’ will give the
angular velocity measure of the joint.
4 Adams View Commands
measure_display save_curve
3. If the quantity is to be displayed with respect to any parameter other than default ‘TIME’, e.g., the
variation in ‘FORCE’ with respect to ‘ANGLE’ turned by crank, then two measured are first created
for force and angle. Then the new measure is created for ‘measure_name’ FORCE and the
‘independent_measure_name’ as ANGLE. This will display the variation in force with respect to the
angle.
measure_display save_curve
Allows to save the curve on the measure_display.
A measure gauge particular quantities in your model during a simulation. For example, you can measure the
force in a spring throughout a simulation or the angle between two points or axes. The measure once created
can be displayed as a strip chart or can be transferred to full plot.
The measured quantity is displayed against TIME as default axis, or it can be displayed against any
‘independent_measure’ existing in the model.
Format:
measure_display save_curve
mea_display = an existing mea_display
Example:
measure_display save_curve &
mea_display = mdsp
Description:
Extended Definition:
The curve on strip chart is replaced by a new curve, whenever a new simulation is carried out. In case it is
necessary to retain the current curve from current simulation to compare with a new curve displayed after a
new simulation, the current curve can be saved. Thus, the new curve will be superimposed on the current
one facilitating comparison of the curves.
model 1
model assemble
model
model assemble
Allows you to merge several models into one big model.
Format:
model assemble
new_model_name = a new model
model_names = an existing model
prefix = string
suffix = string
translation = location
rotation = orientation
duplicate_parts = dupl_part_action
add_to_group_name = a new or existing group
Example:
model assemble &
new_model_name = model__1 &
model_names = crankshaft , model_1 &
prefix = "new_" &
translation = 10 , 10 , 10 &
rotation = 0 , 0 , 0 &
duplicate_parts = rename
Description:
Extended Definition:
1. The "model_names" lists the source of the objects being merged and the "new_model_name" names
the destination model. The source models are not changed after the assemble operation.
You can specify a set of translations and rotations that are applied to the parts, polylines, and notes of
each source model before it is merged with the assembled model.
If you specify that parts with the same name in both models (duplicate parts) are to be merged, then
all of the children beneath the parts of the source model will be copied beneath the corresponding
parts in the assembled model. Otherwise, the duplicate parts in the source model will be copied and
renamed in the destination model.
MODEL MERGE VS. MODEL ASSEMBLE
Although the "model merge" and "model assemble" commands accomplish much the same thing,
there are several differences between them. These differences are
a. If ground parts are not merged during a "model assemble", then they will be constrained to
ground with an automatically created fixed joint. ("Ground" is what was originally ground in
the the first model in the "model_names" list.)
The auto-created fixed joints for the ground parts are named
"fixed_ORIGINAL_MODEL_NAME"; the markers are named,
"fixed_i_ORIGINAL_MODEL_NAME" and "fixed_j_ORIGINAL_MODEL_NAME" with
the J marker going to the assembled model's ground part and the I marker on the part that was
once a ground.
model 3
model attributes
b. In "model assemble", with the renaming of like-named parts, the ground parts for all but the first
model in the list are renamed "ground_ORIGINAL_MODEL_NAME" (unless the
prefixes/suffixes you specify are sufficient for distinguishing the ground names). In "model
merge", ground parts are renamed only if their names conflict, and then they are renamed the
same way as other parts (typically, "ground_2" or "ground_3").
c. As with "model copy", the "model assemble" command retains the Adams IDs for the first model;
all others may be changed if there are conflicts.
d. With "model assemble", you may relocate and/or reorient any of the models, including the first
one, as they are merged into the assembly.
e. With "model assemble", gravity forces are eliminated from all but the first model. If the first
model has no gravity, then there will be no gravity in the assembly. In a "model merge", duplicate
gravity forces are renamed (usually, something like "gravity_2").
f. The model assemble command is much faster than using the copy, merge strategy for creating an
assembly of models. You will often see a four-fold improvement in performance by using "model
assemble" instead of a "model copy", "model merge" sequence.
2. You may identify a model by typing its name or by picking it from the screen.
If the model is not visible on the screen, you must type the name.
You may also find it convenient to type the name even if the model is displayed.
You must separate multiple model names by commas.
If the model is visible in one of your views, you may identify it by picking on any of the graphics
associated with it.
You need not separate multiple model picks by commas.
3. If you specify that duplicate parts are to be merged, then all the children beneath the parts of the
source model will be copied beneath the corresponding parts in the destination model. Otherwise,
the duplicate parts in the source model will be copied and renamed in the destination model.
4. The add_to_group parameter specifies a new or existing group into which Adams View will add all
merged objects. All objects that were copied from the source model into the destination model will
be added to the specified group.
Cautions:
1. The source entities are not changed by the assemble operation.
model attributes
Allows you to set specification of attributes on the entire model.
4 Adams View Commands
model attributes
Format:
model attributes
model_name = an existing model
scale_of_icons = real
size_of_icons = real
visibility = on_off_with_toggle
name_ visibility = on_off_with_toggle
color = an existing color
active = on_off_no_opinion
dependents_active = on_off_no_opinion
entity_scope = color_scope
Example:
model attributes &
model_name = model__1 &
scale_of_icons = 0.91 &
visibility = on &
name_visibility = on &
color = blue &
active = on &
dependents_active = off
Description:
Extended Definition:
1. You can set the following attributes on a marker.
- SIZE_OF_ICONS / SCALE_OF_ICONS. These two parameters are mutually exclusive. You may
set a size of the icon used for the marker representation in modeling units, or you may scale the size
of the icon by a non-unit scale factor.
- VISIBILITY. You may set a marker's visibility ON, OFF or TOGGLE the current setting. When
you set a marker's visibility OFF, the marker will not be drawn. When you set a marker's visibility
ON, you allow that marker to be drawn.
- NAME_VISIBILITY. You may set a marker's name label visibility ON, OFF or TOGGLE the
current setting with this parameter.
- COLOR. You may set the color of a marker with this parameter.
If an entity does not have a GRAPHICS ATTRIBUTE setting, the value for that GRAPHIC
ATTRIBUTE may be inherited from another entity. INHERITANCE may either be TOP_DOWN
or BOTTOM_UP.
BOTTOM_UP and TOP_DOWN refer to the natural hierarchy of the Adams model. The hierarchy
is a tree structure with the model at the apex.
Parts exist beneath the model, and markers exist beneath the parts.
If the icon size of the model is set to 0.1, and the default INHERITANCE is set to TOP_DOWN,
then all icons displayed within the model will be displayed in this size. However, if the icon size of a
model is set to 0.1, and then the default INHERITANCE is set to BOTTOM_UP, then any icons
set to a size other than the model's icon size will be displayed in their own size.
2. You may identify a model by typing its name or by picking it from the screen.
If the model is not visible on the screen, you must type the name.
You may also find it convenient to type the name even if the model is displayed.
You must separate multiple model names by commas.
If the model is visible in one of your views, you may identify it by picking on any of the graphics
associated with it.
You need not separate multiple model picks by commas.
3. If no initial size is specified for Adams View icons, the default size will be one modeling LENGTH
unit. For example, if the modeling units are K/M/S, a part axes icon will have triad legs of one meter
in length.
6 Adams View Commands
model attributes
When you specify SCALE_OF_ICONS, a new size is calculated by multipling the current size, by
the scale, and storing the product as the new ICON_SIZE.
4. If no initial size is specified for Adams View icons, the default size will be one modeling LENGTH
unit. For example, if the modeling units are K/M/S, a part axes icon will have triad legs of one meter
in length.
When you set SIZE_OF_ICONS at the model level, all Adams View icons used in creating a model
will use the size specified.
If the model has a SIZE_OF_ICONS set, and a part under that model has a different
SIZE_OF_ICONS, the model's ICONS_SIZE will take precedence.
An Example:
.model ---------------------- SIZE_OF_ICONS = .15 meters
.part-------------------- SIZE_OF_ICONS = .125 meters
The part's icon will be 1.5 meters is size.
If the model has SIZE_OF_ICONS set to 0.0 , and a part under that model has its
SIZE_OF_ICONS set to .125, the part's icon size will be used.
An Example:
model ---------------------- SIZE_OF_ICONS = 0.0 meters
.part-------------------- SIZE_OF_ICONS = .125 meters
The part's icon will be .125 meters in size.
5. The visibility parameter is used to control whether graphic entities, such as markers, joints, and parts,
are to be drawn in an Adams View viewport.
The legal values for this parameter are: ON, OFF, and TOGGLE. ON will make the desired entity
visible. OFF will make the desired entity invisible. TOGGLE will take the current state of an entity’s
visibility and reverse it.
6. The NAME_VISIBILITY parameter provides control over the visibility of the view name displayed
in the top center position of a given view.
The legal values of this parameter are ON and OFF. This is an optional parameter and if not entered,
the name will be visible (that is, will be ON).
Note that if the visibility of the view name is turned off, the only indication that a view is "active" will
be the color of the viewport border. This would be a problem on a black and white monitor.
7. Adams View allows you to specify the following colors for modeling entities: BLACK, WHITE,
RED, GREEN, BLUE, CYAN, MAGENTA, YELLOW, and NO_COLOR
Specifying 'NO_COLOR' for a modeling entity instructs Adams View to use the default color for
this entity, if there is no color present in its parent modeling entity.
Example 1:
.model -------------------------NO_COLOR
.part ---------------------- RED
.geometry(circle) ------- NO_COLOR
The circle will be RED.
Example 2:
model 7
model attributes
.model -------------------------NO_COLOR
.part ---------------------- RED
.geometry(circle) ------- BLUE
If a parent modeling entity has a color previously specified, that color takes precedence. Adams View
will issue a warning message about color precedence. The circle will be RED.
Example 3:
.model -------------------------NO_COLOR
.part ---------------------- NO_COLOR
.geometry(circle) ------- BLUE
The circle will be BLUE.
8. When you set ACTIVE=NO, that element is written to the data set as a comment. When you set the
ACTIVE attribute on an object, you are also setting it on the children of the object. If you set
ACTIVE=NO on a part, but wish for a marker on that part to be on, then you must explicitly set
ACTIVE=YES on the marker, after setting activation on the part.
The DEPENDENTS_ACTIVE parameter acts in the same fashion, but sets the ACTIVE attribute
for the dependents all the way down the dependency chain. For example, if you execute the following
command:
PART ATTRIBUTES PART=PAR1 DEPENDENTS_ACTIVE=NO
Where PAR1 has a marker MAR1 which is the I marker of a joint JOI1 (which has a J marker MAR2),
then JOI1 will be deactivated.
Also, if the joint JOI1 is referenced in a request function, or if the I marker is referenced by a request,
then the request will be deactivated.
Propagation of activation status through groups is as if each element were to have its activation status
changed indvidually.
Elements affected are:
• Group
• Part
• Differential Equation
• Marker
• Geometry
• Constraints
• Forces
• Data Elements
• Output Control
9. The legal values for this parameter are FILL_COLOR, EDGE_COLOR, OUTLINE_COLOR, and
ALL.
FILL_COLOR is the color of those areas of a graphic that can be shaded (they include sides of
cylinders, frustums, boxes, etc.) The EDGE_COLOR is the color of the lines making up the edges
of the facets (or areas filled by the FILL_COLOR) of a graphic that can be shaded.
8 Adams View Commands
model copy
The OUTLINE_COLOR represents the color of the lines that make up those graphics that cannot
be shaded or filled, like an outline graphic statement consisting of two points or the coil of a
springdamper.
Finally, the ALL value indicates that all three entity types, FILL_COLOR, EDGE_COLOR, and
OUTLINE_COLOR will be affected by the color change.
The ENTITY_SCOPE parameter is optional and if not entered, will be set to FILL_COLOR.
model copy
Allows you to create a replica model.
Format:
model copy
model_name = an existing model
new_model_name = a new model
analysis_name = an existing analysis
frame_number = integer
time = time
view_name = an existing view
include_contact_steps = integer
Example:
model copy &
model_name = crankshaft &
new_model_name = model__1 &
view_name = view_1
Description:
Extended Definition:
1. You can either copy a model as it was created, or at a specified frame/time step of an analysis.
If you use the MODEL_NAME parameter, the replica model will be identical to the original with
the exception of the model name. All modeling entities under the original model will be copied to the
replica and have the same names, including the analysis data.
If you use the ANALYSIS_NAME parameter, the replica model will contain all the modeling entities
under the original model, including the analyses. The part positions (locations and orientations) and
the dynamic polyline shapes will be modified to match what they would be at the time, or frame, you
specify.
Models must have unique names relative to other models in Adams View.
The replica will be completely independent of the original, and may be modified without affecting
the original.
2. You may identify a model by typing its name or by picking it from the screen.
If the model is not visible on the screen, you must type the name.
You may also find it convenient to type the name even if the model is displayed.
You must separate multiple model names by commas.
If the model is visible in one of your views, you may identify it by picking on any of the graphics
associated with it.
You need not separate multiple model picks by commas.
3. Normally, entity names are composed of alphabetic, numeric, or '_' (underscore) characters, and start
with an alphabetic or '_' character. They may be of any length.
By enclosing the name in double quotes, you may use other printable characters, or start the name
with a numeral. If a name contains characters, or starts with a numeral, you must always quote the
name when entering it.
Note that you can specify the parentage of an entity (for example, what part "owns" a marker or a
geometry element) when you CREATE it by changing the name. If you enter just the entity name,
then the default parent will be assigned by Adams View. If you type in the full name, then you may
override the default parent. In most cases, when creating an entity, Adams View will provide a default
name. The default name that Adams View provides will specify the parentage that it has assumed.
10 Adams View Commands
model create
You may, of course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it
4. When Adams View reads a graphics file (.GRA), a request file (.REQ), or a results file (.RES) an
analysis name is created. By default, the name of the analysis is the file name excluding the extension.
Adams View requires that Adams simulations have unique names and the default name of an analysis
may be overridden when reading the file(s) using the file_name parameter. When referring to an
analysis name that already exists, quotes are not necessary. When processing any command that
requires an analysis name, the system will default to the default analysis name. The default analysis
name is set to the last analysis file read in (.GRA, .REQ, .RES, or all three). To change the default
analysis name without reading in an analysis file, use the "defaults analysis" command.
5. If entered, the frame_number must be a positive integer corresponding to the desired frame (output
time step). If a value greater than the last frame number is entered, the system will display the last
frame.
6. The frame with the time value closest to the time specified in this parameter will be selected. Adams
View will use the last frame if the time entered is greater than the time for the last frame in the
simulation.
7. You may identify a view by typing its name or by picking it from the screen. In most cases, you may
enter the special view name 'all', which means all the views currently displayed.
You must separate multiple view names by commas. You need not separate multiple view picks by
commas.
Cautions:
1. Adams View will not allow you to have two models with the same name, so you must provide a unique
name.
model create
Allows you to create a model. You may reverse this creation at a later time with an UNDO command. You
can also create models as children of other models.
Format:
model create
model_name = a new model
comments = string
title = string
view_name = an existing view
fit_to_view = boolean
model 11
model create
Example:
model create &
model_name = model__1 &
comments = "a new model" &
title = model1 &
view_name = view__1 &
fit_to_view = yes
Description:
Extended Definition:
1. In order to build a mechanism in Adams View, you must first create a model object in the Adams
View database. You then add parts and other objects to the model. As you are developing your
model, you may display it, verify it, and change its attributes.
Once you have created a model, you add parts to it with the 'PART CREATE RIGID_BODY
NAME_AND_POSITION' command. After you have created your first part or two, you can
continue creating parts, or you may wish to start putting markers on the parts so you can add
geometry, constraints, and forces. You use the 'MARKER CREATE' command to add markers to a
part. Adding markers may help you position other parts, and creating geometry with markers will
help you visualize your model as you are constructing it.
When your model is complete, you use the 'OUTPUT_CONTROL' command to request Adams
output, write an Adams data set, and then analyze it with Adams. If your analysis is fairly simple, you
may use the 'SUBMIT' command to write the dataset and invoke Adams.
2. Normally, entity names are composed of alphabetic, numeric, or '_' (underscore) characters, and start
with an alphabetic or '_' character. They may be of any length.
By enclosing the name in double quotes, you may use other printable characters, or start the name
with a numeral. If a name contains characters, or starts with a numeral, you must always quote the
name when entering it.
12 Adams View Commands
model delete
Note that you can specify the parentage of an entity (e.g. what part "owns" a marker or a geometry
element) when you CREATE it by changing the name. If you enter just the entity name, then the
default parent will be assigned by Adams View. If you type in the full name, then you may override
the default parent. In most cases, when creating an entity, Adams View will provide a default name.
The default name that Adams View provides will specify the parentage that it has assumed. You may,
of course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it
3. When an Adams Solver data file (.adm) is read into Adams View, all comments associated with a
statement (from the end of the previous statement through the end of the current statement) are
stored with the object. Comments in the data file can be associated with model.
These comments must follow the title statement and be followed by the comment 'END OF
MODEL COMMENTS'. This string must be uppercase.
When an Adams Solver data file is written, the comments for an object are written before the
statement corresponding to the object.
4. The title is a character string up to 80 characters which describes the model. It is used as the TITLE
statement in the Adams DATA SET (.adm file)
5. You may identify a view by typing its name or by picking it from the screen. In most cases, you may
enter the special view name 'all', which means all the views currently displayed.
You must separate multiple view names by commas. You need not separate multiple view picks by
commas.
Cautions:
1. Adams View will not allow you to have two models with the same name, so you must provide a unique
name.
model delete
Allows you to delete an existing model.
Format:
model delete
model_name = an existing model
analysis_name = an existing analysis
Example:
model delete &
model_name = crankshaft
model 13
model delete
Description:
Extended Definition:
1. You must enter the name of the model you wish to delete either by picking it from the screen or
specifying the full name.
2. Any Adams View object you delete, may be "undeleted" by using the UNDO commands. If you have
deleted something you would like back, enter the command "undo backward", or pick on the fixed
menu entry, 'UNDO'.
You may identify a model by typing its name or by picking it from the screen.
If the model is not visible on the screen, you must type the name. You may also find it convenient to
type the name even if the model is displayed.
You must separate multiple model names by commas.
If the model is visible in one of your views, you may identify it by picking on any of the graphics
associated with it.
You need not separate multiple model picks by commas.
3. Any AdamsAdamsAdams View object you delete, may be "undeleted" by using the UNDO
commands. If you have deleted something you would like back, enter the command "undo
backward", or pick on the fixed menu entry 'UNDO'.
You may identify an analysis by typing its name or by picking it from the screen.
An analysis may be picked from the screen if you have read an Adams Graphics file, and use the
GRAPHIC_RESULTS command to display it. If the analysis is not visible on the screen, you must
type the name. You may also find it convenient to type the name even if the analysis is displayed.
You may have explicitly named the analysis when you created it by reading one or more Adams output
files. By default, the name of the analysis is the root name of the Adams output files. If you created
the analysis by reading an Adams Graphics file, for instance, the analysis name is the name of the
graphics file without the '.gra' extension.
You may get a list of analysis by typing a "?" in response to a parameter that requires an analysis name
be entered.
You must separate multiple analysis names by commas.
If the analysis is visible in one of your views, you may identify it by picking on any of the graphics
associated with it.
You need not separate multiple analysis picks by commas.
Tips:
1. You may reverse this deletion at a later time with an UNDO command.
14 Adams View Commands
model display
model display
Allows you to display the model in the specified view. If no view has been specified, the model will be
displayed in the active view.
Format:
model display
model_name = an existing model
view_name = an existing view
fit_to_view = boolean
Example:
model display &
model_name = crankshaft &
fit_to_view = yes
Description:
Extended Definition:
1. This command can be useful when the the entire model is no longer visible in the current view space.
MODEL DISPLAY will "fit" the model to the current view space.
2. You may identify a model by typing its name or by picking it from the screen.
If the model is not visible on the screen, you must type the name.
You may also find it convenient to type the name even if the model is displayed.
You must separate multiple model names by commas.
If the model is visible in one of your views, you may identify it by picking on any of the graphics
associated with it.
You need not separate multiple model picks by commas.
model 15
model generate_ids
3. You may identify a view by typing its name or by picking it from the screen. In most cases, you may
enter the special view name 'all', which means all the views currently displayed.
You must separate multiple view names by commas. You need not separate multiple view picks by
commas.
model generate_ids
This command sets the adams_ids of all objects that are descendents of the specified models. The adams_ids
can be set to positive integers, as required by Adams Solver or can be all set to zero.
Format:
model generate_ids
model_names = Names of the existing models
zero_ids = yes/no
Example:
model generate_ids &
model_names = .model_1, .model_2 &
zero_ids = yes
Description:
model merge
Allows you to merge one model into another. The 'model_name' model is the source of the objects being
merged and the 'into_model_name' model is the destination model. The rotation is performed on the model
and then it is translated.
16 Adams View Commands
model merge
Format:
model merge
model_name = an existing model
into_model_name = an existing model
translation = location
rotation = orientation
duplicate_parts = dupl_part_action
add_to_group_name = a new or existing group
Example:
model merge &
model_name = model_1 &
into_model_name = crankshaft &
translation = 10 , 10 , 10 &
rotation = 0 , 0 , 0 &
duplicate_parts = merge
Description:
Extended Definition:
1. The source model will not be changed after the merge operation. You can specify a set of translations
and rotations that are applied to the parts, polylines, and notes beneath the source model, before it is
merged with the destination model. If you specify that parts with the same name in both models
(duplicate parts) are to be merged, then all of the children beneath the parts of the source model will
be copied beneath the corresponding parts in the destination model. Otherwise, the duplicate parts
in the source model will be copied and renamed in the destination model.
2. You may identify a model by typing its name or by picking it from the screen.
If the model is not visible on the screen, you must type the name.
You may also find it convenient to type the name even if the model is displayed.
You must separate multiple model names by commas.
If the model is visible in one of your views, you may identify it by picking on any of the graphics
associated with it.
You need not separate multiple model picks by commas.
3. If you specify that duplicate parts are to be merged, then all the children beneath the parts of the
source model will be copied to be beneath the corresponding parts in the destination model.
Otherwise, the duplicate parts in the source model will be copied and renamed in the destination
model.
4. The add_to_group parameter specifies a new or existing group into which Adams View will add all
merged objects. All objects that were copied from the source model into the destination model will
be added to the specified group.
model modify
Allows you to create a model. You may reverse this creation at a later time with an UNDO command.
Format:
model modify
model_name = an existing model
new_model_name = a new model
comments = string
title = string
view_name = an existing view
18 Adams View Commands
model modify
Example:
model modify &
model_name = model__1 &
new_model_name = model__2 &
comments = “a new model” &
title = model2 &
view_name = view__1
Description:
Extended Definition:
1. In order to build a mechanism in Adams View, you must first create a model object in the Adams
View database. You then add parts and other objects to the model. As you develop your model, you
may display it, verify it, and change its attributes.
Once you have created a model, you add parts to it with the 'PART CREATE RIGID_BODY
NAME_AND_POSITION' command. After you have created your first part or two, you can
continue creating parts, or you may wish to start putting markers on the parts so you can add
geometry, constraints, and forces. You use the 'MARKER CREATE' command to add markers to a
part. Adding markers may help you position other parts, and creating geometry with markers will
help you visualize your model as you are constructing it.
When your model is complete, you use the 'OUTPUT_CONTROL' command to request Adams
output, write an Adams data set, and then analyze it with Adams. If your analysis is fairly simple, you
may use the 'SUBMIT' command to write the dataset and invoke Adams.
2. Normally, entity names are composed of alphabetic, numeric, or '_' (underscore) characters, and start
with an alphabetic or '_' character. They may be of any length.
By enclosing the name in double quotes, you may use other printable characters, or start the name
with a numeral. If a name contains characters, or starts with a numeral, you must always quote the
name when entering it.
model 19
model verify
Note that you can specify the parentage of an entity (for example, what part "owns" a marker or a
geometry element) when you CREATE it by changing the name. If you enter just the entity name,
then the default parent will be assigned by Adams View. If you type in the full name, then you may
override the default parent. In most cases, when creating an entity, Adams View will provide a default
name. The default name that Adams View provides will specify the parentage that it has assumed.
You may, of course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it
3. If the model is not visible on the screen, you must type the name.
You may also find it convenient to type the name even if the model is displayed.
You must separate multiple model names by commas.
If the model is visible in one of your views, you may identify it by picking on any of the graphics
associated with it.
You need not separate multiple model picks by commas.
4. When an Adams Solver data file (.adm) is read into Adams View, all comments associated with a
statement (from the end of the previous statement through the end of the current statement) are
stored with the object. Comments in the data file can be associated with model.
These comments must follow the title statement and be followed by the comment 'END OF
MODEL COMMENTS'. This string must be uppercase.
When an Adams Solver data file is written, the comments for an object are written before the
statement corresponding to the object.
5. The title is a character string up to 80 characters which describes the model. It is used as the TITLE
statement in the Adams DATA SET (.adm file)
6. You may identify a view by typing its name or by picking it from the screen. In most cases, you may
enter the special view name 'all', which means all the views currently displayed.
You must separate multiple view names by commas. You need not separate multiple view picks by
commas.
Cautions:
1. Adams View will not allow you to have two models with the same name, so you must provide a unique
name.
model verify
Allows you to verify the consistency of your model.
20 Adams View Commands
model verify
Format:
model verify
model_name = an existing model
write_to_terminal = on_off
file_name = string
check_solver_compatibility = boolean
Example:
model verify &
model_name = crankshaft &
write_to_terminal = on &
file_name = "c:\model_verify.txt"
Description:
Extended Definition:
1. Adams View will perform most of the checks that Adams does during the Adams Input Check Phase,
and report the results to the Information Box.
Adams View checks marker location and alignment at joints, joint primitives, and beams, for
instance. Adams View also computes the model degrees-of-freedom using the Grubler equation.
The information Adams View generates is only advisory. You are free to ignore it, at least temporarily.
You may continue modeling or even write an Adams data set file from your model.
If Adams View reports errors, you must correct them eventually, however, or Adams will not run the
data set. Adams View may also issue warnings, usually joints that are somewhat misaligned, but not
severely enough to warrant an error. You should make sure these warnings are not the result of
mistakes.
2. You may identify a model by typing its name or by picking it from the screen.
If the model is not visible on the screen, you must type the name.
You may also find it convenient to type the name even if the model is displayed.
model 21
model verify
move
move control_panel
The MOVE panel provides several convenient methods to relocate a marker or a part. The MOVE control
panel is invoked by picking MOVE from the fixed menu,or by using the "MOVE CONTROL_PANEL"
command.
Format:
move control_panel
s_trans_step_and_increment = real
s_rotate_step_and_increment = real
o_trans_step_and_increment = real
o_rotate_step_and_increment = real
Example:
EXAMPLE 1:
To translate an existing marker MAR1 in the X direction of a given part LPRF (e.g.PAR1) by ten model units:
1. Assure the OBJECT type is set to marker_named by picking the cycle button to the OBJECT name
field label.
2. Put the marker name (pick MAR1 from a view or type in MAR1) in the OBJECT field.
3. Assure the reference coordinate system ENTITY type is set to "lprf_of_part" by picking the cycle
button next to the "RELATIVE TO" name field label.
4. Put the part name (pick PAR1 from a view or type in PAR1) in the "RELATIVE TO" field.
5. Assure the value in the step field below the "TRANSLATE OBJ" dial is set to 10 model units by
picking the up or down arrow beside the value.
6. Pick the X triad axis on the "TRANSLATE OBJ" dial icon once. The ROTATE OBJ dial makes use
of the orientation of the RELATIVE TO coordinate system but not the location of its origin.
Therefore, OBJECTS rotated via this method undergo pure rotation without translation.
EXAMPLE 2:
To rotate a marker (MAR1) about an axis parallel to the Z axis of another marker(MAR2) in seven moves for
a total of 35 degrees:
1. Assure the OBJECT type is set to "marker_named" by picking the cycle button next to the
"OBJECT" name field label.
2. Put the name of the marker to be rotated (pick MAR1 from a view) in the OBJECT field.
3. Assure the reference coordinate system ENTITY type is set to "marker_named" by picking the cycle
button next to the RELATIVE TO" name field label.
2 Adams View Commands
move control_panel
4. Put the reference marker name (pick MAR2 from a view) in the "RELATIVE TO" field.
5. Set the value in the step field below the ROTATE OBJ dial to 5 (pick the up or down arrow next to
the value).
6. Pick the Z axis on the "ROTATE OBJ" dial icon seven times. Each time the triad is picked, the
coordinate values in the "CURRENT POSITION" fields are updated (See below for more
information).
Description:
Extended Definition:
1. The QUIT button in the upper right corner will terminate the panel. The DONE button executes
the MOVE and closes the MOVE panel. The SUBMIT button executes the MOVE and leaves the
control panel open. When a part is moved, all associated markers and geometry move with the part.
When a marker is moved, all associated geometry moves with the marker. For the rest of this
description, the marker or part to be moved will be called the OBJECT. Moving an OBJECT is
carried out in three steps:
a. Selecting the OBJECT (part or marker) to be MOVED by filling in the OBJECTname field.
b. Selecting the coordinate system for the move by filling in the RELATIVE TO field. This step is
not required if the move is done relative to screen coordinates.
c. Doing the actual move using one of the three methods:
• a. Using the TRANSLATE OBJ or ROTATE OBJ dials to move an object relative to axes
attached to another part or marker.
• b. Using the TRANSLATE or RELATIVE dials to move an object relative to the axes attached to
a view.
• c. Using the GET COORDINATE button to extract and reapply coordinates of existing parts or
markers.
THE THREE STEPS TO MOVING AN OBJECT
move 3
move control_panel
There are three steps to moving an object in Adams View. First, you must select the OBJECT (part
or marker) to be MOVED, by filling in the OBJECT name field. The OBJECT name field is
preceded by the text, "Relocate the marker named". Notice the cycle button that lets you select
whether you wish to relocate a PART or MARKER. You must, then, specify the specific OBJECT
that you wish to move, either by picking it from the graphics window or entering the hierarchical
name of the OBJECT (for example, typing .pend.par1.mar3). Then, you must select the coordinate
system for the move by filling in the RELATIVE TO ENTITY field. This indicates the coordinate
system that you wish to use in defining your relative transforms of the OBJECTs position. Again, note
that you can cycle this field between a MARKER, PART, MODEL, or a VIEW coordinate system,
and must fill in the name of the OBJECT that you wish to use as a reference for your move. Finally,
you specify the transform you wish to apply, using one of one of three methods explained in
MOVING THE OBJECT below.
Step 1: SELECTING THE OBJECT TO MOVE
The first step to moving an object is deciding which object (part or marker) to move. Select the object
to be moved, by filling in the name of the object in the OBJECTname field:
Select the OBJECT type (part or marker) to be input by picking the cycle button next to the
OBJECT name field label until the desired OBJECT type name is displayed. The object type
specification is needed so that the system can validate the name as it is being input.
Enter the name of the specific OBJECT to be moved. Pick the desired OBJECT from a view.
Alternatively, you may type the name of the OBJECT into the field. This field must be highlighted
and empty while data is being input using either method.
Use the delete or the control-u keys to erase the field.
Step 2: SELECTING THE COORDINATE SYSTEM REFERENCE
The RELATIVE TO field is the marker, part, model, or view that is to be used as the move coordinate
system reference. Therefore, the rotational and translational coordinates, applied to the OBJECT for
the move, are based on the origin and orientation of this coordinate system. The use of this coordinate
system does not affect the way the OBJECT coordinates are subsequently stored by Adams view.
Also, if this field is left blank, Adams View uses the default coordinate system as the "RELATIVE
TO" coordinate system. To specify the "RELATIVE TO" coordinate system, follow these steps:
Select the ENTITY type (marker, part, model, or view) to be input, by clicking on the cycle button
next to the "RELATIVE TO" field label until the desired ENTITY type name is displayed. The
ENTITY type specification is needed so the system can validate the name as it is being input.
Enter the name of the specific ENTITY (marker, part, model, or view) to be used as the MOVE
coordinate system reference. Pick the desired ENTITY from a view.
Alternatively, you may type the name into the field. This field must be highlighted and empty while
data is being input using either method. Use the delete key or a control-u to erase the field.
Step 3: MOVING THE OBJECT
Once you have specified the object to be moved and selected the appropriate coordinate system
reference, you must input the translation or rotation values for the OBJECT move. This is done in
one of the three ways:
4 Adams View Commands
move control_panel
a. Using the TRANSLATE OBJ or ROTATE OBJ (i.e. body fixed coordinate)dials to move relative
axes attached to other parts or markers .
b. Using the TRANSLATE or ROTATE (i.e. screen fixed coordinate) dials to move relative axes
attached to a view.
c. Using the GET COORDINATE button to extract and reapply coordinates of existing parts or
markers.
MOVING THE OBJECT USING BODY-FIXED COORDINATES
This section will explain moving objects using the TRANSLATE OBJ and ROTATE OBJ icons on
the move panel.
The "ROTATE OBJ" and "TRANSLATE OBJ" dials move the OBJECT based on body fixed
coordinates. The body fixed coordinate system is specified in the "RELATIVE TO" field. This type
of MOVE is incremental. Each time the mouse is clicked on one of the icon triad axes, the OBJECT
will be MOVED. The displacement magnitude of the MOVE corresponds to the number of units
displayed below the dial. The OBJECT is moved along the body fixed axis of the ENTITY specified
in the RELATIVE TO field.
The specific axis on the ENTITY used for the MOVE corresponds to the particular icon axis picked.
1. The increment specified by the trans_step_and_increment parameter is applied to the translate step
each time the scroll icon is activated. The user may change these values for personal preference or
based on the needs dictated by the scale of a particular model. If the user enters values for the
trans_step_and_increment parameter, they will be stored and used the next time the "move
control_panel" command is invoked, unless changed by the user.
2. The user may change the values specified by the s_rotate_step_and_increment parameter for personal
preference or based on the needs dictated by the scale of a particular model. If the user enters values
for the rotate_step_and_increment parameter, they will be remembered and used the next time the
"move control_panel" command is invoked, unless overridden by the user.
3. The increment specified by the o_trans_step_and_increment is applied to the translate step, each
time the translate icon is activated. The user may change these values for personal preference or based
on the needs dictated by the scale of a particular model. When you enter values for the
translate_step_and_increment parameter, they will be stored and used the next time the "move
control_panel" command is invoked, unless changed.
4. The increment specified by the o_rotate_step_and_increment parameter is applied to the rotate step
each time the rotate icon is activated. The user may change these values for personal preference or
based on the needs dictated by the scale of a particular model. If the user enters values for the
rotate_step_and_increment parameter, they will be stored and used the next time the "move
control_panel" command is invoked, unless changed by the user.
Cautions:
1. The specific coordinate system used varies for each ENTITY type. The following shows the
coordinate system used for each entity:
• marker: the markers coordinate triad.
• part: the part's local part reference frame (LPRF) triad.
move 5
move mirror
• model: the model's global coordinate system or ground part LPRF triad.
• view: the screen coordinate triad at the center of the "active" view.
move mirror
Allows you to mirror parts, markers, geometry, forces, and constraints across a plane defined by the LPRF of
a part, or a marker.
The plane that the objects are mirrored across can be the XY, YZ or the ZX plane of a part LPRF or a marker.
The plane is defined as parallel to the two specified axes through the origin of the reference frame.
Since complete mirroring would change the handedness of the mirrored part LPRF or marker, only partial
mirroring is possible. To perform partial mirroring you must choose two axes to be mirrored, with the
remaining axis pointing in the direction required to maintain a right-handed system.
As with all MOVE commands when mirroring geometry, forces and constraints it is the markers associated
with these objects that are modified.
When mirroring multiple objects, each object is mirrored independently. The resultant orientation of the
mirrored object depends on the orientation of the original object and the mirror plans. If you try to mirror
multiple objects that have different orientations you will probably get something that looks different than
you expect. For example in the following example, the relative orientation between MAR1 and MAR2 is
different after the mirror operation.
model create model_name = MOD1
!
part create rigid_body name_and_position &
part_name = PAR2 &
location = 1,0,0 &
orientation = -90,0,0
!
marker create marker_name=MAR1 location=1,0,0 relative_to=PAR2
!
part create rigid_body name_and_position &
part_name = PAR3 &
location = 1,0,0 &
orientation = 90,90,0 &
relative_to=MOD1
!
marker create marker_name=MAR2 location=1,0,0 relative_to=PAR3
!
list_info measure i_marker=MAR1 j_marker=MAR2
!
move mirror part_name=PAR2,PAR3 axes=xy plane=yz
relative_to=ground
!
list_info measure i_marker=MAR1 j_marker=MAR2
To maintain the same orientations between the MAR2 and MAR1, you need to mirror the 'xy' axes of PAR2
and the 'zx' axes of PAR2.
move mirror part_name=PAR2 axes=xy plane=yz relative_to=ground
6 Adams View Commands
move mirror
Format:
move mirror
marker_name = existing marker
part_name = existing body
flexible_body_name = existing flexible body
point_mass_name = existing point mass
geometry_name = existing geometry
constraint_name = existing constraint
force_name = existing force
group_name = existing group
entity_name = existing entity
Plane = mirror_axes
axes = mirror_axes
relative_to = existing model part or marker
csmodel_name = existing model
cspart_name = existing part
csmarker_name = existing marker
csview_name = existing view
csentity_name = existing entity
Example:
move mirror &
part_name = PART_2 &
plane = xy &
axes = yz
move 7
move mirror
Description:
Extended Definition:
1. You may identify a marker/part/flexible_body/point_mass/geometry/constraint/force/group by
typing its name or by picking it from the screen.
If the marker/part/flexible_body/point_mass/geometry/constraint/force/group is not visible on the
screen, you must type the name. You may also find it convenient to type the name even if the
marker/part/flexible_body/point_mass/geometry/constraint/force/group is displayed.
If you created the marker by reading an ADAMS data set or graphics file, the marker is the letters
MAR followed by the ADAMS data set marker ID number. The name of ADAMS MARKER/101
is MAR101, for example. If you created the
marker/part/flexible_body/point_mass/geometry/constraint/force/group during preprocessing, you
gave it a name at that time.
If a marker/part/flexible_body/point_mass/geometry/constraint/force/group is available by default,
you may identify it by entering its name only. If it is not, you must enter its full name. To identify
a marker/part/flexible_body/point_mass/geometry/constraint/force/group under a different part, for
instance, you may need to enter the model and part names as well. For example, you may specify
marker 'pivot' from model 'links', part 'lower_arm' by entering ".links.lower_arm.pivot". If you type
a "?", Adams View will list the marker available by default.
You must separate multiple marker/part/flexible_body/point_mass/geometry/constraint/force/group
names by commas.
If the marker/part/flexible_body/point_mass/geometry/constraint/force/group is visible in one of
your views, you may identify it by picking on it.
You need not separate multiple
marker/part/flexible_body/point_mass/geometry/constraint/force/group picks by commas.
2. The plane that the objects are mirrored across can be the XY, YZ or the ZX plane of a part LPRF or
a marker. The plane is defined a parallel to the two specified axes through the origin of the reference
frame.
3. Since complete mirroring would change the handedness of the mirrored part LPRF or marker, only
partial mirroring is possible. To perform partial mirroring you must choose two axes to be mirrored,
with the remaining axis pointing in the direction required to maintain a right-handed system.
move 9
move object
4. The global origin specified in the csmodel_name becomes the coordinate system to which the relative
distances, and orientation angles will be applied.
5. The part specified in the parameter cspart_name becomes the coordinate system to which the relative
distances, and orientation angles will be applied.
6. The marker specified in the csmarker_name parameter becomes the coordinate system to which the
relative distances, and orientation angles will be applied.
7. The csview's origin becomes the coordinate system to which the relative distances, and orientation
angles will be applied.
8. The csentity's origin becomes the coordinate system to which the relative distances, and orientation
angles will be applied.
move object
Allows you to set the position of a part or marker.
Format:
move object
marker_name = an existing marker
part_name = an existing part
flexible_body_name = an existing flex_body
point_mass_name = an existing point_mass
geometry_name = an existing geometric entity
constraint_name = an existing constraint
force_name = an existing force
group_name = an existing group
entity_name = an existing entity
c1 = real
c2 = real
c3 = real
a1 = real
a2 = real
a3 = real
csmodel_name = an existing model
cspart_name = an existing part
csmarker_name = an existing marker
csview_name = an existing view
10 Adams View Commands
move object
move object
csentity_name = an existing entity
incrementally = boolean
Example:
move object
marker_name = psmar &
c1 = 0.1 &
c2 = 0.12 &
c3 = 0.14 &
a1 = 0.14 &
a2 = 0.121 &
a3 = 0.11 &
csmodel_name = crankshaft &
incrementally = yes
Description:
Extended Definition:
1. You may identify a marker by typing its name or by picking it from the screen. If the marker is not
visible on the screen, you must type the name. You may also find it convenient to type the name even
if the marker is displayed. If you created the marker by reading an Adams data set or graphics file, the
marker name is the letters MAR followed by the Adams data set marker ID number. For example,
the name of Adams MARKER/101 is MAR101. If you created the marker during reprocessing, you
will have given it a name at that time. If a marker is available by default, you may identify it by
entering only its name. If it is not, you must enter its full name. To identify a marker under a different
part, for instance, you may need to enter the model and part names as well. For example, you may
specify marker 'pivot' from model 'links', part 'lower_arm' by entering ".links.lower_arm.pivot". You
must separate multiple marker names by commas. If the marker is visible in one of your views, you
may identify it by picking on it. You need not separate multiple marker picks by commas.
2. If the part is not visible on the screen, you must type the name. You may also find it convenient to
type the name even if the part is displayed. If you created the part by reading an Adams data set or
graphics file, the part name is the letters PAR followed by the Adams data set part ID number. For
example, the name of Adams PART/101 is PAR101. If you created the part during preprocessing,
you will have given it a name at that time. If a part is available by default, you may identify it by
entering only its name. If it is not, you must enter its full name. To identify a part under another
model, for instance, you may need to enter the model name as well. For example, you may specify
move 13
move object
part 'arm' from model 'robot' by entering ".robot.arm". If you type a "?", Adams View will list the
parts available by default. You must separate multiple part names by commas. If the part is visible in
one of your views, you may identifyit by picking on any of the graphics associated with it. You need
not separate multiple part picks by commas.
3. If Adams View created the flexible body by reading an Adams data set, the name may either come
from the "adams_view_name" field of the preceding comment, or be synthesized from the Adams ID
number. In the case that the flexible body is created as a result of reading a results or graphics file, the
flexible body name will be synthesized from the Adams ID number. When the name is created by
Adams View, it will be composed of "FLX" concatenated with the Adams data set flexible body ID
number. For example, the Adams View name of FLEX_BODY/42 would be FLX42. Flexible bodies
you create during preprocessing have user-specified names. You may identify a flexible body
belonging to the current default model by entering just its name. For others, you must enter the full
name. To identify a flexible body under another model, for instance, you need to enter the model
name as well. For example, you may specify flexible body 'snake' from model 'reptiles' by entering
".reptiles.snake". You can invoke the database navigator by typing "?", which will bring up the select
list from which you can pick a flexible body. For commands which accept multiple flexible body
names, you must separate the names by commas. If the flexible body is visible in one of your views,
you may identify it by picking on any of the graphics associated with it. When you do this Adams
View will automatically separate multiple flexible body picks by commas.
4. You may identify a point_mass by typing its name or by picking it from the screen.
If the point_mass is not visible on the screen, you must type the name. You may also find it
convenient to type the name even if the point_mass is displayed. If you created the point_mass by
reading an Adams data set or graphics file, the point_mass name is the letters POI followed by the
Adams data set point_mass ID number. For example, the name of Adams POINT_MASS/101 is
POI101. If you created the point_mass during preprocessing, you will have given it a name at that
time.
If a point_mass is available by default, you may identify it by entering only its name. If it is not, you
must enter its full name. To identify a point_mass under another model, for instance, you may need
to enter the model name as well. For example, you may specify point_mass 'arm' from model 'robot'
by entering ".robot.arm". If you type a "?", Adams View will list the point_masss available by default.
You must separate multiple point_mass names by commas. If the point_mass is visible in one of your
views, you may identify it by picking on any of the graphics associated with it. You need not separate
multiple point_mass picks by commas.
5. You may identify geometry by typing its name or by picking it from the screen.
If the geometry is not visible on the screen, you must type the name. You may also find it convenient
to type the name even if the geometry is displayed. If geometry is available by default, you may
identify it by entering its name only. If it is not, you must enter its full name. To identify geometry
under another model, for instance, you may need to enter the model and part names as well. For
example, you may specify arc 'end' on part 'arm' in model 'susp' by entering ".susp.arm.end". If
youtype a "?", Adams View will list the geometrys available by default. You must separate multiple
geometry names by commas. If the geometry is visible in one of your views, you may identify it by
picking on any of the graphics associated withit. You need not separate multiple geometry picks by
commas.
14 Adams View Commands
move object
6. You may identify a constraint by typing its name or by picking it from the screen.
If the constraint is not visible on the screen, you must type the name. You may also find it convenient
to type the name even if the constraint is displayed. If you created the constraint by reading an Adams
data set, the constraint name is the first three letters of the Adams statement type followed by the
Adams data set constraint ID number. For example, the name of Adams JOINT/101 is JOI101. If
you created the constraint during preprocessing, you will have given it a name at that time. If a
constraint is available by default, you may identify it by entering only its name. If it is not, you must
enter its full name. To identify a constraint under a different model, for instance, you may need to
enter the model name as well. For example, you may specify constraint 'servo_motor' from model
'test' by entering ".test.servo_motor". If you type a "?", Adams View will list the constraints available
by default. You must separate multiple constraint names by commas. If the constraint is visible in one
of your views, you may identify it by picking on any of the graphics associated with it. You need not
separate multiple constraint picks by commas.
7. You may identify a force by typing its name or by picking it from the screen. If the force is not visible
on the screen, you must type the name. You may also find it convenient to type the name even if the
force is displayed. If you created the force by reading an Adams data set or graphics file, the force name
is the first three letters of the Adams statement followed by the Adams data set force ID number. For
example, the name of Adams SFORCE/101 is SFO101. If you created the force during preprocessing,
you will have given it a name at that time. If a force is available by default, you may identify it by
entering only its name. If it is not, you must enter its full name. To identify a force under a
preprocessing model, for instance, you may need to enter the model name as well. For example, you
may specify the force named 'bumper' from the model named 'test' by entering ".test.bumper". If you
type a "?", Adams View will list the forces available by default. You must separate multiple force names
by commas. If the force is visible in one of your views, you may identify it by picking on any of the
graphics associated with it. You need not separate multiple force picks by commas.
8. If a group is available by default, you may identify it by entering only its name. If it is not, you must
enter its full name. If you type a "?", Adams View will list the group available by default. You must
separate multiple group names by commas.
9. For the c1 parameter,COORDINATE_SYSTEM_TYPE = cartesian ( X,Y,Z ) - C1 will be a X
coordinate.
This location coordinate will be relative to the marker, part, screen axes, or global axes specified in the
parameter RELATIVE_TO.
10. For the c2 parameter,COORDINATE_SYSTEM_TYPE = cartesian ( X,Y,Z ) - C2 will be a Y
coordinate.
This location coordinate will be relative to the marker, part, screen axes, or global axes specified in the
parameter RELATIVE_TO.
11. For the c3 parameter,COORDINATE_SYSTEM_TYPE = cartesian ( X,Y,Z ) - C3 will be a Z
coordinate.
This location coordinate will be relative to the marker, part, screen axes, or global axes specified in the
parameter RELATIVE_TO.
12. For the a1 parameter,• ORIENTATION_TYPE = body313 ( Euler angles ) • A1 will be applied to
the Z axis.
move 15
move object
13. For the a2 parameter,• ORIENTATION_TYPE = body313 ( Euler angles )• A2 will be applied to
the new X axis.
14. For the a3 parameter,• ORIENTATION_TYPE = body313 ( Euler angles ) • A3 will be applied to
the new Z axis.
15. This model global origin becomes the coordinate system to which the relative distances, and
orientation angles will be applied. You may identify a model by typing its name or by picking it from
the screen. If the model is not visible on the screen, you must type the name. You may also find it
convenient to type the name even if the model is displayed. You must separate multiple model names
by commas. If the model is visible in one of your views, you may identify it by picking on any of the
graphics associated with it. You need not separate multiple model picks by commas.
16. This part becomes the coordinate system to which the relative distances, and orientation angles will
be applied. You may identify a part by typing its name or by picking it from the screen. If the part is
not visible on the screen, you must type the name. You may also find it convenient to type the name
even if the part is displayed.
If you created the part by reading an Adams data set or graphics file, the part name is the letters PAR
followed by the Adams data set part ID number. For example, the name of Adams PART/101 is
PAR101. If you created the part during preprocessing, you will have given it a name at that time. If
a part is available by default, you may identify it by entering only its name. If it is not, you must enter
its full name. To identify a part under another model, for instance, you may need to enter the model
name as well. For example, you may specify part 'arm' from model 'robot' by entering ".robot.arm".
If you type a "?", Adams View will list the parts available by default. You must separate multiple part
names by commas. If the part is visible in one of your views, you may identify it by picking on any of
the graphics associated with it. You need not separate multiple part picks by commas.
17. The marker specified by the csmarker_name parameter becomes the coordinate system to which the
relative distances, and orientation angles will be applied. You may identify a marker by typing its
name or by picking it from the screen. If the marker is not visible on the screen, you must type the
name. You may also find it convenient to type the name even if the marker is displayed. If you created
the marker by reading an Adams data set or graphics file, the marker name is the letters MAR followed
by the Adams data set marker ID number. For example, the name of Adams MARKER/101 is
MAR101. If you created the marker during preprocessing, you will have given it a name at that time.
If a marker is available by default, you may identify it by entering its name only. If it is not, you must
enter its full name. To identify a marker under a different part, for instance, you may need to enter
the model and part names as well. For example, you may specify marker 'pivot' from model 'links',
part 'lower_arm' by entering ".links.lower_arm.pivot". If you type a "?", Adams View will list the
markers available by default. You must separate multiple marker names by commas. If the marker is
visible in one of your views, you may identify it by picking on it. You need not separate multiple
marker picks by commas.
18. This view's origin becomes the coordinate system to which the relative distances, and orientation
angles will be applied. You may identify a view by typing its name or by picking it from the screen.
In most cases, you may enter the special view name 'all', which means all the views currentlydisplayed.
You must separate multiple view names by commas. You need not separate multiple view picks by
commas.
16 Adams View Commands
move rotation
19. This command can move an object to absolute coordinates relative to the specifiedcoordinate system
or the move can be done "incrementally"from the current position.When INCREMENTALLY is set
to YES the coordinates specified in the command are added to the current coordinates of the object
to be moved.
When INCREMENTALLY is set to NO the object to be moved is positioned at the absolute
coordinates specified in the command.
Tips:
If you type a "?", Adams View will list the markers available by default.
move rotation
Allows you to rotate a part or marker from its current orientation.
Format:
move rotation
marker_name = an existing marker
part_name = an existing part
flexible_body_name = an existing flex_body
point_mass_name = an existing point_mass
geometry_name = an existing geometric entity
constraint_name = an existing constraint
force_name = an existing force
group_name = an existing group
entity_name = an existing entity
a1 = real
a2 = real
a3 = real
csmodel_name = an existing model
cspart_name = an existing part
csmarker_name = an existing marker
csview_name = an existing view
csentity_name = an existing entity
move 17
move rotation
Example:
move rotation &
marker_name = psmar &
c1 = 0.1 &
c2 = 0.12 &
c3 = 0.14 &
a1 = 0.14 &
a2 = 0.121 &
a3 = 0.11 &
csmodel_name = crankshaft
Description:
Extended Definition:
1. You may identify a marker by typing its name or by picking it from the screen. If the marker is not
visible on the screen, you must type the name. You may also find it convenient to type the name even
if the marker is displayed. If you created the marker by reading an Adams data set or graphics file, the
marker name is the letters MAR followed by the Adams data set marker ID number. For example,
the name of Adams MARKER/101 is MAR101. If you created the marker during reprocessing, you
will have given it a name at that time. If a marker is available by default, you may identify it by
entering only its name. If it is not, you must enter its full name. To identify a marker under a different
part, for instance, you may need to enter the model and part names as well. For example, you may
specify marker 'pivot' from model 'links', part 'lower_arm' by entering ".links.lower_arm.pivot". You
must separate multiple marker names by commas. If the marker is visible in one of your views, you
may identify it by picking on it. You need not separate multiple marker picks by commas.
2. If the part is not visible on the screen, you must type the name. You may also find it convenient to
type the name even if the part is displayed. If you created the part by reading an Adams data set or
graphics file, the part name is the letters PAR followed by the Adams data set part ID number. For
example, the name of Adams PART/101 is PAR101. If you created the part during preprocessing,
you will have given it a name at that time. If a part is available by default, you may identify it by
entering only its name. If it is not, you must enter its full name. To identify a part under another
model, for instance, you may need to enter the model name as well. For example, you may specify
part 'arm' from model 'robot' by entering ".robot.arm". If you type a "?", Adams View will list the
parts available by default. You must separate multiple part names by commas. If the part is visible in
one of your views, you may identify it by picking on any of the graphics associated with it. You need
not separate multiple part picks by commas.
3. If Adams View created the flexible body by reading an Adams data set, the name may either come
from the "adams_view_name" field of the preceding comment, or be synthesized from the Adams ID
number. In the case that the flexible body is created as a result of reading a results or graphics file, the
flexible body name will be synthesized from the Adams ID number. When the name is created by
Adams View it will be composed of "FLX" concatenated with the Adams data set flexible body ID
number. For example, the Adams View name of FLEX_BODY/42 would be FLX42. Flexible bodies
you create during preprocessing have user-specified names. You may identify a flexible body
belonging to the current default model by entering just its name. For others, you must enter the full
name. To identify a flexible body under another model, for instance, you need to enter the model
name as well. For example, you may specify flexible body 'snake' from model 'reptiles' by entering
".reptiles.snake". You can invoke the database navigator by typing "?", whichwill bring up the select
list from which you can pick a flexible body. For commands which accept multiple flexible body
names, you must separate the names by commas. If the flexible body is visible in one of your views,
you may identify it by picking on any of the graphics associated with it. When you do this, Adams
View will automatically separate multiple flexible body picks by commas.
4. You may identify a point_mass by typing its name or by picking it from the screen.
20 Adams View Commands
move rotation
If the point_mass is not visible on the screen, you must type the name. You may also find it
convenient to type the name even if the point_mass is displayed. If you created the point_mass by
reading an Adams data set or graphics file, the point_mass name is the letters POI followed by the
Adams data set point_mass ID number. For example, the name of Adams POINT_MASS/101 is
POI101. If you created the point_mass during preprocessing, you will have given it a name at that
time.
If a point_mass is available by default, you may identify it by entering its name only. If it is not, you
must enter its full name. To identify a point_mass under another model, for instance, you may need
to enter the model name as well. For example, you may specify point_mass 'arm' from model 'robot'
by entering ".robot.arm". If you type a "?", Adams View will list the point_masss available by default.
You must separate multiple point_mass names by commas. If the point_mass is visible in one of your
views, you may identify it by picking on any of the graphics associated with it. You need not separate
multiple point_mass picks by commas.
5. You may identify geometry by typing its name or by picking it from the screen.
If the geometry is not visible on the screen, you must type the name. You may also find it convenient
to type the name even if the geometry is displayed. If geometry is available by default, you may
identify it by entering only its name. If it is not, you must enter its full name. To identify geometry
under another model, for instance, you may need to enter the model and part names as well. For
example, you may specify arc 'end' on part 'arm' in model 'susp' by entering ".susp.arm.end". If
youtype a "?", Adams View will list the geometrys available by default. You must separate multiple
geometry names by commas. If the geometry is visible in one of your views, you may identify it by
picking on any of the graphics associated with it. You need not separate multiple geometry picks by
commas.
6. You may identify a constraint by typing its name or by picking it from the screen.
If the constraint is not visible on the screen, you must type the name. You may also find it convenient
to type the name even if the constraint is displayed. If you created the constraint by reading an Adams
data set, the constraint name is the first three letters of the Adams statement type followed by the
Adams data set constraint ID number. For example, the name of Adams JOINT/101 is JOI101. If
you created the constraint during preprocessing, you will have given it a name at that time. If a
constraint is available by default, you may identify it by entering only its name. If it is not, you must
enter its full name. To identify a constraint under a different model, for instance, you may need to
enter the model name as well. For example, you may specify constraint 'servo_motor' from model
'test' by entering ".test.servo_motor". If you type a "?", Adams View will list the constraints available
by default. You must separate multiple constraint names by commas. If the constraint is visible in one
of your views, you may identify it by picking on any of the graphics associated with it. You need not
separate multiple constraint picks by commas.
7. You may identify a force by typing its name or by picking it from the screen. If the force is not visible
on the screen, you must type the name. You may also find it convenient to type the name even if the
force is displayed. If you created the force by reading an Adams data set or graphics file, the force name
is the first three letters of the Adams statement followed by the Adams data set force ID number. For
example, the name of Adams SFORCE/101 is SFO101. If you created the force during preprocessing,
you will have given it a name at that time. If a force is available by default, you may identify it by
entering only its name. If it is not, you must enter its full name. To identify a force under a
move 21
move rotation
preprocessing model, for instance, you may need to enter the model name as well. For example, you
may specify the force named 'bumper' from the model named 'test' by entering ".test.bumper". If you
type a "?", Adams View will list the forces available by default. You must separate multiple force names
by commas. If the force is visible in one of your views, you may identify it by picking on any of the
graphics associated with it. You need not separate multiple force picks by commas.
8. If a group is available by default, you may identify it by entering only its name. If it is not, you must
enter its full name. If you type a "?", Adams View will list the group available by default. You must
separate multiple group names by commas.
9. For the a1 parameter,• ORIENTATION_TYPE = body313 ( Euler angles ) • A1 will be applied to
the Z axis.
10. For the a2 parameter,• ORIENTATION_TYPE = body313 ( Euler angles )• A2 will be applied to
the new X axis.
11. For the a3 parameter,• ORIENTATION_TYPE = body313 ( Euler angles )• A3 will be applied to
the new Z axis.
12. Example for the about parameter, if you rotate a marker located at x=1, y=0,z=0 with an orientation
of 0,0,0 ABOUT the LPRF of its part by 0,0,90, the marker will be placed at x=0, y=1, z=0with an
orientation of 90,0,0 (all angles in degrees and SPACE123))
13. This model global origin becomes the coordinate system to which the relative distances, and
orientation angles will be applied. You may identify a model by typing its name or by picking it from
the screen. If the model is not visible on the screen, you must type the name. You may also find it
convenient to type the name even if the model is displayed. You must separate multiple model names
by commas. If the model is visible in one of your views, you may identify it by picking on any of the
graphics associated with it. You need not separate multiple model picks by commas.
14. This part becomes the coordinate system to which the relative distances, and orientation angles will
be applied. You may identify a part by typing its name or by picking it from the screen. If the part is
not visible on the screen, you must type thename. You may also find it convenient to type the name
even if the part is displayed.
If you created the part by reading an Adams data set or graphics file, the part name is the letters PAR
followed by the Adams data set part ID number. For example, the name of Adams PART/101 is
PAR101. If you created the part during preprocessing, you will have given it a name at that time. If
a part is available by default, you may identify it by entering its name only. If it is not, you must enter
its full name. To identify a part under another model, for instance, you may need to enter the model
name as well. For example, you may specify part 'arm' from model 'robot' by entering ".robot.arm".
If you type a "?", Adams View will list the parts available by default. You must separate multiple part
names by commas. If the part is visible in one of your views, you may identify it by picking on any of
the graphics associated with it. You need not separate multiple part picks by commas.
15. The marker specified by the csmarker_name parameter becomes the coordinate system to which the
relative distances, and orientation angles will be applied. You may identify a marker by typing its
name or by picking it from the screen. If the marker is not visible on the screen, you must type the
name. You may also find it convenient to type the name even if the marker is displayed. If you created
the marker by reading an Adams data set or graphics file, the marker name is the letters MAR followed
by the Adams data set marker ID number. For example, the name of Adams MARKER/101 is
22 Adams View Commands
move translation
MAR101. If you created the marker during preprocessing, you will have given it a name at that time.
If a marker is available by default, you may identify it by entering only its name. If it is not, you must
enter its full name. To identify a marker under a different part, for instance, you may need to enter
the model and part names as well. For example, you may specify marker 'pivot' from model 'links',
part 'lower_arm' by entering ".links.lower_arm.pivot". If you type a "?", Adams View will list the
markers available by default. You must separate multiple marker names by commas. If the marker is
visible in one of your views, you may identify it by picking on it. You need not separate multiple
marker picks by commas.
16. This view's origin becomes the coordinate system to which the relative distances and orientation
angles will be applied. You may identify a view by typing its name or by picking it from the screen.
In most cases, you may enter the special view name 'all', which means all the views currently
displayed.
You must separate multiple view names by commas. You need not separate multiple view picks by
commas.
Tips:
1. If you type a "?", Adams View will list the markers available by default.
move translation
Allows you to translate a part or marker from its current position.
Format:
move translation
marker_name = an existing marker
part_name = an existing part
flexible_body_name = an existing flex_body
point_mass_name = an existing point_mass
geometry_name = an existing geometric entity
constraint_name = an existing constraint
force_name = an existing force
group_name = an existing group
entity_name = an existing entity
c1 = real
c2 = real
c3 = real
csmodel_name = an existing model
cspart_name = an existing part
move 23
move translation
move translation
csmarker_name = an existing marker
csview_name = an existing view
csentity_name = an existing entity
Example:
move translation &
marker_name = psmar &
c1 = 0.1 &
c2 = 0.12 &
c3 = 0.14 &
csmodel_name = crankshaft
Description:
Extended Definition:
1. You may identify a marker by typing its name or by picking it from the screen. If the marker is not
visible on the screen, you must type the name. You may also find it convenient to type the name even
if the marker is displayed. If you created the marker by reading an Adams data set or graphics file, the
marker name is the letters MAR followed by the Adams data set marker ID number. For example,
the name of Adams MARKER/101 is MAR101. If you created the marker during reprocessing, you
will have given it a name at that time. If a marker is available by default, you may identify it by
entering only its name. If it is not, you must enter its full name. To identify a marker under a different
part, for instance, you may need to enter the model and part names as well. For example, you may
specify marker 'pivot' from model 'links', part 'lower_arm' by entering ".links.lower_arm.pivot". You
must separate multiple marker names by commas. If the marker is visible in one of your views, you
may identify it by picking on it. You need not separate multiple marker picks by commas.
2. If the part is not visible on the screen, you must type the name. You may also find it convenient to
type the name even if the part is displayed. If you created the part by reading an Adams data set or
graphics file, the part name is the letters PAR followed by the Adams data set part ID number. For
example, the name of Adams PART/101 is PAR101. If you created the part during preprocessing,
you will have given it a name at that time. If a part is available by default, you may identify it by
entering only its name. If it is not, you must enter its full name. To identify a part under another
model, for instance, you may need to enter the model name as well. For example, you may specify
part 'arm' from model 'robot' by entering ".robot.arm". If you type a "?", Adams View will list the
parts available by default. You must separate multiple part names by commas. If the part is visible in
one of your views, you may identify it by picking on any of the graphics associated with it. You need
not separate multiple part picks by commas.
3. If Adams View created the flexible body by reading an Adams data set, the name may either come
from the "adams_view_name" field of the preceding comment, or be synthesized from the Adams ID
number. In the case that the flexible body is created as a result of reading a results or graphics file, the
flexible body name will be synthesized from the Adams ID number. When the name is created by
Adams View it will be composed of "FLX" concatenated with the Adams data set flexible body ID
number. For example, the Adams View name of FLEX_BODY/42 would be FLX42. Flexible bodies
you create during preprocessing have user-specified names. You may identify a flexible body
belonging to the current default model by entering just its name. For others, you must enter the full
name. To identify a flexible body underanother model, for instance, you need to enter the model
26 Adams View Commands
move translation
name as well. For example, you may specify flexible body 'snake' from model 'reptiles' by entering
".reptiles.snake". You can invoke the database navigator by typing "?", which will bring up the select
list from which you can pick a flexible body. For commands which accept multiple flexible body
names, you must separate the names by commas. If the flexible body is visible in one of your views,
you may identify it by picking on any of the graphics associated with it. When you do this, Adams
View will automatically separate multiple flexible body picks by commas.
4. You may identify a point_mass by typing its name or by picking it from the screen.
If the point_mass is not visible on the screen, you must type the name. You may also find it
convenient to type the name even if the point_mass is displayed. If you created the point_mass by
reading an Adams data set or graphics file, the point_mass name is the letters POI followed by the
Adams data set point_mass ID number. For example, the name of Adams POINT_MASS/101 is
POI101. If you created the point_mass during preprocessing, you will have given it a name at that
time.
If a point_mass is available by default, you may identify it by entering its name only. If it is not, you
must enter its full name. To identify a point_mass under another model, for instance, you may need
to enter the model name as well. For example, you may specify point_mass 'arm' from model 'robot'
by entering ".robot.arm". If you type a "?", Adams View will list the point_masss available by default.
You must separate multiple point_mass names by commas. If the point_mass is visible in one of your
views, you may identify it by picking on any of the graphics associated with it. You need not separate
multiple point_mass picks by commas.
5. You may identify geometry by typing its name or by picking it from the screen.
If the geometry is not visible on the screen, you must type the name. You may also find it convenient
to type the name even if the geometry is displayed. If geometry is available by default, you may
identify it by entering only its name. If it is not, you must enter its full name. To identify geometry
under another model, for instance, you may need to enter the model and part names as well. For
example, you may specify arc 'end' on part 'arm' in model 'susp' by entering ".susp.arm.end". If you
type a "?", Adams View will list the geometrys available by default. You must separate multiple
geometry names by commas. If the geometry is visible in one of your views, you may identify it by
picking on any of the graphics associated with it. You need not separate multiple geometry picks by
commas.
6. You may identify a constraint by typing its name or by picking it from the screen.
If the constraint is not visible on the screen, you must type the name. You may also find it convenient
to type the name even if the constraint is displayed. If you created the constraint by reading an Adams
data set, the constraint name is the first three letters of the Adams statement type followed by the
Adams data set constraint ID number. For example, the name of Adams JOINT/101 is JOI101. If
you created the constraint during preprocessing, you will have given it a name at that time. If a
constraint is available by default, you may identify it by entering only its name. If it is not, you must
enter its full name. To identify a constraint under a different model, for instance, you may need to
enter the model name as well. For example, you may specify constraint 'servo_motor' from model
'test' by entering ".test.servo_motor". If you type a "?", Adams View will list the constraints available
by default. You must separate multiple constraint names by commas. If the constraint is visible in one
of your views, you may identify it by picking on any of the graphics associated with it. You need not
separate multiple constraint picks by commas.
move 27
move translation
7. You may identify a force by typing its name or by picking it from the screen. If the force is not visible
on the screen, you must type the name. You may also find it convenient to type the name even if the
force is displayed. If you created the force by reading an Adams data set or graphics file, the force name
is the first three letters of the Adams statement followed by the Adams data set force ID number. For
example, the name of Adams SFORCE/101 is SFO101. If you created the force during preprocessing,
you will have given it a name at that time. If a force is available by default, you may identify it by
entering only its name. If it is not, you must enter its full name. To identify a force under a
preprocessing model, for instance, you may need to enter the model name as well. For example, you
may specify the force named 'bumper' from the model named 'test' by entering ".test.bumper". If you
type a "?", Adams View will list the forces available by default. You must separate multiple force names
by commas. If the force is visible in one of your views, you may identify it by picking on any of the
graphics associated with it. You need not separate multiple force picks by commas.
8. If a group is available by default, you may identify it by entering its name only. If it is not, you must
enter its full name. If you type a "?", Adams View will list the group available by default. You must
separate multiple group names by commas.
9. For the c1 parameter,COORDINATE_SYSTEM_TYPE = cartesian ( X,Y,Z ) - C1 will be a X
coordinate.
This location coordinate will be relative to the marker, part, screen axes, or global axes specified in the
parameter RELATIVE_TO.
10. For the c2 parameter,COORDINATE_SYSTEM_TYPE = cartesian ( X,Y,Z ) - C2 will be a Y
coordinate.
This location coordinate will be relative to the marker, part, screen axes, or global axes specified in the
parameter RELATIVE_TO.
11. For the c3 parameter,COORDINATE_SYSTEM_TYPE = cartesian ( X,Y,Z ) - C3 will be a Z
coordinate.
This location coordinate will be relative to the marker, part, screen axes, or global axes specified in the
parameter RELATIVE_TO.
12. This model global origin becomes the coordinate system to which the relative distances, and
orientation angles will be applied. You may identify a model by typing its name or by picking it from
the screen. If the model is not visible on the screen, you must type the name. You may also find it
convenient to type the name even if the model is displayed. You must separate multiple model names
by commas. If the model is visible in one of your views, you may identify it by picking on any of the
graphics associated with it. You need not separate multiple model picks by commas.
13. This part becomes the coordinate system to which the relative distances, and orientation angles will
be applied. You may identify a part by typing its name or by picking it from the screen. If the part is
not visible on the screen, you must type the name. You may also find it convenient to type the name
even if the part is displayed.
If you created the part by reading an Adams data set or graphics file, the part name is the letters PAR
followed by the Adams data set part ID number. For example, the name of Adams PART/101 is
PAR101. If you created the part during preprocessing, you will have given it a name at that time. If
a part is available by default, you may identify it by entering only its name. If it is not, you must enter
its full name. To identify a part under another model, for instance, you may need to enter the model
28 Adams View Commands
move translation
name as well. For example, you may specify part 'arm' from model 'robot' by entering ".robot.arm".
If you type a "?", Adams View will list the parts available by default. You must separate multiple part
names by commas. If the part is visible in one of your views, you may identify it by picking on any of
the graphics associated with it. You need not separate multiple part picks by commas.
14. The marker specified by the csmarker_name parameter becomes the coordinate system to which the
relative distances, and orientation angles will be applied. You may identify a marker by typing its
name or by picking it from the screen. If the marker is not visible on the screen, you must type the
name. You may also find it convenient to type the name even if the marker is displayed. If you created
the marker by reading an Adams data set or graphics file, the marker name is the letters MAR followed
by the Adams data set marker ID number. For example, the name of Adams MARKER/101 is
MAR101. If you created the marker during preprocessing, you will have given it a name at that time.
If a marker is available by default, you may identify it by entering only its name. If it is not, you must
enter its full name. To identify a marker under a different part, for instance, you may need to enter
the model and part names as well. For example, you may specify marker 'pivot' from model 'links',
part 'lower_arm' by entering ".links.lower_arm.pivot". If you type a "?", Adams View will list the
markers available by default. You must separate multiple marker names by commas. If the marker is
visible in one of your views, you may identify it by picking on it. You need not separate multiple
marker picks by commas.
15. This view's origin becomes the coordinate system to which the relative distances, and orientation
angles will be applied. You may identify a view by typing its name or by picking it from the screen.
In most cases, you may enter the special view name 'all', which means all the views currently
displayed.
You must separate multiple view names by commas. You need not separate multiple view picks by
commas.
Tips:
If you type a "?", Adams View will list the markers available by default.
multi_run_analysis 1
multi_run analysis create
multi_run_analysis
multi_run analysis create
Allows you to create an empty analysis. You may find this useful for reading spreadsheet data into a results
set with the NUMERIC_RESULTS READ_FROM_FILE command.
Format:
multi_run analysis create
multi_run_analysis_name = new multi_run_analysis
comments= string
Example:
multi_run_analysis create &
multi_run_analysis_name = mrun__1 &
comments = "analysis for reading spreadsheet data"
Description:
Extended Definition:
When an Adams Solver data file (.adm) is read into Adams View, all comments associated with a statement
(from the end of the previous statement through the end of the current statement) are stored with the object.
Comments in the data file can be associated with model.
These comments must follow the title statement and be followed by the comment 'END OF MODEL
COMMENTS'. This string must be uppercase.
When an Adams Solver data file is written, the comments for an object are written before the statement
corresponding to the object.
You must enter the name of the analysis you wish to delete by specifying its name on the default model or
the full name.
You may reverse this deletion at a later time with an UNDO command.
Format:
multi_run analysis delete
multi_run_analysis_name = existing multi_run_analysis
Example:
multi_run_analysis delete &
multi_run_analysis_name = mrun__1
Description:
Format:
multi_run analysis modify
multi_run_analysis_name = existing multi_run_analysis
new_multi_run_analysis_name = new name for the multi-run analysis
comments = string
Example:
multi_run_analysis modify &
multi_run_analysis_name = mrun__1 &
new_multi_run_analysis_name = mrun_to_save_data &
comments = "analysis for reading spreadsheet data"
multi_run_analysis 3
multi_run analysis modify
Description:
Extended Definition:
1. When an Adams Solver data file (.adm) is read into Adams View, all comments associated with a
statement (from the end of the previous statement through the end of the current statement) are
stored with the object. Comments in the data file can be associated with model.
These comments must follow the title statement and be followed by the comment 'END OF
MODEL COMMENTS'. This string must be uppercase.
When an Adams Solver data file is written, the comments for an object are written before the
statement corresponding to the object.
4 Adams View Commands
multi_run analysis modify
notes 1
notes attributes
notes
notes attributes
Allows you to set specification of attributes on an individual note or a group of notes.
You can set the following attributes on a note.
SIZE. You may set a size of the note text in modeling units.
SCALE. You may scale the size of the note text by a non-unit scale factor.
VISIBILITY. You may set a note's visibility ON, OFF or TOGGLE the current setting. When you
set a note's visibility OFF, the note will not be drawn. When you set a note's visibility ON, you
allow that note to be drawn.
COLOR. You may set the color of a note with this parameter.
Format:
notes attributes
note_name = existing note
size = length
unitless_size = real
point_size = integer
scale = real
color = existing color
visibility = on/off
Example:
notes attributes &
note_name = note_2 &
size = 2.0 &
color = red &
visibility = on
2 Adams View Commands
notes attributes
Description:
Extended Definition:
1. You may identify a note by typing its name or by picking it from the screen.
If the note is not visible on the screen, you must type the name. You may also find it convenient to
type the name even if the note is displayed.
If a note is available by default, you may identify it by entering its name only. If it is not, you must
enter its full name. To identify a note under a model, for instance, you may need to enter the model
name as well. For example, you may specify note "n1" from the model named test by entering
".test.n1". If you type a "?", Adams View will list the notes available by default.
You must separate multiple note names by commas.
If the note is visible in one of your views, you may identify it by picking on any of the graphics
associated with it.
You need not separate multiple note picks by commas.
2. A graphic object is an object that may be drawn on the screen by Adams View, these include curves,
parts, markers, arcs, outlines, boxes, circles, cylinders, frustums, spring damper graphics, force
graphics, and plot curves and symbols. When the COLOR of a part is specified, all graphic objects
fixed to that part are drawn with the COLOR of the part. Adams View supports the following
COLOR: black, white, red, green, blue, cyan, magenta, and yellow.
3. If you set the visibility of a note OFF, Adams View will erase it from the display. The note will remain
in the data base, and you may redisplay it by turning the visibility ON.
Cautions:
1. If you choose the COLOR of an entity to be drawn in the view background color (typically, white or
black) it may not show up.
See help for hardcopy also.
notes 3
notes copy
notes copy
Allows you to copy an existing note to a new note. A note is a single text string, or a series of text strings used
to add an annotation to an existing view or plot.
Format:
notes copy
note_name = existing note
new_note_name = new note
Example:
notes copy &
note_name = note_for_part_1 &
new_note_name = note_for_part2
Description:
Extended Definition:
1. Adams View will not allow you to have two notes with the same name, so you must provide a unique
name.
Normally, entity names are composed of alphabetic, numeric, or '_' (underscore) characters, and start
with an alphabetic or '_' character. They may be of any length.
By enclosing the name in double quotes, you may use other printable characters, or start the name
with a numeral. If a name contains characters, or starts with a numeral, you must always quote the
name when entering it.
Note that you can specify the parentage of an entity (for example, what part "owns" a marker or a
geometry element) when you CREATE it by changing the name. If you enter just the entity name,
then the default parent will be assigned by Adams View. If you type in the full name, then you may
override the default parent. In most cases, when creating an entity, Adams View will provide a default
name. The default name that Adams View provides will specify the parentage that it has assumed.
You may, of course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
4 Adams View Commands
notes create
notes create
Allows you to create a note, with an optional leader line.
Notes are general purpose text strings that can be used to add annotations to views, plots, or analyses. Notes
contain one or more lines of text. You place them by selecting the location for the upper left corner of the
text string(s). You should place the text far enough away from the border of the window to ensure that the
note will not run off the screen. If you make a mistake, use the 'NOTES MODIFY' command to move the
note.
Notes have an optional leader line that can point to a specific spot on the display. This leader line can have 1
to n points, where the last point specified is the location of an arrow head. You may specify a color for the
text and leader line.
Format:
notes create
note_name = new note
text = string
location = location
pick = location indicated by a pick in the view
screen_coords = real
size = length
unitless_size = real
point_size = integer
bitmapped_text = on/off
leader_line = location
arrow_visibility = on/off
arrow_size = real
user_text = on/of
Example:
notes create &
note_name = notes create &
note_name = note__1 &
text = "this is a new part that i have added" &
location = 10.0,10.0,10.0
notes 5
notes create
Description:
Extended Definition:
1. Adams View will not allow you to have two notes with the same name, so you must provide a unique
name.
Normally, entity names are composed of alphabetic, numeric, or '_' (underscore) characters, and start
with an alphabetic or '_' character. They may be of any length.
6 Adams View Commands
notes create
By enclosing the name in double quotes, you may use other printable characters, or start the name
with a numeral. If a name contains characters, or starts with a numeral, you must always quote the
name when entering it.
Note that you can specify the parentage of an entity (for example, what part "owns" a marker or a
geometry element) when you CREATE it by changing the name. If you enter just the entity name,
then the default parent will be assigned by Adams View. If you type in the full name, then you may
over ride the default parent. In most cases, when creating an entity, Adams View will provide a default
name. The default name that Adams View provides will specify the parentage that it has assumed.
You may, of course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
2. You may enter the text string(s) for this parameter without double quote marks, if the string contains
no "blanks" or special characters such as *&^%$#@!-/><.
If the text string(s) do have any of these special characters the string must be quoted.
To enter a multiline note, each line must be entered as a separate string, separated by a comma. An
Example:
note create note=.front.n1 screen_coords=0,0 & TEXT="This is
a","multi line note" size = .12
This example command would produce a two line note located at the center of the view named
'front', and at a height of .12 units.
Notes are left-justified.
3. The “pick” parameter is used in the context of various commands. The response from a pick of the
screen is usually the view name and the screen coordinates of the pick. Some of the ways a pick is used
is to select the position to split a view to create a new view, to select the box corners of a view to zoom
in on, etc.
To enter a pick move the cursor to the location in the desired view using the mouse or pen. Once in
the desired position depress one of the mouse buttons.
4. Bitmapped text provides better looking text and can make use of the fonts available on your system.
Bitmapped text will not transform in the same manner as geometry. Only the placement point will
move.
The text will always face the screen. Non-bitmapped text (stroked text) will transform in the same
manner as geometry.
5. The screen locations are entered by using the mouse cursor. Move the mouse cursor to the desired
locations and "click" any mouse button to record the position. Adams View will create a leader line
from the first point through successive points, ending with an arrow head at the last point.
6. There is no limit to the number of points in the leader line.
notes 7
notes delete
notes delete
Allows you to delete a note. A note is a single text string, or a series of text strings used to add an annotation
to an existing view or plot.
Format:
notes delete
note_name = existing note
Example:
notes delete &
note_name = note_for_part_1
Description:
Extended Definition:
1. Any Adams View object you delete, may be "undeleted" by using the UNDO commands. If you have
deleted something you would like back, enter the command "undo backward", or pick on the fixed
menu entry 'UNDO'.
You may identify a note by typing its name or by picking it from the screen. If the note is not visible
on the screen, you must type the name. You may also find it convenient to type the name even if the
note isdisplayed.
If a note is available by default, you may identify it by entering its name only. If it is not, you must
enter its full name. To identify a note under a model, for instance, you may need to enter the model
name as well. For example, you may specify note "n1" from the model named test by entering
".test.n1". If you type a "?", Adams View will list the notes available by default.
You must separate multiple note names by commas.
If the note is visible in one of your views, you may identify it by picking on any of the graphics
associated with it.
You need not separate multiple note picks by commas.
notes modify
Allows you to modify an existing note.
Notes are general purpose text strings that can be used to add annotations to views, plots, or analyses. Notes
contain one or more lines of text. You place them by selecting the location for the upper left corner of the
text string(s). You should place the text far enough away from the border of the window to insure that the
8 Adams View Commands
notes modify
note will not run off the screen. If you make a mistake, use the 'NOTES MODIFY' command to move the
note.
Notes have an optional leader line that can point to a specific spot on the display. This leader line can have 1
to n points, where the last point specified is the location of an arrow head. You may specify a color for the
text and leader line.
Format:
notes modify
note_name = existing note
new_note_name = new note name
text = string
location = location
pick = location indicated by a pick in the view
screen_coords = real
rotation = real
alignment = justified
size = length
unitless_size = real
point_size = integer
bitmapped_text = on/off
leader_line = location
arrow_visibility = on/off
arrow_size = real
user_text = on/off
user_location = on/off
Example:
notes modify &
note_name = note__1 &
new_note_name = my_note &
text = "this is a new part that i have added" &
location = 10.0,10.0,20.0
notes 9
notes modify
Description:
Extended Definition:
1. Adams View will not allow you to have two notes with the same name, so you must provide a unique
name.
Normally, entity names are composed of alphabetic, numeric, or '_' (underscore) characters, and start
with an alphabetic or '_' character. They may be of any length.
10 Adams View Commands
notes modify
By enclosing the name in double quotes, you may use other printable characters, or start the name
with a numeral. If a name contains characters, or starts with a numeral, you must always quote the
name when entering it.
Note that you can specify the parentage of an entity (for example, what part "owns" a marker or a
geometry element) when you CREATE it by changing the name. If you enter just the entity name,
then the default parent will be assigned by Adams View. If you type in the full name, then you may
override the default parent. In most cases, when creating an entity, Adams View will provide a default
name. The default name that Adams View provides will specify the parentage that it has assumed.You
may, of course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
You may enter the text string(s) for this parameter without double quote marks, if the string contains
no "blanks" or special characters such as *&^%$#@!-/><.
If the text string(s) do have any of these special characters, the string must be quoted.
To enter a multiline note, each line must be entered as a separate string, separated by a comma. An
Example:
note create note=.front.n1 screen_coords=0,0 & TEXT="This is
a","multi line note" size = .12
This example command would produce a two line note located at the center of the view named
'front', and at a height of .12 units.
Notes are left-justified.
2. The “pick” parameter is used in the context of various commands. The response from a pick of the
screen is usually the view name and the screen coordinates of the pick. Some of the ways a pick is used
is to select the position to split a view to create a new view, to select the box corners of a view to zoom
in on, etc.
3. To enter a pick, move the cursor to the location in the desired view using the mouse or pen. Once
in the desired position depress one of the mouse buttons.
4. Bitmapped text provides better looking text and can make use of the fonts available on your system.
Bitmapped text will not transform in the same manner as geometry. Only the placement point will
move.
The text will always face the screen. Non-bitmapped text (stroked text) will transform in the same
manner as geometry.
5. The screen locations are entered by using the mouse cursor. Move the mouse cursor to the desired
locations and "click" any mouse button to record the position. Adams View will create a leader line
from the first point through successive points, ending with an arrow head at the last point.
6. There is no limit to the number of points in the leader line.
numeric_results 1
numeric_results component create
numeric_results
numeric_results component create
Allows you to create a result set component. It is the same as using numeric_results create value.
Format:
numeric_results component create
new_result_set_component_name= new result_set
units = type of units
values= real
Example:
For example, the following command generates a full-cycle sine curve with 100 points:
Description:
Extended Definition:
1. The heirarchy of a model's results is shown below with the components of a result set under the result
set:
2. If the value for the “units” parameter is calculate, Adams View tries to determine the units to use for
this operation. For example, if velocities are added (length/time), then the calculated “units”
parameter for the new result set component is velocity (length/time). If the derivative of a velocity is
taken, the calculated “units” parameter is acceleration (length/time**2).
Adams View can only handle calculated units with a maximum exponent for the base units (force,
length, mass, time) of plus or minus four. For example, if a result set component with the units
(length/time**3) is multiplied with a result set component having the same units, it gives the
calculated units (length**2/time**6). Because the exponent of time is greater than four, Adams View
uses no_units and issues a warning.
Values are: no_units, calculate, length, angle, mass, density, time, area, volume, velocity,
acceleration, angular_velocity, angular_acceleration, inertia, area_inertia, damping, stiffness,
torsion_stiffness, torsion_damping, force, torque, pressure, force_time, torque_time.
Format:
numeric_results component delete
result_set_component_name = existing result_set component name
4 Adams View Commands
numeric_results component delete
Example:
numeric_results delete &
result_set_component_name = res_01
Description:
Extended Definition:
1. The components must be in an existing result set and reference to the component must include the
result set name. A result set is a storage place for any kind of numeric tabular data. A result set can
contain any number of components. A component is usually set up to contain vector components of
values such as displacement, velocity, acceleration, and force. In this case, however, a result set is
completely general and can store any numeric value in a component with few exceptions. These
exceptions are those cases when you ask the system to mix incompatible value types, such as complex
values in the same component as real values.
The result set name given must be within a particular analysis. A result set name can be of any length,
and any combination of letters and numbers. The leading character, however, must be a letter.
Result sets are associated with an analysis and can be identified as such. A result set associated with
request 101 from an analysis named test is referred to as .test.req101.
When you read into Adams View request and result files, Adams View creates several predefined result
set types. For example, if you read in a request file named SHIFT.REQ, and this request file contains
the result information for the statement REQUEST/1, the result set is named REQ1, and can also be
referred to as being relative to the analysis name .shift.req1. If you want to refer to a component in
the same result set, the full name for the X component would be .SHIFT.REQ1.X.
The table below illustrates the default names assigned to result sets and result set components, read from
request (.req) and results (.res) files
vx vy vz wx wy wz
Format:
numeric_results component modify
result_set_component_name = existing result set
new_result_set_component_name= new result_set
units = type of units
values= real
Example:
For example, the following command generates a full-cycle sine curve with 100 points:
Description:
Extended Definition:
1. The heirarchy of a model's results is shown below with the components of a result set under the result
set:
The component name must be unique, even though it can be stored in an existing result set. A
result set name can be of any length and any combination of alphanumeric characters. The leading
character must be a letter.
Result sets are associated with an analysis and can be identified as such. A result set associated with
request 101 from an analysis named test is often referred to as .test.req101.
The table below illustrates the default names assigned to result sets and result set components, read from
request (.req) and results (.res) files.
2. If the value for the “units” parameter is calculate, Adams View tries to determine the units to use for
this operation. For example, if velocities are added (length/time), then the calculated “units”
parameter for the new result set component is velocity (length/time). If the derivative of a velocity is
taken, the calculated “units” parameter is acceleration (length/time**2).
8 Adams View Commands
numeric_results create absolute_value
Adams View can only handle calculated units with a maximum exponent for the base units (force,
length, mass, time) of plus or minus four. For example, if a result set component with the units
(length/time**3) is multiplied with a result set component having the same units, it gives the
calculated units (length**2/time**6). Because the exponent of time is greater than four, Adams View
uses no_units and issues a warning.
Values are: no_units, calculate, length, angle, mass, density, time, area, volume, velocity,
acceleration, angular_velocity, angular_acceleration, inertia, area_inertia, damping, stiffness,
torsion_stiffness, torsion_damping, force, torque, pressure, force_time, torque_time.
Format:
numeric_results create absolute_value
result_set_component_name = an existing component
new_result_set_component_name = a new component
units = units_type_with_calc
Example:
numeric_results create absolute_value &
result_set_component_name = time &
new_result_set_component_name = rsc__1 &
units = time
Description:
Extended Definition:
1. The component must be in an existing result set and reference to the component must include the
result set name. For example, assume you have read a request file called "SHIFT.REQ", and this
request file contains the result set REQ1. If you wish to refer to the X component in the result set
REQ1, enter .SHIFT.REQ1.X (the .SHIFT. may be omitted if shift is the current analysis_name).
SHIFT refers to the analysis name that that result set came from (or is stored under).
Result Sets are associated with an analysis run and can be identified as such. A result set associated
with request 101 from an analysis named "test" is referred to as .test.req101.
Several predefined result set types are created when Adams request and result files are read into Adams
View. For example, assume you have read a request file called "SHIFT.REQ", and this request file
contains the result information for the Adams statement REQUEST/1. The result set will be named
REQ1, and may also be referred to as being relative to the analysis name .shift.req1. If you wish to
refer to a component in the same result set, the full name for the X component would be
.SHIFT.REQ1.X.
The following table illustrates the default names assigned to result sets and result set components, read from
request (.REQ) and results (.RES) files.
vx vy vz wx wy wz
2. If the component is to be stored in an existing result set, then the name entered must include the result
set. For example, assume you have read a request file called "SHIFT.REQ", and this request file
contains the result set REQ1. If you wish to store the new result set component in result set REQ1
with the component name NEW, enter .SHIFT.REQ1.NEW (The .SHIFT. can be left off if SHIFT
is the "current" analysis_name). If you wish to store the component in a new result set named REQ99
in the analysis run SHIFT, enter .SHIFT.REQ99.NEW. The number of components to be stored
is inferred by the number of components named in this parameter. Multiple names can be entered
separated by commas (,).
This is a required parameter and the component name given must be unique even though it may be
stored in an existing result set. A result set name may be arbitrarily long and a combination of letters
of the alphabet and numbers may be used. The leading character must be a letter.
Result Sets are associated with an analysis run and can be identified as such. A result set associated
with request 101 from an analysis named "test" is referred to as .test.req101.
Several predefined result set types are created when Adams request and result files are read into Adams
View. For example, assume you have read a request file called "SHIFT.REQ", and this request file
contains the result information for the Adams statement REQUEST/1. The result set will be named
REQ1, and may also be referred to as being relative to the analysis name .shift.req1. If you wish to
refer to a component in the same result set, the full name for the X component would be
.SHIFT.REQ1.X.
The following table illustrates the default names assigned to result sets and result set components, read from
request (.REQ) and results (.RES) files.
vx vy vz wx wy wz
3. Once the unit type is set, Adams View can perform the proper unit conversion on the data. If the
value for the “units” parameter is calculate, Adams View tries to determine the units to use for this
operation. For example, if velocities are added (length/time), then the calculated “units” parameter
for the new result set component is velocity (length/time). If the derivative of a velocity is taken, the
calculated “units” parameter is acceleration (length/time**2).
Adams View can only handle calculated units with a maximum exponent for the base units (force,
length, mass, time) of plus or minus four. For example, if a result set component with the units
(length/time**3) is multiplied with a result set component having the same units, it gives the
calculated units (length**2/time**6). Because the exponent of time is greater than four, Adams View
uses no_units and issues a warning.
Format:
numeric_results create addition
new_result_set_component_name= new result_set
result_set_component_names = existing result set components
units = Type of units
Example:
numerical_results create addition &
new_result_set_component_name= dingdong.bell &
result_set_component_name= res101.x, res102.y
Description:
Extended Definition:
1. 1. The heirarchy of a model's results is shown below with the components of a result set under the
result set:
If you want to store the component:
• In an existing result set, the name must include the result set. For example, assume you have a
request file called SHIFT.REQ, and it contains the result set REQ1. If you want to store the new
result set component in result set REQ1 with the component name NEW, enter:
.SHIFT.REQ1.NEW (it's not necessary to include .SHIFT., if SHIFT is the
current analysis_name).
numeric_results 13
numeric_results create addition
• In a new results set, for example named REQ99 in the analysis run SHIFT, enter
.SHIFT.REQ99.NEW. The number of components to be stored is inferred by the number of
components named in this parameter. You can enter multiple names separated with commas (,).
The component name must be unique, even though it can be stored in an existing result set. A
result set name can be any length and any combination of alphanumeric characters. The leading
character must be a letter.
Result sets are associated with an analysis and can be identified as such. A result set associated with
request 101 from an analysis named test is often referred to as .test.req101.
See a table below that illustrates the default names assigned to result sets and result set components
read from request (.req) and results (.res) files.
Result set type: Result set name: Component names: File that result is from:
part PARxxx... x y z e1 e2 e3 e4 mag results file
vx vy vz wx wy wz
2. If the value for the “units” parameter is calculate, Adams View tries to determine the units to use for
this operation. For example, if velocities are ADDed (length/time), the calculated units for the new
result set component are a velocity (length/time). If the derivative of a velocity is is taken, the
calculated units are acceleration (length/time**2).
Adams View can only handle calculated units with a maximum exponent for the base units (force,
length, mass, time) of plus or minus four. For example, if a result set component with the units
(length/time**3) is multiplied with a result set component with the same units, the calculated units
are (length**2/time**6). Because the exponent of time the is greater than four, Adams View uses
no_units and issues a warning.
Values are: no_units, calculate, length, angle, mass, density, time, area, volume, velocity, acceleration,
angular_velocity, angular_acceleration, inertia, area_inertia, damping, stiffness, torsion_stiffness,
torsion_damping, force, torque, pressure, force_time, torque_time.
Format:
numeric_results create definite_integral
result_set_component_names = 2 existing components
new_result_set_component_name = a new component
units = units_type_with_calc
Example:
numeric_results create definite_integral &
result_set_component_names = rsc__1 , rsc__2 &
new_result_set_component_name = rsc__3 &
units = time
numeric_results 15
numeric_results create definite_integral
Description:
Extended Definition:
1. The definite integral operation evaluates the area under the result set component data curve over the
closed interval represented by the result set component data.
The integral is calculated by fitting a cubic spline to the result set component data and analytically
evaluating the definite integral. In other words, the cubic spline fit gives a polynomial representation
of the segments that represent the data This polynomial in then analytically integrated over the closed
interval of the data.
2. The components must be in an existing result set and reference to the component must include the
result set name. For example, assume you have read a request file called "SHIFT.REQ", and this
request file contains the result set REQ1. If you wish to refer to the X component in the result set
REQ1, enter .SHIFT.REQ1.X (the .SHIFT. may be omitted if shift is the current analysis_name).
SHIFT refers to the analysis name from which that result set came from (or is stored under).
Result Sets are associated with an analysis run and can be identified as such. A result set associated
with request 101 from an analysis named "test" is referred to as .test.req101.
Several predefined result set types are created when Adams request and result files are read into Adams
View. For example, assume you have read a request file called "SHIFT.REQ", and this request file
contains the result information for the Adams statement REQUEST/1. The result set will be named
REQ1, and may also be referred to as being relative to the analysis name .shift.req1. If you wish to
refer to a component in the same result set the full name for the X component would be
.SHIFT.REQ1.X.
The following table illustrates the default names assigned to result sets and result set components, read from
request (.REQ) and results (.RES) files.
16 Adams View Commands
numeric_results create definite_integral
vx vy vz wx wy wz
If one component is complex, and the other is real, the real component is promoted to complex. If
the two components are of different lengths, the longer one is truncated (only for that operation).
If the new component being created is complex, a MAGNITUDE component is automatically
generated. If the component is being added to an existing result set and a MAGNITUDE component
already exits, an error will be issued.
3. If the component is to be stored in an existing result set, then the name entered must include the result
set. For example, assume you have read a request file called "SHIFT.REQ", and this request file
contains the result set REQ1. If you wish to store the new result set component in result set REQ1
with the component name NEW, enter .SHIFT.REQ1.NEW (The .SHIFT. can be left off if SHIFT
is the "current" analysis_name). If you wish to store the component in a new result set named REQ99
in the analysis run SHIFT, enter .SHIFT.REQ99.NEW. The number of components to be stored
is inferred by the number of components named in this parameter. Multiple names can be entered,
separated by commas (,).
numeric_results 17
numeric_results create definite_integral
This is a required parameter and the component name given must be unique even though it may be
stored in an existing result set. A result set name may be arbitrarily long and a combination of letters
of the alphabet and numbers may be used. The leading character must be a letter.
Result Sets are associated with an analysis run and can be identified as such. A result set associated
with request 101 from an analysis named "test" is referred to as .test.req101.
Several predefined result set types are created when Adams request and result files are read into Adams
View. For example, assume you have read a request file called "SHIFT.REQ", and this request file
contains the result information for the Adams statement REQUEST/1. The result set will be named
REQ1, and may also be referred to as being relative to the analysis name .shift.req1. If you wish to
refer to a component in the same result set, the full name for the X component would be
.SHIFT.REQ1.X.
The following table illustrates the default names assigned to result sets and result set components, read from
request (.REQ) and results (.RES) files.
vx vy vz wx wy wz
4. Once the unit type is set, Adams View can perform the proper unit conversion on the data. If the
value for the “units” parameter is calculate, Adams View tries to determine the units to use for this
operation. For example, if velocities are added (length/time), then the calculated “units” parameter
for the new result set component is velocity (length/time). If the derivative of a velocity is taken, the
calculated “units” parameter is acceleration (length/time**2).
Adams View can only handle calculated units with a maximum exponent for the base units (force,
length, mass, time) of plus or minus four. For example, if a result set component with the units
(length/time**3) is multiplied with a result set component having the same units, it gives the
calculated units (length**2/time**6). Because the exponent of time is greater than four, Adams View
uses no_units and issues a warning.
Format:
numeric_results create differentiation
result_set_component_names = 2 existing components
new_result_set_component_name = a new component
units = units_type_with_calc
Example:
numeric_results create differentiation &
result_set_component_names = rsc1,rsc2 &
new_result_set_component_name = rsc__3 &
units = time
Description:
Extended Definition:
5. This operation numerically differentiates the result set component data over the closed interval
represented by its finite set of data points.
The derivative is evaluated by fitting a cubic spline to the result set component data and analytically
forming the derivative. In other words, the cubic spline fit gives a polynomial representation of the
segments that represent the data. This polynomial in then analytically differentiated over the closed
interval of the data.
6. The components must be in an existing result set and reference to the component must include the
result set name. For example, assume you have read a request file called "SHIFT.REQ", and this
request file contains the result set REQ1. If you wish to refer to the X component in the result set
REQ1, enter .SHIFT.REQ1.X (the .SHIFT. may be omitted if shift is the current analysis_name).
SHIFT refers to the analysis name that that result set came from (or is stored under).
Result Sets are associated with an analysis run and can be identified as such. A result set associated
with request 101 from an analysis named "test" is referred to as .test.req101.
Several predefined result set types are created when Adams request and result files are read into Adams
View. For example, assume you have read a request file called "SHIFT.REQ", and this request file
contains the result information for the Adams statement REQUEST/1. The result set will be named
REQ1, and may also be referred to as being relative to the analysis name .shift.req1. If you wish to
refer to a component in the same result set the full name for the X component would be
.SHIFT.REQ1.X.
The following table illustrates the default names assigned to result sets and result set components read from
request (.REQ) and results (.RES) files.
vx vy vz wx wy wz
If one component is complex, and the other is real, the real component is promoted to complex. If
the two components are different lengths, the longer one is truncated (only for that operation).
If the new component being created is complex, a MAGNITUDE component is automatically
generated. If the component is being added to an existing result set and a MAGNITUDE component
already exits, an error will be issued.
7. If the component is to be stored in an existing result set, then the name entered must include the result
set. For example, assume you have read a request file called "SHIFT.REQ", and this request file
contains the result set REQ1. If you wish to store the new result set component in result set REQ1
with the component name NEW, enter .SHIFT.REQ1.NEW (The .SHIFT. can be left off if SHIFT
is the "current" analysis_name). If you wish to store the component in a new result set named REQ99
in the analysis run SHIFT, enter .SHIFT.REQ99.NEW. The number of components to be stored
is inferred by the number of components named in this parameter. Multiple names can be entered
separated by commas (,).
This is a required parameter and the component name given must be unique even though it may be
stored in an existing result set. A result set name may be arbitrarily long and a combination of letters
of the alphabet and numbers may be used. The leading character must be a letter.
Result Sets are associated with an analysis run and can be identified as such. A result set associated
with request 101 from an analysis named "test" is referred to as .test.req101.
Several predefined result set types are created when Adams request and result files are read into Adams
View. For example, assume you have read a request file called "SHIFT.REQ", and this request file
contains the result information for the Adams statement REQUEST/1. The result set will be named
REQ1, and may also be referred to relatives of the analysis name .shift.req1. If you wish to refer to a
component in the same result set, the full name for the X component would be .SHIFT.REQ1.X.
The following table illustrates the default names assigned to result sets and result set components read
from request (.REQ) and results (.RES) files.
numeric_results 21
numeric_results create differentiation
vx vy vz wx wy wz
8. Once the unit type is set, Adams View can perform the proper unit conversion on the data.
If the value for this parameter is calculated, Adams View will try to determine the units to use for this
operation. For example, if velocities are ADDed (length/time), the calculated units for the new result
set component will be a velocity (length/time). If the derivative of a velocity is is taken, the calculated
units will be acceleration (length/time**2).
Adams View, at this time, can only handle calculated units with a maximum exponent for the base
units (force, length, mass, time) is plus or minus four (4). For example, if a result set component
with the units (length/time**3) is multiplied with a result set component with the same units, The
calculated units would be (length**2/time**6). Since the exponent is greater than 4, Adams View
will use NO_UNITS and issue a warning.
22 Adams View Commands
numeric_results create division
Format:
numeric_results create division
new_result_set_component_name= new result_set
result_set_component_names = existing result set components
units = type of units
Example:
numerical_results create division &
new_result_set_component_name = dingdong.bell &
result_set_component_name = res101.x, res102.y
numeric_results 23
numeric_results create division
Description:
Extended Definition:
1. The heirarchy of a model's results is shown below with the components of a result set under the result
set:
Result sets are associated with an analysis and can be identified as such. A result set associated with
request 101 from an analysis named test is often referred to as .test.req101.
The table below illustrates the default names assigned to result sets and result set components, read from
request (.req) and results (.res) files.
vx vy vz wx wy wz
2. If the value for the “units” parameter is calculate, Adams View tries to determine the units to use for
this operation. For example, if velocities are added (length/time), then the calculated “units”
parameter for the new result set component is velocity (length/time). If the derivative of a velocity is
taken, the calculated “units” parameter is acceleration (length/time**2).
numeric_results 25
numeric_results create dynamic_polyline
Adams View can only handle calculated units with a maximum exponent for the base units (force,
length, mass, time) of plus or minus four. For example, if a result set component with the units
(length/time**3) is multiplied with a result set component having the same units, it gives the
calculated units (length**2/time**6). Because the exponent of time is greater than four, Adams View
uses no_units and issues a warning.
Values are: no_units, calculate, length, angle, mass, density, time, area, volume, velocity,
acceleration, angular_velocity, angular_acceleration, inertia, area_inertia, damping, stiffness,
torsion_stiffness, torsion_damping, force, torque, pressure, force_time, torque_time.
Format:
numeric_results create dynamic_polyline
polyline_name = an existing polyline
vertex = integer
x_result_set_component_name = an existing component
y_result_set_component_name = an existing component
z_result_set_component_name = z_result_set_component_name
relative_to = an existing model, part or marker
Example:
numeric_results create dynamic_polyline &
polyline_name = an existing polyline &
vertex = 10 &
relative_to = ground
Description:
Extended Definition:
1. Just as a part's locations and orientations for the steps of a simulation are stored in a result set, you
can create a result set that has the time dependent locations for polylines that are children of a model.
When the model is displayed at a time step with the single_frame_display command, or is animated
with the animation command, Adams View will use these result sets to display the polylines.
This allows you to drive each component (X, Y, and Z) of a vertex of a polyline from any result test
component including the output of any Adams equation.
For example, you could model a flexible air bag as a mesh of polylines, and using Adams equations
(linear state equations, general state equations), specify the location of the vertices of the mesh over
time. When the model is animated it would show the air bag deployment.
The polylines must be children of a model.
Each result set contains the X, Y, and Z data for a vertex of a polyline The names of the result sets
created are encoded with the name of the polyline and the vertex number. The components of the
result set are named 'X', 'Y' and 'Z'. For example, if the name of the polyline is 'POL1' and the you
are creating the result set for the second vertex, the result set name will be 'POL1_LOCATION_2'.
If Adams View cannot find the result set components, it will use the location specified when the
model was created, and will not vary over time.
2. You may identify a POLYLINE by typing its name or by picking it from the screen.
If the POLYLINE is not visible on the screen, you must type the name.
You may also find it convenient to type the name even if the POLYLINE is displayed.
Since a POLYLINE cannot be defined in an Adams data set or graphics file, the POLYLINE cannot
be created by reading in one of these files. The only way to create a POLYLINE is to do it
interactively, by reading a command file, or by reading an IGES file. POLYLINEs are owned by parts.
If a POLYLINE is available by default, you may identify it by entering only its name. You may need
to enter the full name of the POLYLINE if you wish to identify a POLYLINE that is not on the
default PART. For example, you may specify POLYLINE "front_face" on the part named "shell"
from the model named "test" by entering ".test.shell.front_face". If you type a "?", Adams View will
list the POLYLINEs available by default.
You must separate multiple POLYLINE names by commas.
numeric_results 27
numeric_results create empty
If the POLYLINE is visible in one of your views, you may identify it by picking on any of the graphics
associated with it.
You need not separate multiple POLYLINE picks by commas.
3. If the relative_to parameter is not specified, the default coordinate system is used. The default
coordinate system is initially your model, i.e. the global coordinate system. You may change the
default coordinate system using the 'defaults coordinate_system' command.
Tips:
1. IF no X_RESULT_SET_COMPONENT_NAME is specified, the X component of the vertex does
not change over time. This holds the same for the Y and Z components of the vertex.
Format:
numeric_results create empty
new_result_set_name = a new component
comments = string
Example:
numeric_results create empty &
new_result_set_name = rsc__empty &
comments = “an empty result set”
Description:
Extended Definition:
1. The definite integral operation evaluates the area under the result set component data curve over the
closed interval represented by the result set component data.
28 Adams View Commands
numeric_results create empty
The integral is calculated by fitting a cubic spline to the result set component data and analytically
evaluating the definite integral. In other words, the cubic spline fit gives a polynomial representation
of the segments that represent the data. This polynomial in then analytically integrated over the
closed interval of the data.
2. If the component is to be stored in an existing result set, then the name entered must include the result
set. For example, assume you have read a request file called "SHIFT.REQ", and this request file
contains the result set REQ1. If you wish to store the new result set component in result set REQ1
with the component name NEW, enter .SHIFT.REQ1.NEW (The .SHIFT. can be left off if SHIFT
is the "current" analysis_name). If you wish to store the component in a new result set named REQ99
in the analysis run SHIFT, enter .SHIFT.REQ99.NEW. The number of components to be stored
is inferred by the number of components named in this parameter. Multiple names can be entered
separated by commas (,).
This is a required parameter and the component name given must be unique even though it may be
stored in an existing result set. A result set name may be arbitrarily long and a combination of letters
of the alphabet and numbers may be used. The leading character must be a letter.
Result Sets are associated with an analysis run and can be identified as such. A result set associated
with request 101 from an analysis named "test" is referred to as .test.req101.
Several predefined result set types are created when Adams request and result files are read into Adams
View. For example, assume you have read a request file called "SHIFT.REQ", and this request file
contains the result information for the Adams statement REQUEST/1. The result set will be named
REQ1, and may also be referred to as being relative to the analysis name .shift.req1. If you wish to
refer to a component in the same result set, the full name for the X component would be
.SHIFT.REQ1.X.
The following table illustrates the default names assigned to result sets and result set components, read from
request (.REQ) and results (.RES) files.
vx vy vz wx wy wz
3. When an Adams Solver data file (.adm) is read into Adams View, all comments associated with a
statement (from the end of the previous statement through the end of the current statement) are
stored with the object. Comments in the data file can be associated with model.
These comments must follow the title statement and be followed by the comment 'END OF
MODEL COMMENTS'. This string must be uppercase.
When an Adams Solver data file is written, the comments for an object are written before the
statement corresponding to the object.
Note: If you perform an FFT on a component, and then perform an inverse FFT on the result,
Adams View does not return the same data, because the original data is interpolated
Format:
numeric_results create fft
new_result_set_component_name= new result_set
result_set_component_names = existing result set components
interpolate_type = interpolation_type
number_of_points = integer
units = type of units
Example:
numerical_results create fft &
new_result_set_component_name = dingdong.bell &
result_set_component_name = res101.x, res102.y &
interpolate_type = linear &
number_of_points = 1024
Description:
Extended Definition:
1. The heirarchy of a model's results is shown below with the components of a result set under the result
set:
The component name must be unique, even though it can be stored in an existing result set. A
result set name can be any length and any combination of alphanumeric characters. The leading
character must be a letter.
Result sets are associated with an analysis and can be identified as such. A result set associated with
request 101 from an analysis named test is often referred to as .test.req101.
The table below illustrates the default names assigned to result sets and result set components, read from
request (.req) and results (.res) files.
vx vy vz wx wy wz
2. If the value for the “units” parameter is calculate, Adams View tries to determine the units to use for
this operation. For example, if velocities are added (length/time), then the calculated “units”
parameter for the new result set component is velocity (length/time). If the derivative of a velocity is
taken, the calculated “units” parameter is acceleration (length/time**2).
numeric_results 33
numeric_results create filter
Adams View can only handle calculated units with a maximum exponent for the base units (force,
length, mass, time) of plus or minus four. For example, if a result set component with the units
(length/time**3) is multiplied with a result set component having the same units, it gives the
calculated units (length**2/time**6). Because the exponent of time is greater than four, Adams View
uses no_units and issues a warning.
Values are: no_units, calculate, length, angle, mass, density, time, area, volume, velocity,
acceleration, angular_velocity, angular_acceleration, inertia, area_inertia, damping, stiffness,
torsion_stiffness, torsion_damping, force, torque, pressure, force_time, torque_time.
3. If the interpolation operation is in preparation for an FFT, then the number of points must be an
even power of two (for example, 256, 512, and 1024).
If you do not specify this parameter, it defaults to 1024.
If you specify this parameter, you must use a positive integer.
Once you change the value of this parameter, Adams View will remember the new value and use it as
the default the next time you need this parameter.
Format:
numeric_results create filter
result_set_component_name = an existing component
new_result_set_component_name = a new component
below_value = real
above_value = real
units = units_type_with_calc
Example:
numeric_results create filter &
result_set_component_name = time &
new_result_set_component_name = rsc__1 &
units = time
34 Adams View Commands
numeric_results create filter
Description:
Extended Definition:
1. The component must be in an existing result set and reference to the component must include the
result set name. For example, assume you have read a request file called "SHIFT.REQ", and this
request file contains the result set REQ1. If you wish to refer to the X component in the result set
REQ1, enter .SHIFT.REQ1.X (the .SHIFT. may be omitted if shift is the current analysis_name).
SHIFT refers to the analysis name that that result set came from (or is stored under).
Result Sets are associated with an analysis run and can be identified as such. A result set associated
with request 101 from an analysis named "test" is referred to as .test.req101.
Several predefined result set types are created when Adams request and result files are read into Adams
View. For example, assume you have read a request file called "SHIFT.REQ", and this request file
contains the result information for the Adams statement REQUEST/1. The result set will be named
REQ1, and may also be referred to as being relative to the analysis name .shift.req1. If you wish to
refer to a component in the same result set the full name for the X component would be
.SHIFT.REQ1.X.
The following table illustrates the default names assigned to result sets and result set components, read from
request (.REQ) and results (.RES) files.
numeric_results 35
numeric_results create filter
vx vy vz wx wy wz
2. If the component is to be stored in an existing result set, then the name entered must include the result
set. For example, assume you have read a request file called "SHIFT.REQ", and this request file
contains the result set REQ1. If you wish to store the new result set component in result set REQ1
with the component name NEW, enter .SHIFT.REQ1.NEW (The .SHIFT. can be left off if SHIFT
is the "current" analysis_name). If you wish to store the component in a new result set named REQ99
in the analysis run SHIFT, enter .SHIFT.REQ99.NEW. The number of components to be stored is
inferred by the number of components named in this parameter. Multiple names can be entered
separated by commas (,).
36 Adams View Commands
numeric_results create filter
This is a required parameter and the component name given must be unique even though it may be
stored in an existing result set. A result set name may be arbitrarily long and a combination of letters
of the alphabet and numbers may be used. The leading character must be a letter.
Result Sets are associated with an analysis run and can be identified as such. A result set associated
with request 101 from an analysis named "test" is referred to as .test.req101.
Several predefined result set types are created when Adams request and result files are read into Adams
View. For example, assume you have read a request file called "SHIFT.REQ", and this request file
contains the result information for the Adams statement REQUEST/1. The result set will be named
REQ1, and may also be referred to as being relative to the analysis name .shift.req1. If you wish to
refer to a component in the same result set, the full name for the X component would be
.SHIFT.REQ1.X.
The following table illustrates the default names assigned to result sets and result set components, read from
request (.REQ) and results (.RES) files.
vx vy vz wx wy wz
3. The below_value parameter is a critical value which determines the threshold below which a
particular numeric value will be modified, printed, etc. (depending on the operation to be
performed).
This parameter is optional and if not entered, no value will be passed to the application, and therefore,
no action will be taken based on the BELOW_VALUE parameter. If entered, the BELOW_VALUE
parameter must be a real number.
4. The above_value parameter is a critical value which determines the threshold above which a particular
numeric value will be modified, printed, etc. (depending on the operation to be performed).
This parameter is optional and if not entered, no value will be passed to the application, and therefore,
no action will be taken based on the ABOVE_VALUE parameter. If entered, the ABOVE_VALUE
parameter must be a real number.
5. Once the unit type is set, Adams View can perform the proper unit conversion on the data. If the
value for the “units” parameter is calculate, Adams View tries to determine the units to use for this
operation. For example, if velocities are added (length/time), then the calculated “units” parameter
for the new result set component is velocity (length/time). If the derivative of a velocity is taken, the
calculated “units” parameter is acceleration (length/time**2).
Adams View can only handle calculated units with a maximum exponent for the base units (force,
length, mass, time) of plus or minus four. For example, if a result set component with the units
(length/time**3) is multiplied with a result set component having the same units, it gives the
calculated units (length**2/time**6). Because the exponent of time is greater than four, Adams View
uses no_units and issues a warning.
Format:
numeric_results create interpolation
result_set_component_name = an existing component
new_result_set_component_name = a new component
interpolate_type = interpolation_type
number_of_points = integer
units = units_type_with_calc
38 Adams View Commands
numeric_results create interpolation
Example:
numeric_results create interpolation &
result_set_component_name = time &
new_result_set_component_name = rsc__1 &
units = time
Description:
Extended Definition:
1. The component must be in an existing result set and reference to the component must include the
result set name. For example, assume you have read a request file called "SHIFT.REQ", and this
request file contains the result set REQ1.If you wish to refer to the X component in the result set
REQ1, enter .SHIFT.REQ1.X (the .SHIFT. may be omitted if shift is the current analysis_name).
SHIFT refers to the analysis name that that result set came from (or is stored under).
Result Sets are associated with an analysis run and can be identified as such. A result set associated
with request 101 from an analysis named "test" is referred to as .test.req101.
Several predefined result set types are created when Adams request and result files are read into Adams
View. For example, assume you have read a request file called "SHIFT.REQ", and this request file
contains the result information for the Adams statement REQUEST/1.The result set will be named
REQ1, and may also be referred to as being relative to the analysis name .shift.req1. If you wish to
refer to a component in the same result set the full name for the X component would be
.SHIFT.REQ1.X.
The following table illustrates the default names assigned to result sets and result set components, read from
request (.REQ) and results (.RES) files.
numeric_results 39
numeric_results create interpolation
vx vy vz wx wy wz
2. If the component is to be stored in an existing result set, then the name entered must include the result
set. For example, assume you have read a request file called "SHIFT.REQ", and this request file
contains the result set REQ1. If you wish to store the new result set component in result set REQ1
with the component name NEW, enter .SHIFT.REQ1.NEW (The .SHIFT. can be left off if SHIFT
is the "current" analysis_name). If you wish to store the component in a new result set named REQ99
in the analysis run SHIFT, enter .SHIFT.REQ99.NEW. The number of components to be stored is
inferred by the number of components named in this parameter. Multiple names can be entered
separated by commas (,).
This is a required parameter and the component name given must be unique even though it may be
stored in an existing result set. A result set name may be arbitrarily long and a combination of letters
of the alphabet and numbers may be used. The leading character must be a letter.
Result Sets are associated with an analysis run and can be identified as such. A result set associated
with request 101 from an analysis named "test" is referred to as .test.req101.
40 Adams View Commands
numeric_results create interpolation
Several predefined result set types are created when Adams request and result files are read into Adams
View. For example, assume you have read a request file called "SHIFT.REQ", and this request file
contains the result information for the Adams statement REQUEST/1. The result set will be named
REQ1, and may also be referred to as being relative to the analysis name .shift.req1. If you wish to
refer to a component in the same result set, the full name for the X component would be
.SHIFT.REQ1.X.
The following table illustrates the default names assigned to result sets and result set components, read from
request (.REQ) and results (.RES) files.
vx vy vz wx wy wz
3. Once the unit type is set, Adams View can perform the proper unit conversion on the data. If the
value for the “units” parameter is calculate, Adams View tries to determine the units to use for this
operation. For example, if velocities are added (length/time), then the calculated “units” parameter
for the new result set component is velocity (length/time). If the derivative of a velocity is taken, the
calculated “units” parameter is acceleration (length/time**2).
Adams View can only handle calculated units with a maximum exponent for the base units (force,
length, mass, time) of plus or minus four. For example, if a result set component with the units
(length/time**3) is multiplied with a result set component having the same units, it gives the
calculated units (length**2/time**6). Because the exponent of time is greater than four, Adams View
uses no_units and issues a warning.
4. The three methods used to interpolate the result set component:
linear - uses the first order LaGrangian interpolation
cubic - uses the second order LaGrangian interpolation
akima - uses the Akima method, as documented in Journal of the Association Computing Machinery
Vol 17, No 4, October 1970.
5. This curve fitting operation could be desired by the user, in preparation for an FFT operation, etc.
If the interpolation operation is in preparation for an FFT, then the number of points must be an
even power of two. (e.g. 256, 512, 1024, etc.).
This is an optional parameter and if not entered, will be set to 1024.
If entered, the NUMBER_OF_POINTS parameter must be a positive integer.
Also, once changed by the user, the new value will be remembered and used as default the next time
the parameter is needed.
Format:
numeric_results create linear_equation
a_multiplier = real
b_multiplier = real
42 Adams View Commands
numeric_results create linear_equation
Example:
numerical_results create linear_equation &
a_multiplier = (2*365+7.2) &
b_multiplier = 25.7 &
new_result_set_component_name = dingdong.bell &
result_set_component_name = res101.x, res102.y
Description:
Extended Definition:
1. The heirarchy of a model's results is shown below with the components of a result set under the result
set:
Result sets are associated with an analysis and can be identified as such. A result set associated with
request 101 from an analysis named test is often referred to as .test.req101.
The table below illustrates the default names assigned to result sets and result set components, read from
request (.req) and results (.res) files.
vx vy vz wx wy wz
2. If the value for the “units” parameter is calculate, Adams View tries to determine the units to use for
this operation. For example, if velocities are added (length/time), then the calculated “units”
parameter for the new result set component is velocity (length/time). If the derivative of a velocity is
taken, the calculated “units” parameter is acceleration (length/time**2).
numeric_results 45
numeric_results create multiplication
Adams View can only handle calculated units with a maximum exponent for the base units (force,
length, mass, time) of plus or minus four. For example, if a result set component with the units
(length/time**3) is multiplied with a result set component having the same units, it gives the
calculated units (length**2/time**6). Because the exponent of time is greater than four, Adams View
uses no_units and issues a warning.
Values are: no_units, calculate, length, angle, mass, density, time, area, volume, velocity,
acceleration, angular_velocity, angular_acceleration, inertia, area_inertia, damping, stiffness,
torsion_stiffness, torsion_damping, force, torque, pressure, force_time, torque_time.
Format:
numeric_results create multiplication
new_result_set_component_name= new result_set
result_set_component_names = existing result set components
units = type of units
Example:
numerical_results create multiplication &
new_result_set_component_name = dingdong.bell &
result_set_component_name = res101.x, res102.y
46 Adams View Commands
numeric_results create multiplication
Description:
Extended Definition:
1. The heirarchy of a model's results is shown below with the components of a result set under the result
set:
Result sets are associated with an analysis and can be identified as such. A result set associated with
request 101 from an analysis named test is often referred to as .test.req101.
The table below illustrates the default names assigned to result sets and result set components, read
from request (.req) and results (.res) files.
vx vy vz wx wy wz
2. If the value for the “units” parameter is calculate, Adams View tries to determine the units to use for
this operation. For example, if velocities are added (length/time), then the calculated “units”
parameter for the new result set component is velocity (length/time). If the derivative of a velocity is
taken, the calculated “units” parameter is acceleration (length/time**2).
Adams View can only handle calculated units with a maximum exponent for the base units (force,
length, mass, time) of plus or minus four. For example, if a result set component with the units
(length/time**3) is multiplied with a result set component having the same units, it gives the
calculated units (length**2/time**6). Because the exponent of time is greater than four, Adams View
uses no_units and issues a warning.
48 Adams View Commands
numeric_results create percent_difference
Values are: no_units, calculate, length, angle, mass, density, time, area, volume, velocity,
acceleration, angular_velocity, angular_acceleration, inertia, area_inertia, damping, stiffness,
torsion_stiffness, torsion_damping, force, torque, pressure, force_time, torque_time.
Format:
numeric_results create percent_difference
new_result_set_component_name= new result_set
result_set_component_names = existing result set components
units = type of units
Example:
numerical_results create percent_difference &
new_result_set_component_name = dingdong.bell &
result_set_component_name = res101.x, res102.y
numeric_results 49
numeric_results create percent_difference
Description:
Extended Definition:
1. The heirarchy of a model's results is shown below with the components of a result set under the result
set:
The component name must be unique, even though it can be stored in an existing result set. A
result set name can be of any length and any combination of alphanumeric characters. The leading
character must be a letter.
Result sets are associated with an analysis and can be identified as such. A result set associated with
request 101 from an analysis named test is often referred to as .test.req101.
The table below illustrates the default names assigned to result sets and result set components, read from
request (.req) and results (.res) files.
vx vy vz wx wy wz
2. If the value for the “units” parameter is calculate, Adams View tries to determine the units to use for
this operation. For example, if velocities are added (length/time), then the calculated “units”
parameter for the new result set component is velocity (length/time). If the derivative of a velocity is
taken, the calculated “units” parameter is acceleration (length/time**2).
numeric_results 51
numeric_results create scale
Adams View can only handle calculated units with a maximum exponent for the base units (force,
length, mass, time) of plus or minus four. For example, if a result set component with the units
(length/time**3) is multiplied with a result set component having the same units, it gives the
calculated units (length**2/time**6). Because the exponent of time is greater than four, Adams View
uses no_units and issues a warning.
Values are: no_units, calculate, length, angle, mass, density, time, area, volume, velocity,
acceleration, angular_velocity, angular_acceleration, inertia, area_inertia, damping, stiffness,
torsion_stiffness, torsion_damping, force, torque, pressure, force_time, torque_time.
Format:
numeric_results create scale
result_set_component_name = an existing component
new_result_set_component_name = a new component
a_scale_value = real
b_offset_value = real
units = units_type_with_calc
Example:
numeric_results create scale &
result_set_component_name = time &
new_result_set_component_name = rsc__1 &
units = time
52 Adams View Commands
numeric_results create scale
Description:
Extended Definition:
1. The component must be in an existing result set and reference to the component must include the
result set name. For example, assume you have read a request file called "SHIFT.REQ", and this
request file contains the result set REQ1. If you wish to refer to the X component in the result set
REQ1, enter .SHIFT.REQ1.X (the .SHIFT. may be omitted if shift is the current analysis_name).
SHIFT refers to the analysis name that that result set came from (or is stored under).
Result Sets are associated with an analysis run and can be identified as such. A result set associated
with request 101 from an analysis named "test" is referred to as .test.req101.
Several predefined result set types are created when Adams request and result files are read into Adams
View. For example, assume you have read a request file called "SHIFT.REQ", and this request file
contains the result information for the Adams statement REQUEST/1. The result set will be named
REQ1, and may also be referred to as being relative to the analysis name .shift.req1. If you wish to
refer to a component in the same result set, the full name for the X component would be
.SHIFT.REQ1.X.
The following table illustrates the default names assigned to result sets and result set components, read from
request (.REQ) and results (.RES) files.
numeric_results 53
numeric_results create scale
Result set type Result set name Component names File that result is from
part PARxxx... x y z e1 e2 e3 e4 mag results file
vx vy vz wx wy wz
If the component is to be stored in an existing result set, then the name entered must include the result
set. For example, assume you have read a request file called "SHIFT.REQ", and this request file
contains the result set REQ1. If you wish to store the new result set component in result set REQ1
with the component name NEW, enter .SHIFT.REQ1.NEW (The .SHIFT. can be left off if SHIFT
is the "current" analysis_name). If you wish to store the component in a new result set named REQ99
in the analysis run SHIFT, enter .SHIFT.REQ99.NEW. The number of components to be stored is
inferred by the number of components named in this parameter. Multiple names can be entered
separated by commas (,).
This is a required parameter and the component name given must be unique even though it may be
stored in an existing result set. A result set name may be arbitrarily long, and a combination of letters
of the alphabet and numbers may be used. The leading character must be a letter.
54 Adams View Commands
numeric_results create scale
Result Sets are associated with an analysis run and can be identified as such. A result set associated
with request 101 from an analysis named "test" is referred to as .test.req101.
Several predefined result set types are created when Adams request and result files are read into Adams
View. For example, assume you have read a request file called "SHIFT.REQ", and this request file
contains the result information for the Adams statement REQUEST/1. The result set will be named
REQ1, and may also be referred to as being relative to the analysis name .shift.req1. If you wish to
refer to a component in the same result set, the full name for the X component would be
.SHIFT.REQ1.X.
The following table illustrates the default names assigned to result sets and result set components, read
from request (.REQ) and results (.RES) files.
Result set type Result set name Component names File that result is from
part PARxxx... x y z e1 e2 e3 e4 mag results file
vx vy vz wx wy wz
Once the unit type is set, Adams View can perform the proper unit conversion on the data. If the
value for the “units” parameter is calculate, Adams View tries to determine the units to use for this
operation. For example, if velocities are added (length/time), then the calculated “units” parameter
for the new result set component is velocity (length/time). If the derivative of a velocity is taken, the
calculated “units” parameter is acceleration (length/time**2).
Adams View can only handle calculated units with a maximum exponent for the base units (force,
length, mass, time) of plus or minus four. For example, if a result set component with the units
(length/time**3) is multiplied with a result set component having the same units, it gives the
calculated units (length**2/time**6). Because the exponent of time is greater than four, Adams View
uses no_units and issues a warning.
2. The scaling equation is of the form:
A*X + B = Result
where A corresponds to the A_SCALE_VALUE and B corresponds to the B_OFFSET_VALUE parameter.
3. The B_OFFSET_VALUE parameter is used as a constant coefficient in the scale operation for
manipulating numeric results. The scaling equation is of the form:
A*X + B = Result
where B corresponds to the B_OFFSET_VALUE.
Format:
numeric_results create spline
spline_name = an existing spline
new_result_set_name = new_result_set_name =
z = real
units = units_type_with_calc
Example:
numeric_results create spline &
spline_name = spline__1 &
new_result_set_name = rsc__1 &
z = 3.1 &
units = force
56 Adams View Commands
numeric_results create spline
Description:
Extended Definition:
1. You may plot the result set to display the data points, or use it with the 'NUMERIC_RESULTS
CREATE INTERPOLATION' command to construct an interpolated curve.
If the spline has one independent variable (x), Adams View will create a result set with two
components named 'x' and 'y'. These components will contain the x and y values you entered when
creating the spline.
If a spline has one independent variable (x), Adams View ignores parameter Z. If a spline has two
independent variables (x and z), you may optionally specify the Z parameter.
If you do not specify Z, Adams View will create a result set with components named 'x', 'z', and 'y_1',
'y_2', ... 'y_n', where 'n' is the number of z values. These components will include the x, y, and z
values you entered when creating the spline. There will be a y component for each z value, and the
lengths of the x and y components will be the same.
If you do enter a Z value, Adams View will create a result set with two components named 'x' and 'y'.
Component 'x' will contain the x values you entered when creating the spline. Adams View will create
component 'y' by finding the two z values nearest to the value you specify, and linearly interpolating
between the corresponding sets of y values.
2. You identify a spline by typing its name. If you created the spline by reading an Adams data set, the
spline name is the letters SPL followed by the Adams data set spline ID number. For example, the
name of Adams SPLINE/101 is SPL101. If you created the spline during preprocessing, you will have
given it a name at that time.
If a spline is available by default, you may identify it by entering only its name. If it is not, you must
enter its full name. To identify a spline under another model, for instance, you may need to enter the
model name as well. For example, you may specify spline 'stiffness' from model 'suspension' by
entering ".suspension.stiffness". If you type a "?", Adams View will list the splines available by default.
You must separate multiple spline names by commas.
3. A result set is a storage place for any kind of numeric tabular data. A result set can contain "n"
components. Result sets are associated with an Adams analysis run and can be identified as such. A
result set associated with request 101 from and analysis named "test" is referred to as .test.req101.
numeric_results 57
numeric_results create spline
This is a required parameter and the result set name given must be unique within the particular
analysis name. A result set name may be arbitrarily long, and a combination of letters of the alphabet
and numbers may be used. The leading character must be a letter.
Result Sets are associated with an analysis run and can be identified as such. A result set associated
with request 101 from an analysis named "test" is referred to as .test.req101.
Several predefined result set types are created when Adams request and result files are read into Adams
View. For example, assume you have read a request file called "SHIFT.REQ", and this request file
contains the result information for the Adams statement REQUEST/1. The result set will be named
REQ1, and may also be referred to relative to the analysis name .shift.req1. If you wish to refer to a
component in the same result set, the full name for the X component would be .SHIFT.REQ1.X.
The following table illustrates the default names assigned to result sets and result set components, read from
request (.REQ) and results (.RES) files.
vx vy vz wx wy wz
4. Once the unit type is set, Adams View can perform the proper unit conversion on the data. If the
value for the “units” parameter is calculate, Adams View tries to determine the units to use for this
operation. For example, if velocities are added (length/time), then the calculated “units” parameter
for the new result set component is velocity (length/time). If the derivative of a velocity is taken, the
calculated “units” parameter is acceleration (length/time**2).
Adams View can only handle calculated units with a maximum exponent for the base units (force,
length, mass, time) of plus or minus four. For example, if a result set component with the units
(length/time**3) is multiplied with a result set component having the same units, it gives the
calculated units (length**2/time**6). Because the exponent of time is greater than four, Adams View
uses no_units and issues a warning.
Format:
numeric_results create sqrt_sum_of_squares
new_result_set_component_name= new result_set
result_set_component_names = existing result set components
units = type of units
Example:
numerical_results create sqrt_sum_of_sqares &
new_result_set_component_name = dingdong.bell &
result_set_component_name = res101.x, res102.y
numeric_results 59
numeric_results create sqrt_sum_of_squares
Description:
Extended Definition:
1. The heirarchy of a model's results is shown below with the components of a result set under the result
set:
The component name must be unique, even though it can be stored in an existing result set. A result
set name can be of any length and any combination of alphanumeric characters. The leading
character must be a letter.
Result sets are associated with an analysis and can be identified as such. A result set associated with
request 101 from an analysis named test is often referred to as .test.req101.
The table below illustrates the default names assigned to result sets and result set components read from
request (.req) and results (.res) files.
vx vy vz wx wy wz
2. If the value for the “units” parameter is calculate, Adams View tries to determine the units to use for
this operation. For example, if velocities are added (length/time), then the calculated “units”
parameter for the new result set component is velocity (length/time). If the derivative of a velocity is
taken, the calculated “units” parameter is acceleration (length/time**2).
numeric_results 61
numeric_results create subtraction
Adams View can only handle calculated units with a maximum exponent for the base units (force,
length, mass, time) of plus or minus four. For example, if a result set component with the units
(length/time**3) is multiplied with a result set component having the same units, it gives the
calculated units (length**2/time**6). Because the exponent of time is greater than four, Adams View
uses no_units and issues a warning.
Values are: no_units, calculate, length, angle, mass, density, time, area, volume, velocity, acceleration,
angular_velocity, angular_acceleration, inertia, area_inertia, damping, stiffness, torsion_stiffness,
torsion_damping, force, torque, pressure, force_time, torque_time.
Format:
numeric_results create subtraction
new_result_set_component_name= new result_set
result_set_component_names = existing result set components
units = type of units
Example:
numerical_results create subtraction &
new_result_set_component_name = dingdong.bell &
result_set_component_name = res101.x, res102.y
62 Adams View Commands
numeric_results create subtraction
Description:
Extended Definition:
1. The heirarchy of a model's results is shown below with the components of a result set under the result
set:
The component name must be unique, even though it can be stored in an existing result set. A
result set name can be of any length and any combination of alphanumeric characters. The leading
character must be a letter.
Result sets are associated with an analysis and can be identified as such. A result set associated with
request 101 from an analysis named test is often referred to as .test.req101.
The table below illustrates the default names assigned to result sets and result set components, read from
request (.req) and results (.res) files.
Result set type Result set name Component names File that result is from
part PARxxx... x y z e1 e2 e3 e4 mag results file
vx vy vz wx wy wz
accx accy accz wdx wdy wdz
diff DIFxxx... q dq results file
joint JOIxxx... fx fy fz tx ty tz fmag tmag results file
jprim JPRxxx... fx fy fz tx ty tz fmag tmag results file
motion MOTxxx... fx fy fz tx ty tz fmag tmag results file
gear GEAxxx... fx fy fz results file
coupler COUxxx... fx1 fy1 fz1 tx1 ty1 tz1 fmag1 results file
tmag1
fx2 fy2 fz2 tx2 ty2 tz2 fmag2
tmag2
fx3 fy3 fz3 tx3 ty3 tz3 fmag3
tmag3
sforce SFOxxx... fx fy fz tx ty tz fmag tmag results file
spring damp SPRxxx... fx fy fz tx ty tz fmag tmag results file
bushing BUSxxx... fx fy fz tx ty tz fmag tmag results file
beam BEAxxx... fx fy fz tx ty tz fmag tmag results file
field FIExxx... fx fy fz tx ty tz fmag tmag results file
user request UREQxxx... u1 u2 u3 u4 u5 u6 u7 u8 results file
request REQxxx... x y z r1 r2 r3 mag amag request file
ucon (not implemented)
2. If the value for the “units” parameter is calculate, Adams View tries to determine the units to use for
this operation. For example, if velocities are added (length/time), then the calculated “units”
parameter for the new result set component is velocity (length/time). If the derivative of a velocity is
taken, the calculated “units” parameter is acceleration (length/time**2).
64 Adams View Commands
numeric_results create values
Adams View can only handle calculated units with a maximum exponent for the base units (force,
length, mass, time) of plus or minus four. For example, if a result set component with the units
(length/time**3) is multiplied with a result set component having the same units, it gives the
calculated units (length**2/time**6). Because the exponent of time is greater than four, Adams View
uses no_units and issues a warning.
Values are: no_units, calculate, length, angle, mass, density, time, area, volume, velocity, acceleration,
angular_velocity, angular_acceleration, inertia, area_inertia, damping, stiffness, torsion_stiffness,
torsion_damping, force, torque, pressure, force_time, torque_time.
Format:
numeric_results create values
new_result_set_component_name = a new component
values = real
units = units_type_with_calc
Example:
numeric_results create values &
new_result_set_component_name = rsc__3 &
values = 10, 10, 11, 12, 13, 15 &
units = time
Description:
Extended Definition:
1. The definite integral operation evaluates the area under the result set component data curve over the
closed interval represented by the result set component data.
The integral is calculated by fitting a cubic spline to the result set component data and analytically
evaluating the definite integral. In other words, the cubic spline fit gives a polynomial representation
of the segments that represent the data. This polynomial in then analytically integrated over the
closed interval of the data.
2. The components must be in an existing result set and reference to the component must include the
result set name. For example, assume you have read a request file called "SHIFT.REQ", and this
request file contains the result set REQ1. If you wish to refer to the X component in the result set
REQ1, enter .SHIFT.REQ1.X (the .SHIFT. may be omitted if shift is the current analysis_name).
SHIFT refers to the analysis name that that result set came from (or is stored under).
Result Sets are associated with an analysis run and can be identified as such. A result set associated
with request 101 from an analysis named "test" is referred to as .test.req101.
Several predefined result set types are created when Adams request and result files are read into Adams
View. For example, assume you have read a request file called "SHIFT.REQ", and this request file
contains the result information for the Adams statement REQUEST/1. The result set will be named
REQ1, and may also be referred to as being relative to the analysis name .shift.req1. If you wish to
refer to a component in the same result set, the full name for the X component would be
.SHIFT.REQ1.X.
The following table illustrates the default names assigned to result sets and result set components, read from
request (.REQ) and results (.RES) files.
Result set type Result set name Component names File that result is from
part PARxxx... x y z e1 e2 e3 e4 mag results file
vx vy vz wx wy wz
Result set type Result set name Component names File that result is from
spring damp SPRxxx... fx fy fz tx ty tz fmag tmag results file
bushing BUSxxx... fx fy fz tx ty tz fmag tmag results file
beam BEAxxx... fx fy fz tx ty tz fmag tmag results file
field FIExxx... fx fy fz tx ty tz fmag tmag results file
user request UREQxxx... u1 u2 u3 u4 u5 u6 u7 u8 results file
request REQxxx... x y z r1 r2 r3 mag amag request file
ucon (not implemented)
If one component is complex, and the other is real, the real component is promoted to complex. If
the two components are of different lengths, the longer one is truncated. (Only for that operation)
If the new component being created is complex, a MAGNITUDE component is automatically
generated. If the component is being added to an existing result set and a MAGNITUDE component
already exits, an error will be issued.
3. If the component is to be stored in an existing result set, then the name entered must include the result
set. For example, assume you have read a request file called "SHIFT.REQ", and this request file
contains the result set REQ1. If you wish to store the new result set component in result set REQ1
with the component name NEW, enter .SHIFT.REQ1.NEW (The .SHIFT. can be left off if SHIFT
is the "current" analysis_name). If you wish to store the component in a new result set named REQ99
in the analysis run SHIFT, enter .SHIFT.REQ99.NEW. The number of components to be stored is
inferred by the number of components named in this parameter. Multiple names can be entered
separated by commas (,).
This is a required parameter and the component name given must be unique even though it may be
stored in an existing result set. A result set name may be arbitrarily long, and a combination of letters
of the alphabet and numbers may be used. The leading character must be a letter.
Result Sets are associated with an analysis run and can be identified as such. A result set associated
with request 101 from an analysis named "test" is referred to as .test.req101.
Several predefined result set types are created when Adams request and result files are read into Adams
View. For example, assume you have read a request file called "SHIFT.REQ", and this request file
contains the result information for the Adams statement REQUEST/1. The result set will be named
REQ1, and may also be referred to as being relative to the analysis name .shift.req1. If you wish to
refer to a component in the same result set, the full name for the X component would be
.SHIFT.REQ1.X.
The following table illustrates the default names assigned to result sets and result set components, read from
request (.REQ) and results (.RES) files.
numeric_results 67
numeric_results create values
vx vy vz wx wy wz
4. Once the unit type is set, Adams View can perform the proper unit conversion on the data. If the
value for the “units” parameter is calculate, Adams View tries to determine the units to use for this
operation. For example, if velocities are added (length/time), then the calculated “units” parameter
for the new result set component is velocity (length/time). If the derivative of a velocity is taken, the
calculated “units” parameter is acceleration (length/time**2).
Adams View can only handle calculated units with a maximum exponent for the base units (force,
length, mass, time) of plus or minus four. For example, if a result set component with the units
(length/time**3) is multiplied with a result set component having the same units, it gives the
calculated units (length**2/time**6). Because the exponent of time is greater than four, Adams View
uses no_units and issues a warning.
68 Adams View Commands
numeric_results create zero
Format:
numeric_results create zero
result_set_component_name = an existing component
new_result_set_component_name = a new component
below_value = real
above_value = real
units = units_type_with_calc
Example:
numeric_results create zero &
result_set_component_name = time &
new_result_set_component_name = rsc__1 &
units = time
Description:
Extended Definition:
1. The component must be in an existing result set and reference to the component must include the
result set name. For example, assume you have read a request file called "SHIFT.REQ", and this
request file contains the result set REQ1. If you wish to refer to the X component in the result set
REQ1, enter .SHIFT.REQ1.X (the .SHIFT. may be omitted if shift is the current analysis_name).
SHIFT refers to the analysis name that that result set came from (or is stored under).
Result Sets are associated with an analysis run and can be identified as such. A result set associated
with request 101 from an analysis named "test" is referred to as .test.req101.
Several predefined result set types are created when Adams request and result files are read into Adams
View. For example, assume you have read a request file called "SHIFT.REQ", and this request file
contains the result information for the Adams statement REQUEST/1. The result set will be named
REQ1, and may also be referred to as being relative to the analysis name .shift.req1. If you wish to
refer to a component in the same result set, the full name for the X component would be
.SHIFT.REQ1.X.
The following table illustrates the default names assigned to result sets and result set components, read
from request (.REQ) and results (.RES) files.
vx vy vz wx wy wz
2. If the component is to be stored in an existing result set, then the name entered must include the
result set. For example, assume you have read a request file called "SHIFT.REQ", and this request file
contains the result set REQ1. If you wish to store the new result set component in result set REQ1
with the component name NEW, enter .SHIFT.REQ1.NEW (The .SHIFT. can be left off if SHIFT
is the "current" analysis_name). If you wish to store the component in a new result set named REQ99
in the analysis run SHIFT, enter .SHIFT.REQ99.NEW. The number of components to be stored
is inferred by the number of components named in this parameter. Multiple names can be entered
separated by commas (,).
This is a required parameter and the component name given must be unique even though it may be
stored in an existing result set. A result set name may be arbitrarily long, and a combination of letters
of the alphabet and numbers may be used. The leading character must be a letter.
Result Sets are associated with an analysis run and can be identified as such. A result set associated
with request 101 from an analysis named "test" is referred to as .test.req101.
Several predefined result set types are created when Adams request and result files are read into Adams
View. For example, assume you have read a request file called "SHIFT.REQ", and this request file
contains the result information for the Adams statement REQUEST/1. The result set will be named
REQ1, and may also be referred to as being relative to the analysis name .shift.req1. If you wish to
refer to a component in the same result set, the full name for the X component would be
.SHIFT.REQ1.X.
The following table illustrates the default names assigned to result sets and result set components, read from
request (.REQ) and results (.RES) files.
vx vy vz wx wy wz
3. The below_value parameter is a critical value which determines the threshold below which a
particular numeric value will be modified, printed, etc. (depending on the operation to be
performed).
This parameter is optional and if not entered, no value will be passed to the application, and therefore,
no action will be taken based on the BELOW_VALUE parameter. If entered, the BELOW_VALUE
parameter must be a real number.
4. The above_value parameter is a critical value which determines the threshold above which a particular
numeric value will be modified, printed, etc. (depending on the operation to be performed).
This parameter is optional and if not entered, no value will be passed to the application, and therefore,
no action will be taken based on the ABOVE_VALUE parameter. If entered, the ABOVE_VALUE
parameter must be a real number.
5. Once the unit type is set, Adams View can perform the proper unit conversion on the data. If the
value for the “units” parameter is calculate, Adams View tries to determine the units to use for this
operation. For example, if velocities are added (length/time), then the calculated “units” parameter
for the new result set component is velocity (length/time). If the derivative of a velocity is taken, the
calculated “units” parameter is acceleration (length/time**2).
Adams View can only handle calculated units with a maximum exponent for the base units (force,
length, mass, time) of plus or minus four. For example, if a result set component with the units
(length/time**3) is multiplied with a result set component having the same units, it gives the
calculated units (length**2/time**6). Because the exponent of time is greater than four, Adams View
uses no_units and issues a warning.
72 Adams View Commands
numeric_results delete
numeric_results delete
Allows you to delete an entire result set.
Format:
numeric_results delete
result_set_name = existing result_set name
Example:
numeric_results delete &
result_set_name = res_01
Description:
Extended Definition:
1. A result set is a storage place for any kind of numeric tabular data. A result set can contain any number
of components. A component is usually set up to contain vector components of values such as
displacement, velocity, acceleration, and force. In this case, however, a result set is completely general
and can store any numeric value in a component with few exceptions. These exceptions are those cases
when you ask the system to mix incompatible value types, such as complex values in the same
component as real values.
The result set name given must be within a particular analysis. A result set name can be of any length,
and any combination of letters and numbers. The leading character, however, must be a letter.
Result sets are associated with an analysis and can be identified as such. A result set associated with
request 101 from an analysis named test is referred to as .test.req101.
When you read into Adams View request and result files, Adams View creates several predefined result
set types. For example, if you read in a request file named SHIFT.REQ, and this request file contains
the result information for the statement REQUEST/1, the result set is named REQ1, and can also be
referred to as being relative to the analysis name .shift.req1. If you want to refer to a component in
the same result set, the full name for the X component would be .SHIFT.REQ1.X.
The table below illustrates the default names assigned to result sets and result set components, read from
request (.req) and results (.res) files.
numeric_results 73
numeric_results list_info all
Format:
numeric_results list_info all
result_set_component_name = an existing component
write_to_terminal = on_off
file_name = string
74 Adams View Commands
numeric_results list_info all
Example:
numeric_results list_info all &
result_set_component_name = time &
write_to_terminal = on &
file_name = "c:\info.txt"
Description:
Extended Definition:
1. If selected, the ALL keyword will cause the MAXIMUM_VALUE, MINIMUM_VALUE,
TIME_RANGE, (or frequency, if appropriate) and NO_OF_TIME_STEPS to be output in the
form of an informational message.
If there is no time/frequency range, the value listed is zero (0).
List all the information about the specified component.
2. The component must be in an existing result set and reference to the component must include the
result set name. For example, assume you have read a request file called "SHIFT.REQ", and this
request file contains the result set REQ1. If you wish to refer to the X component in the result set
REQ1, enter .SHIFT.REQ1.X (the .SHIFT. may be omitted if shift is the current analysis_name).
SHIFT refers to the analysis name that that result set came from (or is stored under).
Result Sets are associated with an analysis run and can be identified as such. A result set associated
with request 101 from an analysis named "test" is referred to as .test.req101.
Several predefined result set types are created when Adams request and result files are read into Adams
View. For example, assume you have read a request file called "SHIFT.REQ", and this request file
contains the result information for the Adams statement REQUEST/1. The result set will be named
REQ1, and may also be referred to as being relative to the analysis name .shift.req1. If you wish to
refer to a component in the same result set, the full name for the X component would be
.SHIFT.REQ1.X.
The following table illustrates the default names assigned to result sets and result set components, read from
request (.REQ) and results (.RES) files.
numeric_results 75
numeric_results list_info maximum_value
3. This parameter is most likely to be used in conjunction with the FILE_NAME parameter to get the
information to be put into a file.
Format:
numeric_results list_info maximum_value
result_set_component_name = an existing component
76 Adams View Commands
numeric_results list_info maximum_value
Example:
numeric_results list_info maximum_value &
result_set_component_name = TIME &
write_to_terminal = on &
file_name = "c:\info.txt"
Description:
Extended Definition:
1. If selected, the MAXIMUM_VALUE keyword will cause the maximum value of the desired result set
component to be output in the form of an informational message.
This command has one required parameter, which is RESULT_SET_COMPONENT_NAME. All
other parameters have default settings, or are optional.
2. The component must be in an existing result set and reference to the component must include the
result set name. For example, assume you have read a request file called "SHIFT.REQ", and this
request file contains the result set REQ1. If you wish to refer to the X component in the result set
REQ1, enter .SHIFT.REQ1.X (the .SHIFT. may be omitted if shift is the current analysis_name).
SHIFT refers to the analysis name that that result set came from (or is stored under).
Result Sets are associated with an analysis run and can be identified as such. A result set associated
with request 101 from an analysis named "test" is referred to as .test.req101.
Several predefined result set types are created when Adams request and result files are read into Adams
View. For example, assume you have read a request file called "SHIFT.REQ", and this request file
contains the result information for the Adams statement REQUEST/1. The result set will be named
REQ1, and may also be referred to as being relative to the analysis name .shift.req1. If you wish to
refer to a component in the same result set the full name for the X component would be
.SHIFT.REQ1.X.
numeric_results 77
numeric_results list_info minimum_value
The following table illustrates the default names assigned to result sets and result set components, read from
request (.REQ) and results (.RES) files.
3. This parameter is most likely to be used in conjunction with the FILE_NAME parameter to get the
information to be put into a file.
Format:
numeric_results list_info minimum_value
result_set_component_name = an existing component
write_to_terminal = on_off
file_name = string
Example:
numeric_results list_info minimum_value &
result_set_component_name = time &
write_to_terminal = on &
file_name = "c:\info.txt"
Description:
Extended Definition:
1. If selected, the MINIMUM_VALUE keyword will cause the minimum value of the desired result set
component to be output in the form of an informational message.
This command has one required parameter, which is RESULT_SET_COMPONENT_NAME. All
other parameters have default settings or are optional.
2. The component must be in an existing result set and reference to the component must include the
result set name. For example, assume you have read a request file called "SHIFT.REQ", and this
request file contains the result set REQ1. If you wish to refer to the X component in the result set
REQ1, enter .SHIFT.REQ1.X (the .SHIFT. may be omitted if shift is the current analysis_name).
SHIFT refers to the analysis name that that result set came from (or is stored under).
Result Sets are associated with an analysis run and can be identified as such. A result set associated
with request 101 from an analysis named "test" is referred to as .test.req101.
numeric_results 79
numeric_results list_info minimum_value
Several predefined result set types are created when Adams request and result files are read into Adams
View. For example, assume you have read a request file called "SHIFT.REQ", and this request file
contains the result information for the Adams statement REQUEST/1. The result set will be named
REQ1, and may also be referred to as being relative to the analysis name .shift.req1. If you wish to
refer to a component in the same result set, the full name for the X component would be
.SHIFT.REQ1.X.
The following table illustrates the default names assigned to result sets and result set components, read
from request (.REQ) and results (.RES) files.
vx vy vz wx wy wz
3. This parameter is most likely to be used in conjunction with the FILE_NAME parameter to get the
information to be put into a file.
80 Adams View Commands
numeric_results list_info number_of_time_steps
Format:
numeric_results list_info number_of_time_steps
result_set_component_name = an existing component
write_to_terminal = on_off
on_off string
Example:
numeric_results list_info number_of_time_steps &
result_set_component_name = time &
write_to_terminal = on &
file_name = "c:\info.txt"
Description:
Extended Definition:
1. If selected, this parameter will cause the NUMBER_OF_TIME_STEPS to be output in the form of
an informational message.
2. The component must be in an existing result set and reference to the component must include the
result set name. For example, assume you have read a request file called "SHIFT.REQ", and this
request file contains the result set REQ1. If you wish to refer to the X component in the result set
REQ1, enter .SHIFT.REQ1.X (the .SHIFT. may be omitted if shift is the current analysis_name).
SHIFT refers to the analysis name that that result set came from (or is stored under).
Result Sets are associated with an analysis run and can be identified as such. A result set associated
with request 101 from an analysis named "test" is referred to as .test.req101.
numeric_results 81
numeric_results list_info number_of_time_steps
Several predefined result set types are created when Adams request and result files are read into Adams
View. For example, assume you have read a request file called "SHIFT.REQ", and this request file
contains the result information for the Adams statement REQUEST/1. The result set will be named
REQ1, and may also be referred to as being relative to the analysis name .shift.req1. If you wish to
refer to a component in the same result set the full name for the X component would be
.SHIFT.REQ1.X.
The following table illustrates the default names assigned to result sets and result set components, read
from request (.REQ) and results (.RES) files.
vx vy vz wx wy wz
3. This parameter is most likely to be used in conjunction with the FILE_NAME parameter to get the
information to be put to a file.
82 Adams View Commands
numeric_results list_info time_range
Format:
numeric_results list_info time_range
result_set_component_name = an existing component
write_to_terminal = on_off
file_name = string
Example:
numeric_results list_info time_range &
result_set_component_name = time &
write_to_terminal = on &
file_name = "c:\info.txt"
Description:
Extended Definition:
1. If selected, the TIME_RANGE keyword will cause the time range that the result set spans to be
output in the form of an informational message.
If there is no time range, the frequency range is listed. If there is no frequency range also, all the values
are listed as zero (0).
This command has one required parameter, which is RESULT_SET_COMPONENT_NAME. All
other parameters have default settings or are optional.
numeric_results 83
numeric_results list_info time_range
2. The component must be in an existing result set and reference to the component must include the
result set name. For example, assume you have read a request file called "SHIFT.REQ", and this
request file contains the result set REQ1. If you wish to refer to the X component in the result set
REQ1, enter .SHIFT.REQ1.X (the .SHIFT. may be omitted if shift is the current analysis_name).
SHIFT refers to the analysis name that that result set came from (or is stored under).
Result Sets are associated with an analysis run and can be identified as such. A result set associated
with request 101 from an analysis named "test" is referred to as .test.req101.
Several predefined result set types are created when Adams request and result files are read into Adams
View. For example, assume you have read a request file called "SHIFT.REQ", and this request file
contains the result information for the Adams statement REQUEST/1. The result set will be named
REQ1, and may also be referred to as being relative to the analysis name .shift.req1. If you wish to
refer to a component in the same result set the full name for the X component would be
.SHIFT.REQ1.X.
The following table illustrates the default names assigned to result sets and result set components, read
from request (.REQ) and results (.RES) files.
vx vy vz wx wy wz
3. This parameter is most likely to be used in conjunction with the FILE_NAME parameter to get the
information to be put to a file.
numeric_results modify
Allows you to change the units of an existing result set component. You can reverse modifications using the
undo command.
Format:
numeric_results modify
result_set_component_names = existing result set components
units = type of units
Example:
numeric_results modify &
res= req1.x &
units= "length/time"
Description:
Extended Definition:
1. The hierarchy of a model's results is shown below with the components of a result set under the result
set:
vx vy vz wx wy wz
2. If the value for the “units” parameter is calculate, Adams View tries to determine the units to use for
this operation. For example, if velocities are added (length/time), then the calculated “units”
parameter for the new result set component is velocity (length/time). If the derivative of a velocity is
taken, the calculated “units” parameter is acceleration (length/time**2).
Adams View can only handle calculated units with a maximum exponent for the base units (force,
length, mass, time) of plus or minus four. For example, if a result set component with the units
(length/time**3) is multiplied with a result set component having the same units, it gives the
calculated units (length**2/time**6). Because the exponent of time is greater than four, Adams View
uses no_units and issues a warning.
Values are: no_units, calculate, length, angle, mass, density, time, area, volume, velocity, acceleration,
angular_velocity, angular_acceleration, inertia, area_inertia, damping, stiffness, torsion_stiffness,
torsion_damping, force, torque, pressure, force_time, torque_time.
numeric_results read_from_file
Allows you to read components from an ASCII file into an existing result set or into a new result set. You can
specify the names of the components, as well as the name of the result set.
To accommodate a wide variety of formats used by third-party software, the format of the file to be read is
intentionally general. Adams View only reads the lines that begin with a number. All other lines are
considered comments and are ignored. Using this command, output files generated from finite element,
modal analysis, or custom programs can be read into Adams View and combined with data read from the
Adams output files. You can use files that numeric_results write command generates with this command.
This allows for the saving of important data between Adams View sessions.
numeric_results 87
numeric_results read_from_file
The format supported by the Adams View file reader is a flexible one.
All lines that do not begin with a number are considered comments.
Other lines are read by Adams View. Adams View starts at the first line of the file and reads one line at a time.
Lines that do not begin with a number (digit,-,+,decimal point) are considered comments and are ignored.
The number of components to be read is determined by the number of components that are named in the
NEW_RESULT_SET_COMPONENT_NAME parameter. If only 3 components are named in this
parameter, then, only the first three components are read and all others in the file are ignored.
Format:
numeric_results read_from_file
new_result_set_component_name= new component
number_of_steps= integer
units= string
file_name= string
Example:
numeric_results read_from_file &
new_result_component_name = res_01 &
number_of_steps = 15 &
file_name = “c:\sample_file.txt”
This sample file contains three components. The first two columns of numbers, beginning with 1 and 10.0,
are the first two components and the third column of numbers, beginning with 22, is the third component.
If you do not specify the number of steps, Adams View uses a blank line to delimit the end of a component.
In the following example, the first two components have ten numbers each. If you specify the number of steps
to be read, Adams View continues to read lines until the requested number of steps have been stored in the
component. For example, if only one component was read from the following file and the number of steps
was specified to be 15, the component would contain the values 1, 2, 3.4, -4, 5, 6, 7, 8, 9, 10, 22, 23, .24,
25, 26.
6 15.5
7 17
8 18
9 19
10 20
22
23
.24
25
26
27
28
29
30
31
>>>>>> end of file <<<<<<<
Description:
Extended Definition:
1. The hierarchy of a model's results is shown below with the components of a result set under the result
set:
numeric_results 89
numeric_results read_from_file
2. All components being read from a file must have the same number of steps.
Lines that do not begin with a number are considered comments and are ignored.
If you do not specify this parameter, Adams View will infer the size of the components from the
format of the file. Adams View will read a component from a file until it encounters a comment line.
A comment line marks the end of the component.
3. Once you set the unit type, Adams View can perform the proper unit conversion on the data. Values
are: no_units, calculate, length, angle, mass, density, time, area, volume, velocity, acceleration,
angular_velocity, angular_acceleration, inertia, area_inertia, damping, stiffness, torsion_stiffness,
torsion_damping, force, torque, pressure, force_time, torque_time.
Cautions:
1. If a paragraph of text contains a line that begins with a number, Adams View tries to read the line.
To avoid this, precede lines that are to be ignored with a non-numeric character. Do not use +, -, or
. because these characters are valid as the first characters in a real number
Tips:
1. Numbers can be separated by a comma (,) and they do not have to be lined up in even columns.
numeric_results transform
Allows you to get results to return at locations other than the positions reported in the result file. The
transform command only transforms the results in the part result sets (these are the result sets denoted by
names of the form xxx_XFORM, where xxx is the part name). The transform command is needed because
the result file only gives displacement, velocity, and acceleration results of the local part reference frame
(LPRF) origin position relative to ground.
You can use the transform command to transform the displacements, velocities, and accelerations of a part's
LPRF to a different position, while it is still rigidly attached to the same part. The transformed results will be
relative to the ground's reference frame as the part moves during the simulation.
You specify the part by naming the result set to be transformed. You specify the location to which you want
to transform the results, by giving its global or LPRF coordinates, or by using the coordinates of a named
marker.
Format:
numeric_results transform
result_set_name= existing result_set
new_result_set_name= new result set
marker_name= existing marker
lprf_coords= real
global_coords= real
92 Adams View Commands
numeric_results transform
Description:
Extended Definition:
1. A result set is a storage place for any kind of numeric tabular data. A result set can contain "n"
components. A component is most usually setup to contain vector components of values like
displacement, velocity, acceleration, force and so on. However, in this case a result set is completely
general and can store any numeric value in a component with only a few exceptions. These exceptions
are those cases when the user asks the system to mix incompatible value types like complex in the same
component as real values.
This is a required parameter and the result set name given must be within a particular analysis. A result
set name may be arbitrarily long, and a combination of letters of the alphabet and numbers may be
used. The leading character must be a letter.
Result Sets are associated with an analysis run and can be identified as such. A result set associated
with request 101 from an analysis named "test" is referred to as .test.req101.
Several predefined result set types are created when Adams request and result files are read into Adams
View. For example, assume you have read a request file called "SHIFT.REQ", and this request file
contains the result information for the Adams statement REQUEST/1. The result set will be named
REQ1, and may also be referred to as being relative to the analysis name .shift.req1. If you wish to
refer to a component in the same result set the full name for the X component would be
.SHIFT.REQ1.X.
The following table illustrates the default names assigned to result sets and result set components, read
from request (.REQ) and results (.RES) files
numeric_results 93
numeric_results transform
Result set type Result set name Component names File that result is from
part PARxxx... x y z e1 e2 e3 e4 mag results file
vx vy vz wx wy wz
2. If the named marker is actually attached to the part specified by the RESULTS_SET_NAME
parameter, then the marker's LPRF coordinates (which remain fixed, relative to the part throughout
the simulation) are used to perform the transformation. Using these coordinates, the results
(displacement, velocity, and acceleration) associated to the desired part are transformed into the
global (or ground) coordinate system as the part moves during the simulation. Thus creating a new
result set (named based on the NEW_RESULT_SET_NAME parameter).
If the named marker is attached to a part other than the one specified by the RESULTS_SET_NAME
parameter, the program will issue a warning, and proceed. Then, the specified marker's coordinates
are first transformed into the ground reference frame (global coordinates) at the time step
corresponding to the input step (as the model was initially defined in the Adams data set). Then the
marker's global coordinates are transformed into the LPRF of the specified part (also at the time
corresponding to the input step). From this point, these LPRF coordinates (which remain fixed,
relative to the part throughout the simulation, but are no longer associated with the named marker)
are used to perform the transformation as described above.
94 Adams View Commands
numeric_results write
A marker name can be entered by specifies an existing marker. You may identify a marker by typing
its name or by picking it from the screen. If the marker is not visible on the screen, you must type the
name. You may also find it convenient to type the name even if the marker is displayed.
If you created the marker by reading an Adams data set or graphics file, the marker name is the letters
MAR followed by the Adams data set marker ID number. For example, the name of Adams
MARKER/101 is MAR101. If you created the marker during preprocessing, you will have given it a
name at that time.
If a marker is available by default, you may identify it by entering only its name. If it is not, you must
enter its full name. To identify a marker under a different part, for instance, you may need to enter
the model and part names as well. For example, you may specify marker 'pivot' from model 'links',
part 'lower_arm' by entering ".links.lower_arm.pivot". If you type a "?", Adams View will list the
markers available by default.
You must separate multiple marker names by commas. If the marker is visible in one of your views,
you may identify it by picking on it. You need not separate multiple marker picks by commas.
3. The LPRF coordinates entered are assumed to be fixed to the part in question for purposes of the
transformation. The transformed results will be relative to the ground's reference frame as the part
moves during the simulation. The part is specified by the RESULTS_SET_NAME parameter used
with the TRANSFORM command.
The transformation used is based on the following assumption: The described LPRF coordinates are
assumed to be associated to the part at the time step that corresponds to the model input step (i.e. as
input in the Adams data set).
The LPRF_COORDS parameter consists of six real numbers. The first three coordinates are the
(x,y,z) coordinates of the desired location in the parts local coordinate system. The last three
coordinates are the Euler angles of the desired location in degrees.
4. The global coordinates entered are assumed to be fixed to the part in question for purposes of the
transformation. The transformed results will be relative to the ground's reference frame as the part
moves during the simulation. The part is specified by the RESULTS_SET_NAME parameter used
with the TRANSFORM command.
Even though the coordinates are input in the global (or ground) reference frame, the system associates
them to the part's local part reference frame as defined in the model input step (as input in the Adams
data set).
The first three coordinates are the (x,y,z) coordinates of the desired location, and the last three
coordinates are the Euler angles of the desired location in degrees.
numeric_results write
Allows you to write the contents of one or more result set components to the information window, a file, or
both.
numeric_results 95
numeric_results write
Format:
numeric_results write
result_set_component_names = existing result set components
sort_by= results_sort
order= sort_order
write_to_terminal= on/off
file_name= string
above_value= real
below_value= real
Example:
numerical_results write &
result_set_component_name = dingdong.bell &
sort_by = by_value &
order = ascending &
file_name = “c:\result_set_file” &
write_to_terminal = on &
above_value = 5.0 &
below_value = 100.9
The result set specified will be written in the file specified as well as on the screen. Only the values above 5.0
and below 100.9 will be printed and sorted in the ascending order.
Description:
Extended Definition:
1. The heirarchy of a model's results is shown below with the components of a result set under the result
set:
vx vy vz wx wy wz
2. The legal values for the “sort_by” parameter are BY_VALUE and BY_TIME. If BY_VALUE is
entered, then the values will be sorted by the magnitude of the result set component being written. If
BY_TIME is entered, then the values will be sorted by the simulation time associated with the result
set component being written.
This is an optional parameter and if not entered, the SORT_BY option will not be set to any value.
The result set component will be written in the order it appears in the result set.
3. If entered, the “order” parameter is used regardless of whether the values are to be printed to the
terminal or to a file.
This parameter is optional and if not entered, it will default to "ascending" order. The only legal
values for the ORDER parameter is "ascending" and "descending".
4. The “above_value” parameter determines the threshold above which a particular numeric value will
be modified, printed, etc. (depending on the operation to be performed).
98 Adams View Commands
numeric_results write
This parameter is optional and if not entered, no value will be passed to the application, and therefore,
no action will be taken based on the ABOVE_VALUE parameter. If entered, the ABOVE_VALUE
parameter must be a real number.
5. The “Below_value” parameter determines the threshold below which a particular numeric value will
be modified, printed, etc. (depending on the operation to be performed).
This parameter is optional and if not entered, no value will be passed to the application, and therefore,
no action will be taken based on the BELOW_VALUE parameter. If entered, the BELOW_VALUE
parameter must be a real number.
optimize 1
optimize constraint evaluate
optimize
optimize constraint evaluate
Allows you to evaluate a constraint given in an existing analysis.
You have two options for defining an optimization constraint:
1. Select a result set component and its output characteristic.
2. Specify a function which computes the objective.
The result set component/output characteristic method requires a name of the form "REQ1.R1" or
"PAR2_XFORM.THETA".
If you specify a function, use "FUNCTION CREATE FUNCTION_NAME=..." to create it. Make sure
that your function has exactly one argument named "analysis". You may or may not use this argument in the
function, but it must still be there. For example, FUN CRE FUN=objective_function ARG=analysis
TEXT="MAX(analysis.req1.r1.values)" or FUN CRE FUN=total_mass ARG=analysis TEXT="100 -
par1.mass + par2.mass"
Format:
optimize constraint evaluate
constraint_name= existing opt_constraint
analysis_name= existing analysis
Description:
Extended Definition:
1. You may identify an analysis by typing its name or by picking it from the screen.
An analysis may be picked from the screen if you have read an Adams Graphics file, and use the
GRAPHIC_RESULTS command to display it. If the analysis is not visible on the screen, you must
type the name. You may also find it convenient to type the name even if the analysis is displayed.You
may have explicitly named the analysis when you created it by reading one or more Adams output
files. By default, the name of the analysis is the root name of the Adams output files. If you created
the analysis by reading an Adams Graphics file, for instance, the analysis name is the name of the
graphics file without the '.gra' extension.
You may get a list of analysis by typing a "?" in response to a parameter that requires an analysis name
to be entered.
2 Adams View Commands
optimize design_of_experiments
optimize design_of_experiments
The DESIGN_OF_EXPERIMENTS command allows you to perform a number of analyses on a parametric
model.
You specify which design variables are to be changed, and one or more objective functions that are to be
evaluated upon completion of each analysis.
The combinations of design variable values to be used by the DOEalgorithm are taken from a table, which
might look like this (for an experiment with three variables and four trials).
-1 -1 0
-1 +1 0
-1 0 +1
0 0 +1
The values in the table are used as indexes into the list of ALLOWED_VALUES, where 0 is meant to index
the central value (if there is one).
The tables used by Adams View in its DOE algorithm can come from one of three places:
1. An already existing disk file (possibly generated by another program).
2. They can be entered on the command line by you.
3. They can be automatically generated by Adams View.
There are three mutually exclusive groups of parameters providing different means for performing the
analysis on your model. The first two use Adams Solver with either simple values (END_TIME,
NUMBER_OF_STEPS, and so on) or the Adams command file (ACF) interface.
The third group (labelled INDEPENDENT_OF_RESULTS) allows you to perform a DOE without
invoking Adams Solver (set the DO_NOT_RUN_SOLVER parameter to TRUE). This is appropriate for
models where the objective is not dependent on any analysis results.
For example, you might define a model in which the objective is dependent upon the mass of a part. If the
mass of the part is determined by the geometry of the system, then you do not need to run Adams Solver. If
you can use this type of analysis, do so, as it reduces the amount of time required for analysis by orders of
magnitude.
Format:
optimize design_of_experiments
model_name= existing mode
analysis_name= existing analysis
user_executable= string
optimize 3
optimize design_of_experiments
optimize design_of_experiments
brief= on/off
on_objective_error= stop/continue
analysis_type= analysis_type
number_of_steps= integer
end_time= real
initial_static= yes/no
adams_command_file= string
do_not_run_solver= true
objective_name= existing objective
design_variables= existing design variable
technique= doe_technique
number_of_user_trials= integer
user_matrix= integer
matrix_file_name= string
Description:
Extended Definition:
1. You may identify a model by typing its name or by picking it from the screen.
If the model is not visible on the screen, you must type the name.
You may also find it convenient to type the name even if the model is displayed.
You must separate multiple model names by commas. If the model is visible in one of your views, you
may identify it by picking on any of the graphics associated with it.
You need not separate multiple model picks by commas.
2. You may identify an analysis by typing its name or by picking it from the screen.
optimize 5
optimize design_of_experiments
An analysis may be picked from the screen if you have read an Adams Graphics file, and use the
GRAPHIC_RESULTS command to display it. If the analysis is not visible on the screen, you must
type the name. You may also find it convenient to type the name even if the analysis is displayed.
You may have explicitly named the analysis when you created it by reading one or more Adams output
files. By default, the name of the analysis is the root name of the Adams output files. If you created
the analysis by reading an Adams Graphics file, for instance, the analysis name is the name of the
graphics file without the '.gra' extension.
You may get a list of analysis by typing a "?" in response to a parameter that requires an analysis name
to be entered.
You must separate multiple analysis names by commas.
If the analysis is visible in one of your views, you may identify it by picking on any of the graphics
associated with it.
You need not separate multiple analysis picks by commas.
3. If on_objective_error is "stop", the simulations will stop if Adams View detects an
invalid/nonexistent objective during the simulations. If on_objective error is "continue", the
simulations will continue if Adams View detects an invalid/nonexistent objective.
On_objective_error defaults to "stop".
4. There are 4 different analysis types:
DYNAMIC: Specifies that Adams is to integrate the dynamics equations.
If you request a dynamic analysis for a model with zero degrees-of-freedom, Adams issues a warning
message and integrates the equations instead of using kinematic analysis. Kinematic analysis is faster.
KINEMATICS: Specifies that Adams is to run a kinematic analysis. If you request a kinematic
analysis for a model with one or more degrees-of-freedom, Adams issues an error message and
ignores the entire command.
STATICS: Specifies that Adams is to run either a static equilibrium analysis or a quasi-static
equilibrium analysis. If you choose STATICS and fail to specify an END_TIME, or
NUMBER_OF_STEPS, Adams performs a static equilibrium analysis at the current time. If you
choose STATICS and specify an end time and one or more steps, Adams performs a quasi- static
equilibrium analysis.
TRANSIENT: Specifies that Adams is to run a kinematic analysis if the model has zero degrees of
freedom, or a dynamic analysis if the system has one or more degrees-of-freedom.
You may use the 'MODEL VERIFY' command to display the number of degrees-of-freedom in your
model.-
5. All components being read from a file must have the same number of steps. Lines that do not begin
with a number are considered comments and ignored.
If this parameter is not specified, the size of the components will be inferred from the format of the
file. A component will be read from a file until a comment line is encountered. This comment line
marks the end of the component.
6. END_TIME must be greater than the begin time.
6 Adams View Commands
optimize design_of_experiments
Since the begin time must be greater than zero, this means that the end time must also be greater that
zero.
7. If you select YES for the initial_static parameter, Adams will run a static analysis before starting the
simulation you have specified with the ANALYSIS_TYPE, NUMBER_OF_STEPS, and
END_TIME parameters.
You may wish to set this parameter to YES when running a vehicle model, for instance, to allow the
vehicle to settle on its suspension before starting a transient analysis.
8. Adams View allows you to create your own Adams Command File by using the text edit window.
You can control the Adams simulation parameters and commands by putting all commands in the
command file just as you would enter them during an interactive Adams analysis session. When
Adams View submits the Adams analysis run, the command file "View_Ana.acf" will be created, and
Adams will use this command file to control the simulation.
See the Adams documentation for a complete description of the Adams Command File.
To invoke the text edit window for modification of the ACF file, just pick the "EDIT" button on the
SUBMIT command panel while the ADAMS_COMMAND_FILE parameter field in active.
Below, is a description of the text editor.
The Text Edit Window provides a flexible means of entering large amounts of text into a panel field.
Invoking the text edit window:
The Text Edit Window is displayed by either typing control-t or picking the EDIT button on a
panel.
When the text edit window is displayed, the contents of the current active field are placed into it. If
the contents of the current active field consist of multiple quoted strings, then each string will be
placed on a separate line in the text edit window.
Cursor placement: Point and click. You can place the text cursor anywhere within the text by placing
the mouse cursor at the desired location and clicking. Arrow keys can be used to move the cursor
left, right, up and down within the text in the window. The up and down arrow keys will also scroll
the window if there are more than 8 lines of text. Carriage-return advances to the next line.
Buttons:
OK - The OK button is used when you are satisfied with the text in the window and that you wish
it to be placed into the panel from which it originated. A verification will be performed, and if there
are no problems, the contents of the text edit window will be placed into the originating field. If the
verification failed, the cursor will be placed at or near the location where the parser detected a
problem.
CANCEL - The CANCEL button is used to terminate the current use of the text edit window, and
to return to the originating panel without changing the contents of the current active panel field.
VERIFY - The VERIFY button is used to perform a verification on the current contents of the text
edit window. It checks for the proper syntax required by the active field on the originating panel. A
message will be output indicating success or failure. In the case of a failure, the text cursor will be
placed at or near the location where the parser detected a problem.
optimize 7
optimize design_of_experiments
GET_NAME - The GET_NAME button is used to place the name of a marker into the text in the
window at the current text cursor location. After the MARKER button has been picked, you may
then pick a marker and its name will be inserted at the current text cursor location.
FUNCTIONS - The FUNCTIONS button provides a means of constructing an Adams function
string. Upon picking the FUNCTIONS button, you will be presented with the list of available
functions in the "selection window". After you select the desired function, a panel will appear with
fields representing the various parameters for the function. You will have full access to on-line help
with this panel just like you have with regular panels. After you have completed the panel and
selected the DONE button on the panel, the function string will be constructed and inserted at the
current text cursor location in the text edit window.
INSERT/OVERSTRIKE - The INSERT/OVERSTRIKE button toggles between insert mode and
overstrike mode. In insert mode, as characters are typed, any characters to the right of the insertion
point on the current line are shifted further to the right. In overstrike mode, as characters are typed,
they will replace any characters to their right that they may encounter.
CUT - The CUT button will cut out the line that currently contains the text cursor. The line is
remembered until a subsequent CUT is performed. The information in the CUT buffer is
accessible for PASTE operations for the duration of the Adams VIEW session.
PASTE - The PASTE button will insert the text that was last CUT. The insertion will be
performed at the current text cursor location.
Control characters: control-i set for insert mode, control-o set for overstrike mode, control-d
equivalent to OK button, control-q equivalent to CANCEL button, control-x equivalent to CUT
button, control-v equivalent to PASTE button
9. One simple means for generating the trial matrix is by using the the case number as an index into the
allowed values of the design variables. This is called the CASEWISE technique. You end up with N
trials, where N is the number of levels for the design variables.
The FULL_FACTORIAL technique is a simple "brute force" algorithm that generates all possible
permutations (there are N**M of them, where N is the number of levels for the design variables and
M is the number of design variables; all design variables must have the same number of levels). This
can quickly get out of hand, so it is often the case that you will choose a "reduced factorial" trial
matrix.
CENTRAL_COMPOSITE is a reduced factorial algorithm that selects design points on the axis and
adds the "star points", i.e. the corners of the design space.
BOX_BEHNKEN is a reduced factorial algorithm that selects the points on the planes of the design
space.
USER1, USER2 and USER3 are used to invoke user-written code for generating tables.
A comparison of how many runs are required for a given algorithm is shown in the following table.
nDV nLv FF BB CC
--- --- -- -- --
2 3 9 5 9
2 5 25 9 17
2 7 49 13 25
3 3 27 13 15
3 5 125 49 29
8 Adams View Commands
optimize fit_response_surface
3 7 343 109 43
4 3 81 33 25
4 5 625 257 49
4 7 2401 865 73
5 3 243 81 43
5 5 3125 1281 85
5 7 16807 6481 127
6 3 729 193 77
6 5 15625 6145 153
6 7 117649 46657 229
7 3 2187 449 143
7 5 78125 28673 285
7 7 823543 326593 427
where:
optimize fit_response_surface
The FIT_RESPONSE_SURFACE command fits a surface of arbitrary polynomial degree to a given set of
result set components. Usually, the dependent data is the response component produced by a DOE, and the
independent data values are the design variable values used to compute the response.
optimize 9
optimize fit_response_surface
The polynomial data can be stored in a new result set, and also written to a file (say, for use by a spreadsheet
program).
Format:
optimize fit_response_surface
result_set_name= result_set name
dependent_variable= existing component
independent_variables= existing component
polynomial_degrees= integer
file_name= string
Description:
DEPENDENT_VARIABLE =
F(INDEPENDENT_VARIABLES)
Extended Definition:
1. A result set is a storage place for any kind of numeric tabular data. A result set can contain "n"
components. A component is most usually setup to contain vector components of values like
displacement, velocity, acceleration, force, etc. However, in this case a result set is completely general
and can store any numeric value in a component with only few exceptions. These exceptions are those
cases when the user asks the system to mix incompatible value types like complex in the same
component as real values.
This is a required parameter and the result set name given must be within a particular analysis. A
result set name may be arbitrarily long and a combination of letters of the alphabet and numbers may
be used. The leading character must be a letter.
Result Sets are associated with an analysis run and can be identified as such. A result set associated
with request 101 from an analysis named "test" is referred to as .test.req101.
Several predefined result set types are created when Adams request and result files are read into Adams
View. For example, assume you have read a request file called "SHIFT.REQ", and this request file
contains the result information for the Adams statement REQUEST/1. The result set will be named
REQ1, and may also be referred to relative to the analysis name .shift.req1. If you wish to refer to a
component in the same result set, the full name for the X component would be .SHIFT.REQ1.X.
The following table illustrates the default names assigned to result sets and result set components read
from request (.REQ) and results (.RES) files.
Result set type Result set name Component Name File that result is from
Part AR xxx x y z e le2e3 e4mag vx vy vz Result file
wx wy wz acc
diff diffxxx q dq results file
joint JOIxxx fx fy fz tx ty tzfmag tmag results file
jprim JPRxxx.. fx fy fz tx ty tz fmag tmag results file
motion MOTxxx... fx fy fz tx ty tz fmag tmag results file
gear GEAxxx.. fx fy fz results file
coupler COUxxx... fx1 fy1 fz1 tx1 ty1 tz1 results file
fmag1 tmag1
sforce SFOxxx... fx fy fz tx ty tz fmag tmag results file
spring damp SPRxxx.. fx fy fz tx ty tz fmag tmag results file
Bushing BUSxxx... fx fy fz tx ty tz fmag tmag results file
Beam BEAxxx... fx fy fz tx ty tz fmag tmag results file
Field FIExxx... fx fy fz tx ty tz fmag tmag results file
User Request UREQxxx... x y z r1 r2 r3 mag amag Request file
Ucon Not implemented+
request REQxxx...
optimize 11
optimize fit_response_surface
2. For example, if you have specified two independent variables, you would enter
POLYNOMIAL_DEGREES=1,1 for a linear approximation. For a polynomial fit which is cubic in
the first variable and linear in the second, you would enter POLYNOMIAL_DEGREES=3,1.
3. The proper extension for the file_name parameter is the default but can be overridden by simply
supplying a different extension.
You do not need to enclose the file name in quotes if it only contains alpha-numeric characters and
starts with a letter. If you want to include other characters, such as a '.' for an extension or '/' or '[]'
for directory paths, you must enclose the name in quotes.
12 Adams View Commands
optimize fit_response_surface
output_control
output_control attributes femdata
Allows you to change the color and visibility of a femdata icon.
Format:
output_control attributes femdata
femdata_name= .model.femdata_name
visibility = on/off
color = color_string
active= on/off
dependents_active = on/off
Example:
output_control attributes femdata &
mrequest_name = .test.link_forces &
visibility = on &
color = PINK &
active = on &
dependents_active = off
Description:
Extended Definition:
1. You identify a femdata by typing its name. If you created the femdata by reading an Adams data set,
the femdata name is the letters FEM followed by the Adams data set femdata ID number. For
example, the name of Adams FEM/101 is FEM101. If you created the femdata during preprocessing,
you will have given it a name at that time.
If a femdata is available by default, you may identify it by entering only its name. If it is not, you must
enter its full name. To identify a femdata under a different model, for instance, you may need to enter
the model name as well. For example, you may specify femdata 'link_forces' from model 'test' by
entering ".test.link_forces". You must separate multiple femdata names by commas.
2. The visibility parameter is used to control whether graphic entities, such as markers, joints, and parts,
are to be drawn in an Adams View viewport.
The legal values for this parameter are: ON, OFF, and TOGGLE. ON will make the desired entity
visible. OFF will make the desired entity invisible. TOGGLE will take the current state of an entity’s
visibility and reverse it.
3. Specifies the color the modeling entity should be drawn in. Adams View allows you to specify the
following colors for modeling entities: BLACK, WHITE, RED, GREEN, BLUE, CYAN,
MAGENTA, YELLOW, and NO_COLOR. Specifying 'NO_COLOR' for a modeling entity,
instructs Adams View to use the default color for this entity, if there is no color present in its parent
modeling entity.
Example 1
.model -------------------------NO_COLOR
.part ---------------------- RED
.geometry(circle) ------- NO_COLOR
The circle will be RED.
Example 2
.model -------------------------NO_COLOR
.part ---------------------- RED
.geometry(circle) ------- BLUE
If a parent modeling entity has a color previously specified, that color takes precedence. Adams View
will issue a warning message about color precedence. The circle will be RED.
Example 3
.model -------------------------NO_COLOR
output_control 3
output_control attributes mrequest
.part---------------------- NO_COLOR
.geometry(circle) ------- BLUE
The circle will be BLUE.
4. When you set ACTIVE=NO, that element is written to the data set as a comment. When you set the
ACTIVE attribute on an object, you are also setting it on the children of the object. If you set
ACTIVE=NO on a part, but wish for a marker on that part to be on, then you must explicitly set
ACTIVE=YES on the marker, after setting activation on the part.
5. The DEPENDENTS_ACTIVE parameter acts in the same fashion, but sets the ACTIVE attribute
for the dependents, all the way down the dependency chain. For example, if you execute the following
command:
PART ATTRIBUTES PART=PAR1 DEPENDENTS_ACTIVE=NO
Where PAR1 has a marker MAR1 which is the I marker of a joint JOI1 (which has a J marker MAR2),
then JOI1 will be deactivated. Also, if the joint JOI1 is referenced in a request function, or if the I
marker is referenced by a request, then the request will be deactivated. Propagation of activation status
through groups is as if each element were to have its activation status changed indvidually.
Elements affected are:
• Group
• Part
• Differential Equation
• Marker
• Geometry
• Constraints
• Forces
• Data Elements
• Output Control
Tips:
1. If you type a "?", Adams View will list the mrequests available by default.
Format:
output_control attributes mrequest
mrequest_name= .model.mrequest_name
visibility= on/off
color= color_string
4 Adams View Commands
output_control attributes mrequest
Example:
output_control attributes mrequest &
mrequest_name= .model.m01 &
visibility = on &
color = PINK &
active = on &
dependents_active = off
Description:
Extended Definition:
1. You may identify an mrequest by typing its name. If you created the mrequest by reading an Adams
data set or graphics file, the mrequest name is the letters MRE followed by the Adams data set
mrequest ID number. For example, the name of Adams MREQ/101 is MRE101F. If you created the
mrequest during preprocessing, you will have given it a name at that time. If a mrequest is available
output_control 5
output_control attributes mrequest
by default, you may identify it by entering only its name. If it is not, you must enter its full name. To
identify an mrequest under another analysis, for instance, you may need to enter the analysis name as
well. For example, you may specify mrequest 101 from the analysis named test by entering
".test.mre101".
2. The visibility parameter is used to control whether graphic entities, such as markers, joints, and parts,
are to be drawn in an Adams View viewport.
The legal values for this parameter are: ON, OFF, and TOGGLE. ON will make the desired entity
visible. OFF will make the desired entity invisible. TOGGLE will take the current state of an entity’s
visibility and reverse it.
3. Specifies the color the modeling entity should be drawn in. Adams View allows you to specify the
following colors for modeling entities: BLACK, WHITE, RED, GREEN, BLUE, CYAN,
MAGENTA, YELLOW, and NO_COLOR. Specifying 'NO_COLOR' for a modeling entity,
instructs Adams View to use the default color for this entity, if there is no color present in its parent
modeling entity.
Example 1
.model -------------------------NO_COLOR
.part ---------------------- RED
.geometry(circle) ------- NO_COLOR
The circle will be RED.
Example 2
.model -------------------------NO_COLOR
.part ---------------------- RED
.geometry(circle) ------- BLUE
If a parent modeling entity has a color previously specified, that color takes precedence. Adams View
will issue a warning message about color precedence. The circle will be RED.
Example 3
.model -------------------------NO_COLOR
.part---------------------- NO_COLOR
.geometry(circle) ------- BLUE
The circle will be BLUE.
4. When you set ACTIVE=NO, that element is written to the data set as a comment. When you set the
ACTIVE attribute on an object, you are also setting it on the children of the object. If you set
ACTIVE=NO on a part, but wish for a marker on that part to be on, then you must explicitly set
ACTIVE=YES on the marker, after setting activation on the part.
5. The DEPENDENTS_ACTIVE parameter acts in the same fashion, but sets the ACTIVE attribute
for the dependents, all the way down the dependency chain. For example, if you execute the following
command:
PART ATTRIBUTES PART=PAR1 DEPENDENTS_ACTIVE=NO
Where PAR1 has a marker MAR1 which is the I marker of a joint JOI1 (which has a J marker MAR2),
then JOI1 will be deactivated. Also, if the joint JOI1 is referenced in a request function, or if the I
marker is referenced by a request, then the request will be deactivated. Propagation of activation status
through groups is as if each element were to have its activation status changed indvidually.
6 Adams View Commands
output_control attributes request
Tips:
1. If you type a "?", Adams View will list the mrequests available by default.
Format:
output_control attributes request
request_name = .model.request_name
visibility = on/off
color = color_string
active = on/off
dependents_active = on/off
Example:
output_control attributes request &
request_name = .model.m01 &
visibility = on &
color = PINK &
active = on &
dependents_active = off
output_control 7
output_control attributes request
Description:
Extended Definition:
1. You may identify a request by typing its name. If you created the request by reading an Adams data
set or graphics file, the request name is the letters MRE followed by the Adams data set request ID
number. For example, the name of Adams MREQ/101 is MRE101. If you created the request during
preprocessing, you will have given it a name at that time. If a request is available by default, you may
identify it by entering only its name. If it is not, you must enter its full name. To identify a request
under another analysis, for instance, you may need to enter the analysis name as well. For example,
you may specify request 101 from the analysis named test by entering ".test.req101".
2. The visibility parameter is used to control whether graphic entities, such as markers, joints, and parts,
are to be drawn in an Adams View viewport. The legal values for this parameter are: ON, OFF, and
TOGGLE. ON will make the desired entity visible. OFF will make the desired entity invisible.
TOGGLE will take the current state of an entity’s visibility and reverse it.
3. Specifies the color the modeling entity should be drawn in. Adams View allows you to specify the
following colors for modeling entities: BLACK, WHITE, RED, GREEN, BLUE, CYAN,
MAGENTA, YELLOW, and NO_COLOR. Specifying 'NO_COLOR' for a modeling entity,
instructs Adams View to use the default color for this entity, if there is no color present in its parent
modeling entity.
Example 1
.model -------------------------NO_COLOR
.part ---------------------- RED
.geometry(circle) ------- NO_COLOR
The circle will be RED.
Example 2
8 Adams View Commands
output_control copy femdata
.model -------------------------NO_COLOR
.part ---------------------- RED
.geometry(circle) ------- BLUE
If a parent modeling entity has a color previously specified, that color takes precedence. Adams View
will issue a warning message about color precedence. The circle will be RED.
Example 3
.model -------------------------NO_COLOR
.part---------------------- NO_COLOR
.geometry(circle) ------- BLUE
The circle will be BLUE.
4. When you set ACTIVE=NO, that element is written to the data set as a comment. When you set the
ACTIVE attribute on an object, you are also setting it on the children of the object. If you set
ACTIVE=NO on a part, but wish for a marker on that part to be on, then you must explicitly set
ACTIVE=YES on the marker, after setting activation on the part.
5. The DEPENDENTS_ACTIVE parameter acts in the same fashion, but sets the ACTIVE attribute
for the dependents, all the way down the dependency chain. For example, if you execute the following
command:
PART ATTRIBUTES PART=PAR1 DEPENDENTS_ACTIVE=NO
Where PAR1 has a marker MAR1 which is the I marker of a joint JOI1 (which has a J marker MAR2),
then JOI1 will be deactivated. Also, if the joint JOI1 is referenced in a request function, or if the I
marker is referenced by a request, then the request will be deactivated. Propagation of activation status
through groups is as if each element were to have its activation status changed indvidually.
Elements affected are:
• Group
• Part
• Differential Equation
• Marker
• Geometry
• Constraints
• Forces
• Data Elements
• Output Control
Tips:
1. If you type a "?", Adams View will list the requests available by default.
Format:
output_control copy femdata
femdata_name = model_name.femdata_name
new_femdata_name = model.new_femdata_name
Example:
output_control copy femdata &
femdata_name = model_name.femdata1 &
new_femdata_name = model.femdata2
Description:
Extended Definition:
1. FEMDATA is used to produce a special data file containing all reaction forces and all applied forces
(except gravity) acting on each part. So that inertia forces can be calculated, this file also contains the
displacement, velocity, and acceleration of each part center of mass. You or your systems support
personnel can write a small program to convert this file into boundary condition input for a
commercial finite element program.
2. If you created the femdata by reading an Adams data set, the femdata name is the letters FEM
followed by the Adams data set femdata ID number. For example, the name of Adams FEM/101 is
FEM101. If you created the femdata during preprocessing, you will have given it a name at that time.
If a femdata is available by default, you may identify it by entering only its name. If it is not, you must
enter its full name. To identify a femdata under a different model, for instance, you may need to enter
the model name as well. For example, you may specify femdata 'link_forces' from model 'test' by
entering ".test.link_forces". You must separate multiple femdata names by commas.
3. Normally, entity names are composed of alphabetic, numeric, or '_' (underscore) characters, and start
with an alphabetic or '_' character. They may be of any length. By enclosing the name in double
quotes, you may use other printable characters, or start the name with a numeral. If a name contains
characters, or starts with a numeral, you must always quote the name when entering it. Note that you
can specify the parentage of an entity (e.g. what part "owns" a marker or a geometry element) when
you CREATE it by changing the name. If you enter just the entity name, then the default parent will
10 Adams View Commands
output_control copy mrequest
be assigned by Adams View. If you type in the full name, then you may override the default parent.
In most cases, when creating an entity, Adams View will provide a default name. The default name
that Adams View provides will specify the parentage that it has assumed. You may, of course, delete
this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
Cautions:
1. Adams View will not allow you to have two femdatas with the same name, so you must provide a
unique name for the new_femdata_name parameter
Tips:
1. If you type a "?", Adams View will list the femdatas available by default.
Format:
output_control copy mrequest
mrequest_name = string
new_mrequest_name = string
Example:
output_control copy mrequest &
mrequest_name = mrequest1 &
new_mrequest_name = mrequest2
Description:
Extended Definition:
1. The MREQUEST indicates multiple sets of data you want Adams to output. You can request sets of
displacements, velocities, accelerations, or forces for system elements such as parts, joints, joint
primitives, or applied forces in your system.
Except for rotational displacements, all the information types are vectors. For example, joint velocities
are actually translational and rotational velocity difference vectors of the joint I marker with respect
to the joint J marker. Joint accelerations are actually translational and rotational acceleration
difference vectors of the joint I marker with respect to the joint J marker. In other words, if V is a
translational vector quantity and W is a rotational vector quantity,
Vij = Vi - Vj,
and Wij = Wi - Wj
V'ij = V'i - V'j
and W'ij = W'i - W'j
Because two markers (I and J) define each joint, joint primitive, and applied force, Adams measures
the request information for one of of these at the I marker with respect to the J marker. Because a
center-of-mass marker is the only marker that is necessary to define a part, Adams measures the
request information for a part at its center-of-mass marker with respect to ground or with respect to
an alternative marker you specify. Regardless of the system information you want, you can use a
reference marker (R_MARKER_NAME) to resolve the component information into any coordinate
system you wish. Note that the units for rotational displacement data in the request output of the
tabular output file default to degrees. The units for all other angular output data default to radians.
2. You may identify a mrequest by typing its name. If you created the mrequest by reading an Adams
data set or graphics file, the mrequest name is the letters MRE followed by the Adams data set
mrequest ID number. For example, the name of Adams MREQ/101 is MRE101. If you created the
mrequest during preprocessing, you will have given it a name at that time. If an mrequest is available
by default, you may identify it by entering only its name. If it is not, you must enter its full name. To
identify a mrequest under another analysis, for instance, you may need to enter the analysis name as
well. For example, you may specify mrequest 101 from the analysis named test by entering
".test.mre101". You must separate multiple mrequest names by commas.
3. Normally, entity names are composed of alphabetic, numeric, or '_' (underscore) characters, and start
with an alphabetic or '_' character. They may be of any length.
By enclosing the name in double quotes, you may use other printable characters, or start the name
with a numeral. If a name contains characters, or starts with a numeral, you must always quote the
name when entering it. Note that you can specify the parentage of an entity (e.g. what part "owns" a
marker or a geometry element) when you CREATE it by changing the name. If you enter just the
entity name, then the default parent will be assigned by Adams View. If you type in the full name,
then you may override the default parent. In most cases, when creating an entity, Adams View will
provide a default name. The default name that Adams View provides will specify the parentage that
it has assumed. You may, of course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
12 Adams View Commands
output_control copy request
Cautions:
1. Adams View will not allow you to have two mrequests with the same name, so you must provide a
unique name for the new request to be created.
Tips:
1. If you type a "?", Adams View will list the mrequests available by default.
Format:
output_control copy request
request_name = string
new_request_name = string
Example:
output_control copy mrequest &
mrequest_name = mrequest1 &
new_mrequest_name = mrequest2
Description:
Extended Definition:
1. A REQUEST indicates a set of data you want Adams to output. Using a REQUEST, you can output
a set of displacements, velocities, forces, or accelerations, with respect to markers in your system; or
you can use the user-written subroutine REQSUB to define nonstandard output. Adams calculates
all data in the ground reference frame, although you can specify that the data be resolved in another
reference frame. This is of no importance in the case of force data, but it can be very important in the
case of displacements and time derivatives, that is, velocities and accelerations. Except for rotational
displacements, all the information types are vectors. For example, joint velocities are actually
output_control 13
output_control copy request
translational and rotational velocity difference vectors of the joint I marker with respect to the joint J
marker. Joint accelerations are actually translational and rotational acceleration difference vectors of
the joint I marker with respect to the joint J marker. In other words, if V is a translational vector
quantity and W is an rotational vector quantity,
Vij = Vi - Vj,
and Wij = Wi - Wj
V'ij = V'i - V'j
and W'ij = W'i - W'j
Note that the units for rotational displacement data in the request output of the tabular output file
default to degrees. The units for all other angular output data default to radians.
2. If you created the request by reading an Adams data set or graphics file, the request name is the letters
MRE followed by the Adams data set request ID number. For example, the name of Adams
MREQ/101 is MRE101. If you created the request during preprocessing, you will have given it a
name at that time. If a request is available by default, you may identify it by entering only its name.
If it is not, you must enter its full name. To identify a request under another analysis, for instance,
you may need to enter the analysis name as well. For example, you may specify request 101 from the
analysis named test by entering "/test/req101". You must separate multiple request names by
commas.
3. Normally, entity names are composed of alphabetic, numeric, or '_' (underscore) characters, and start
with an alphabetic or '_' character. They may be of any length.
By enclosing the name in double quotes, you may use other printable characters, or start the name
with a numeral. If a name contains characters, or starts with a numeral, you must always quote the
name when entering it. Note that you can specify the parentage of an entity (e.g. what part "owns" a
marker or a geometry element) when you CREATE it by changing the name. If you enter just the
entity name, then the default parent will be assigned by Adams View. If you type in the full name,
then you may override the default parent. In most cases, when creating an entity, Adams View will
provide a default name. The default name that Adams View provides will specify the parentage that
it has assumed. You may, or course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it
Cautions:
1. Adams View will not allow you to have two requests with the same name, so you must provide a
unique name for the new request to be created.
Tips:
1. If you type a "?", Adams View will list the requests available by default.
14 Adams View Commands
output_control create femdata
Format:
output_control create femdata
femdata_name = .model_name.femdata_name
adams_id = geom._id
output_type = loads/loads_on_flex/,odal_deformation/stress/strain
r_marker_name = .marker_name
no_inertia = yes/no
peak_slice= fx/fy/fz/fmag/gmag/tx/ty/tz/tmag/none/all
flex_body= .model_name.flexible_body_name
datum = integer_number
nodes = integer_number
hotspots = integer_number
radius = real _number
criterion = von_mises/max_principle/min_principle/max_shear/normal_x/normal_y/no
rmal_z/shear_xy/shear_yz,shear_xz
file_name = file name
start = real_number
end = real_number
skip = integer_number
Example:
Output_control create femdata &
femdata_name = fem_data_1 &
adams_id = 100 &
output_type = stress &
r_marker_name = .marker_name &
flex_body = 101 &
hotspots = 7 &
radius = 0.5 &
output_control 15
output_control create femdata
These statements create a text file named hotspots_101.tab containing hot spot information for the flexible
body 101. Seven hot spots with a radius of 0.5 based on maximum principal stress are requested. The names
of the DAC files are given the prefix “hotspots_101” as specified in the file_name format.
16 Adams View Commands
output_control create femdata
Description:
in and applied forces except gravity) acting on the specified body and,
optionally, inertial forces of the specified body (angular velocity and
acceleration, including effects of gravity) as a function of time. Load
data will be output in the simulation set of units.
Modal Deformation - Outputs modal deformations as a function of
time of the specified flexible body. Adams View will only export
coordinates of the active modes in the simulation.
Nodal Deformation - Outputs nodal deformations as a function of
time of the specified flexible. Adams View writes the deformations in
the simulation set of units.
Strain - Outputs strain information if strain modes are available in the
modal neutral file (MNF) of the specified flexible body and an Adams
Durability license is available. Adams Durability outputs all six
components of strain (normal-X, normal-Y, normal-Z, shear-XY,
shear-YZ, shear-ZX). It outputs strains in the basic FEA coordinate
system of the flexible body except where specified below.
Stress - Outputs stress information if modal stresses are available in
the MNF of the flexible body and an Adams Durability license is
available. Adams Durability outputs all six components of stress
(normal-X, normal-Y, normal-Z, shear-XY, shear-YZ, shear-ZX). It
outputs stresses in the simulation set of units in the basic FEA
coordinate system of the flexible body except where specified below.
r_marker_name String Specifies the rigid body marker to be the reference coordinate system to output
loads. Because Adams Solver resolves all loads acting on the rigid body in the
coordinate system of the specified marker, the marker should represent the
FEA basic coordinate system of the part's finite element (FE) model.
output_control 17
output_control create femdata
Extended Definition:
1. If you do not specify a node list, Adams View exports nodal data at each attachment point of the
flexible body. Adams Solver issues a warning if a node ID is specified that does not belong to the
flexible body.
2. Adams Solver computes all nodal displacements relative to the datum node ID. If you do not specify
a datum node, Adams Solver generates an arbitrary relative set of nodal displacements. It displays a
warning message if the specified node does not belong to the flexible body.
3. You can use the FILE_NAME argument to specify the directory, name, and/or extension
(directory/name.extension) for the output file. If you do not specify a directory, FEMDATA creates
all its output files except DAC files in the current working directory. Because several DAC files are
typically generated for a FEMDATA statement, FEMDATA creates them in a separate directory
named after the body. It creates this directory in the current working directory if it does not exist.
If a file name is not specified in the FILE argument, default file names are assigned according to the
type of FEM data and file format (which is specified in the OUTPUT statement) as shown in the
table below.
FEMDATA Default File Names and Extensions
Caution:
1. Using FEMDATA to output loads encounters the same limitations as exporting FEA Loads in Adams
View.
2. Note that all FEMDATA are output in the Adams modeling units. This causes a problem when the
Adams units are inconsistent with those used in the finite element model, and the data that is output
will be included in a subsequent finite element analysis.
For example, when outputting FEMDATA of type LOADS to ANSYS or MSC Nastran for inclusion
in the FE analysis, the Adams and FE modeling units must be consistent. This is also true when
outputting FEMDATA of type NODAL_DEFORMATION when the OUTPUT format is ANSYS
or MSC Nastran and the data will be used as input to the FE analysis.
20 Adams View Commands
output_control create mrequest
3. In the case of outputting FEMDATA of type MODAL_DEFORMATION, the only concern for
units is when MSC Nastran (or PUNCH) has been specified as the OUTPUT format. This is because
rigid body motion is included in the output file along with the modal coordinates. By definition,
modal coordinates are unitless, so the modal stresses (or strains) will be recovered correctly in MSC
Nastran irregardless of unit settings. However, for the overall displacement of the component to be
correctly recovered, the unit of length must be consistent between models.
Format:
output_control create mrequest
mrequest_name = .model_name.mrequest_name
adams_id = geom_id
j_marker_name = marker_name
r_marker_name = marker_name
comment = string
output_type = displacement/velocity/acceleration/force
part_name = .model.part_name
joint_name = .model.joint_name
jprim_name = .model.primitive_joint_name
force_name = .model.existing_force_name
Example:
output_control create mrequest &
mrequest_name = mrequest__1 &
comment = 'sample output control creation' &
part_name = part_2 &
output_type= displacement
This MREQUEST statement requests displacement data for Part 2. For the part, Adams Solver
(FORTRAN) outputs eight headings and eight columns of data to the tabular output file. The same
information also goes to the request file. Because this statement does not supply arguments J and RM, Adams
Solver (FORTRAN) measures the displacements with respect to the ground coordinate system (GCS), and
resolves the displacements in the global coordinate system.
output_control 21
output_control create mrequest
Description:
Extended Definition:
1. The MREQUEST statement indicates multiple sets of data you want Adams Solver (FORTRAN) to
write in the tabular output file and request file. You can request sets of displacements, velocities,
accelerations, or forces for system elements such as parts, joints, joint primitives, or applied forces in
the system.
2. Acceleration -Generates acceleration requests that output the accelerations for the markers that define
part centers of mass, joints, joint primitives, or applied forces. This argument generates nine headings
and nine columns of output for each part, joint, joint primitive, or applied force. The columns in the
Tabular Output file include the time (TIME), the translational magnitude (ACCM), the x
component (ACCX), the y component (ACCY) the z component (ACCZ), the rotational magnitude
(WDTM), the rotational x component (WDTX), the rotational y component (WDTY), and the
rotational z component (WDTZ). The same data without the magnitude are written in the Request
file.
output_control 23
output_control create mrequest
id1 [ ,...,id30]
APPFORS =
ALL
Indicates that you want to output displacements, velocities, accelerations, or forces for as many as
thirty BEAM, BUSHING, FIELD, GFORCE, NFORCE, SFORCE, SPRINGDAMPER,
VFORCE, and VTORQUE statements or for all of these statements. For action-reaction forces,
Displacement- Generates displacement requests that output the displacements for the markers that
define part centers of mass, joints, joint primitives, or applied forces. This argument generates eight
headings and eight columns of output for each part, joint, joint primitive, or applied force. The
columns in the tabular output file include the time (TIME), the translational magnitude (MAG), the
x component (X), the y component (Y), the z component (Z), the psi angle (PSI), the theta angle
(THETA), and the phi angle (PHI). The same data without the magnitude are written in the Request
file. For joints, joint primitives, and applied forces, the psi, theta, and phi angles are the Euler angle
displacements of the I marker with respect to the J marker. For parts, the psi, theta, and phi angles
are the Euler rotations of the part center-of-mass marker with respect to the ground coordinate system
(GCS) or with respect to a J marker you specify.
Force -Generates force requests that output the forces for the markers that define joints, joint
primitives, or applied forces. This argument generates nine headings and nine columns of output for
each joint, joint primitive, or applied force. The columns in the Tabular Output file include the time
(TIME), the translational force magnitude (FM), the translational x component (FX), the
translational y component (FY), the translational z component (FZ), the rotational force magnitude
(TM), the rotational x component (TX), the rotational y component (TY), and the rotational z
component (TZ). The same data without the magnitudes are written to the Request file. The FORCE
argument cannot be used with the PARTS argument.
3. Adams Solver (FORTRAN) measures the force that the J marker applies on the I marker. For action-
only forces, Adams Solver (FORTRAN) measures the external forces acting on the I marker. If an
MREQUEST statement is issued with an APPFORS argument that requests information for an
identifier that is used for two or more applied force statements, Adams Solver (FORTRAN) outputs
information for the first applied force statement with that identifier. To avoid problems, you may
want to use a different identifier for each applied force statement in the dataset.
Adams Solver (FORTRAN) calculates all time derivatives in the ground coordinate system (GCS),
although you can specify that the data be resolved in another reference frame. This is of no
importance in the case of force data, but it can be very important in the case of velocities and
accelerations. For example, joint velocities are actually translational and rotational velocity difference
vectors of the joint I marker and the joint J marker in ground. Joint accelerations are actually
translational and rotational acceleration difference vectors of the joint I marker in ground and the
joint J marker in ground.
24 Adams View Commands
output_control create mrequest
4. Because two markers (I and J) define each joint, joint primitive, and applied force, Adams Solver
(FORTRAN) measures the request information for one of these at the I marker with respect to the J
marker. Because a center-of-mass marker is the only marker that is necessary to define a part, Adams
Solver (FORTRAN) measures the request information for a part at its center-of-mass marker with
respect to ground or with respect to an alternative marker you specify. Regardless of the system
information you want, a reference marker (RM) can be used to resolve the component information
into any coordinate system you wish.
Cautions:
1. Note that the units for rotational displacement data in the request output of the tabular output file
default to degrees. The units for all other angular output data default to radians.
2. For any argument =ALL, Adams Solver (FORTRAN) ignores any invalid selections.
3. Applied forces and torques are those generated by beams, bushings, fields, general forces
(GFORCEs), n-component forces (NFORCEs), single-component forces (SFORCEs),
springdampers (SPRINGDAMPERs), vector forces (VFORCEs), and vector torques (VTORQUEs).
Adams Solver (FORTRAN) outputs the applied forces and torques acting at the request I marker
(which may be either the applied force I marker or the applied force J marker).
The magnitude and point of force application on the part containing the applied force J marker varies
with the type and source of the force.
• For springdampers, action-reaction single-component forces, general forces, vector forces, and
vector torques, the forces and torques acting at the J marker are equal and opposite to the forces
and torques acting at the I marker.
• For action-only single-component forces, no force or torque acts at the applied force J marker.
• For beams, fields, bushings, and multi-point forces, the forces acting at the applied force J marker
are equal and opposite to the forces acting at the applied force I marker.
4. As long as the applied force I marker and the applied force J marker are coincident, the torques acting
at the applied force J marker are equal and opposite to the torques acting at the applied force I marker.
If there is a finite separation distance between the I and J markers, the torques acting at the applied
force J marker are not necessarily opposite or equal, to the torques acting at the applied force I marker.
5. Reaction forces and torques are those generated by constraint-inducing elements. For revolute,
spherical, and universal joints and for atpoint, orientation, parallel axes, and perpendicular joint
primitives, Adams Solver (FORTRAN) outputs the reaction forces and torques acting at the request
I marker (which may be either the constraint I marker or the constraint J marker). Depending on the
type of constraint, some or all of the torques acting at the I marker are zero. The force and torque
acting at the request J marker are equal and opposite to the force and torque acting at the request I
marker.
6. Determining reaction forces-and torques for cylindrical, planar, rack-and-pinion, screw, and
translational joints and for inline and inplane joint primitives is more complex. If the request I marker
corresponds to the constraint I marker, then Adams Solver (FORTRAN) outputs the force and
torque acting at the constraint I marker. If the request I marker corresponds to the constraint J
marker, then Adams Solver (FORTRAN) outputs the force and torque acting at the instantaneous
location of the constraint I marker, but on the part containing the constraint J marker. The force
output_control 25
output_control create request
translated to the constraint J marker is the same as computed above. If the I and J markers are
coincident, the torque translated to the constraint J marker is the same as computed above. But if
there is a finite separation between the I and J markers, the torque translated to the constraint J marker
is different from the one computed above (because of the moments contributed by the reaction
forces).
7. The MREQUEST statement is not scheduled to be supported in Adams Solver (C++). You are
encouraged to migrate away from this statement and use the REQUEST statement instead.
Format:
output_control create &
request_name = .model_name.request_name&
adams_id= geom._id&
comment = string&
component_names = string&
component_units = string&
component_labels = string&
results_name = string&
title = string&
26 Adams View Commands
output_control create request
Description:
Examples:
comment=the_first_request
comment="Displacement of wheel
center 1 wrt ground"
User_function Real Specifies up to 30 values for Adams to pass to a user-written
subroutine. See the Adams User's Manual for information
on writing user-written subroutines.
Title String Specifies any of the eight alphanumeric headings for
columns of request output in the request file.
Note: Enter function expressions in the boxes f2 , f3 , f4 , f6 , f7 , and f8 . Do not use f1 and f5 . Adams
Solver uses them to hold magnitudes for the three functions that follow. You do not need to
enter a function in every text box.
F1 Function Specifies the function expression that is the first component
of the request that is being created or modified. The f1
parameter allows you to generate user-defined output
variables and have them reported by Adams to the request
file.
F2 Function Specifies the function expression that is the second
component of the request that is being created or modified.
The f2 parameter allows you to generate user-defined
output variables and have them reported by Adams to the
request file.
F3 Function Specifies the function expression that is the third
component of the request that is being created or modified.
The f3 parameter allows you to generate user-defined
output variables and have them reported by Adams to the
request file.
28 Adams View Commands
output_control create request
Extended Definition:
1. Normally, request names are composed of alphabetic, numeric, or '_' (underscore) characters, and
start with an alphabetic or '_' character. They may be of any length.
By enclosing the name in double quotes, you may use other printable characters, or start the name
with a numeral. If a name contains characters, or starts with a numeral, you must always quote the
name when entering it.
Note that you can specify the parentage of an entity (e.g. what part "owns" a marker or a geometry
element) when you CREATE it by changing the name. If you enter just the entity name, then the
default parent will be assigned by Adams View. If you type in the full name, then you may override
the default parent. In most cases, when creating an entity, Adams View will provide a default name.
The default name that Adams View provides will specify the parentage that it has assumed. You may,
of course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
2. When you use the FILE ADAMS_DATA_SET WRITE command, Adams View writes an Adams
data file for your model. Adams requires that each modeling element be identified by a unique
integer identifier. If you use this parameter to specify a non-zero identifier, Adams View will use it
in the corresponding statement in the Adams data file.
You may also enter zero as an identifier, either explicitly or by default. The next time you write an
Adams file, Adams View will replace the zero with a unique, internally-generated identifier. Adams
View will permanently store this identifier with the element just as if you had entered it yourself.
Normally, you would let all identifiers default to zero, and Adams View would generate the identifiers
for you. You are never required to enter a non-zero identifier. You only need to specify it if, for some
reason, you wish to control the Adams file output.
3. You may choose one of the following values for the output_type.
30 Adams View Commands
output_control create request
a. DISPLACEMENT
Adams outputs the displacement of the I marker with respect to the J marker. This argument
generates eight headings and eight columns of output. The columns include the time (Time), the
translational magnitude (Mag), the x component (X), the y component (Y), the z component (Z),
the psi angle (Psi), the theta angle (Theta), and the phi angle (Phi).
The psi, theta, and phi angles are the Euler angle displacements of the I marker with respect to
the J marker. Adams calculates this displacement data in the global coordinate system. If you
specify R_MARKER_NAME, Adams resolves the translational x component, the translational y
component, and the translational z component in the coordinate system of the R marker. The R
marker does not affect psi, theta, and phi.
If you enter the 'OUTPUT_CONTROL SET OUTPUT YPR=ON' command, psi, theta, and
phi rotations become yaw, pitch, and roll rotations.
Rotational displacement information differs from all other standard output. Whether this
information is in psi, theta, and phi coordinates or in yaw, pitch, and roll coordinates, the rotation
sequence is not a vector. As a result, Adams outputs no magnitude column. In addition, the
sequence of coordinates is independent of any frame external to the I and the J markers.
Therefore, the R_MARKER_NAME parameter has no effect on the angular coordinates.
b. VELOCITY
Adams outputs the velocity of the I marker with respect to the J marker. This argument generates
nine headings and nine columns of data for velocity. The nine columns include the time (Time),
the translational magnitude (Vm), the translational x component (Vx), the translational y
component (Vy), the translational z component (Vz), the rotational magnitude (Wm), the
rotational x component (Wx), the rotational y component (Wy), and the rotational z component
(Wz).
Adams calculates this velocity data (the first derivative of the displacement of the I marker with
respect to the J marker) in the global coordinate system. If you specify R_MARKER_NAME,
Adams resolves the translational x component, the translational y component, the translational z
component, the rotational x component, the rotational y component, and the rotational z
component in the coordinate system of the R marker.
c. ACCELERATION
Adams outputs the acceleration of the I marker with respect to the J marker. This argument
generates nine headings and nine columns of output. The columns include the time (Time), the
magnitude of translational acceleration (Accm), the translational x component (Accx), the
translational y component (Accy), the translational z component (Accz), the magnitude of
rotational acceleration (Wmdot), the rotational x component (Wxdot), the rotational y
component (Wydot), and the rotational z component (Wzdot). Adams calculates this
acceleration data (the second derivative of the displacement of the I marker with respect to the J
marker) in the global coordinate system. If you specify R_MARKER_NAME, Adams resolves
the translational x component, the translational y component, the translational z component, the
rotational x component, the rotational y component, and the rotational z component in the
coordinate system of the R marker.
output_control 31
output_control create request
d. FORCE
Adams outputs the force associated with the I and the J markers or, if only the I marker is given,
outputs the action-only forces on the I marker. When both, the I and the J markers are given,
Adams sums the forces on the I marker of those forces associated with the I and the J markers.
These forces can include both, applied forces (such as SPRINGDAMPERs and BUSHINGs) and
reaction forces from constraint elements (such as JOINTs and MOTIONs). When only the I
marker is given, Adams sums all of the action-only forces that are applied to the I marker. Adams
reports the components of the resulting vectors in the reference frame of the R marker if you
specify R_MARKER_NAME.
If you do not specify R_MARKER_NAME, Adams reports the components in the ground
reference frame. This argument generates nine columns of output. The columns include the
time, the translational force magnitude, the three components of the translational force, the
rotational force (torque) magnitude, and the three components of the torque.
Applied forces and torques are those generated by beams, bushings, fields, single-component
forces, and spring-dampers. Adams outputs the applied forces and torques acting at the request I
marker (which may be either the applied force I marker or the applied force J marker). The
magnitude and point of force application on the part containing the applied force J marker varies
according to the type and source of the force. For spring-dampers and action-reaction single-
component forces, the forces and torques acting at the J marker are equal and opposite to the
forces and torques acting at the I marker. For action-only single-component forces, there is no
force or torque acting at the applied force J marker. For beams, fields, and bushings, the forces
acting at the applied force J marker are equal and opposite to the forces acting at the applied force
I marker. As long as the applied force I marker and the applied force J marker are coincident, the
torques acting at the applied force J marker are equal and opposite to the torques acting at the
applied force I marker. If there is a finite separation between the I and the J markers, the torques
acting at the applied force J marker are opposite, but not equal, to the torques acting at the applied
force I marker.
Reaction forces and torques are those generated by constraint-inducing elements. For revolute,
spherical, and universal joints and for atpoint, orientation, parallel axes, and perpendicular joint
primitives, Adams outputs the reaction forces and torques acting at the request I marker (which
may be either the constraint I marker or the constraint J marker). The force and torque acting at
the request J marker are equal and opposite to the force and torque acting at the request I marker.
Depending on the type of constraint, some or all of the torques acting at the I marker are zero.
You must be careful when requesting a force with the I and the J markers reversed from those
specified in the force-producing element. Adams reports the force as if it were applied to the J
marker of the force-producing element. The translational force on the J marker of the force
element will be equal and opposite to the translational force on the I marker of the force element
if it is not action only. The force will be zero if it is action only. The torque on the J marker of
the force element has an extra component that may have significance. The torque is the sum of
two contributions. The first contribution is the opposite of the torque on the I marker. The
32 Adams View Commands
output_control create request
second contribution is due to the force acting across the separation between the I and the J
markers. If the force acts along the line of sight of the two markers, this extra torque will be zero.
To minimize misunderstandings, attach your REQUEST markers in the same order as the
markers on the force-producing element.
e. USER
Adams will output the values computed by the user-written subroutine REQSUB. If you choose
a USER request type, you must also supply the USER_FUNCTION parameter to define the
constants Adams will pass to the REQSUB.
4. If you are requesting displacement, velocity, or acceleration data, you must supply the J_marker.
Adams will measure the displacement, velocity, or acceleration of the I marker with respect to the J
marker.
If you are requesting force data for action-reaction forces, you must supply the J marker. Adams will
sum the forces on the I marker of those forces associated with the I and J markers.
If you are requesting force data for action-only forces, do not supply the parameter, J_marker. Adams
will sum all of the action-only forces applied to the I marker.
5. Each title heading can have as many as eight alphanumeric characters, and underscores. No leading
or internal white-space characters are allowed. The first character in each heading must be alphabetic.
You can use all alphanumeric characters. You cannot use the comma (,), the semicolon (;), the
ampersand (&), or the exclamation point (!). These are limitations dictated by the Adams data-set
parser. If you do not want to specify a title for a particular column, use two quotation marks with no
characters in between the quotations marks.
If you want to unset all of the titles, use only two quotation marks with no characters in between the
quotations marks ("").
Examples:
title = First, Second,"", DISP_X, Last, ANG_disp, AMAG, ""
6. To enter a function expression, you enter a series of quoted strings.
The easiest way to enter a function expression in Adams View is to use the text editor in combination
with the function builder. To invoke the text editor for entering a function expression, highlight the
function field and then either pick the "EDIT" button at the top of the panel or type a ^t (control-
t). The Adams View "function builder" is discussed below.
The syntactical correctness of a function expression can be investigated by using the "VERIFY"
button at the upper right side of the text editor. If there is a syntax error, a message is printed and the
cursor is put near the problem. Proper unit consistency is not checked during function expression
verification.
The remainder of this explanation will cover the components of FUNCTION expressions as
summarized in the following table.
output_control 33
output_control create request
Components Examples
Numbers FUNCTION = 1E2 + 3.4 + 6
Operators FUNCTION = 3*6/2 + 3 - 2**2
System constants FUNCTION = PI + 20
System variables FUNCTION = AX(1040, 2010)
Arithmetic IFs FUNCTION = IF(DX(3, 5): -1, 0, 1)
FORTRAN-77 functions FUNCTION = ABS(NUM) - 6
Blanks FUNCTION = 1 + 2
Continuation commas FUNCTION = 1 + 1 + 1 + 1 + 1 + 1, + 1 + 1 + 1 + 1 + 1 + 1 + 1
Adams functions FUNCTION = POLY(0, 0, 6.28)
NUMBERS
FUNCTION expressions can include integers, real numbers, and exponents. In other words, any
numbers that are legal in Adams are legal in a FUNCTION expression.
OPERATORS
• In a FUNCTION expression, Adams allows any of the operators **, *, /, +, and -. Adams executes
these operators according to the following precedence rules:
• From greatest to least, the operators have the following priorities. ** then * / then + -. In other
words, Adams executes exponentiation (**) before all other operators and executes
multiplication (*) and division (/) before addition (+) and subtraction (-).
• When a statement has operators of the same priority, Adams executes them from left to right.
• You can use parentheses to alter the precedence of operators.
For example, in the equation
FUNCTION = (1-TIME)*30/PI
Adams subtracts TIME from one before it performs multiplication and division.
SYSTEM CONSTANTS
You can include the following system constants in a FUNCTION expression:
The following example of a FUNCTION with a system constant multiplies the system constant PI
by the displacement of marker 10 with respect to marker 14:
FUNCTION = PI*DM(10,14)
34 Adams View Commands
output_control create request
BLANKS
A FUNCTION expression can contain any number of blank spaces. Five consecutive blank spaces in
an expression do not terminate input of the expression (by indicating that what follows is a comment)
as they do in an Adams statement. However, you should remember these two restrictions.
• You cannot put a blank space in the middle of a number.
• Adams does not accept a blank space between a function and its left bracket. (This is true for both
FORTRAN-77 functions and Adams functions.)
CONTINUATION COMMAS
You can use a comma to continue FUNCTION expressions. You can break the expression anywhere
except in the middle of a number, in the middle of a name, or between a function and its left bracket.
Put a continuation comma in column one of the following line before the rest of the expression. If
you break the expression at a comma that is part of the expression, you must use both the expression
comma and the continuation comma. You may use more than one continuation comma to extend
an expression over several lines.
FUNCTION BUILDER
The FUNCTIONS button at the right side of the Adams View text editor provides a means of
constructing an Adams function string. These functions are briefly described below. Upon picking
the FUNCTIONS button, you will be presented with the list of available functions in the "selection
window". After you select the desired function, a panel will appear with fields representing the
various parameters for the function. You will have full access to on-line help with this panel just like
you have with regular panels. After you have completed the panel and selected the DONE button on
the panel, the function string will be constructed and inserted at the current text cursor location in
the text edit window.
SYSTEM VARIABLES
A FUNCTION expression may access the current value of a system variable and use the value in
computations. These values are accessed through a collection of functions. The accessible system
variables include the following: Time, Mode, Displacements (Translational and Rotational),
Velocities (Translational and Rotational), Accelerations (Translational and Rotational), Forces
(Translational and Rotational), and User-defined variables. Invoke the text edit window and pick the
FUNCTIONS button to get a list of functions that can be accessed.
In general, you use a function character string (such as DM, VX, or FZ) and a list of values (e.g. i1,
i2, and i3) to access a system variable in an expression. For example, the value i1 may be the name of
the marker for which you want to measure a quantity (such as displacement, velocity, acceleration, or
force), i2 is the name of the marker with respect to which you want to measure the quantity, and i3
is the name of the marker you want to use to resolve the components of the quantity. If you do not
specify marker i3, Adams computes the result in the ground reference frame.
ARITHMETIC IFS
Arithmetic IFs allow you to conditionally define FUNCTION. The format for arithmetic IFs
follows.
IF (expression 1: expression 2, expression 3, expression 4)
output_control 35
output_control create request
Adams evaluates expression 1. If expression 1 is less than zero, the arithmetic IF equals expression 2;
if expression 1 equals zero, the arithmetic IF equals expression 3; and if expression 1 is greater than
zero, the arithmetic IF equals expression 4.
A FUNCTION expression with an arithmetic IF and its four expressions is below.
FUNCTION = 6 * IF(VR(10,31): 0 , 0 , 100)
If the radial velocity between markers 10 and 31 is less than or equal to zero, the value of the
FUNCTION expression is zero; but if the radial velocity between markers 10 and 31 is greater than
zero, the value of the FUNCTION expression is six hundred.
In some ways, you may treat IF as a variable. For example, you can place it anywhere in the expression.
In addition, you can nest arithmetic IFs nine levels deep.
FORTRAN-77 FUNCTIONS
You can use the FORTRAN functions ABS, ATAN, ATAN2, COS, EXP, LOG, LOG10, MIN,
MAX, SIN, SQRT, and TAN in your expression. For more information about these functions, see
a FORTRAN reference manual. Invoke the text edit window and pick the FUNCTIONS button to
get a list of functions that can be accessed.
Adams FUNCTIONS
In general, an Adams function evaluates a mathematical equation and returns a value to your
FUNCTION expression. he following table lists all the Adams functions and their purposes. Invoke
the text edit window and pick the FUNCTIONS button to get a list of functions that can be accessed.
Names Purposes
AKISPL Accesses the data in a SPLINE statement and uses the Akima cubic method
to fit a cubic curve(a spline) to the data.
BISTOP Evaluates a force restricting displacement of a part in two opposite
directions.
CHEBY Evaluates a Chebyshev polynomial
CUBSPL Accesses the data in a SPLINE statement and uses the traditional cubic
method to fit a cubic curve (a spline) to the data.
FORCOS Evaluates a Fourier cosine series
FORSIN Evaluates a Fourier sine series
HAVSIN Evaluates a haversine function.
IMPACT Evaluates a force restricting displacement of a part in one direction.
POLY Evaluates a polynomial.
SHF Evaluates a simple harmonic function.
STEP Approximates a step function with a cubic polynomial.
36 Adams View Commands
output_control delete femdata
7. Result sets are helpful if you want to group the output from multiple requests into a single results set.
For example, you might have several different requests measuring driver input for a vehicle, and you
might want to place them all within a result set named Driver_Inputs for easier viewing in Adams
PostProcessor.
8. Units for component_labels may be:
MASS AREA
TIME VOLUME
FORCE TORQUE
LENGTH PRESSURE
VELOCITY DENSITY
ACCELERATION ENERGY
ANGLE TORSION_STIFFNESS
ANGULAR_VELOCITY TORSION_DAMPING
ANGULAR_ACCELERATION FREQUENCY
INERTIA AREA_INERTIA
STIFFNESS FORCE_TIME
DAMPING TORQUE_TIME
Format:
output_control delete femdata
femdata_name = .model.femdata_name
Example:
output_control delete femdata &
request_name= . test.link_forces
Description:
Extended Definition:
1. Any Adams View object you delete, may be "undeleted" by using the UNDO commands. If you have
deleted something you would like back, enter the command "undo backward", or pick on the fixed
menu entry 'UNDO'. You identify a femdata by typing its name. If you created the femdata by
reading an Adams data set, the femdata name is the letters FEM followed by the Adams data set
femdata ID number. For example, the name of Adams FEM/101 is FEM101. If you created the
femdata during preprocessing, you will have given it a name at that time. If a femdata is available by
default, you may identify it by entering only its name. If it is not, you must enter its full name. To
identify a femdata under a different model, for instance, you may need to enter the model name as
well. For example, you may specify femdata 'link_forces' from model 'test' by entering
".test.link_forces". If you type a "?", Adams View will list the femdatas available by default.
2. You must separate multiple femdata names by commas.
Tips:
1. If you realize that this deletion was a mistake, deletion of a request can be reversed by using an UNDO
command.
2. ". If you type a "?", Adams View will list the femdata available by default.
Format:
output_control delete mrequest
mrequest_name = string
Example:
output_control delete mrequest &
mrequest_name= .test.mre101
Description:
Extended Definition:
1. Any Adams View object you delete may be "undeleted" by using the UNDO commands. If you have
deleted something you would like back, enter the command "undo backward", or pick on the fixed
menu entry 'UNDO'. You may identify a mrequest by typing its name. If you created the mrequest
by reading an Adams data set or graphics file, the mrequest name is the letters MRE followed by the
Adams data set mrequest ID number. For example, the name of Adams MREQ/101 is MRE101. If
you created the mrequest during preprocessing, you will have given it a name at that time. If an
mrequest is available by default, you may identify it by entering only its name. If it is not, you must
enter its full name. To identify an mrequest under another analysis, for instance, you may need to
enter the analysis name as well. For example, you may specify mrequest 101 from the analysis named
test by entering ".test.mre101". If you type a "?", Adams View will list the mrequests available by
default. You must separate multiple mrequest names by commas.
Tips:
1. If you realize that this deletion was a mistake, deletion of an mrequest can be reversed by using an
UNDO command.
Format:
output_control delete request
request_name = string
Example:
output_control delete request &
request_name = .test.mre101
Description:
Extended Definition:
1. Any Adams View object you delete, may be "undeleted" by using the UNDO commands. If you have
deleted something you would like back, enter the command "undo backward", or pick on the fixed
menu entry 'UNDO'. You may identify a request by typing its name. If you created the request by
reading an Adams data set or request file, the request name is the letters REQ followed by the Adams
data set request ID number. For example, the name of Adams REQUEST/101 is REQ101. If you
created the request during preprocessing, you will have given it a name at that time.
If a request is available by default, you may identify it by entering only its name. If it is not, you must
enter its full name. To identify a request under an analysis, for instance, you may need to enter the
analysis name as well. For example, you may specify request 101 from the analysis named test by
entering "/test/req101. You must separate multiple request names by commas.
Tips:
1. If you realize that this deletion was a mistake, deletion of a request can be reversed by using an UNDO
command.
2. ". If you type a "?", Adams View will list the requests available by default.
Format:
output_control create femdata
femdata_name = .model_name.femdata_name
new_femdata_name = .model_name.new_femdata_name
adams_id = geom._id
output_type = loads/loads_on_flex/,odal_deformation/stress/strain
r_marker_name = .marker_name
no_inertia = yes/no
peak_slice= fx/fy/fz/fmag/gmag/tx/ty/tz/tmag/none/all
flex_body= .model_name.flexible_body_name
datum = integer_number
nodes = integer_number
hotspots= integer_number
radius= real _number
40 Adams View Commands
output_control modify femdata
Example:
output_control modify femdata &
femdata_name = fem_data_1 &
new_femdata_name = fem_new_name &
adams_id = 100 &
output_type = stress &
r_marker_name = .marker_name &
flex_body = 101 &
hotspots = 7 &
radius = 0.5 &
criterion = max_principle &
file_name = hotspots_101
These statements create a text file named hotspots_101.tab containing hot spot information for the flexible
body 101. Seven hot spots with a radius of 0.5 based on maximum principal stress are requested. The names
of the DAC files are given the prefix “hotspots_101” as specified in the file_name format.
output_control 41
output_control modify femdata
Description:
Extended Definition:
1. If you do not specify a node list, Adams View exports nodal data at each attachment point of the
flexible body. Adams Solver issues a warning if a node ID is specified that does not belong to the
flexible body.
2. Adams Solver computes all nodal displacements relative to the datum node ID. If you do not specify
a datum node, Adams Solver generates an arbitrary relative set of nodal displacements. It displays a
warning message if the specified node does not belong to the flexible body.
3. You can use the FILE_NAME argument to specify the directory, name, and/or extension
(directory/name.extension) for the output file. If you do not specify a directory, FEMDATA creates
all its output files except DAC files in the current working directory. Because several DAC files are
typically generated for a FEMDATA statement, FEMDATA creates them in a separate directory
named after the body. It creates this directory in the current working directory if it does not exist.
If a file name is not specified in the FILE argument, default file names are assigned according to the
type of FEM data and file format (which is specified in the OUTPUT statement) as shown in the
table below.
FEMDATA Default File Names and Extensions
Cautions:
1. Using FEMDATA to output loads encounters the same limitations as exporting FEA Loads in Adams
View.
2. Note that all FEMDATA are output in the Adams modeling units. This causes a problem when the
Adams units are inconsistent with those used in the finite element model, and the data that is output
will be included in a subsequent finite element analysis.
3. For example, when outputting FEMDATA of type LOADS to ANSYS or MSC Nastran for inclusion
in the FE analysis, the Adams and FE modeling units must be consistent. This is also true when
outputting FEMDATA of type NODAL_DEFORMATION when the OUTPUT format is ANSYS
or MSC Nastran and the data will be used as input to the FE analysis.
In the case of outputting FEMDATA of type MODAL_DEFORMATION, the only concern for
units is when MSC Nastran (or PUNCH) has been specified as the OUTPUT format. This is because
rigid body motion is included in the output file along with the modal coordinates. By definition,
modal coordinates are unitless, so the modal stresses (or strains) will be recovered correctly in MSC
Nastran irregardless of unit settings. However, in order for the overall displacement of the component
to be correctly recovered, the unit of length must be consistent between models.
Format:
output_control modify mrequest
mrequest_name= .model_name.mrequest_name
new_mrequest_name= .model_name.mrequest_name
adams_id= geom_id
j_marker_name = marker_name
r_marker_name = marker_name
comment = string
output_type = displacement/velocity/acceleration/force
part_name = .model.part_name
joint_name = .model.joint_name
jprim_name = .model.primitive_joint_name
force_name = .model.existing_force_name
all = parts/joints/jprims/forces
output_control 47
output_control modify mrequest
Example:
output_control modify mrequest &
mrequest_name = mrequest__1 &
comment = 'sample output control creation' &
all = parts &
output_type = displacement
This MREQUEST statement requests displacement data for all Parts. For the part, Adams Solver
(FORTRAN) outputs eight headings and eight columns of data to the tabular output file. The same
information also goes to the request file. Because this statement does not supply arguments J and RM, Adams
Solver (FORTRAN) measures the displacements with respect to the ground coordinate system (GCS), and
resolves the displacements in the global coordinate system.
Description:
Extended Definition:
1. The MREQUEST statement indicates multiple sets of data you want Adams Solver (FORTRAN) to
write in the tabular output file and request file. You can request sets of displacements, velocities,
accelerations, or forces for system elements such as parts, joints, joint primitives, or applied forces in
the system.
Acceleration -Generates acceleration requests that output the accelerations for the markers that define
part centers of mass, joints, joint primitives, or applied forces. This argument generates nine headings
and nine columns of output for each part, joint, joint primitive, or applied force. The columns in the
Tabular Output file include the time (TIME), the translational magnitude (ACCM), the x
component (ACCX), the y component (ACCY) the z component (ACCZ), the rotational magnitude
(WDTM), the rotational x component (WDTX), the rotational y component (WDTY), and the
rotational z component (WDTZ). The same data without the magnitude are written in the Request
file.
Indicates that you want to output displacements, velocities, accelerations, or forces for as many as
thirty BEAM, BUSHING, FIELD, GFORCE, NFORCE, SFORCE, SPRINGDAMPER,
VFORCE, and VTORQUE statements or for all of these statements. For action-reaction forces,
50 Adams View Commands
output_control modify mrequest
id1 [ ,...,id30]
APPFORS =
ALL
Displacement- Generates displacement requests that output the displacements for the markers that
define part centers of mass, joints, joint primitives, or applied forces. This argument generates eight
headings and eight columns of output for each part, joint, joint primitive, or applied force. The
columns in the tabular output file include the time (TIME), the translational magnitude (MAG), the
x component (X), the y component (Y), the z component (Z), the psi angle (PSI), the theta angle
(THETA), and the phi angle (PHI). The same data without the magnitude are written in the Request
file. For joints, joint primitives, and applied forces, the psi, theta, and phi angles are the Euler angle
displacements of the I marker with respect to the J marker. For parts, the psi, theta, and phi angles
are the Euler rotations of the part center-of-mass marker with respect to the ground coordinate system
(GCS) or with respect to a J marker you specify.
Force -Generates force requests that output the forces for the markers that define joints, joint
primitives, or applied forces. This argument generates nine headings and nine columns of output for
each joint, joint primitive, or applied force. The columns in the Tabular Output file include the time
(TIME), the translational force magnitude (FM), the translational x component (FX), the
translational y component (FY), the translational z component (FZ), the rotational force magnitude
(TM), the rotational x component (TX), the rotational y component (TY), and the rotational z
component (TZ). The same data without the magnitudes are written to the Request file. The FORCE
argument cannot be used with the PARTS argument.
2. Adams Solver (FORTRAN) measures the force that the J marker applies on the I marker. For action-
only forces, Adams Solver (FORTRAN) measures the external forces acting on the I marker. If a
MREQUEST statement is issued with an APPFORS argument that requests information for an
identifier that is used for two or more applied force statements, Adams Solver (FORTRAN) outputs
information for the first applied force statement with that identifier. To avoid problems, you may
want to use a different identifier for each applied force statement in the dataset.
3. Adams Solver (FORTRAN) calculates all time derivatives in the ground coordinate system (GCS),
although you can specify that the data be resolved in another reference frame. This is of no
importance in the case of force data, but it can be very important in the case of velocities and
accelerations. For example, joint velocities are actually translational and rotational velocity difference
vectors of the joint I marker and the joint J marker in ground. Joint accelerations are actually
translational and rotational acceleration difference vectors of the joint I marker in ground and the
joint J marker in ground.
4. Because two markers (I and J) define each joint, joint primitive, and applied force, Adams Solver
(FORTRAN) measures the request information for one of these at the I marker with respect to the J
marker. Because a center-of-mass marker is the only marker that is necessary to define a part, Adams
Solver (FORTRAN) measures the request information for a part at its center-of-mass marker with
respect to ground or with respect to an alternative marker you specify. Regardless of the system
information you want, a reference marker (RM) can be used to resolve the component information
into any coordinate system you wish.
output_control 51
output_control modify mrequest
Cautions:
1. Note that the units for rotational displacement data in the request output of the tabular output file
default to degrees. The units for all other angular output data default to radians.
2. For any argument =ALL, Adams Solver (FORTRAN) ignores any invalid selections.
3. Applied forces and torques are those generated by beams, bushings, fields, general forces
(GFORCEs), n-component forces (NFORCEs), single-component forces (SFORCEs),
springdampers (SPRINGDAMPERs), vector forces (VFORCEs), and vector torques (VTORQUEs).
Adams Solver (FORTRAN) outputs the applied forces and torques acting at the request I marker
(which may be either the applied force I marker or the applied force J marker).
The magnitude and point of force application on the part containing the applied force J marker varies
with the type and source of the force.
• For springdampers, action-reaction single-component forces, general forces, vector forces, and
vector torques, the forces and torques acting at the J marker are equal and opposite to the forces
and torques acting at the I marker.
• For action-only single-component forces, no force or torque acts at the applied force J marker.
• For beams, fields, bushings, and multi-point forces, the forces acting at the applied force J marker
are equal and opposite to the forces acting at the applied force I marker.
4. As long as the applied force I marker and the applied force J marker are coincident, the torques acting
at the applied force J marker are equal and opposite to the torques acting at the applied force I marker.
If there is a finite separation distance between the I and J markers, the torques acting at the applied
force J marker are not necessarily opposite or equal, to the torques acting at the applied force I marker.
5. Reaction forces and torques are those generated by constraint-inducing elements. For revolute,
spherical, and universal joints and for atpoint, orientation, parallel axes, and perpendicular joint
primitives, Adams Solver (FORTRAN) outputs the reaction forces and torques acting at the request
I marker (which may be either the constraint I marker or the constraint J marker). Depending on the
type of constraint, some or all of the torques acting at the I marker are zero. The force and torque
acting at the request J marker are equal and opposite to the force and torque acting at the request I
marker.
6. Determining reaction forces-and torques for cylindrical, planar, rack-and-pinion, screw, and
translational joints and for inline and inplane joint primitives is more complex. If the request I marker
corresponds to the constraint I marker, then Adams Solver (FORTRAN) outputs the force and
torque acting at the constraint I marker. If the request I marker corresponds to the constraint J
marker, then AdamsAdams Solver (FORTRAN) outputs the force and torque acting at the
instantaneous location of the constraint I marker, but on the part containing the constraint J marker.
The force translated to the constraint J marker is the same as computed above. If the I and J markers
are coincident, the torque translated to the constraint J marker is the same as computed above. But if
there is a finite separation between the I and J markers, the torque translated to the constraint J marker
is different from the one computed above (because of the moments contributed by the reaction
forces).
7. The MREQUEST statement is not scheduled to be supported in Adams Solver (C++). You are
encouraged to migrate away from this statement and use the REQUEST statement instead.
52 Adams View Commands
output_control modify request
Format:
output_control modify
request_name = .model_name.request_name
new_request_name = .model.new_request_name
adams_id = geom._id
comment = string
component_names= string
component_units = string
component_labels = string
results_name = string
title = string
output_type = displacement/velocity/acceleration/force
i_marker_name = marker_name
j_marker_name = marker_name
r_marker_name = marker_name
user_function = real number
f1 = run time function
output_control 53
output_control modify request
output_control modify
f2 = run time function
f3 = run time function
f4 = run time function
f5 = run time function
f6 = run time function
f7 = run time function
f8 = run time function
variable_name = variable name
routine= string
Description:
Examples:
comment=the_first_request
comment="Displacement of wheel
center 1 wrt ground"
user_function Real Specifies up to 30 values for Adams to pass to a user-
written subroutine. See the Adams User's Manual for
information on writing user-written subroutines.
title String Specifies any of the eight alphanumeric headings for
columns of request output in the request file.
F1 Function Specifies the function expression that is the first
component of the request that is being created or
modified. The f1 parameter allows you to generate user-
defined output variables and have them reported by
Adams to the request file.
F2 Function Specifies the function expression that is the second
component of the request that is being created or
modified. The f2 parameter allows you to generate user-
defined output variables and have them reported by
Adams to the request file.
F3 Function Specifies the function expression that is the third
component of the request that is being created or
modified. The f3 parameter allows you to generate user-
defined output variables and have them reported by
Adams to the request file.
F4 Function Specifies the function expression that is the fourth
component of the request that is being created or
modified The f4 parameter allows you to generate user-
defined output variables and have them reported by
Adams to the request file.
F5 Function Specifies the function expression that is the fifth
component of the request that is being created or
modified. The f5 parameter allows you to generate user-
defined output variables and have them reported by
Adams to the request file.
output_control 55
output_control modify request
Extended Definition:
1. Normally, request names are composed of alphabetic, numeric, or '_' (underscore) characters, and
start with an alphabetic or '_' character. They may be of any length.
By enclosing the name in double quotes, you may use other printable characters, or start the name
with a numeral. If a name contains characters, or starts with a numeral, you must always quote the
name when entering it.
Note that you can specify the parentage of an entity (e.g. what part "owns" a marker or a geometry
element) when you CREATE it by changing the name. If you enter just the entity name, then the
default parent will be assigned by Adams View. If you type in the full name, then you may override
the default parent. In most cases, when creating an entity, Adams View will provide a default name.
The default name that Adams View provides will specify the parentage that it has assumed. You may,
of course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
2. When you use the FILE ADAMS_DATA_SET WRITE command, Adams View writes an Adams
data file for your model. Adams requires that each modeling element be identified by a unique
integer identifier. If you use this parameter to specify a non-zero identifier, Adams View will use it
in the corresponding statement in the Adams data file.
You may also enter zero as an identifier, either explicitly or by default. The next time you write an
Adams file, Adams View will replace the zero with a unique, internally-generated identifier. Adams
View will permanently store this identifier with the element just as if you had entered it yourself.
Normally, you would let all identifiers default to zero, and Adams View would generate the identifiers
for you. You are never required to enter a non-zero identifier. You only need to specify it if, for some
reason, you wish to control the Adams file output.
3. You may choose one of the following values for the output_type.
A. DISPLACEMENT
Adams outputs the displacement of the I marker with respect to the J marker. This argument
generates eight headings and eight columns of output. The columns include the time (Time), the
translational magnitude (Mag), the x component (X), the y component (Y), the z component (Z),
the psi angle (Psi), the theta angle (Theta), and the phi angle (Phi).
The psi, theta, and phi angles are the Euler angle displacements of the I marker with respect to
the J marker. Adams calculates this displacement data in the global coordinate system. If you
specify R_MARKER_NAME, Adams resolves the translational x component, the translational y
component, and the translational z component in the coordinate system of the R marker. The R
marker does not affect psi, theta, and phi.
If you enter the 'OUTPUT_CONTROL SET OUTPUT YPR=ON' command, psi, theta, and
phi rotations become yaw, pitch, and roll rotations.
output_control 57
output_control modify request
Rotational displacement information differs from all other standard output. Whether this
information is in psi, theta, and phi coordinates or in yaw, pitch, and roll coordinates, the rotation
sequence is not a vector. As a result, Adams outputs no magnitude column. In addition, the
sequence of coordinates is independent of any frame external to the I and the J markers.
Therefore, the R_MARKER_NAME parameter has no effect on the angular coordinates.
B. VELOCITY
Adams outputs the velocity of the I marker with respect to the J marker. This argument generates
nine headings and nine columns of data for velocity. The nine columns include the time (Time),
the translational magnitude (Vm), the translational x component (Vx), the translational y
component (Vy), the translational z component (Vz), the rotational magnitude (Wm), the
rotational x component (Wx), the rotational y component (Wy), and the rotational z component
(Wz).
Adams calculates this velocity data (the first derivative of the displacement of the I marker with
respect to the J marker) in the global coordinate system. If you specify R_MARKER_NAME,
Adams resolves the translational x component, the translational y component, the translational z
component, the rotational x component, the rotational y component, and the rotational z
component in the coordinate system of the R marker.
C. ACCELERATION
Adams outputs the acceleration of the I marker with respect to the J marker. This argument
generates nine headings and nine columns of output. The columns include the time (Time), the
magnitude of translational acceleration (Accm), the translational x component (Accx), the
translational y component (Accy), the translational z component (Accz), the magnitude of
rotational acceleration (Wmdot), the rotational x component (Wxdot), the rotational y
component (Wydot), and the rotational z component (Wzdot). Adams calculates this
acceleration data (the second derivative of the displacement of the I marker with respect to the J
marker) in the global coordinate system. If you specify R_MARKER_NAME, Adams resolves
the translational x component, the translational y component, the translational z component, the
rotational x component, the rotational y component, and the rotational z component in the
coordinate system of the R marker.
D. FORCE
Adams outputs the force associated with the I and the J markers or, if only the I marker is given,
outputs the action-only forces on the I marker. When both the I and the J markers are given,
Adams sums the forces on the I marker of those forces associated with the I and the J markers.
These forces can include both applied forces (such as SPRINGDAMPERs and BUSHINGs) and
reaction forces from constraint elements (such as JOINTs and MOTIONs). When only the I
marker is given, Adams sums all of the action-only forces that are applied to the I marker. Adams
reports the components of the resulting vectors in the reference frame of the R marker if you
specify R_MARKER_NAME.
58 Adams View Commands
output_control modify request
If you do not specify R_MARKER_NAME, Adams reports the components in the ground
reference frame. This argument generates nine columns of output. The columns include the time,
the translational force magnitude, the three components of the translational force, the rotational
force (torque) magnitude, and the three components of the torque.
Applied forces and torques are those generated by beams, bushings, fields, single-component
forces, and spring-dampers. Adams outputs the applied forces and torques acting at the request I
marker (which may be either the applied force I marker or the applied force J marker). The
magnitude and point of force application on the part containing the applied force J marker varies
according to the type and source of the force. For spring-dampers and action-reaction single-
component forces, the forces and torques acting at the J marker are equal and opposite to the
forces and torques acting at the I marker. For action-only single-component forces, there is no
force or torque acting at the applied force J marker. For beams, fields, and bushings, the forces
acting at the applied force J marker are equal and opposite to the forces acting at the applied force
I marker. As long as the applied force I marker and the applied force J marker are coincident, the
torques acting at the applied force J marker are equal and opposite to the torques acting at the
applied force I marker. If there is a finite separation between the I and the J markers, the torques
acting at the applied force J marker are opposite, but not equal, to the torques acting at the applied
force I marker.
Reaction forces and torques are those generated by constraint-inducing elements. For revolute,
spherical, and universal joints and for atpoint, orientation, parallel axes, and perpendicular joint
primitives, Adams outputs the reaction forces and torques acting at the request I marker (which
may be either the constraint I marker or the constraint J marker). The force and torque acting at
the request J marker are equal and opposite to the force and torque acting at the request I marker.
Depending on the type of constraint, some or all of the torques acting at the I marker are zero.
You must be careful when requesting a force with the I and the J markers reversed from those
specified in the force-producing element. Adams reports the force as if it were applied to the J
marker of the force-producing element. The translational force on the J marker of the force
element will be equal and opposite to the translational force on the I marker of the force element
if it is not action only. The force will be zero if it is action only. The torque on the J marker of
the force element has an extra component that may have significance. The torque is the sum of
two contributions. The first contribution is the opposite of the torque on the I marker. The
second contribution is due to the force acting across the separation between the I and the J
markers. If the force acts along the line of sight of the two markers, this extra torque will be zero.
To minimize misunderstandings, attach your REQUEST markers in the same order as the
markers on the force-producing element.
E. USER
Adams will output the values computed by the user-written subroutine REQSUB. If you choose
a USER request type, you must also supply the USER_FUNCTION parameter to define the
constants Adams will pass to the REQSUB.
4. If you are requesting displacement, velocity, or acceleration data, you must supply the J_marker.
Adams will measure the displacement, velocity, or acceleration of the I marker with respect to the J
marker.
output_control 59
output_control modify request
If you are requesting force data for action-reaction forces, you must supply the J marker. Adams will
sum the forces on the I marker of those forces associated with the I and J markers.
If you are requesting force data for action-only forces, do not supply the parameter J_marker. Adams
will sum all of the action-only forces applied to the I marker.
5. Each title heading can have as many as eight alphanumeric characters, and underscores. No leading
or internal white-space characters are allowed. The first character in each heading must be alphabetic.
You can use all alphanumeric characters. You cannot use the comma (,), the semicolon (;), the
ampersand (&), or the exclamation point (!). These are limitations are dictated by the Adams data-
set parser. If you do not want to specify a title for a particular column, use two quotation marks with
no characters in between the quotations marks.
If you want to unset all of the titles, use only two quotation marks with no characters in between the
quotations marks ("").
Examples:
title = First, Second,"", DISP_X, Last, ANG_disp, AMAG, ""
6. To enter a function expression you enter a series of quoted strings.
The easiest way to enter a function expression in Adams View is to use the text editor in combination
with the function builder. To invoke the text editor for entering a function expression, highlight the
function field and then either pick the "EDIT" button at the top of the panel or type a ^t (control-
t). The Adams View "function builder" is discussed below.
The syntactical correctness of a function expression can be investigated by using the "VERIFY"
button at the upper right of the text editor. If there is a syntax error, a message is printed and the
cursor is put near the problem. Proper unit consistency is not checked during function expression
verification.
The remainder of this explanation will cover the components of FUNCTION expressions as
summarized in the following table.
Components Examples
Numbers FUNCTION = 1E2 + 3.4 + 6
Operators FUNCTION = 3*6/2 + 3 - 2**2
System constants FUNCTION = PI + 20
System variables FUNCTION = AX(1040, 2010)
Arithmetic IFs FUNCTION = IF(DX(3, 5): -1, 0, 1)
FORTRAN-77 functions FUNCTION = ABS(NUM) - 6
Blanks FUNCTION = 1 + 2
Continuation commas FUNCTION = 1 + 1 + 1 + 1 + 1 + 1 , + 1 + 1 + 1 + 1 + 1 + 1 + 1
Adams functions FUNCTION = POLY(0, 0, 6.28)
NUMBERS
60 Adams View Commands
output_control modify request
FUNCTION expressions can include integers, real numbers, and exponents. In other words, any
numbers that are legal in Adams are legal in a FUNCTION expression.
OPERATORS
• In a FUNCTION expression, Adams allows any of the operators **, *, /, +, and -. Adams executes
these operators according to the following precedence rules:
• From greatest to least, the operators have the following priorities. ** then * / then + -. In other
words, Adams executes exponentiation (**) before all other operators and executes
multiplication (*) and division (/) before addition (+) and subtraction (-).
• When a statement has operators of the same priority, Adams executes them from left to right.
• You can use parentheses to alter the precedence of operators.
For example, in the equation
FUNCTION = (1-TIME)*30/PI
Adams subtracts TIME from one before it performs multiplication and division.
SYSTEM CONSTANTS
You can include the following system constants in a FUNCTION expression:
The following example of a FUNCTION with a system constant multiplies the system constant PI
by the displacement of marker 10 with respect to marker 14:
FUNCTION = PI*DM(10,14)
BLANKS
A FUNCTION expression can contain any number of blank spaces. Five consecutive blank spaces in
an expression do not terminate input of the expression (by indicating that what follows is a comment)
as they do in an Adams statement. However, you should remember these two restrictions:
• You cannot put a blank space in the middle of a number.
• Adams does not accept a blank space between a function and its left bracket. (This is true for
both, FORTRAN-77 functions and Adams functions.)
CONTINUATION COMMAS
You can use a comma to continue FUNCTION expressions. You can break the expression anywhere
except in the middle of a number, in the middle of a name, or between a function and its left bracket.
Put a continuation comma in column one of the following line before the rest of the expression. If
you break the expression at a comma that is part of the expression, you must use both, the expression
comma and the continuation comma. You may use more than one continuation comma to extend
an expression over several lines.
FUNCTION BUILDER
output_control 61
output_control modify request
The FUNCTIONS button at the right side of the Adams View text editor provides a means of
constructing an Adams function string. These functions are briefly described below. Upon picking
the FUNCTIONS button, you will be presented with the list of available functions in the "selection
window". After you select the desired function, a panel will appear with fields representing the
various parameters for the function. You will have full access to on-line help with this panel just like
you have with regular panels. After you have completed the panel and selected the DONE button on
the panel, the function string will be constructed and inserted at the current text cursor location in
the text edit window.
SYSTEM VARIABLES
A FUNCTION expression may access the current value of a system variable and use the value in
computations. These values are accessed through a collection of functions. The accessible system
variables include the following: Time, Mode, Displacements (Translational and Rotational),
Velocities (Translational and Rotational), Accelerations (Translational and Rotational), Forces
(Translational and Rotational), and User-defined variables. Invoke the text edit window and pick the
FUNCTIONS button to get a list of functions that can be accessed.
In general, you use a function character string (such as DM, VX, or FZ) and a list of values (e.g. i1,
i2, and i3) to access a system variable in an expression. For example, the value i1 may be the name of
the marker for which you want to measure a quantity (such as displacement, velocity, acceleration, or
force), i2 is the name of the marker with respect to which you want to measure the quantity, and i3
is the name of the marker you want to use to resolve the components of the quantity. If you do not
specify marker i3, Adams computes the result in the ground reference frame.
ARITHMETIC IFS
Arithmetic IFs allow you to conditionally define FUNCTION. The format for arithmetic IFs
follows.
IF (expression 1: expression 2, expression 3, expression 4)
Adams evaluates expression 1. If expression 1 is less than zero, the arithmetic IF equals expression 2;
if expression 1 equals zero, the arithmetic IF equals expression 3; and if expression 1 is greater than
zero, the arithmetic IF equals expression 4.
A FUNCTION expression with an arithmetic IF and its four expressions is below.
FUNCTION = 6 * IF(VR(10,31): 0 , 0 , 100)
If the radial velocity between markers 10 and 31 is less than or equal to zero, the value of the
FUNCTION expression is zero; but if the radial velocity between markers 10 and 31 is greater than
zero, the value of the FUNCTION expression is six hundred.
In some ways, you may treat IF as a variable. For example, you can place it anywhere in the
expression. In addition, you can nest arithmetic IFs nine levels deep.
FORTRAN-77 FUNCTIONS
You can use the FORTRAN functions ABS, ATAN, ATAN2, COS, EXP, LOG, LOG10, MIN,
MAX, SIN, SQRT, and TAN in your expression. For more information about these functions, see
a FORTRAN reference manual. Invoke the text edit window and pick the FUNCTIONS button to
get a list of functions that can be accessed.
Adams FUNCTIONS
62 Adams View Commands
output_control modify request
In general, an Adams function evaluates a mathematical equation and returns a value to your
FUNCTION expression. The following table lists all the Adams functions and their purposes.
Invoke the text edit window and pick the FUNCTIONS button to be a list of functions that can be
accessed.
Names Purposes
AKISPL Accesses the data in a SPLINE statement and uses the Akima cubic method
to fit a cubic curve(a spline) to the data.
BISTOP Evaluates a force restricting displacement of a part in two opposite
directions.
CHEBY Evaluates a Chebyshev polynomial
CUBSPL Accesses the data in a SPLINE statement and uses the traditional cubic
method to fit a cubic curve (a spline) to the data.
FORCOS Evaluates a Fourier cosine series
FORSIN Evaluates a Fourier sine series
HAVSIN Evaluates a haversine function.
IMPACT Evaluates a force restricting displacement of a part in one direction.
POLY Evaluates a polynomial.
SHF Evaluates a simple harmonic function.
STEP Approximates a step function with a cubic polynomial.
7. Result sets are helpful if you want to group the output from multiple requests into a single results set.
For example, you might have several different requests measuring driver input for a vehicle, and you
might want to place them all within a result set named Driver_Inputs for easier viewing in Adams
PostProcessor.
8. Units for component_labels may be:
MASS AREA
TIME VOLUME
FORCE TORQUE
LENGTH PRESSURE
VELOCITY DENSITY
ACCELERATION ENERGY
ANGLE TORSION_STIFFNESS
ANGULAR_VELOCITY TORSION_DAMPING
ANGULAR_ACCELERATION FREQUENCY
output_control 63
output_control set debug
INERTIA AREA_INERTIA
STIFFNESS FORCE_TIME
DAMPING TORQUE_TIME
Format:
output_control set debug
model_name = model_name
eprint = on/off
verbose = on/off
topology= on/off
dof = on/off
Example:
output_control set debug &
model_name = model_1 &
eprint = on &
verbose = off &
topology = on &
dof = on
Description:
Extended Definition:
1. You may identify a model by typing its name or by picking it from the screen.
If the model is not visible on the screen, you must type the name. You may also find it convenient to
type the name even if the model is displayed. You must separate multiple model names by commas.
If the model is visible in one of your views, you may identify it by picking on any of the graphics
associated with it.
2. The “eprint” information helps you to monitor the simulation process and to locate the source of the
error if there is a problem.
Each step consists of two phases:
a. A forward step in time (dynamic predictor).
b. The solution of the equations of motion (dynamic corrector).
For the first phase, Adams prints three or four pieces of information. The information includes the
following:
• The step number. This is a running count of the number of steps taken and can be used as a
measure of how hard Adams is working.
• For dynamics, the order of the predictor. This corresponds to the order of the polynomial Adams
uses to predict the solution at the end of the integration step.
• The value of time at the beginning of the step.
• The size of the step.
For the second phase, Adams prints out the cumulative number of iterations and a table of
information about the iterations. The cumulative number of iterations is a running count of the
iterations needed to solve the equations of motion and can be used as a measure of how many
computations Adams is performing. The table contains information about the maximum equation
error and maximum variable change for each iteration. For each iteration, Adams prints out seven or
eight pieces of the following information:
output_control 65
output_control set madata
The iteration number. This will be the one at the beginning of each step and will increment by one
until Adams converges to a solution or exceeds the maximum allowable number of iterations.
The absolute value of the largest equation error. Each equation should have an error value close to
zero. This number is an indicator of how far Adams is from a solution. It should decrease after every
iteration.
The data set element associated with the largest equation error.
For the above data set element, the equation that has the largest equation error.
The absolute value of the largest change in a variable. The final iteration should not need to change
variables very much. This number is an indicator of how far Adams needs to change variables to
approach. The data set element associated with the absolute value of the largest change in a variable.
For the above data set element, the variable with the largest change.
If Adams has updated the Jacobian, YES appears under the new Jacobian header.
3. Information such as the name of the subroutine from which Adams sends each diagnostic,
explanations, and possible remedies (when available) will be output
4. Adams can generate topological data from the information in your data set about the relationship
between parts and constraints ( except for couplers and user-defined constraints), such as joints. An
understanding of this topological data will help you find constraint errors in you model, but it is not
essential to an understanding of Adams. You can use the topological data generated by Adams to chart
the connections between parts and constraints in the model.This alerts you to overconstrained loops
and immobile loops. A value of ON instructs Adams to print this data in the message file. The default
value is OFF.
5. The dof table tells whether or not each of the six components of motion (i.e. translation along the x-
axis, the y-axis, and the z-axis and rotation about the x-axis, the y-axis, and the z-axis) is constrained
for each part. These are the degrees of freedom as input, not the degrees of freedom after Adams
removes redundant constraints.
Cautions:
1. Adams always outputs VERBOSE information to the message file regardless of the setting of the
VERBOSE parameter.
2. The dump facility essentially maps the equations and variables in your system and provides their
numeric codes.
Tips:
1. If you do not include the VERBOSE argument, Adams outputs only severities and basic error
messages to the screen.
Format:
output_control set madata
model_name = model_name
statics = yes /no
time = real_number
comment= string
Example:
output_control set madata &
model_name= model_1 &
statics = yes &
time = 10 &
comment= "Displacement of wheel center 1 wrt ground"
Description:
Extended Definition:
1. You may identify a model by typing its name or by picking it from the screen.
If the model is not visible on the screen, you must type the name. You may also find it convenient to
type the name even if the model is displayed. You must separate multiple model names by commas.
If the model is visible in one of your views, you may identify it by picking on any of the graphics
associated with it.
2. To record modal data for subsequent static equilibrium analyses, you must use an MADATA
command/statement with the STATICS argument just before each static equilibrium analysis.
output_control 67
output_control set output
3. The The REAL values for the tme parameter (r1[,...,r30]) should correspond to thetime steps for a
quasi-static equilibrium or a dynamic analysis. The values (r1[,...,r30]) must each be greater than zero.
4. The comment can contain up to 80 characters, and can be comprised of letters of the alphabet (a-z,
A-Z), numbers (0-9), and underscores. You may also use spaces and special characters (*&^%$#) if
you enclose the comment in quotation marks.
Cautions:
1. Adams always outputs VERBOSE information to the message file regardless of the setting of the
VERBOSE parameter.
2. The dump facility essentially maps the equations and variables in your system and provides their
numeric codes.
Tips:
1. With Adams Modal, you can linearize a mechanical system about any appropriate point of interest
and calculate eigenvalues and eigenvectors for that point in time. You can then use this data to analyze
the linear system response. The Adams Modal program includes a comprehensive postprocessor for
easy graphic examination of the computed data.
• Output-step-request (OS) table--An output-step-request table lists the values of all requests at
each output time step. There is a line for each output time step, followed by one line for each
request.
2. Formats of request data in the tabular output file
• Columns per line - 72 columns per line or - 132 columns per line
• Numerical notation of request data in the tabular output file - Fixed-point--Fixed-point notation
expresses a decimal or an integer number without an exponent or
• Scientific--Scientific notation expresses a number as the appropriate power of 10 (the
exponent). Adams uses E between the mantissa and the exponent, and may use a decimal
number as the value.
3. Coordinates of rotational request data in the tabular output file
• Yaw, pitch, and roll or o Psi, theta, and phi
4. Scales for request data in the tabular output file
• Scale for displacements o Scale for velocities o Scale for accelerations o Scale for forces
5. Filters for request data in the tabular output file
• Zero filter for displacements
• Zero filter for velocities
• Zero filter for accelerations
• Zero filter for forces
Format:
output_control set output
model_name= String
chart = on/off
reqsave = on/off
dacsave = on/off
rpcsave = on/off
print = on/off
fixed = on/off
osformat = on/off
ypr = on/off
separator = on/off
icsave= on/off
teletype= on/off
grsave= on/off
output_control 69
output_control set output
Description:
Extended Definition:
1. You may identify a model by typing its name or by picking it from the screen.
If the model is not visible on the screen, you must type the name.
You may also find it convenient to type the name even if the model is displayed.
You must separate multiple model names by commas.
If the model is visible in one of your views, you may identify it by picking on any of the graphics
associated with it.
You need not separate multiple model picks by commas.
2. When you request a static equilibrium analysis, Adams always outputs an output-step-request (OS)
table whether or not you specify OSFORMAT=ON. Use OSFORMAT to view the values of all
requests at a particular output time or to provide printed output in cases where the simulation might
not run to completion. A simulation may not run to completion because the model or user-written
subroutines are not fully debugged. OSFORMAT might provide information useful useful in
debugging the model or the user-written subroutines.
3. For ypr, first Adams rotates about the z-axis, then about the new negative y-axis (y'), and then about
the second new x-axis (x"). If you specify YPR=OFF, Adams outputs rotational values in psi, theta,
and phi coordinates.
4. You can change the model topology by adding Adams commands to your ACF file to activate an
element, deactivate an element, change a marker position, or change the type or point of application
of a force or constraint during a simulation.
If you specify SEPARATOR=ON (this is the default) the analysis information will be read into
Adams View, one analysis for each block of output between the separators.
If you specify SEPARATOR=OFF the analysis information will be read into Adams View as a single
analysis. This allows you to plot or animate the analysis from beginning to end.
output_control 73
output_control set results
5. Adams uses a special format to output this information to the the initial conditions file so that a
subsequent simulation can be restarted at any time in the current simulation. When a subsequent
simulation is performed using the same data set, the mid-simulation conditions from the previous
analysis can be accessed and used as the initial conditions for the current analysis. Adams prompts the
user for the name of the initial conditions file if the ICSAVE parameter is set to ON. When a
simulation is restarted, Adams searches the initial conditions file for the time closest to the time
specified in the EXECUTION command, and then replaces the state vector in the model with that
from the initial conditions file. If ICSAVE=OFF is specified, Adams does not save initial conditions
in the initial conditions file.
6. ASCALE accepts two REAL numbers( r1, r2 ). Define r1 to scale the translational accelerations.
Define r2 to scale the rotational accelerations. These numbers are multiplied by the accelerations in
Adams, therefore, a scale factor between 0.0 and 1.0 scales the accelerations down, a scale factor
greater than 1.0 scales the accelerations up. Negative scale factors change the sign of the accelerations.
Both r1 and r2 default to 1.0.
Tips:
1. If your simulation has many output steps, or you have many requests and mrequests, specifying OFF
for print parameter will result in a much smaller Tabular Output File and conserve disk space.
Description:
Extended Definition:
1. You may identify a model by typing its name or by picking it from the screen.
If the model is not visible on the screen, you must type the name.
You may also find it convenient to type the name even if the model is displayed.
You must separate multiple model names by commas.
If the model is visible in one of your views, you may identify it by picking on any of the graphics
associated with it.
You need not separate multiple model picks by commas.
2. The comment can contain up to 80 characters, and can be comprised of letters of the alphabet (a-z,
A-Z), numbers (0-9), and underscores. You may also use spaces and special characters (*&^%$#) if
you enclose the comment in quotation marks.
Examples:
comment=the_first_request
comment="Displacement of wheel center 1 wrt ground"
76 Adams View Commands
output_control set results
panel 1
panel set acf_twindow activate
panel
panel set acf_twindow activate
Activates a statement that was previously turned off by the DEACTIVATE command.
An ACTIVATE command, used in conjunction with the DEACTIVATE command, switches Adams
elements on and off. All Adams elements are active by default in the input dataset, but may be deactivated
using the DEACTIVATE command. For simulation purposes, when ADAMS activates a statement, the
statement appears as though it were always in the dataset. When Adams deactivates a statement, the
statement effectively disappears from the model. Both ACTIVATE and DEACTIVATE commands take
effect when the user issues the next SIMULATE command.
After the activation of any element, Adams reprocesses the model at the next SIMULATE command, as if it
had just been read in from the dataset. During the reprocessing Adams checks the entire model for
consistency, reinitializes user subroutines, and recomputes initial conditions.
When checking, Adams verifys that the model is still valid when the newly activated elements are included.
If, for example, an activated JOINT overconstrains a model resulting in an immobile system, Adams issues
an error message.
Adams also reinitializes all user subroutines to re-establish functional dependencies. For each element that
refers to a user-written subroutine, Adams calls the user-written subroutine with IFLAG set to true.
If the user activates a constraint or force in the middle of a simulation, by default Adams will split the Tabular
Output, Request, Graphics and Results output into two separate set of output concatenated together. This
ensures that the output correctly reflects the new system topology.
The OUTPUT/NOSEPARATOR argument will prevent Adams from splitting the file. This allows the user
to plot or animate the output continuously from the beginning to end, but may result in misleading graphics
during postprocessing.
Format:
panel set acf_twindow activate
beam_name = existing beam
bushing_name = existing bushing
field_name = existing field
joint_name = existing joint
jprim_name = existing jprim
motion_name = existing motion
sensor_name = existing sensor
single_component_force_name = existing single_component_force
2 Adams View Commands
panel set acf_twindow activate
Example:
panel set acf_twindow activate &
panel set acf_twindow activate joint_name = joint_1
Description:
Extended Definition:
1. You may identify a motion generator by typing its name or by picking it from the screen.
If the motion generator is not visible on the screen, you must type the name. You may also find it
convenient to type the name even if the motion generator is displayed.
If you created the motion generator by reading an Adams data set file, its name is the letters MOT
followed by the Adams data set ID number. The name of Adams MOTION/101 is MOT101, for
example. If you created the motion generator during preprocessing, you gave it a name at that time.
If a motion generator is available by default, you may identify it by entering its name only. If it is
not, you must enter its full name. To identify a motion generator under a model, for instance, you
may need to enter the model name as well. For example, you may specify motion generator 'servo'
in model 'links' by entering ".links.servo". If you type a "?", Adams View will list the motion
generators available by default.
You must separate multiple motion-generator names by commas.
panel 3
panel set acf_twindow deactivate
If the motion generator is visible in one of your views, you may identify it by picking on any of the
graphics associated with it.
You need not separate multiple motion-generator picks by commas.
Format:
panel set acf_twindow deactivate
beam_name = an existing beam.
bushing_name = an existing bushing
field_name = an existing field
joint_name = an existing joint
jprim_name = an existing primative joint
motion_name = an existing motion
sensor_name = an existing sensor
single_component_force_name = an existing single-component force
spring_damper_name = an existing spring-damper force
group_name = an existing group
Example:
panel set acf_twindow deactivate &
panel set acf_twindow deactivate beam_name = beam_1 &
panel set acf_twindow deactivate bushing_name = bushing_1 &
panel set acf_twindow deactivate field_name = field_1 &
panel set acf_twindow deactivate joint_name = joint_1 &
panel set acf_twindow deactivate sensor_name = sensor_1 &
panel set acf_twindow deactivate sensor_name = sensor_1 &
panel set acf_twindow deactivate group_name = group_1
4 Adams View Commands
panel set acf_twindow deactivate
Description:
Extended Definition:
1. A DEACTIVATE command, used in conjunction with the ACTIVATE command, switches Adams
elements off and on. All Adams elements are active by default in the input dataset, but may be
deactivated using the DEACTIVATE command. For simulation purposes, when ADASMS activates
a statement, the statement appears as though it were always in the dataset. When Adams deactivates
a statement, the statement effectively disappears from the model. Both ACTIVATE and
DEACTIVATE commands take effect when the user issues the next SIMULATE command. Once
deactivated, a statement remains inactive until it is activated using the ACTIVATE command.
After the deactivation of any element, Adams reprocesses the model at the next SIMULATE
command, as if it had just been read in from the dataset. During the reprocessing Adams checks the
entire model for consistency, reinitializes user subroutines, and recomputes initial conditions.
When checking, Adams examines all active-element function expressions and arguments for
references to inactive elements. If an active force, constraint or sensor refers to an inactive element,
Adams issues an error message just as if the inactive element did not exist. If a force REGUEST or a
force GRAPHIC refers to an inactive element, Adams reports zero forces for the inactive element.
Adams also reinitializes all user subroutines to re-establish functional dependencies. For each element
that refers to a user-written subroutine, Adams calls the user-written subroutine with IFLAG set to
true.
Adams reports zero values in all output files for any forces associated with inactive elements, including
both applied forces and joint reaction forces. This includes requests, force graphics, and forces in the
results file.
panel 5
panel set acf_twindow deactivate
AdamsAdams continues to report displacements, velocities, and accelerations for all JOINT and
JPRIM MREQUESTs, even for JOINTs and JPRIMs that have been deactivated. MREQUEST
create displacements, velocities and accelerations requests for the markers associated with the specified
JOINTs and JPRIMs. Adams continues to output the relative marker displacements velocities and
accelerations even if the user has deactivated the original JOINT or JPRIM.
If the user deactivates a constraint or force in the middle of a simulation, by default Adams will split
the Tabular Output, Request, Graphics and Results output into two separate set of output
concatenated together. This ensures that the output correctly reflects the new system topology.
The OUTPUT/NOSEPARATOR argument will prevent Adams from splitting the file. This allows
the user to plot or animate the output continuously from the beginning to end, but may result in
misleading graphics during postprocessing.
2. You may identify a beam by typing its name or by picking it from the screen.
If the beam is not visible on the screen, you must type the name. You may also find it convenient to
type the name even if the beam is displayed.
If you created the beam by reading an Adams data set or graphics file, the beam name is the letters
BEA followed by the Adams data set beam ID number. The name of AdamsAdams BEAM/101 is
BEA101, for example. If you created the beam during preprocessing, you gave it a name at that time.
If a beam is available by default, you may identify it by entering its name only. If it is not, you must
enter its full name. To identify a beam under a different model, for instance, you may need to enter
the model name as well. For example, you may specify beam 101 from the model named test by
entering ".test.bea101". If you type a "?", Adams View will list the beams available by default.
3. You may identify a bushing by typing its name or by picking it from the screen.
If the bushing is not visible on the screen, you must type the name. You may also find it convenient
to type the name even if the bushing is displayed.
If you created the bushing by reading an Adams data set or graphics file, the bushing name is the
letters BUS followed by the Adams data set bushing ID number. The name of Adams
BUSHING/101 is BUS101, for example. If you created the bushing during preprocessing, you gave
it a name at that time.
If a bushing is available by default, you may identify it by entering its name only. If it is not, you
must enter its full name. To identify a bushing under a different model, for instance, you may need
to enter the model name as well. For example, you may specify bushing 'lower_front' from model
'sla' by entering ".sla.lower_front". If you type a "?", Adams View will list the bushings available by
default.
4. You may identify a field by typing its name or by picking it from the screen.
If the field is not visible on the screen, you must type the name. You may also find it convenient to
type the name even if the field is displayed.
If you created the field by reading an Adams data set file, the field name is 'FIE'. If you created the
field during preprocessing, you gave it a name at that time.
6 Adams View Commands
panel set acf_twindow deactivate
If a field is available by default, you may identify it by entering its name only. If it is not, you must
enter its full name. To identify a field under a different model, for instance, you may need to enter
the model name as well. For example, you may specify field 'fld1' from model 'robot' by entering
".robot.fld1". If you type a "?", Adams View will list the fields available by default.
5. You may identify a joint by typing its name or by picking it from the screen.
If the joint is not visible on the screen, you must type the name. You may also find it convenient to
type the name even if the joint is displayed.
If you created the joint by reading an Adams data set or graphics file, the joint name is the letters JOI
followed by the AdamsAdams data set joint ID number. The name of Adams JOINT/101 is JOI101,
for example. If you created the joint during preprocessing, you gave it a name at that time.
If a joint is available by default, you may identify it by entering its name only. If it is not, you must
enter its full name. To identify a joint under a model, for instance, you may need to enter the model
name as well. For example, you may specify joint 'lower_pivot' in model 'links' by entering
".links.lower_pivot". If you type a "?", Adams View will list the joints available by default.
6. You may identify a jprim by typing its name or by picking it from the screen.
If the jprim is not visible on the screen, you must type the name. You may also find it convenient to
type the name even if the jprim is displayed.
If you created the jprim by reading an Adams data set or graphics file, the jprim name is the letters
JPR followed by the Adams data set jprim ID number. The name of Adams JPRIM/101 is JPR101,
for example. If you created the jprim during preprocessing, you gave it a name at that time.
If a jprim is available by default, you may identify it by entering its name only. If it is not, you must
enter its full name. To identify a jprim under an analysis, for instance, you may need to enter the
analysis name as well. For example, you may specify jprim 101 from the analysis named test by
entering ".test.jpr101". If you type a "?", Adams View will list the jprims available by default.
7. You may identify a motion generator by typing its name or by picking it from the screen.
If the motion generator is not visible on the screen, you must type the name. You may also find it
convenient to type the name even if the motion generator is displayed.
If you created the motion generator by reading an Adams data set file, its name is the letters MOT
followed by the Adams data set ID number. The name of Adams MOTION/101 is MOT101, for
example. If you created the motion generator during preprocessing, you gave it a name at that time.
If a motion generator is available by default, you may identify it by entering its name only. If it is
not, you must enter its full name. To identify a motion generator under a model, for instance, you
may need to enter the model name as well. For example, you may specify motion generator 'servo'
in model 'links' by entering ".links.servo". If you type a "?", Adams View will list the motion
generators available by default.
8. You may identify a sensor by typing its name or by picking it from the screen.
Since sensors do not have a geometric position, Adams View displays sensor icons at or near the model
origin. If the sensor icon is not visible on the screen, you must type the name. You may also find it
convenient to type the name even if the sensor icon is displayed.
panel 7
panel set acf_twindow deactivate
If you created the sensor by reading an Adams data set, the sensor name is the letters SEN followed
by the Adams data set sensor ID number. The name of Adams SENSOR/101 is SEN101, for
example. If you created the sensor during preprocessing, you gave it a name at that time.
If a sensor is owned by the default model, you may identify it by entering its name only. If it is not,
you must enter its full name. To identify a sensor under a different model, for instance, you may need
to enter the model name as well. For example, you may specify sensor 'fluid_volume_limit' from
model 'hydro' by entering ".hydro.fluid_volume_limit'". If you type a "?", Adams View will list the
sensor available by default.
9. You may identify a single-component force by typing its name or by picking it from the screen.
If the single-component force is not visible on the screen, you must type the name. You may also find
it convenient to type the name even if the single-component force is displayed.
If you created the single-component force by reading an Adams data set or graphics file, the single-
component force name is the letters SFO followed by the Adams data set single-component force ID
number. The name of Adams SFORCE/101 is SFO101, for example. If you created the single-
component force during preprocessing, you gave it a name at that time.
If a single-component force is available by default, you may identify it by entering its name only. If
it is not, you must enter its full name. To identify a single-component force under another model, for
instance, you may need to enter the model name as well. For example, you may specify single-
component force 'spring' from the model 'suspension' by entering ".suspension.spring". If you type
a "?", AdamsAdams View will list the single-component forces available by default.
10. You may identify a spring-damper force by typing its name or by picking it from the screen.
If the spring-damper force is not visible on the screen, you must type the name. You may also find it
convenient to type the name even if the spring-damper is displayed.
If you created the spring-damper force by reading an AdamsAdams data set, the spring-damper name
is the letters SPR followed by the Adams data set spring-damper ID number. The name of Adams
SPRINGDAMPER/101 is SPR101, for example. If you created the spring-damper during
preprocessing, you gave it a name at that time.
If a spring-damper is available by default, you may identify it by entering its name only. If it is not,
you must enter its full name. To identify a spring-damper under a different model, for instance, you
may need to enter the model name as well. For example, you may specify spring-damper 'left' from
model 'sla' by entering ".sla.left". If you type a "?", Adams View will list the spring-dampers available
by default.
11. You may identify a group by typing its name.
If a group is available by default, you may identify it by entering its name only. If it is not, you must
enter its full name. If you type a "?", Adams View will list the group available by default.
Cautions:
1. You must separate multiple beam names by commas.
2. You must separate multiple single-component force names by commas.
3. You must separate multiple spring-damper names by commas.
8 Adams View Commands
panel set acf_twindow dynamic_simulation
Tips:
1. If the beam is visible in one of your views, you may identify it by picking on any of the graphics
associated with it.
2. You need not separate multiple beam picks by commas.
3. If the single-component force is visible in one of your views, you may identify it by picking on any of
the graphics associated with it
4. You need not separate multiple single-component force picks by commas
5. If the spring-damper is visible in one of your views, you may identify it by picking on any of the
graphics associated with it.
Format:
panel set acf_twindow dynamic_simulation
number_of_steps = integer
step_size = real
end_time = real
duration = real
panel 9
panel set acf_twindow eigen_solution_calculation
Example:
panel set acf_twindow dynamic_simulation &
number_of_steps = 100 &
end_time = 5.0
Description:
Extended Definition:
1. All components being read from a file must have the same number of steps. Lines that do not begin
with a number are considered comments and ignored.
If the parameter “number_of_steps” is not specified the size of the components will be inferred from
the format of the file. A component will be read from a file until a comment line is encountered.
This commented line marks the end of the component.
2. The parameter END_TIME must be greater than the begin time. Since the begin time must be
greater than zero, this means that the end time must also be greater that zero.
Specifying the VECTORS parameter as NO means that no eigenvectors (i.e. mode shapes) will be computed.
Only eigenvalues will be reported.
Format:
panel set acf_twindow eigen_solution_calculation
damping = yes/no
no_eigen_vectors = true_only
coordinates_of_modes = integer
energy_of_modes = integer
dissipative_energy = integer
kinetic_energy = integer
strain_energy = integer
Example:
panel set acf_twindow eigen_solution_calculation &
damping = yes &
no_eigen_vectors = true
Description:
Extended Definition:
1. Specifying the DAMPING parameter as NO means that the velocity dependent terms in forces and
VARIABLEs are not included in the stiffness (K) and mass (M) matrices.
2. The “coordinates_of_modes”, ”dissipative_energy”,”strain_energy”,”kinetic_energy” and
“energy_of_modes” parameter accepts either one (1) value or two (2) values separated by a comma
(,). The values are mode shape numbers, and must be greater than zero. Two values are given to
specify a range of mode shape numbers. One value is given to specify a single mode shape number.
specified name is used as the base name and all matrices are written to separate files named with each matrix
name appended to the name specified in this parameter.
Format:
panel set acf_twindow generate_state_matrix
file_name = string
matrix_format = matrix_format
plant_input_name = existing pinput
plant_output_name = existing poutput
plant_state_name = existing pstate
reference_marker = existing marker
Description:
Extended Definition:
1. The state matrices can be output in either MATRIX_X format or MATLAB format through the use
or the MATRIX_FORMAT parameter.
2. The FILE_NAME parameter tells the name of the file the you want the state matrices written to.
For MatrixX all the matrices are written to the file named in this parameter. For the MATLAB format
the specified name is used as the base name and all matrices are written to separate files named with
each matrix name appended to the name specified in this parameter.
You do not need to enclose the file name in quotes if it only contains alpha-numeric characters and
starts with a letter. If you want to include other characters, such as a '.' for an extension or '/' or '[]'
for directory paths, you must enclose the name in quotes.
3. You may identify a plant_input by typing its name or by picking it from the screen.
Since plant_input do not have a geometric position, /View displays plant_input icons at or near the
model origin. If the plant_input icon is not visible on the screen, you must type the name. You may
also find it convenient to type the name even if the plant_input icon is displayed.
panel 13
panel set acf_twindow kinematic_simulation
If you created the plant_input by reading an data set or graphics file, the plant_input name is the
letters PIN followed by the data set plant_input ID number. The name of PINPUT/101 is PIN101,
for example. If you created the plant_input during preprocessing, you gave it a name at that time.
If a plant_input is owned by the default model, you may identify it by entering its name only. If it is
not, you must enter its full name. To identify a plant_input under a different model, for instance, you
may need to enter the model name as well. For example, you may specify plant_input
'velocity_set_point' from model 'motor' by entering ".motor.velocity_set_point'". If you type a "?",
/View will list the plant_input elements available by default.
You must separate multiple plant_input names by commas.
If the plant_input is visible in one of your views, you may identify it by picking on any of the graphics
associated with it.
You need not separate multiple plant_input picks by commas.
4. You may identify a plant_output by typing its name or by picking it from the screen.
Since plant_output do not have a geometric position, /View displays plant_output icons at or near
the model origin. If the plant_output icon is not visible on the screen, you must type the name. You
may also find it convenient to type the name even if the plant_output icon is displayed.
If you created the plant_output by reading an data set or graphics file, the plant_output name is the
letters "POU" followed by the data set plant_output ID number. The name of POUTPUT/101 is
POU101, for example. If you created the plant_output during preprocessing, you gave it a name at
that time.
If a plant_output is owned by the default model, you may identify it by entering its name only. If it
is not, you must enter its full name. To identify a plant_output under a different model, for instance,
you may need to enter the model name as well. For example, you may specify plant_output
'actual_velocity' from model 'motor' by entering ".motor.actual_velocity'". If you type a "?", /View
will list the plant_output available by default.
You must separate multiple plant_output names by commas.
If the plant_output is visible in one of your views, you may identify it by picking on any of the
graphics associated with it.
You need not separate multiple plant_output picks by commas.
Format:
Panel set acf_twindow kinematic_simulation
number_of_steps = integer
step_size = real
end_time = real
duration = real
Example:
panel set acf_twindow kinematic_simulation &
number_of_steps = 100 &
end_time = 5.0
Description:
Extended Definition:
1. All components being read from a file must have the same number of steps. Lines that do not begin
with a number are considered comments and ignored.
If the parameter “number_of_steps” is not specified the size of the components will be inferred from
the format of the file. A component will be read from a file until a comment line is encountered. This
commented line marks the end of the component.
2. The parameter END_TIME must be greater than the begin time. Since the begin time must be
greater than zero, this means that the end time must also be greater that zero.
Format:
panel set acf_twindow output_file_separator
separator = on_off
Example:
panel set acf_twindow output_file_separator &
panel set acf_twindow output_file_separator separator = on
Description:
Extended Definition:
1. You can change the model topology by adding Adams commands to your ACF file to activate an
element, deactivate an element, change a marker position, or change the type or point of application
of a force or constraint during a simulation.
If you specify SEPARATOR=ON (this is the default) the analysis information will be read into
AdamsAdams View, one analysis for each block of output between the separators.
If you specify SEPARATOR=OFF the analysis information will be read into Adams View as a single
analysis. This allow you to plot or animate the analysis from beginning to end.
Tips:
1. The default is to write the separator.
Format:
panel set acf_twindow reload
save_type = adams_save_type
file_name = string
output_prefix = string
title = string
16 Adams View Commands
panel set acf_twindow reload
Example:
panel set acf_twindow reload &
panel set acf_twindow save save_type = system &
panel set acf_twindow save file_name = "c:\users\save"
Description:
Extended Definition:
1. Using the reload command with the STATES argument allows the user to reload the saved simulation
time and state values, including displacements, velocities, force values and user-defined variable
values. Adams resets the simulation time to the saved values and uses the saved states as initial
conditions for the next simulation.
Using the RELOAD command with the SYSTEM argument allows the user to reload the entire saved
system, including the model definition (parts, markers, joints, etc.), simulation time and state values
(displacements, velocities, force values, user-defined variable values, etc.) and solver data (integrator
parameters, state derivatives, etc.). Adams completely resets all model, simulation and solver data to
that stored in the file.
SAVE_TYPE=STATES respecifies that the file contains simulation time and state values
(displacements, velocities, force values user-defined variable values, etc.).
2. SAVE_TYPE=SYSTEM respecifies that the file contains the entire Adams system, including the
model, simulation time, and state_values.
3. The proper extension is the default but can be overridden by simply supplying a different extension.
You do not need to enclose the file name in quotes if it only contains alpha-numeric characters and
starts with a letter. If you want to include other characters, such as a '.' for an extension or '/' or '[]'
for directory paths, you must enclose the name in quotes.
4. If the user does not specify the OUTPUT_PREFIX argument, Adams will append the output to the
currently open output files after writing a special delimiter line into the file.
panel 17
panel set acf_twindow save
5. This parameter allows the specification of the XY plot title. The title is a "quoted" character string
that will be displayed at the top of the XY plot. The title will be scaled and centered automatically.
Unlike plot names, titles need not be unique.
A title may be arbitrarily long and a combination of letters of the alphabet and numbers may be used.
Format:
panel set acf_twindow save
save_type = adams_save_type
file_name = string
autosave = integer
Example:
panel set acf_twindow save &
panel set acf_twindow save save_type = system&
panel set acf_twindow save file_name = "c:\users\save"&
panel set acf_twindow save autosave = 2
Description:
Extended Definition:
1. A save command stores the current Adams model and simulation conditions or only the current
simulation states. This allows the user to return to the model or states at a later time using the
RELOAD command.
18 Adams View Commands
panel set acf_twindow static_simulation
The user may use the SAVE command with the STATES argument to save the current simulation
time and state values, including displacements, velocities, force values, and user-defined variable
values. The user can later restart a simulation from this point by reloading the states with the
RELOAD/STATES command. When the user reload this file, Adams resets the simulation time to
the saved value and use the saved states as initial conditions for the next simulation.
The user may use the SAVE command with the SYSTEM argument to save the entire current system,
including the model definition (parts, markers, joints, etc.), simulation time and state values
(displacements, velocities, force values, and user-defined variable values etc.), and solver data
(integrator parameters, state derivatives, etc.). SAVE/SYSTEM creats a complete record of the
current model and simulation conditions. The user can later return to this point by reloading the
conditions using the RELOAD/SYSTEM command. When the user reloads a system file, Adams
completely reset the model, simulation and solver data to that stored in the file.
2. SAVE_TYPE=STATES respecifies that the file contains simulation time and state values
(displacements, velocities, force values user-defined variable values, etc.).
SAVE_TYPE=SYSTEM respecifies that the file contains the entire Adams system, including the
model, simulation time, and state_values.
3. The proper extension is the default but can be overridden by simply supplying a different extension.
You do not need to enclose the file name in quotes if it only contains alpha-numeric characters and
starts with a letter. If you want to include other characters, such as a '.' for an extension or '/' or '[]'
for directory paths, you must enclose the name in quotes.
4. Each subsequent SAVE command overrides the previous case. Setting AUTOSAVE to zero turns
AUTOSAVE off.
Format:
panel set acf_twindow static_simulation
number_of_steps = integer
step_size = real
end_time = real
duration = real
panel 19
panel set acf_window transient_simulation
Example:
panel set acf_twindow static_simulation &
number_of_steps = 100 &
end_time = 5.0
Description:
Extended Definition:
1. All components being read from a file must have the same number of steps. Lines that do not begin
with a number are considered comments and ignored.
If the parameter “number_of_steps” is not specified the size of the components will be inferred from
the format of the file. A component will be read from a file until a comment line is encountered.
This commented line marks the end of the component.
2. The parameter END_TIME must be greater than the begin time. Since the begin time must be
greater than zero, this means that the end time must also be greater that zero.
Format:
Panel set acf_window transient_simulation
number_of_steps = integer
step_size = real
end_time = real
duration = real
Example:
panel set acf_twindow transient_simulation &
number_of_steps = 100 &
end_time = 5.0
Description:
Extended Definition:
1. All components being read from a file must have the same number of steps. Lines that do not begin
with a number are considered comments and ignored.
If the parameter “number_of_steps” is not specified the size of the components will be inferred from
the format of the file. A component will be read from a file until a comment line is encountered.
This commented line marks the end of the component.
2. The parameter END_TIME must be greater than the begin time. Since the begin time must be
greater than zero, this means that the end time must also be greater that zero.
Format:
panel set twindow_function akima_spline
x = function
z = function
spline_name = an existing spline
derivative_order = integer
Example:
panel set twindow_function akima_spline &
panel set twindow_function cubic_spline spline_name = spline_1 &
panel set twindow_function cubic_spline derivative_order = 2
Description:
Extended Definition:
1. The data points to be interpolated are defined in the SPLINE element in your Adams model. The
SPLINE that you define may represent a curve ( x-y points) or a surface (x-y-z points). Interpolation
in the y direction is cubic, and interpolation in the z direction is linear.
The AKIMA_SPLINE function is very fast, since it uses local methods. It always produces good
results for the value of the function being approximated. The AKIMA_SPLINE returns good
estimates for the first derivative of the approximated function when the data points are evenly spaced.
In instances where the data points are unevenly spaced, the estimate of the first derivative may be in
error. In all cases, the second derivative of the function being approximated is unreliable.
2. This variable can be any value of interest that you can compute using a function expression.
22 Adams View Commands
panel set twindow_function akima_spline
Components Examples
NUMBERS FUNCTION = 1E2 + 3.4 + 6
OPERATORS FUNCTION = 3*6/2 + 3 - 2**2
SYSTEM CONSTANTS FUNCTION = PI + 20
SYSTEM VARIABLES FUNCTION = AX(1040, 2010)
ARITHMETIC IFS FUNCTION = IF(DX(3, 5): -1, 0, 1)
FORTRAN-77 FUNCTIONS FUNCTION = ABS(NUM) - 6
BLANKS FUNCTION = 1 + 2
CONTINUATION COMMAS FUNCTION = 1 + 1 + 1 + 1 + 1 + 1 , + 1 + 1 + 1 + 1 + 1 + 1 + 1
Adams FUNCTIONS FUNCTION = POLY(0, 0, 6.28)
NUMBERS
FUNCTION expressions can include integers, real numbers, and exponents. In other words, all
numbers that are legal in Adams are legal in a FUNCTION expression.
OPERATORS
In a FUNCTION expression, Adams allows any of the operators **, *, /, +, and -. Adams executes
these operators according to the following precedence rules:
• From the greatest to the least, the operators have the following priorities. ** then * / then + -. In
other words, Adams executes exponentiation (**) before all other operators and executes
multiplication (*) and division (/) before addition (+) and subtraction (-).
• When a statement has operators of the same priority, Adams executes them from left to right.
• You can use parentheses to alter the precedence of operators. For example, in the equation,
FUNCTION = (1-TIME)*30/PI
Adams subtracts TIME from one before it performs multiplication and division.
SYSTEM CONSTANTS
panel 23
panel set twindow_function akima_spline
In general, you use a function character string (such as DM, VX, or FZ) and a list of values (e.g. i1,
i2, and i3) to access a system variable in an expression. For example, the value i1 may be the name of
the marker for which you want to measure a quantity (such as displacement, velocity, acceleration, or
force), i2 is the name of the marker with respect to which you want to measure the quantity, and i3
is the name of the marker you want to use to resolve the components of the quantity. If you do not
specify marker i3, Adams computes the result in the ground reference frame.
ARITHMETIC IFS
Arithmetic IFs allow you to conditionally define FUNCTION. The format for arithmetic IFs is as
follows:
IF (expression 1: expression 2, expression 3, expression 4)
Adams evaluates expression 1. If expression 1 is less than zero, the arithmetic IF equals expression 2;
if expression 1 equals zero, the arithmetic IF equals expression 3; and if expression 1 is greater than
zero, the arithmetic IF equals expression 4.
A FUNCTION expression with an arithmetic IF and its four expressions is as given below:
FUNCTION = 6 * IF(VR(10,31): 0 , 0 , 100)
If the radial velocity between markers 10 and 31 is less than or equal to zero, the value of the
FUNCTION expression is zero; but if the radial velocity between markers 10 and 31 is greater than
zero, the value of the FUNCTION expression is six hundred.
In some ways, you may treat IF as a variable. For example, you can place it anywhere in the
expression. In addition, you can nest arithmetic IFs nine levels deep.
FORTRAN-77 FUNCTIONS
You can use the FORTRAN functions ABS, ATAN, ATAN2, COS, EXP, LOG, LOG10, MIN,
MAX, SIN, SQRT, and TAN in your expression. For more information about these functions, see
a FORTRAN reference manual. Invoke the text edit window and pick the FUNCTIONS button to
get a list of functions that can be accessed.
Adams FUNCTIONS
In general, an Adams function evaluates a mathematical equation and returns a value to your
FUNCTION expression. The following table lists all the Adams functions and their purposes.
Invoke the text edit window and pick the FUNCTIONS button to make a list of functions that can
be accessed.
Names Purposes
AKISPL Accesses the data in a SPLINE statement and uses the Akima cubic method to fit a
cubic curve (a spline) to the data.
BISTOP Evaluates a force restricting displacement of a part in two opposite directions
CHEBY Evaluates a Chebyshev polynomial
CUBSPL Accesses the data in a SPLINE statement and uses the traditional cubic method to fit
a cubic curve (a spline) to the data.
FORCOS Evaluates a Fourier cosine series
panel 25
panel set twindow_function akima_spline
Names Purposes
FORSIN Evaluates a Fourier sine series
HAVSIN Evaluates a haversine function
IMPACT Evaluates a force restricting displacement of a part in one direction
POLY Evaluates a polynomial
SHF Evaluates a simple harmonic function
STEP Approximates a step function with a cubic polynomial.
3. If the SPLINE defines only one curve, Adams ignores this parameter.
To enter a function expression you enter a series of quoted strings.
The easiest way to enter a function expression in Adams View is to use the text editor in combination
with the function builder. To invoke the text editor for entering a function expression, highlight the
function field and then either pick the "EDIT" button at the top of the panel or type a ^t (control-
t). The Adams View "function builder" is discussed below.
The syntactical correctness of a function expression can be investigated by using the "VERIFY"
button at the upper right of the text editor. If there is a syntax error, a message is printed and the
cursor is put near the problem. Proper unit consistency is not checked during function expression
verification.
The remainder of this explanation will cover the components of FUNCTION expressions as
summerized in the following table.
Components Examples
NUMBERS FUNCTION = 1E2 + 3.4 + 6
OPERATORS FUNCTION = 3*6/2 + 3 - 2**2
SYSTEM CONSTANTS FUNCTION = PI + 20
SYSTEM VARIABLES FUNCTION = AX(1040, 2010)
ARITHMETIC IFS FUNCTION = IF(DX(3, 5): -1, 0, 1)
FORTRAN-77 FUNCTIONS FUNCTION = ABS(NUM) - 6
BLANKS FUNCTION = 1 + 2
CONTINUATION COMMAS FUNCTION = 1 + 1 + 1 + 1 + 1 + 1 , + 1 + 1 + 1 + 1 + 1 + 1 + 1
Adams FUNCTIONS FUNCTION = POLY(0, 0, 6.28)
NUMBERS
FUNCTION expressions can include integers, real numbers, and exponents. In other words, all
numbers that are legal in Adams are legal in a FUNCTION expression.
OPERATORS
26 Adams View Commands
panel set twindow_function akima_spline
In a FUNCTION expression, Adams allows any of the operators **, *, /, +, and -. Adams executes
these operators according to the following precedence rules:
• From the greatest to the least, the operators have the following priorities. ** then * / then + -. In
other words, Adams executes exponentiation (**) before all other operators and executes
multiplication (*) and division (/) before addition (+) and subtraction (-).
• When a statement has operators of the same priority, Adams executes them from left to right.
• You can use parentheses to alter the precedence of operators. For example, in the equation,
FUNCTION = (1-TIME)*30/PI
Adams subtracts TIME from one before it performs multiplication and division.
SYSTEM CONSTANTS
You can include the following system constants in a FUNCTION expression:
• PI Value of pi (to eighteen significant digits)
• DTOR Value of pi/180 for converting degrees to radians
• RTOD Value of 180/pi for converting radians to degrees
The following example of a FUNCTION with a system constant multiplies the system constant PI
by the displacement of marker 10 with respect to marker 14:
FUNCTION = PI*DM(10,14)
BLANKS
A FUNCTION expression can contain any number of blank spaces. Five consecutive blank spaces in
an expression do not terminate input of the expression (by indicating that what follows is a comment)
as they do in an Adams statement. However, you should remember these two restrictions:
• You cannot put a blank space in the middle of a number.
• Adams does not accept a blank space between a function and its left bracket. (This is true for
both, FORTRAN-77 functions and Adams functions.)
CONTINUATION COMMAS
You can use a comma to continue FUNCTION expressions. You can break the expression anywhere
except in the middle of a number, in the middle of a name, or between a function and its left bracket.
Put a continuation comma in column one of the following line before the rest of the expression. If
you break the expression at a comma that is part of the expression, you must use both the expression
comma and the continuation comma. You may use more than one continuation comma to extend
an expression over several lines.
FUNCTION BUILDER
The FUNCTIONS button at the right side of the Adams View text editor provides a means of
constructing an Adams function string. These functions are briefly described below. Upon picking
the FUNCTIONS button, you will be presented with the list of available functions in the "selection
window". After you select the desired function, a panel will appear with fields representing the
panel 27
panel set twindow_function akima_spline
various parameters for the function. You will have full access to on-line help with this panel just like
you have with regular panels. After you have completed the panel and selected the DONE button on
the panel, the function string will be constructed and inserted at the current text cursor location in
the text edit window.
SYSTEM VARIABLES
A FUNCTION expression may access the current value of a system variable and use the value in
computations. These values are accessed through a collection of functions. The accessible system
variables include the following: Time, Mode, Displacements (Translational and Rotational),
Velocities (Translational and Rotational), Accelerations (Translational and Rotational), Forces
(Translational and Rotational), and User-defined variables. Invoke the text edit window and pick the
FUNCTIONS button to get a list of functions that can be accessed.
In general, you use a function character string (such as DM, VX, or FZ) and a list of values (e.g. i1,
i2, and i3) to access a system variable in an expression. For example, the value i1 may be the name of
the marker for which you want to measure a quantity (such as displacement, velocity, acceleration, or
force), i2 is the name of the marker with respect to which you want to measure the quantity, and i3
is the name of the marker you want to use to resolve the components of the quantity. If you do not
specify marker i3, Adams computes the result in the ground reference frame.
ARITHMETIC IFS
Arithmetic IFs allow you to conditionally define FUNCTION. The format for arithmetic IFs is as
follows:
IF (expression 1: expression 2, expression 3, expression 4)
Adams evaluates expression 1. If expression 1 is less than zero, the arithmetic IF equals expression 2;
if expression 1 equals zero, the arithmetic IF equals expression 3; and if expression 1 is greater than
zero, the arithmetic IF equals expression 4.
A FUNCTION expression with an arithmetic IF and its four expressions is as given below:
FUNCTION = 6 * IF(VR(10,31): 0 , 0 , 100)
If the radial velocity between markers 10 and 31 is less than or equal to zero, the value of the
FUNCTION expression is zero; but if the radial velocity between markers 10 and 31 is greater than
zero, the value of the FUNCTION expression is six hundred.
In some ways, you may treat IF as a variable. For example, you can place it anywhere in the
expression. In addition, you can nest arithmetic IFs nine levels deep.
FORTRAN-77 FUNCTIONS
You can use the FORTRAN functions ABS, ATAN, ATAN2, COS, EXP, LOG, LOG10, MIN,
MAX, SIN, SQRT, and TAN in your expression. For more information about these functions, see
a FORTRAN reference manual. Invoke the text edit window and pick the FUNCTIONS button to
get a list of functions that can be accessed.
Adams FUNCTIONS
In general, an Adams function evaluates a mathematical equation and returns a value to your
FUNCTION expression. The following table lists all the Adams functions and their purposes.
Invoke the text edit window and pick the FUNCTIONS button to make a list of functions that can
be accessed.
28 Adams View Commands
panel set twindow_function ax
Names Purposes
AKISPL Accesses the data in a SPLINE statement and uses the Akima cubic method to fit a
cubic curve (a spline) to the data.
BISTOP Evaluates a force restricting displacement of a part in two opposite directions
CHEBY Evaluates a Chebyshev polynomial
CUBSPL Accesses the data in a SPLINE statement and uses the traditional cubic method to fit
a cubic curve (a spline) to the data.
FORCOS Evaluates a Fourier cosine series
FORSIN Evaluates a Fourier sine series
HAVSIN Evaluates a haversine function
IMPACT Evaluates a force restricting displacement of a part in one direction
POLY Evaluates a polynomial
SHF Evaluates a simple harmonic function
STEP Approximates a step function with a cubic polynomial.
4. You identify a spline by typing its name. If you created the spline by reading an Adams data set, the
spline name is the letters SPL followed by the Adams data set spline ID number. The name of Adams
SPLINE/101 is SPL101, for example. If you created the spline during preprocessing, you gave it a
name at that time.
If a spline is available by default, you may identify it by entering its name only. If it is not, you must
enter its full name. To identify a spline under another model, for instance, you may need to enter the
model name as well. For example, you may specify spline 'stiffness' from model 'suspension' by
entering ".suspension.stiffness". If you type a "?", Adams View will list the splines available by default.
Cautions:
1. You must separate multiple spline names by commas.
Format:
panel set twindow_function ax
i_marker_name = existing marker
j_marker_name = existing marker
Example:
panel set twindow_function ax &
i_marker_name = marker_3 &
j_marker_name = marker_6
Description:
Extended Definition:
1. You may identify a marker by typing its name or by picking it from the screen.
If the marker is not visible on the screen, you must type the name.
You may also find it convenient to type the name even if the marker is displayed.
If you created the marker by reading an Adams data set or graphics file, the marker name is the letters
MAR followed by the Adams data set marker ID number. For example, the name of Adams
MARKER/101 is MAR101. If you created the marker during preprocessing, you will have given it a
name at that time.
If a marker is available by default, you may identify it by entering only its name. If it is not, you must
enter its full name. To identify a marker under a different part, for instance, you may need to enter
the model and part names as well. For example, you may specify marker 'pivot' from model 'links',
part 'lower_arm' by entering ".links.lower_arm.pivot". If you type a "?", Adams View will list the
markers available by default.
You must separate multiple marker names by commas.
If the marker is visible in one of your views, you may identify it by picking on it.
You need not separate multiple marker picks by commas.
30 Adams View Commands
panel set twindow_function ay
Format:
panel set twindow_function ay
i_marker_name = existing marker
j_marker_name = existing marker
Example:
panel set twindow_function ay &
i_marker_name = marker_3 &
j_marker_name = marker_6
Description:
Extended Definition:
1. You may identify a marker by typing its name or by picking it from the screen.
If the marker is not visible on the screen, you must type the name.
You may also find it convenient to type the name even if the marker is displayed.
If you created the marker by reading an Adams data set or graphics file, the marker name is the letters
MAR followed by the Adams data set marker ID number. For example, the name of Adams
MARKER/101 is MAR101. If you created the marker during preprocessing, you will have given it a
name at that time.
panel 31
panel set twindow_function az
If a marker is available by default, you may identify it by entering only its name. If it is not, you must
enter its full name. To identify a marker under a different part, for instance, you may need to enter
the model and part names as well. For example, you may specify marker 'pivot' from model 'links',
part 'lower_arm' by entering ".links.lower_arm.pivot". If you type a "?", Adams View will list the
markers available by default.
You must separate multiple marker names by commas.
If the marker is visible in one of your views, you may identify it by picking on it.
You need not separate multiple marker picks by commas.
Format:
panel set twindow_function az
i_marker_name = existing marker
j_marker_name = existing marker
Example:
panel set twindow_function az &
i_marker_name = marker_3 &
j_marker_name = marker_6
Description:
Extended Definition:
1. You may identify a marker by typing its name or by picking it from the screen.
If the marker is not visible on the screen, you must type the name.
You may also find it convenient to type the name even if the marker is displayed.
If you created the marker by reading an Adams data set or graphics file, the marker name is the letters
MAR followed by the Adams data set marker ID number. For example, the name of Adams
MARKER/101 is MAR101. If you created the marker during preprocessing, you will have given it a
name at that time.
If a marker is available by default, you may identify it by entering only its name. If it is not, you must
enter its full name. To identify a marker under a different part, for instance, you may need to enter
the model and part names as well. For example, you may specify marker 'pivot' from model 'links',
part 'lower_arm' by entering ".links.lower_arm.pivot". If you type a "?", Adams View will list the
markers available by default.
You must separate multiple marker names by commas.
If the marker is visible in one of your views, you may identify it by picking on it.
You need not separate multiple marker picks by commas.
Example:
panel set twindow_function b_spline &
panel set twindow_function b_spline curve_name = curve_1 &
panel set twindow_function b_spline derivative_order = 2 &
panel set twindow_function b_spline component = x
panel 33
panel set twindow_function b_spline
Description:
Extended Definition:
1. Curve names are assigned by the user when curves are created. After a curve has been created, it may
be referenced by its name until it is deleted. A curve may not have the same name as another curve
on the same plot. A curve is associated to a plot and may be referenced at any time with respect to
the plot. For example, a curve named "c1" on plot "p1" may be referenced by the full specification
of ".p1.c1". This type of full name specification avoids the need to force a given plot to be the
"current" or "default" to reference data (i.e. a curve) associated with it. This is very useful when
copying a curve from one plot to another, etc.
A curve_name may be arbitrarily long and a combination of letters of the alphabet and numbers may
be used. The leading character must be a letter.
2. If the curve is a B-spline computed by the CURVE statement, alpha must be in the domain -1 <
<1
3. The legal values are:
1 - returns the x coordinate or derivative
2 - returns the y coordinate or derivative
3 - returns the z coordinate or derivative
4. An integer variable that specifies the component that the CURVE function returns. The legal values
are:
Parameters iord and icomp together allow you to request any one of the following nine return values:
34 Adams View Commands
panel set twindow_function beam
Format:
panel set twindow_function beam
beam_name = existing beam
return_value_on_marker = marker_type
component = all_components
reference_marker = existing marker
Description:
Extended Definition:
1. You may identify a beam by typing its name or by picking it from the screen.
If the beam is not visible on the screen, you must type the name. You may also find it convenient to
type the name even if the beam is displayed.
If you created the beam by reading an ADAM data set or graphics file, the beam name is the letters
BEA followed by the Adams data set beam ID number. For example, the name of Adams BEAM/101
is BEA101. If you created the beam during preprocessing, you will have given it a name at that time.
If a beam is available by default, you may identify it by entering only its name. If it is not, you must
enter its full name. To identify a beam under a different model, for instance, you may need to enter
the model name as well. For example, you may specify beam 101 from the model named test by
entering ".test.bea101". If you type a "?", Adams View will list the beams available by default.
You must separate multiple beam names by commas.
If the beam is visible in one of your views, you may identify it by picking on any of the graphics
associated with it.
You need not separate multiple beam picks by commas.
2. The force or torque is calculated in the coordinate system of the REFERENCE_MARKER. If the
RETURN_VALUE_ON_MARKER parameter is set to "i", the value returned is the force or torque
acting on the I_MARKER of the force/torque generating element. If
RETURN_VALUE_ON_MARKER parameter is set to "j", the value returned is that acting on the
J_MARKER. If the REFERENCE_MARKER is not specified, the results are with respect to the
ground coordinate system.
3. The value for the COMPONENT parameter is one of fm, fx, fy, fz, tm, tx, ty, or tz.
The force or torque is calculated in the coordinate system of the REFERENCE_MARKER. If the
RETURN_VALUE_ON_MARKER parameter is set to "i", the value returned is the force or torque
acting on the I_MARKER of the force/torque generating element. If the
RETURN_VALUE_ON_MARKER parameter is set to "j", the value returned is that acting on the
J_MARKER. If the REFERENCE_MARKER is not specified the results are with respect to the
ground coordinate system.
36 Adams View Commands
panel set twindow_function bistop_slot
Format:
panel set twindow_function bistop_slot
x = function
dx = function
lower_bound = real
upper_bound = real
boundary_penetration = real
angular_lower_bound = angle
angular_upper_bound = angle
angular_boundary_penetration = angle
stiffness = real
force_exponent = real
max_damping_coefficient = real
Example:
panel set twindow_function bistop_slot &
panel set twindow_function bistop_slot lower_bound = 5 &
panel set twindow_function bistop_slot angular_lower_bound = 58 &
panel set twindow_function bistop_slot angular_boundary_penetration = 10 &
panel set twindow_function bistop_slot max_damping_coefficient = 3
Description:
Extended Definition:
1. The gap element essentially consists of a slot which defines the domain of motion of a Part located in
the slot. As long as the Part is located in the slot between the LOWER_BOUND (i.e. x1) and the
UPPER_BOUND (i.e. x2), and has no interference with the ends of the slot, it is free to move, and
no forces act on the Part. When the Part tries to move beyond the physical definition of the slot,
impact forces representing contact are created by the BISTOP_SLOT function. The force created
tends to move the floating Part back into the slot.
The BISTOP_SLOT force, which you define, has two components, a spring or STIFFNESS
component and a damping or viscous component. The STIFFNESS component (i.e. k) with the
FORCE_EXPONENT (i.e. e) is dependent on the penetration of the floating part beyond the gap
or slot into the restricting part, The damping or viscous component may be used to model energy loss.
38 Adams View Commands
panel set twindow_function bistop_slot
To prevent a discontinuity in the damping force at zero penetration, the damping coefficient is
defined as a cubic step function of the penetration. Thus at zero penetration, the damping coefficient
is always zero. The damping coefficient achieves a maximum, MAX_DAMPING_COEFFICIENT
(i.e. cmax), at a user-defined penetration, BOUNDARY_PENETRATION (i.e. d). Even though the
points of contact between the floating part and the restricting part may change as the system moves,
Adams always exerts the force between the I and the J markers.
The equation for this function can be mathematically expressed as follows:
| k*(x1-x)**e - STEP(x,x1-d,cmax,x1,0)*x' when x < x1 |
BISTOP = < 0 when x1 <= x <= x2
>
|-k*(x-x2)**e - STEP(x,x2,0,x2+d,cmax)*x' when x > x2 |
2. You compute x value using a function expression. For example, if the user wants to use the x
displacement of marker MAR0201 with respect to MAR0301, then x is DX(MAR0201,MAR0301).
To enter a function expression you enter a series of quoted strings.
The easiest way to enter a function expression in Adams View is to use the text editor in combination
with the function builder. To invoke the text editor for entering a function expression, highlight the
function field and then either pick the "EDIT" button at the top of the panel or type a ^t (control-
t). The Adams View "function builder" is discussed below.
The syntactical correctness of a function expression can be investigated by using the "VERIFY"
button at the upper right of the text editor. If there is a syntax error, a message is printed and the
cursor is put near the problem. Proper unit consistency is not checked during function expression
verification.
The remainder of this explanation will cover the components of FUNCTION expressions as
summerized in the following table.
Components Examples
Numbers FUNCTION = 1E2 + 3.4 + 6
Operators FUNCTION = 3*6/2 + 3 - 2**2
System constants FUNCTION = PI + 20
System variables FUNCTION = AX(1040, 2010)
Arithmetic IFs FUNCTION = IF(DX(3, 5): -1, 0, 1)
FORTRAN-77 functions FUNCTION = ABS(NUM) - 6
Blanks FUNCTION = 1 + 2
Continuation commas FUNCTION = 1 + 1 + 1 + 1 + 1 + 1 , + 1 + 1 + 1 + 1 + 1 + 1 + 1
Adams functions FUNCTION = POLY(0, 0, 6.28)
NUMBERS
FUNCTION expressions can include integers, real numbers, and exponents. In other words, any
numbers that are legal in Adams are legal in a FUNCTION expression.
panel 39
panel set twindow_function bistop_slot
OPERATORS
In a FUNCTION expression, Adams allows any of the operators **, *, /, +, and -. Adams executes
these operators according to the following precedence rules:
From greatest to least, the operators have the following
• priorities. ** then * / then + -. In other words, Adams
• executes exponentiation (**) before all other operators and
• executes multiplication (*) and division (/) before addition
• (+) and subtraction (-).
When a statement has operators of the same priority, Adams executes them from left to right.
You can use parentheses to alter the precedence of operators.
For example, in the equation
FUNCTION = (1-TIME)*30/PI
Adams subtracts TIME from one before it performs multiplication and division.
SYSTEM CONSTANTS
You can include the following system constants in a FUNCTION expression:
• PI Value of pi (to eighteen significant digits)
• DTOR Value of pi/180 for converting degrees to radians
• RTOD Value of 180/pi for converting radians to degrees
The following example of a FUNCTION with a system constant multiplies the system constant PI
by the displacement of marker 10 with respect to marker 14:
FUNCTION = PI*DM(10,14)
BLANKS
A FUNCTION expression can contain any number of blank spaces. Five consecutive blank spaces in
an expression do not terminate input of the expression (by indicating that what follows is a comment)
as they do in an Adams statement. However, you should remember these two restrictions.
You cannot put a blank space in the middle of a number.
Adams does not accept a blank space between a function and its left bracket. (This is true for both
FORTRAN-77 functions and Adams functions.)
CONTINUATION COMMAS
You can use a comma to continue FUNCTION expressions. You can break the expression anywhere
except in the middle of a number, in the middle of a name, or between a function and its left bracket.
Put a continuation comma in column one of the following line before the rest of the expression. If
you break the expression at a comma that is part of the expression, you must use both the expression
comma and the continuation comma. You may use more than one continuation comma to extend
an expression over several lines.
FUNCTION BUILDER
40 Adams View Commands
panel set twindow_function bistop_slot
The FUNCTIONS button at the right side of the Adams View text editor provides a means of
constructing an Adams function string. These functions are briefly described below. Upon picking
the FUNCTIONS button, you will be presented with the list of available functions in the "selection
window". After you select the desired function, a panel will appear with fields representing the
various parameters for the function. You will have full access to on-line help with this panel just like
you have with regular panels. After you have completed the panel and selected the DONE button on
the panel, the function string will be constructed and inserted at the current text cursor location in
the text edit window.
SYSTEM VARIABLES
A FUNCTION expression may access the current value of a system variable and use the value in
computations. These values are access through a collection of functions. The accessible system
variables include the following: Time, Mode, Displacements (Translational and Rotational),
Velocities (Translational and Rotational), Accelerations (Translational and Rotational), Forces
(Translational and Rotational), and User-defined variables. Invoke the text edit window and pick the
FUNCTIONS button to ge a list of functions that can be accessed.
In general, you use a function character string (such as DM, VX, or FZ) and a list of values (e.g. i1,
i2, and i3) to access a system variable in an expression. For example, the value i1 may be the name of
the marker for which you want to measure a quantity (such as displacement, velocity, acceleration, or
force), i2 is the name of the marker with respect to which you want to measure the quantity, and i3
is the name of the marker you want to use to resolve the components of the quantity. If you do not
specify marker i3, Adams computes the result in the ground reference frame.
ARITHMETIC IFS
Arithmetic IFs allow you to conditionally define FUNCTION. The format for arithmetic IFs
follows.
IF (expression 1: expression 2, expression 3, expression 4)
Adams evaluates expression 1. If expression 1 is less than zero, the arithmetic IF equals expression 2;
if expression 1 equals zero, the arithmetic IF equals expression 3; and if expression 1 is greater than
zero, the arithmetic IF equals expression 4.
A FUNCTION expression with an arithmetic IF and its four expressions is below.
FUNCTION = 6 * IF(VR(10,31): 0 , 0 , 100)
If the radial velocity between markers 10 and 31 is less than or equal to zero, the value of the
FUNCTION expression is zero; but if the radial velocity between markers 10 and 31 is greater than
zero, the value of the FUNCTION expression is six hundred.
In some ways, you may treat IF as a variable. For example, you can place it anywhere in the
expression. In addition, you can nest arithmetic IFs nine levels deep.
FORTRAN-77 FUNCTIONS
You can use the FORTRAN functions ABS, ATAN, ATAN2, COS, EXP, LOG, LOG10, MIN,
MAX, SIN, SQRT, and TAN in your expression. For more information about these functions, see
a FORTRAN reference manual.
Invoke the text edit window and pick the FUNCTIONS button to ge a list of functions that can be
accessed.
panel 41
panel set twindow_function bistop_slot
Adams FUNCTIONS
In general, an Adams function evaluates a mathematical equation and returns a value to your
FUNCTION expression. The following table lists all the Adams functions and their purposes.
Invoke the text edit window and pick the FUNCTIONS button to get a list of functions that can be
accessed.
Names Purposes
AKISPL Accesses the data in a SPLINE statement and uses the Akima cubic
method to fit a cubic curve (a spline) to the data.
BISTOP Evaluates a force restricting displacement of a part in two opposite
directions.
CHEBY Evaluates a Chebyshev polynomial.
FORCOS Evaluates a Fourier cosine series.
FORSIN Evaluates a Fourier sine series.
HAVSIN Evaluates a haversine function.
IMPACT | Evaluates a force restricting displacement of a part in one direction.
POLY Evaluates a polynomial.
SHF Evaluates a simple harmonic function.
STEP Approximates a step function with a cubic polynomial.
You compute this value using a function expression. For example, if x (the distance variable you use
to compute the force) is compute using the distance function DX(0201,0301) then, dx is computed
using the velocity function VX(0201,0301).
To enter a function expression you enter a series of quoted strings.
The easiest way to enter a function expression in Adams View is to use the text editor in combination
with the function builder. To invoke the text editor for entering a function expression, highlight the
function field and then either pick the "EDIT" button at the top of the panel or type a ^t (control-
t). The Adams View "function builder" is discussed below.
The syntactical correctness of a function expression can be investigated by using the "VERIFY"
button at the upper right of the text editor. If there is a syntax error, a message is printed and the
cursor is put near the problem. Proper unit consistency is not checked during function expression
verification.
The remainder of this explanation will cover the components of FUNCTION expressions as
summerized in the following table.
42 Adams View Commands
panel set twindow_function bistop_slot
Components Examples
Numbers FUNCTION = 1E2 + 3.4 + 6
Operators FUNCTION = 3*6/2 + 3 - 2**2
System constants FUNCTION = PI + 20
System variables FUNCTION = AX(1040, 2010)
Arithmetic IFs FUNCTION = IF(DX(3, 5): -1, 0, 1)
FORTRAN-77 functions FUNCTION = ABS(NUM) - 6
Blanks FUNCTION = 1 + 2
Continuation commas FUNCTION = 1 + 1 + 1 + 1 + 1 + 1 , + 1 + 1 + 1 + 1 + 1 + 1 + 1
Adams functions FUNCTION = POLY(0, 0, 6.28)
NUMBERS
FUNCTION expressions can include integers, real numbers, and exponents. In other words, any
numbers that are legal in Adams are legal in a FUNCTION expression.
OPERATORS
In a FUNCTION expression, Adams allows any of the operators **, *, /, +, and -. Adams executes
these operators according to the following precedence rules:
From greatest to least, the operators have the following
• priorities. ** then * / then + -. In other words, Adams
• executes exponentiation (**) before all other operators and
• executes multiplication (*) and division (/) before addition
• (+) and subtraction (-).
When a statement has operators of the same priority, Adams executes them from left to right.
You can use parentheses to alter the precedence of operators.
For example, in the equation
FUNCTION = (1-TIME)*30/PI
Adams subtracts TIME from one before it performs multiplication and division.
SYSTEM CONSTANTS
You can include the following system constants in a FUNCTION expression:
• PI Value of pi (to eighteen significant digits)
• DTOR Value of pi/180 for converting degrees to radians
• RTOD Value of 180/pi for converting radians to degrees
The following example of a FUNCTION with a system constant multiplies the system constant PI
by the displacement of marker 10 with respect to marker 14:
panel 43
panel set twindow_function bistop_slot
FUNCTION = PI*DM(10,14)
BLANKS
A FUNCTION expression can contain any number of blank spaces. Five consecutive blank spaces in
an expression do not terminate input of the expression (by indicating that what follows is a comment)
as they do in an Adams statement. However, you should remember these two restrictions.
You cannot put a blank space in the middle of a number.
Adams does not accept a blank space between a function and its left bracket. (This is true for both
FORTRAN-77 functions and Adams functions.)
CONTINUATION COMMAS
You can use a comma to continue FUNCTION expressions. You can break the expression anywhere
except in the middle of a number, in the middle of a name, or between a function and its left bracket.
Put a continuation comma in column one of the following line before the rest of the expression. If
you break the expression at a comma that is part of the expression, you must use both the expression
comma and the continuation comma. You may use more than one continuation comma to extend
an expression over several lines.
FUNCTION BUILDER
The FUNCTIONS button at the right side of the Adams View text editor provides a means of
constructing an Adams function string. These functions are briefly described below. Upon picking
the FUNCTIONS button, you will be presented with the list of available functions in the "selection
window". After you select the desired function, a panel will appear with fields representing the
various parameters for the function. You will have full access to on-line help with this panel just like
you have with regular panels. After you have completed the panel and selected the DONE button on
the panel, the function string will be constructed and inserted at the current text cursor location in
the text edit window.
SYSTEM VARIABLES
A FUNCTION expression may access the current value of a system variable and use the value in
computations. These values are access through a collection of functions. The accessible system
variables include the following: Time, Mode, Displacements (Translational and Rotational),
Velocities (Translational and Rotational), Accelerations (Translational and Rotational), Forces
(Translational and Rotational), and User-defined variables. Invoke the text edit window and pick the
FUNCTIONS button to ge a list of functions that can be accessed.
In general, you use a function character string (such as DM, VX, or FZ) and a list of values (e.g. i1,
i2, and i3) to access a system variable in an expression. For example, the value i1 may be the name of
the marker for which you want to measure a quantity (such as displacement, velocity, acceleration, or
force), i2 is the name of the marker with respect to which you want to measure the quantity, and i3
is the name of the marker you want to use to resolve the components of the quantity. If you do not
specify marker i3, Adams computes the result in the ground reference frame.
ARITHMETIC IFS
Arithmetic IFs allow you to conditionally define FUNCTION. The format for arithmetic IFs
follows.
IF (expression 1: expression 2, expression 3, expression 4)
44 Adams View Commands
panel set twindow_function bistop_slot
Adams evaluates expression 1. If expression 1 is less than zero, the arithmetic IF equals expression 2;
if expression 1 equals zero, the arithmetic IF equals expression 3; and if expression 1 is greater than
zero, the arithmetic IF equals expression 4.
A FUNCTION expression with an arithmetic IF and its four expressions is below.
FUNCTION = 6 * IF(VR(10,31): 0 , 0 , 100)
If the radial velocity between markers 10 and 31 is less than or equal to zero, the value of the
FUNCTION expression is zero; but if the radial velocity between markers 10 and 31 is greater than
zero, the value of the FUNCTION expression is six hundred.
In some ways, you may treat IF as a variable. For example, you can place it anywhere in the
expression. In addition, you can nest arithmetic IFs nine levels deep.
FORTRAN-77 FUNCTIONS
You can use the FORTRAN functions ABS, ATAN, ATAN2, COS, EXP, LOG, LOG10, MIN,
MAX, SIN, SQRT, and TAN in your expression. For more information about these functions, see
a FORTRAN reference manual.
Invoke the text edit window and pick the FUNCTIONS button to ge a list of functions that can be
accessed.
Adams FUNCTIONS
In general, an Adams function evaluates a mathematical equation and returns a value to your
FUNCTION expression. The following table lists all the Adams functions and their purposes.
Invoke the text edit window and pick the FUNCTIONS button to ge a list of functions that can be
accessed.
Names Purposes
AKISPL Accesses the data in a SPLINE statement and uses the Akima cubic
method to fit a cubic curve (a spline) to the data.
BISTOP Evaluates a force restricting displacement of a part in two opposite
directions.
CHEBY Evaluates a Chebyshev polynomial.
CUBSPL Accesses the data in a SPLINE statement and uses the traditional cubic
method to fit acubic curve (a spline) to the data.
FORCOS Evaluates a Fourier cosine series.
FORSIN Evaluates a Fourier sine series.
HAVSIN Evaluates a haversine function.
IMPACT | Evaluates a force restricting displacement of a part in one direction.
POLY Evaluates a polynomial.
SHF Evaluates a simple harmonic function.
STEP Approximates a step function with a cubic polynomial.
panel 45
panel set twindow_function bistop_slot
If x is less than LOWER_BOUND, Adams calculates a positive value for the force. The value of
LOWER_BOUND must be less than the value of UPPER_BOUND. The LOWER_BOUND
parameter is given as "x1" in the BISTOP_SLOT equation below.
| k*(x1-x)**e - STEP(x,x1-d,cmax,x1,0)*x' when x < x1 |
BISTOP = < 0 when x1 <= x <= x2
|-k*(x-x2)**e - STEP(x,x2,0,x2+d,cmax)*x' when x > x2 |
3. If x is greater than UPPER_BOUND, Adams calculates a negative value for the force. The value of
UPPER_BOUND must be greater than the value of LOWER_BOUND. The UPPER_BOUND
parameter is given as "x2" in the BISTOP_SLOT equation below.
| k*(x1-x)**e - STEP(x,x1-d,cmax,x1,0)*x' when x < x1 |
BISTOP = < 0 when x1 <= x <= x2
|-k*(x-x2)**e - STEP(x,x2,0,x2+d,cmax)*x' when x > x2 |
4. The BOUNDARY_PENETRATION parameter is given as "d" in the BISTOP_SLOT and
IMPACT equations below.
| k*(x1-x)**e - STEP(x,x1-d,cmax,x1,0)*x' when x < x1 |
BISTOP = < 0 when x1 <= x <= x2
|-k*(x-x2)**e - STEP(x,x2,0,x2+d,cmax)*x' when x > x2 |
| k*(x1-x)**e - STEP(x,x1-d,cmax,x1,0)*x' when x < x1 |
IMPACT = < >
| 0 when x >= x1 |
5. If x is less than ANGULAR_LOWER_BOUND, Adams calculates a positive value for the force. The
value of ANGULAR_LOWER_BOUND must be less than the value of
ANGULAR_UPPER_BOUND. The ANGULAR_LOWER_BOUND parameter is given as "x1"
in the BISTOP_SLOT equation below.
| k*(x1-x)**e - STEP(x,x1-d,cmax,x1,0)*x' when x < x1 |
BISTOP = < 0 when x1 <= x <= x2
|-k*(x-x2)**e - STEP(x,x2,0,x2+d,cmax)*x' when x > x2 |
6. If x is greater than ANGULAR_UPPER_BOUND, Adams calculates a negative value for the force.
The value of ANGULAR_UPPER_BOUND must be greater than the value of
ANGULAR_LOWER_BOUND. The ANGULAR_UPPER_BOUND parameter is given as "x2"
in the BISTOP_SLOT equation below.
| k*(x1-x)**e - STEP(x,x1-d,cmax,x1,0)*x' when x < x1 |
BISTOP = < 0 when x1 <= x <= x2
|-k*(x-x2)**e - STEP(x,x2,0,x2+d,cmax)*x' when x > x2 |
7. The ANGULAR_BOUNDARY_PENETRATION parameter is given as "d" in the BISTOP_SLOT
and IMPACT equations below.
| k*(x1-x)**e - STEP(x,x1-d,cmax,x1,0)*x' when x < x1 |
BISTOP = < 0 when x1 <= x <= x2
>
|-k*(x-x2)**e - STEP(x,x2,0,x2+d,cmax)*x' when x > x2 |
| k*(x1-x)**e - STEP(x,x1-d,cmax,x1,0)*x' when x < x1 |
IMPACT = < >
| 0 when x >= x1 |
8. For a stiffening spring characteristic, FORCE_EXPONENT (i.e. e in the equations below) is greater
than 1.0. For a softening spring characteristic, 0 < FORCE_EXPONENT < 1.0.
46 Adams View Commands
panel set twindow_function bushing
Format:
panel set twindow_function bushing
bushing_name = existing bushing
return_value_on_marker = marker_type
component = all_components
reference_marker = existing marker
panel 47
panel set twindow_function bushing
Description:
Extended Definition:
1. You may identify a bushing by typing its name or by picking it from the screen.
If the bushing is not visible on the screen, you must type the name.
You may also find it convenient to type the name even if the bushing is displayed.
If you created the bushing by reading an Adams data set or graphics file, the bushing name is the
letters BUS followed by the Adams data set bushing ID number. For example, the name of
AdamsAdams BUSHING/101 is BUS101. If you created the bushing during preprocessing, you will
have given it a name at that time.
If a bushing is available by default, you may identify it by entering only its name. If it is not, you must
enter its full name. To identify a bushing under a different model, for instance, you may need to enter
the model name as well. For example, you may specify bushing 'lower_front' from model 'sla' by
entering ".sla.lower_front". If you type a "?", Adams View will list the bushings available by default.
You must separate multiple bushing names by commas.
If the bushing is visible in one of your views, you may identify it by picking on any of the graphics
associated with it.
You need not separate multiple bushing picks by commas.
2. The force or torque is calculated in the coordinate system of the REFERENCE_MARKER. If the
RETURN_VALUE_ON_MARKER parameter is set to "i", the value returned is the force or torque
acting on the I_MARKER of the force/torque generating element. If the
RETURN_VALUE_ON_MARKER parameter is set to "j", the value returned is that acting on the
J_MARKER. If the REFERENCE_MARKER is not specified, the results are with respect to the
ground coordinate system.
3. The value for the COMPONENT parameter is one of fm, fx, fy, fz, tm, tx, ty, or tz.
48 Adams View Commands
panel set twindow_function chebyshev_polynomial
The force or torque is calculated in the coordinate system of the REFERENCE_MARKER. If the
RETURN_VALUE_ON_MARKER parameter is set to "i", the value returned is the force or torque
acting on the I_MARKER of the force/torque generating element. If the
RETURN_VALUE_ON_MARKER parameter is set to "j", the value returned is that acting on the
J_MARKER. If the REFERENCE_MARKER is not specified the results are with respect to the
ground coordinate system.
Format:
panel set twindow_function chebyshev_polynomial
x = run time function
shift = real
angular_shift = angle
coefficients = real
angular_coefficients = angle
panel 49
panel set twindow_function cosine_fourier_series
Description:
Format:
panel set twindow_function cosine_fourier_series
x = run time function
shift = real
angular_shift = angle
coefficients = real
50 Adams View Commands
panel set twindow_function cosine_fourier_series
Description:
Extended Definition:
1. Adams assumes FREQUENCY is in radians per unit of the independent variable unless you use a D
after the value.
The FREQUENCY parameter is represented in the following functions as "w".
The SIMPLE_HARMONIC_FUNCTION
SHF = a * sin(w * (x-x0) - phi) + b
The FOURIER_COSINE_SERIES is defined :
F(x) =aj*Tj(x-x0), where the Tj are: Tj(x-x0)=cos{j * w * (x-x0)}
The FOURIER_SINE_SERIES is defined as:
F(x) =aj*Tj(x-x0), where the Tj are: Tj(x-x0)=sin{j * w * (x-x0)}
panel 51
panel set twindow_function cubic_spline
Format:
panel set twindow_function cubic_spline
x = function
z = function
spline_name = an existing spline
derivative_order = integer
Example:
panel set twindow_function cubic_spline &
panel set twindow_function cubic_spline spline_name = spline_1 &
panel set twindow_function cubic_spline derivative_order = 2 &
Description:
Extended Definition:
1. The data points are defined in a SPLINE DATA_ELEMENT in your Adams View model. The
SPLINE that you define may represent a curve ( x-y points) or a surface (x-y-z points). Interpolation
in the y direction is cubic, and interpolation in the z direction is linear.
52 Adams View Commands
panel set twindow_function cubic_spline
The CUBIC_SPLINE, though not as fast as AKIMA_SPLINE, always produces good results for the
value of the function being approximated, including its first and second derivatives. There is no
requirement on the data points being evenly spaced. This may be an important consideration when
you use splines to define functions in Adams. The solution process often requires estimates of
derivatives of the functions being defined. The smoother a derivative is, the easier it is for the solution
process to converge.
If the spline data incorporates sudden changes in value, the CUBIC_SPLINE function gives more
oscillatory results for the curve or surface than are given by the AKIMA_SPLINE function.tended
Definition:
2. This variable can be any value of interest that you can compute using a function expression.
To enter a function expression you enter a series of quoted strings.
The easiest way to enter a function expression in Adams View is to use the text editor in combination
with the function builder. To invoke the text editor for entering a function expression, highlight the
function field and then either pick the "EDIT" button at the top of the panel or type a ^t (control-
t). The Adams View "function builder" is discussed below.
The syntactical correctness of a function expression can be investigated by using the "VERIFY"
button at the upper right of the text editor. If there is a syntax error, a message is printed and the
cursor is put near the problem. Proper unit consistency is not checked during function expression
verification.
The remainder of this explanation will cover the components of FUNCTION expressions as
summerized in the following table.
Components Examples
NUMBERS FUNCTION = 1E2 + 3.4 + 6
OPERATORS FUNCTION = 3*6/2 + 3 - 2**2
SYSTEM CONSTANTS FUNCTION = PI + 20
SYSTEM VARIABLES FUNCTION = AX(1040, 2010)
ARITHMETIC IFS FUNCTION = IF(DX(3, 5): -1, 0, 1)
FORTRAN-77 FUNCTIONS FUNCTION = ABS(NUM) - 6
BLANKS FUNCTION = 1 + 2
CONTINUATION COMMAS FUNCTION = 1 + 1 + 1 + 1 + 1 + 1 , + 1 + 1 + 1 + 1 + 1 + 1 + 1
Adams FUNCTIONS FUNCTION = POLY(0, 0, 6.28)
NUMBERS
FUNCTION expressions can include integers, real numbers, and exponents. In other words, all
numbers that are legal in Adams are legal in a FUNCTION expression.
OPERATORS
panel 53
panel set twindow_function cubic_spline
In a FUNCTION expression, Adams allows any of the operators **, *, /, +, and -. Adams executes
these operators according to the following precedence rules:
• From the greatest to the least, the operators have the following priorities. ** then * / then + -. In
other words, Adams executes exponentiation (**) before all other operators and executes
multiplication (*) and division (/) before addition (+) and subtraction (-).
• When a statement has operators of the same priority, Adams executes them from left to right.
• You can use parentheses to alter the precedence of operators. For example, in the equation,
FUNCTION = (1-TIME)*30/PI
AdamsAdams subtracts TIME from one before it performs multiplication and division.
SYSTEM CONSTANTS
You can include the following system constants in a FUNCTION expression:
• PI Value of pi (to eighteen significant digits)
• DTOR Value of pi/180 for converting degrees to radians
• RTOD Value of 180/pi for converting radians to degrees
The following example of a FUNCTION with a system constant multiplies the system constant PI
by the displacement of marker 10 with respect to marker 14:
FUNCTION = PI*DM(10,14)
BLANKS
A FUNCTION expression can contain any number of blank spaces. Five consecutive blank spaces in
an expression do not terminate input of the expression (by indicating that what follows is a comment)
as they do in an Adams statement. However, you should remember these two restrictions:
• You cannot put a blank space in the middle of a number.
• Adams does not accept a blank space between a function and its left bracket. (This is true for
both, FORTRAN-77 functions and Adams functions.)
CONTINUATION COMMAS
You can use a comma to continue FUNCTION expressions. You can break the expression anywhere
except in the middle of a number, in the middle of a name, or between a function and its left bracket.
Put a continuation comma in column one of the following line before the rest of the expression. If
you break the expression at a comma that is part of the expression, you must use both the expression
comma and the continuation comma. You may use more than one continuation comma to extend an
expression over several lines.
FUNCTION BUILDER
The FUNCTIONS button at the right side of the Adams View text editor provides a means of
constructing an Adams function string. These functions are briefly described below. Upon picking
the FUNCTIONS button, you will be presented with the list of available functions in the "selection
window". After you select the desired function, a panel will appear with fields representing the
54 Adams View Commands
panel set twindow_function cubic_spline
various parameters for the function. You will have full access to on-line help with this panel just like
you have with regular panels. After you have completed the panel and selected the DONE button on
the panel, the function string will be constructed and inserted at the current text cursor location in
the text edit window.
SYSTEM VARIABLES
A FUNCTION expression may access the current value of a system variable and use the value in
computations. These values are accessed through a collection of functions. The accessible system
variables include the following: Time, Mode, Displacements (Translational and Rotational),
Velocities (Translational and Rotational), Accelerations (Translational and Rotational), Forces
(Translational and Rotational), and User-defined variables. Invoke the text edit window and pick the
FUNCTIONS button to get a list of functions that can be accessed.
In general, you use a function character string (such as DM, VX, or FZ) and a list of values (e.g. i1,
i2, and i3) to access a system variable in an expression. For example, the value i1 may be the name of
the marker for which you want to measure a quantity (such as displacement, velocity, acceleration, or
force), i2 is the name of the marker with respect to which you want to measure the quantity, and i3
is the name of the marker you want to use to resolve the components of the quantity. If you do not
specify marker i3, Adams computes the result in the ground reference frame.
ARITHMETIC IFS
Arithmetic IFs allow you to conditionally define FUNCTION. The format for arithmetic IFs is as
follows:
IF (expression 1: expression 2, expression 3, expression 4)
Adams evaluates expression 1. If expression 1 is less than zero, the arithmetic IF equals expression 2;
if expression 1 equals zero, the arithmetic IF equals expression 3; and if expression 1 is greater than
zero, the arithmetic IF equals expression 4.
A FUNCTION expression with an arithmetic IF and its four expressions is as given below:
FUNCTION = 6 * IF(VR(10,31): 0 , 0 , 100)
If the radial velocity between markers 10 and 31 is less than or equal to zero, the value of the
FUNCTION expression is zero; but if the radial velocity between markers 10 and 31 is greater than
zero, the value of the FUNCTION expression is six hundred.
In some ways, you may treat IF as a variable. For example, you can place it anywhere in the
expression. In addition, you can nest arithmetic IFs nine levels deep.
FORTRAN-77 FUNCTIONS
You can use the FORTRAN functions ABS, ATAN, ATAN2, COS, EXP, LOG, LOG10, MIN,
MAX, SIN, SQRT, and TAN in your expression. For more information about these functions, see a
FORTRAN reference manual. Invoke the text edit window and pick the FUNCTIONS button to
get a list of functions that can be accessed.
Adams FUNCTIONS
In general, an Adams function evaluates a mathematical equation and returns a value to your
FUNCTION expression. The following table lists all the Adams functions and their purposes.
Invoke the text edit window and pick the FUNCTIONS button to make a list of functions that can
be accessed.
panel 55
panel set twindow_function cubic_spline
Names Purposes
AKISPL Accesses the data in a SPLINE statement and uses the Akima cubic method to fit a
cubic curve(a spline) to the data.
BISTOP Evaluates a force restricting displacement of a part in two opposite directions
CHEBY Evaluates a Chebyshev polynomial
CUBSPL Accesses the data in a SPLINE statement and uses the traditional cubic method to fit
a cubic curve (a spline) to the data.
FORCOS Evaluates a Fourier cosine series
FORSIN Evaluates a Fourier sine series
HAVSIN Evaluates a haversine function
IMPACT Evaluates a force restricting displacement of a part in one direction
POLY Evaluates a polynomial
SHF Evaluates a simple harmonic function
STEP Approximates a step function with a cubic polynomial.
3. If the SPLINE defines only one curve, Adams ignores this parameter.
To enter a function expression you enter a series of quoted strings.
The easiest way to enter a function expression in Adams View is to use the text editor in combination
with the function builder. To invoke the text editor for entering a function expression, highlight the
function field and then either pick the "EDIT" button at the top of the panel or type a ^t (control-
t). The Adams View "function builder" is discussed below.
The syntactical correctness of a function expression can be investigated by using the "VERIFY"
button at the upper right of the text editor. If there is a syntax error, a message is printed and the
cursor is put near the problem. Proper unit consistency is not checked during function expression
verification.
The remainder of this explanation will cover the components of FUNCTION expressions as
summarized in the following table.
Components Examples
NUMBERS FUNCTION = 1E2 + 3.4 + 6
OPERATORS FUNCTION = 3*6/2 + 3 - 2**2
SYSTEM CONSTANTS FUNCTION = PI + 20
SYSTEM VARIABLES FUNCTION = AX(1040, 2010)
ARITHMETIC IFS FUNCTION = IF(DX(3, 5): -1, 0, 1)
FORTRAN-77 FUNCTIONS FUNCTION = ABS(NUM) - 6
56 Adams View Commands
panel set twindow_function cubic_spline
Components Examples
BLANKS FUNCTION = 1 + 2
CONTINUATION COMMAS FUNCTION = 1 + 1 + 1 + 1 + 1 + 1 , + 1 + 1 + 1 + 1 + 1 + 1 + 1
Adams FUNCTIONS FUNCTION = POLY(0, 0, 6.28)
NUMBERS
FUNCTION expressions can include integers, real numbers, and exponents. In other words, all
numbers that are legal in Adams are legal in a FUNCTION expression.
OPERATORS
In a FUNCTION expression, Adams allows any of the operators **, *, /, +, and -. Adams executes
these operators according to the following precedence rules:
• From the greatest to the least, the operators have the following priorities. ** then * / then + -. In
other words, Adams executes exponentiation (**) before all other operators and executes
multiplication (*) and division (/) before addition (+) and subtraction (-).
• When a statement has operators of the same priority, Adams executes them from left to right.
• You can use parentheses to alter the precedence of operators. For example, in the equation,
FUNCTION = (1-TIME)*30/PI
Adams subtracts TIME from one before it performs multiplication and division.
SYSTEM CONSTANTS
You can include the following system constants in a FUNCTION expression:
• PI Value of pi (to eighteen significant digits)
• DTOR Value of pi/180 for converting degrees to radians
• RTOD Value of 180/pi for converting radians to degrees
The following example of a FUNCTION with a system constant multiplies the system constant PI
by the displacement of marker 10 with respect to marker 14:
FUNCTION = PI*DM(10,14)
BLANKS
A FUNCTION expression can contain any number of blank spaces. Five consecutive blank spaces in
an expression do not terminate input of the expression (by indicating that what follows is a comment)
as they do in an Adams statement. However, you should remember these two restrictions:
• You cannot put a blank space in the middle of a number.
• Adams does not accept a blank space between a function and its left bracket. (This is true for
both, FORTRAN-77 functions and Adams functions.)
CONTINUATION COMMAS
panel 57
panel set twindow_function cubic_spline
You can use a comma to continue FUNCTION expressions. You can break the expression anywhere
except in the middle of a number, in the middle of a name, or between a function and its left bracket.
Put a continuation comma in column one of the following line before the rest of the expression. If
you break the expression at a comma that is part of the expression, you must use both the expression
comma and the continuation comma. You may use more than one continuation comma to extend
an expression over several lines.
FUNCTION BUILDER
The FUNCTIONS button at the right side of the Adams View text editor provides a means of
constructing an Adams function string. These functions are briefly described below. Upon picking
the FUNCTIONS button, you will be presented with the list of available functions in the "selection
window". After you select the desired function, a panel will appear with fields representing the
various parameters for the function. You will have full access to on-line help with this panel just like
you have with regular panels. After you have completed the panel and selected the DONE button on
the panel, the function string will be constructed and inserted at the current text cursor location in
the text edit window.
SYSTEM VARIABLES
A FUNCTION expression may access the current value of a system variable and use the value in
computations. These values are accessed through a collection of functions. The accessible system
variables include the following: Time, Mode, Displacements (Translational and Rotational),
Velocities (Translational and Rotational), Accelerations (Translational and Rotational), Forces
(Translational and Rotational), and User-defined variables. Invoke the text edit window and pick the
FUNCTIONS button to get a list of functions that can be accessed.
In general, you use a function character string (such as DM, VX, or FZ) and a list of values (e.g. i1,
i2, and i3) to access a system variable in an expression. For example, the value i1 may be the name of
the marker for which you want to measure a quantity (such as displacement, velocity, acceleration, or
force), i2 is the name of the marker with respect to which you want to measure the quantity, and i3
is the name of the marker you want to use to resolve the components of the quantity. If you do not
specify marker i3, Adams computes the result in the ground reference frame.
ARITHMETIC IFS
Arithmetic IFs allow you to conditionally define FUNCTION. The format for arithmetic IFs is as
follows:
IF (expression 1: expression 2, expression 3, expression 4)
Adams evaluates expression 1. If expression 1 is less than zero, the arithmetic IF equals expression 2;
if expression 1 equals zero, the arithmetic IF equals expression 3; and if expression 1 is greater than
zero, the arithmetic IF equals expression 4.
A FUNCTION expression with an arithmetic IF and its four expressions is as given below:
FUNCTION = 6 * IF(VR(10,31): 0 , 0 , 100)
If the radial velocity between markers 10 and 31 is less than or equal to zero, the value of the
FUNCTION expression is zero; but if the radial velocity between markers 10 and 31 is greater than
zero, the value of the FUNCTION expression is six hundred.
58 Adams View Commands
panel set twindow_function cubic_spline
In some ways, you may treat IF as a variable. For example, you can place it anywhere in the
expression. In addition, you can nest arithmetic IFs nine levels deep.
FORTRAN-77 FUNCTIONS
You can use the FORTRAN functions ABS, ATAN, ATAN2, COS, EXP, LOG, LOG10, MIN,
MAX, SIN, SQRT, and TAN in your expression. For more information about these functions, see
a FORTRAN reference manual. Invoke the text edit window and pick the FUNCTIONS button to
get a list of functions that can be accessed.
Adams FUNCTIONS
In general, an Adams function evaluates a mathematical equation and returns a value to your
FUNCTION expression. The following table lists all the AdamsAdamsAdams functions and their
purposes. Invoke the text edit window and pick the FUNCTIONS button to make a list of functions
that can be accessed.
Names Purposes
AKISPL Accesses the data in a SPLINE statement and uses the Akima cubic method to fit a
cubic curve (a spline) to the data.
BISTOP Evaluates a force restricting displacement of a part in two opposite directions
CHEBY Evaluates a Chebyshev polynomial
CUBSPL Accesses the data in a SPLINE statement and uses the traditional cubic method to fit
a cubic curve (a spline) to the data.
FORCOS Evaluates a Fourier cosine series
FORSIN Evaluates a Fourier sine series
HAVSIN Evaluates a haversine function
IMPACT Evaluates a force restricting displacement of a part in one direction
POLY Evaluates a polynomial
SHF Evaluates a simple harmonic function
STEP Approximates a step function with a cubic polynomial.
4. You identify a spline by typing its name. If you created the spline by reading an Adams data set, the
spline name is the letters SPL followed by the Adams data set spline ID number. The name of Adams
SPLINE/101 is SPL101, for example. If you created the spline during preprocessing, you gave it a
name at that time.
If a spline is available by default, you may identify it by entering its name only. If it is not, you must
enter its full name. To identify a spline under another model, for instance, you may need to enter the
model name as well. For example, you may specify spline 'stiffness' from model 'suspension' by
entering ".suspension.stiffness". If you type a "?", Adams View will list the splines available by default.
panel 59
panel set twindow_function curve_curve
Format:
panel set twindow_function curve_curve
curve_curve_name = existing curve_curve
return_value_on_marker = marker_type
component = all_components
reference_marker = existing marker
Description:
Extended Definition:
1. You may identify a curve_curve by typing its name or by picking it from the screen.
If the curve_curve is not visible on the screen, you must type the name. You may also find it
convenient to type the name even if the curve_curve is displayed.
60 Adams View Commands
panel set twindow_function differential_equation
If you created the curve_curve by reading an Adams data set or graphics file, the curve_curve name is
the letters CCU followed by the Adams data set curve_curve ID number. For example, the name of
Adams CVCV/101 is CCU101. If you created the curve_curve during preprocessing, you will have
given it a name at that time.
If a curve_curve is available by default, you may identify it by entering only its name. If it is not, you
must enter its full name.
To identify a curve_curve under an model, for instance, you may need to enter the model name as
well. For example, you may specify CVCV101 from the model named test by entering
".test.CCU101". If you type a "?", Adams View will list the curve_curves available by default.
You must separate multiple curve_curve names by commas.
If the curve_curve is visible in one of your views, you may identify it by picking on any of the graphics
associated with it.
You need not separate multiple curve_curve picks by commas.
2. The force or torque is calculated in the coordinate system of the REFERENCE_MARKER. If the
RETURN_VALUE_ON_MARKER parameter is set to "i", the value returned is the force or torque
acting on the I_MARKER of the force/torque generating element. If the
RETURN_VALUE_ON_MARKER parameter is set to "j", the value returned is that acting on the
J_MARKER. If the REFERENCE_MARKER is not specified, the results are with respect to the
ground coordinate system.
3. The value for the COMPONENT parameter is one of fm, fx, fy, fz, tm, tx, ty, or tz.
The force or torque is calculated in the coordinate system of the REFERENCE_MARKER. If the
RETURN_VALUE_ON_MARKER parameter is set to "i", the value returned is the force or torque
acting on the I_MARKER of the force/torque generating element. If
RETURN_VALUE_ON_MARKER parameter is set to "j", the value returned is that acting on the
J_MARKER. If the REFERENCE_MARKER is not specified the results are with respect to the
ground coordinate system.
Format:
panel set twindow_function differential_equation
differential_equation_name = existing equation
Example:
panel set twindow_function differential_equation &
differential_equation_name = diff_1
panel 61
panel set twindow_function dm
Description:
Extended Definition:
1. You may identify a differential_equation by typing its name or by picking it from the screen.
Since differential_equation do not have a geometric position, Adams View displays
differential_equation icons at or near the model origin. If the differential_equation icon is not visible
on the screen, you must type the name. You may also find it convenient to type the name even if the
differential_equation icon is displayed.
If you created the differential_equation by reading an Adams data set or graphics file, the
differential_equation name is the letters DIF followed by the Adams data set differential_equation ID
number. For example, the name of Adams DIFF/101 is DIF101. If you created the
differential_equation during preprocessing, you will have given it a name at that time.
If a differential_equation is owned by the default model, you may identify it by entering its name
only. If it is not, you must enter its full name. To identify a differential_equation under a different
model, for instance, you may need to enter the model name as well.
For example, you may specify differential_equation 'fluid_volume' from model 'hydro' by entering
".hydro.fluid_volume'". If you type a "?", Adams View will list the differential_equation available by
default.
You must separate multiple differential_equation names by commas.
If the differential_equation is visible in one of your views, you may identify it by picking on any of
the graphics associated with it.
You need not separate multiple differential_equation picks by commas.
Format:
panel set twindow_function dm
i_marker_name = an existing marker
j_marker_name = an existing marker
62 Adams View Commands
panel set twindow_function dm
Example:
panel set twindow_function dm &
panel set twindow_function dm i_marker_name = marker_71 &
panel set twindow_function dm j_marker_name = marker_82
Description:
Extended Definition:
1. The J_MARKER (i2) may not be specified, in which case it defaults to ground. DM is the distance
between markers i1 and i2 and by definition is always positive. Mathematically, DM is calculated as
follows:
DM = ( [ Ri1 - Ri2] [ Ri1 - Ri2] )**1/2
where Ri1 is the displacement of marker i1 in ground, and Ri2 is the displacement of marker i2 in
ground.
2. You may identify a marker by typing its name or by picking it from the screen.
If the marker is not visible on the screen, you must type the name. You may also find it convenient
to type the name even if the marker is displayed.
If you created the marker by reading an ADAMS data set or graphics file, the marker name is the
letters MAR followed by the ADAMS data set marker ID number. The name of ADAMS
MARKER/101 is MAR101, for example. If you created the marker during preprocessing, you gave
it a name at that time.
If a marker is available by default, you may identify it by entering its name only. If it is not, you must
enter its full name. To identify a marker under a different part, for instance, you may need to enter
the model and part names as well. For example, you may specify marker 'pivot' from model 'links',
part 'lower_arm' by entering ".links.lower_arm.pivot". If you type a "?", Adams View will list the
markers available by default.
You must separate multiple marker names by commas.
If the marker is visible in one of your views, you may identify it by picking on it.
3. You may identify a marker by typing its name or by picking it from the screen.
If the marker is not visible on the screen, you must type the name. You may also find it convenient
to type the name even if the marker is displayed.
panel 63
panel set twindow_function dt_differential_equation
If you created the marker by reading an ADAMS data set or graphics file, the marker name is the
letters MAR followed by the ADAMS data set marker ID number. The name of ADAMS
MARKER/101 is MAR101, for example. If you created the marker during preprocessing, you gave
it a name at that time.
If a marker is available by default, you may identify it by entering its name only. If it is not, you must
enter its full name. To identify a marker under a different part, for instance, you may need to enter
the model and part names as well. For example, you may specify marker 'pivot' from model 'links',
part 'lower_arm' by entering ".links.lower_arm.pivot". If you type a "?", Adams View will list the
markers available by default.
You must separate multiple marker names by commas.
If the marker is visible in one of your views, you may identify it by picking on it.
Tips:
1. You need not separate multiple marker picks by commas.
Format:
panel set twindow_function dt_differential_equation
differential_equation_name = an existing equation
Example:
panel set twindow_function dt_differential_equation &
differential_equation_name = diff_eq_1
Description:
Extended Definition:
1. In instances, where a DIFFERENTIAL_EQUATION is used to define an implicit algebraic
equation, the DT_DIFFERENTIAL_EQUATION function returns an approximation of the time
derivative obtained by numerical differencing.
2. You may identify a differential_equation by typing its name or by picking it from the screen.
64 Adams View Commands
panel set twindow_function dx
Tips:
1. If you type a "?", Adams View will list the differential_equation available by default.
Format:
panel set twindow_function dx
i_marker_name = an existing marker
j_marker_name = an existing marker
r_marker_name = an existing marker
Example:
panel set twindow_function dx &
panel set twindow_function dm i_marker_name = marker_71 &
panel set twindow_function dm j_marker_name = marker_82
panel 65
panel set twindow_function dx
Description:
Extended Definition:
1. The J_MARKER (i2) may not be specified, in which case it defaults to ground. Similarly, the
R_MARKER (i3) may not be specified, in which case it defaults to ground. Mathematically, DX is
calculated as follows:
DX = [ Ri1 - Ri2] xi3
where Ri1 is the displacement of marker i1 in ground, Ri2 is the displacement of marker i2 in ground,
and xi3 is the unit vector along the x-axis of marker i3 .
2. You may identify a marker by typing its name or by picking it from the screen.
If the marker is not visible on the screen, you must type the name. You may also find it convenient
to type the name even if the marker is displayed.
If you created the marker by reading an Adams data set or graphics file, the marker name is the letters
MAR followed by the Adams data set marker ID number. The name of Adams MARKER/101 is
MAR101, for example. If you created the marker during preprocessing, you gave it a name at that
time.
If a marker is available by default, you may identify it by entering its name only. If it is not, you must
enter its full name. To identify a marker under a different part, for instance, you may need to enter
the model and part names as well. For example, you may specify marker 'pivot' from model 'links',
part 'lower_arm' by entering ".links.lower_arm.pivot". If you type a "?", Adams View will list the
markers available by default.
You must separate multiple marker names by commas.
If the marker is visible in one of your views, you may identify it by picking on it.
3. You may identify a marker by typing its name or by picking it from the screen.
If the marker is not visible on the screen, you must type the name. You may also find it convenient
to type the name even if the marker is displayed.
If you created the marker by reading an Adams data set or graphics file, the marker name is the letters
MAR followed by the Adams data set marker ID number. The name of Adams MARKER/101 is
MAR101, for example. If you created the marker during preprocessing, you gave it a name at that
time.
66 Adams View Commands
panel set twindow_function dy
If a marker is available by default, you may identify it by entering its name only. If it is not, you must
enter its full name. To identify a marker under a different part, for instance, you may need to enter
the model and part names as well. For example, you may specify marker 'pivot' from model 'links',
part 'lower_arm' by entering ".links.lower_arm.pivot". If you type a "?", Adams View will list the
markers available by default.
4. If you do not supply this parameter, Adams will evaluate the function in the ground reference frame.
Tips:
1. You need not separate multiple marker picks by commas.
Format:
panel set twindow_function dy
i_marker_name = existing marker
j_marker_name = existing marker
r_marker_name = existing marker
Example:
panel set twindow_function dy &
i_marker_name = marker_3 &
j_marker_name = marker_6 &
r_marker_name = cm
panel 67
panel set twindow_function field
Description:
Extended Definition:
1. You may identify a marker by typing its name or by picking it from the screen.
If the marker is not visible on the screen, you must type the name.
You may also find it convenient to type the name even if the marker is displayed.
If you created the marker by reading an Adams data set or graphics file, the marker name is the letters
MAR followed by the Adams data set marker ID number. For example, the name of Adams
MARKER/101 is MAR101. If you created the marker during preprocessing, you will have given it a
name at that time.
If a marker is available by default, you may identify it by entering only its name. If it is not, you must
enter its full name. To identify a marker under a different part, for instance, you may need to enter
the model and part names as well. For example, you may specify marker 'pivot' from model 'links',
part 'lower_arm' by entering ".links.lower_arm.pivot". If you type a "?", Adams View will list the
markers available by default.
You must separate multiple marker names by commas.
If the marker is visible in one of your views, you may identify it by picking on it.
You need not separate multiple marker picks by commas.
Format:
panel set twindow_function field
field_name = existing field
return_value_on_marker = marker_type
component = all_components
reference_marker = existing marker
Description:
Extended Definition:
1. Specifies an existing field which you want information on.
You may identify a field by typing its name or by picking it from the screen.
If the field is not visible on the screen, you must type the name.
You may also find it convenient to type the name even if the field is displayed.
If you created the field by reading an Adams data set file, the field name is 'FIE'. If you created the
field during preprocessing, you will have given it a name at that time.
If a field is available by default, you may identify it by entering only its name. If it is not, you must
enter its full name. To identify a field under a different model, for instance, you may need to enter
the model name as well. For example, you may specify field 'fld1' from model 'robot' by entering
".robot.fld1". If you type a "?", Adams View will list the fields available by default.
You must separate multiple field names by commas.
If the field is visible in one of your views, you may identify it by picking on any of the graphics
associated with it.
You need not separate multiple field picks by commas.
panel 69
panel set twindow_function fm
2. The force or torque is calculated in the coordinate system of the REFERENCE_MARKER. If the
RETURN_VALUE_ON_MARKER parameter is set to "i", the value returned is the force or torque
acting on the I_MARKER of the force/torque generating element. If the
RETURN_VALUE_ON_MARKER parameter is set to "j", the value returned is that acting on the
J_MARKER. If the REFERENCE_MARKER is not specified, the results are with respect to the
ground coordinate system.
3. The value for the COMPONENT parameter is one of fm, fx, fy, fz, tm, tx, ty, or tz.
The force or torque is calculated in the coordinate system of the REFERENCE_MARKER. If the
RETURN_VALUE_ON_MARKER parameter is set to "i", the value returned is the force or torque
acting on the I_MARKER of the force/torque generating element. If the
RETURN_VALUE_ON_MARKER parameter is set to "j", the value returned is that acting on the
J_MARKER. If the REFERENCE_MARKER is not specified, the results are with respect to the
ground coordinate system.
Format:
panel set twindow_function fm
i_marker_name = existing marker
j_marker_name = existing marker
Example:
panel set twindow_function fm &
i_marker_name = marker_3 &
j_marker_name = marker_6
Description:
Extended Definition:
1. You may identify a marker by typing its name or by picking it from the screen.
70 Adams View Commands
panel set twindow_function force_vector
If the marker is not visible on the screen, you must type the name. You may also find it convenient
to type the name even if the marker is displayed.
If you created the marker by reading an Adams data set or graphics file, the marker name is the letters
MAR followed by the AdamsAdams data set marker ID number. The name of Adams MARKER/101
is MAR101, for example. If you created the marker during preprocessing, you gave it a name at that
time.
If a marker is available by default, you may identify it by entering its name only. If it is not, you must
enter its full name. To identify a marker under a different part, for instance, you may need to enter
the model and part names as well. For example, you may specify marker 'pivot' from model 'links',
part 'lower_arm' by entering ".links.lower_arm.pivot". If you type a "?", Adams View will list the
markers available by default.
You must separate multiple marker names by commas.
If the marker is visible in one of your views, you may identify it by picking on it.
You need not separate multiple marker picks by commas.
Format:
panel set twindow_function force_vector
force_vector_name = an existing vforce
return_value_on_marker = marker_type
component = all_components
reference_marker = an existing marker
Example:
panel set twindow_function force_vector &
panel set twindow_function single_component_force return_value_on_marker = i &
panel set twindow_function single_component_force component = fx &
panel set twindow_function single_component_force reference_marker = marker_84
panel 71
panel set twindow_function force_vector
Description:
Extended Definition:
1. The force or torque is calculated in the coordinate system of the REFERENCE_MARKER. If the
RETURN_VALUE_ON_MARKER parameter is set to "i", the value returned is the force or torque
acting on the I_MARKER of the force/torque generating element. If
RETURN_VALUE_ON_MARKER parameter is set to "j", the value returned is that acting on the
J_MARKER. If the REFERENCE_MARKER is not specified the results are with respect to the
ground coordinate system.
2. You may identify a force vector by typing its name or by picking it from the screen.
If the force vector is not visible on the screen, you must type the name. You may also find it
convenient to type the name even if the force vector is displayed.
If you created the force vector by reading an Adams data set or graphics file, the force vector name is
the letters VFO followed by the Adams data set force vector ID number. The name of Adams
VFORCE/101 is VFO101, for example. If you created the force vector during preprocessing, you
gave it a name at that time.
If a force vector is available by default, you may identify it by entering its name only. If it is not, you
must enter its full name. To identify a force vector under another model, for instance, you may need
to enter the model name as well. For example, you may specify force vector 'spring' from the model
'suspension' by entering ".suspension.spring". If you type a "?", AdamsAdams View will list the force
vector available by default.
3. The force or torque is calculated in the coordinate system of the REFERENCE_MARKER. If the
RETURN_VALUE_ON_MARKER parameter is set to "i", the value returned is the force or torque
acting on the I_MARKER of the force/torque generating element. If
RETURN_VALUE_ON_MARKER parameter is set to "j", the value returned is that acting on the
J_MARKER. If the REFERENCE_MARKER is not specified the results are with respec to the
ground coordinate system.
4. The value for the COMPONENT parameter is one of fm, fx, fy, fz, tm, tx, ty, or tz.
72 Adams View Commands
panel set twindow_function fx
The force or torque is calculated in the coordinate system of the REFERENCE_MARKER. If the
RETURN_VALUE_ON_MARKER parameter is set to "i", the value returned is the force or torque
acting on the I_MARKER of the force/torque generating element. If
RETURN_VALUE_ON_MARKER parameter is set to "j", the value returned is that acting on the
J_MARKER. If the REFERENCE_MARKER is not specified the results are with respect to the
ground coordinate system.
5. The force or torque is calculated in the coordinate system of the REFERENCE_MARKER. If the
REFERENCE_MARKER is not specified the results are with respect to the ground coordinate
system.
Tips:
1. You need not separate multiple force vector picks by commas.
2. If the force vector is visible in one of your views, you may identify it by picking on any of the graphics
associated with it.
Format:
panel set twindow_function fx
i_marker_name = existing marker
j_marker_name = existing marker
r_marker_name = an existing marker
Example:
panel set twindow_function fx &
i_marker_name = marker_3 &
j_marker_name = marker_6 &
r_marker_name = marker_4
panel 73
panel set twindow_function fy
Description:
Extended Definition:
1. You may identify a marker by typing its name or by picking it from the screen.
If the marker is not visible on the screen, you must type the name. You may also find it convenient
to type the name even if the marker is displayed.
If you created the marker by reading an Adams data set or graphics file, the marker name is the letters
MAR followed by the Adams data set marker ID number. The name of Adams MARKER/101 is
MAR101, for example. If you created the marker during preprocessing, you gave it a name at that
time.
If a marker is available by default, you may identify it by entering its name only. If it is not, you must
enter its full name. To identify a marker under a different part, for instance, you may need to enter
the model and part names as well. For example, you may specify marker 'pivot' from model 'links',
part 'lower_arm' by entering ".links.lower_arm.pivot". If you type a "?", AdamsAdams View will list
the markers available by default.
You must separate multiple marker names by commas.
If the marker is visible in one of your views, you may identify it by picking on it.
You need not separate multiple marker picks by commas.
Format:
panel set twindow_function fy
i_marker_name = existing marker
j_marker_name = existing marker
r_marker_name = an existing marker
Example:
panel set twindow_function fy &
i_marker_name = marker_3 &
j_marker_name = marker_6 &
r_marker_name = marker_4
Description:
Extended Definition:
1. You may identify a marker by typing its name or by picking it from the screen.
If the marker is not visible on the screen, you must type the name. You may also find it convenient
to type the name even if the marker is displayed.
If you created the marker by reading an Adams data set or graphics file, the marker name is the letters
MAR followed by the Adams data set marker ID number. The name of Adams MARKER/101 is
MAR101, for example. If you created the marker during preprocessing, you gave it a name at that
time.
If a marker is available by default, you may identify it by entering its name only. If it is not, you must
enter its full name. To identify a marker under a different part, for instance, you may need to enter
the model and part names as well. For example, you may specify marker 'pivot' from model 'links',
part 'lower_arm' by entering ".links.lower_arm.pivot". If you type a "?", Adams View will list the
markers available by default.
You must separate multiple marker names by commas.
panel 75
panel set twindow_function general_force
If the marker is visible in one of your views, you may identify it by picking on it.
You need not separate multiple marker picks by commas.
Format:
panel set twindow_function general_force
general_force_name = an existing genforce
return_value_on_marker = marker_type
component = all_components
reference_marker = an existing marker
Example:
panel set twindow_function general_force &
panel set twindow_function single_component_force return_value_on_marker = i &
panel set twindow_function single_component_force component = fx &
panel set twindow_function single_component_force reference_marker = marker_84
Description:
Extended Definition:
1. The force or torque is calculated in the coordinate system of the REFERENCE_MARKER. If the
RETURN_VALUE_ON_MARKER parameter is set to "i", the value returned is the force or torque
acting on the I_MARKER of the force/torque generating element. If
RETURN_VALUE_ON_MARKER parameter is set to "j", the value returned is that acting on the
J_MARKER. If the REFERENCE_MARKER is not specified the results are with respect to the
ground coordinate system.
2. A GENERAL_FORCE defines a complete force element, consisting of three mutually orthogonal
translational force components and three orthogonal torque components. The two resultant vectors
formed by the three component forces and the three component torques determines the direction of
the force and torque actions, respectively. The user defines these force and torque components along
and about the "reference" marker axes. The reactions are equal and opposite to the action. The user
may define the GENERAL_FORCE in Adams View through user-specified function expressions or
by specifying up to 30 user-defined parameters that are passed to a user-written subroutine (a
"GFOSUB") the user links with Adams.
The GENERAL_FORCE corresponds to the Adams GFORCE statement.
A GENERAL_FORCE creates a six component force element that applies the forces between two
parts of the system. Here, force means three orthogonal translational components and three
orthogonal rotational components. The element applies actions to the part to which the I marker
belongs and corresponding reactions to the part to which a "floating_marker" belongs. This "floating
marker" is automatically created by Adams View and is positioned to be coincident with the I marker.
Subsequently, the GENERAL_FORCE internally establishes the position of the "floating_marker".
As the system moves, Adams moves the "floating_marker" on its part to keep the "floating_marker"
and I markers always superimposed. Thus, Adams applies the reaction force to the part containing
the "floating_marker" marker at the instantaneous position of the I marker. The magnitude of the
force depends on expressions or subroutines that the user supplies. The value of the force is the
resultant (that is, the square root of the sum of the squares) of (up to) three mutually orthogonal force
components together with the resultant (that is, the square root of the sum of the squares) of (up to)
three mutually orthogonal torque components.
The resultant vector formed by the three user-defined component forces along the reference marker
axes defines the direction of the translational force action. The reaction is equal and opposite to the
action.
The resultant vector formed by the three component torques determines the direction of the
rotational torque action. The user defines these torques about the reference marker axes. The reaction
is equal and opposite to the action.
3. The force or torque is calculated in the coordinate system of the REFERENCE_MARKER. If the
RETURN_VALUE_ON_MARKER parameter is set to "i", the value returned is the force or torque
acting on the I_MARKER of the force/torque generating element. If
RETURN_VALUE_ON_MARKER parameter is set to "j", the value returned is that acting on the
J_MARKER. If the REFERENCE_MARKER is not specified the results are with respec to the
ground coordinate system.
4. The value for the COMPONENT parameter is one of fm, fx, fy, fz, tm, tx, ty, or tz.
panel 77
panel set twindow_function impact
The force or torque is calculated in the coordinate system of the REFERENCE_MARKER. If the
RETURN_VALUE_ON_MARKER parameter is set to "i", the value returned is the force or torque
acting on the I_MARKER of the force/torque generating element. If
RETURN_VALUE_ON_MARKER parameter is set to "j", the value returned is that acting on the
J_MARKER. If the REFERENCE_MARKER is not specified the results are with respect to the
ground coordinate system.
5. The force or torque is calculated in the coordinate system of the REFERENCE_MARKER. If the
REFERENCE_MARKER is not specified the results are with respect to the ground coordinate
system.
Cautions:
1. If the REFERENCE_MARKER is not specified the results are with respect to the ground coordinate
system.
x < x1, penetration occurs at the end closer to the J marker, and the force is > 0 (penetration p = x1 -
x).
Also note that when p < d, the instantaneous damping coefficient is a cubic step function of the
penetration p.
When p > d, the instantaneous damping coefficient is cmax.
Adams Solver (FORTRAN) never returns a negative force for IMPACT. If the above expression is
negative, Adams Solver (FORTRAN) returns a value of zero.
Figure 2, below, is a plot of damping coefficient versus penetration.
Figure 2. Damping Coefficient versus Penetration
Format:
panel set twindow_function impact
x= run time function
dx= function
free_length= real
boundary_penetration= real
angular_free_length= angle
angular_boundary_penetration= angle
stiffness= real
force_exponent= real
max_damping_coefficient= real
panel 79
panel set twindow_function impact
Description:
Extended Definition:
1. IMPACT models collisions and contact. It evaluates a force that turns on when a distance falls below
a nominal free length (that is, when two parts collide).
The force has two components: a spring or stiffness component and a damping or viscous component.
The stiffness component opposes the penetration. The damping component of the force is a function
of the speed of penetration. The damping opposes the direction of relative motion. To prevent a
discontinuity in the damping force at contact, the damping coefficient is, by definition, a cubic step
function of the penetration. Thus, at zero penetration, the damping coefficient is always zero. The
damping coefficient achieves a maximum, cmax, at a user-defined penetration, d.
An object colliding with ground is an example of a system that can be modeled with the IMPACT
function.
Let x be the instantaneous distance, x1 be the free length (when x is less than x1, the force turns on),
x1 - x be the penetration, and d be the penetration at which Adams/Solver applies full damping
(cmax).
• When x x1, force = 0.
• When x < x1, force is positive.
80 Adams View Commands
panel set twindow_function impact
• When (x1-d) < x < x1, force is positive; there is damping, but it is less than cmax.
• When x (x1-d), force is positive and damping = cmax.
The following equation defines IMPACT:
Components Examples
Numbers FUNCTION = 1E2 + 3.4 + 6
Operators FUNCTION = 3*6/2 + 3 - 2**2
System constants FUNCTION = PI + 20
System variables FUNCTION = AX(1040, 2010)
Arithmetic IFs FUNCTION = IF(DX(3, 5): -1, 0, 1)
FORTRAN-77 functions FUNCTION = ABS(NUM) - 6
Blanks FUNCTION = 1 + 2
Continuation commas FUNCTION = 1 + 1 + 1 + 1 + 1 + 1, + 1 + 1 + 1 + 1 + 1 + 1 + 1
Adams functions FUNCTION = POLY(0, 0, 6.28)
NUMBERS
panel 81
panel set twindow_function impact
FUNCTION expressions can include integers, real numbers, and exponents. In other words, any
numbers that are legal in Adams are legal in a FUNCTION expression.
OPERATORS
In a FUNCTION expression, Adams allows any of the operators **, *, /, +, and -. Adams executes
these operators according to the following precedence rules:
From greatest to least, the operators have the following
• priorities. ** then * / then + -. In other words, Adams executes exponentiation (**) before all other
operators and executes multiplication (*) and division (/) before addition (+) and subtraction (-).
When a statement has operators of the same priority, Adams executes them from left to right.
You can use parentheses to alter the precedence of operators.
For example, in the equation
FUNCTION = (1-TIME)*30/PI
Adams subtracts TIME from one before it performs multiplication and division.
SYSTEM CONSTANTS
You can include the following system constants in a FUNCTION expression:
• PI Value of pi (to eighteen significant digits)
• DTOR Value of pi/180 for converting degrees to radians
• RTOD Value of 180/pi for converting radians to degrees
The following example of a FUNCTION with a system constant multiplies the system constant PI
by the displacement of marker 10 with respect to marker 14:
FUNCTION = PI*DM(10,14)
BLANKS
A FUNCTION expression can contain any number of blank spaces. Five consecutive blank spaces in
an expression do not terminate input of the expression (by indicating that what follows is a comment)
as they do in an Adams statement. However, you should remember these two restrictions.
• You cannot put a blank space in the middle of a number.
• Adams does not accept a blank space between a function and its left bracket. (This is true for both
FORTRAN-77 functions and Adams functions.)
CONTINUATION COMMAS
You can use a comma to continue FUNCTION expressions. You can break the expression anywhere
except in the middle of a number, in the middle of a name, or between a function and its left bracket.
Put a continuation comma in column one of the following line before the rest of the expression. If
you break the expression at a comma that is part of the expression, you must use both the expression
comma and the continuation comma. You may use more than one continuation comma to extend
an expression over several lines.
FUNCTION BUILDER
82 Adams View Commands
panel set twindow_function impact
The FUNCTIONS button on the right side of the Adams View text editor provides a means of
constructing an Adams function string. These functions are briefly described below. Upon picking
the FUNCTIONS button, you will be presented with the list of available functions in the "selection
window". After you select the desired function, a panel will appear with fields representing the
various parameters for the function. You will have full access to on-line help with this panel just like
you have with regular panels. After you have completed the panel and selected the DONE button on
the panel, the function string will be constructed and inserted at the current text cursor location in
the text edit window.
SYSTEM VARIABLES
A FUNCTION expression may access the current value of a system variable and use the value in
computations. These values are accessed through a collection of functions. The accessible system
variables include the following: Time, Mode, Displacements (Translational and Rotational),
Velocities (Translational and Rotational), Accelerations (Translational and Rotational), Forces
(Translational and Rotational), and User-defined variables. Invoke the text edit window and pick the
FUNCTIONS button to get a list of functions that can be accessed.
In general, you use a function character string (such as DM, VX, or FZ) and a list of values (e.g. i1,
i2, and i3) to access a system variable in an expression. For example, the value i1 may be the name of
the marker for which you want to measure a quantity (such as displacement, velocity, acceleration, or
force), i2 is the name of the marker with respect to which you want to measure the quantity, and i3
is the name of the marker you want to use to resolve the components of the quantity. If you do not
specify marker i3, Adams computes the result in the ground reference frame.
ARITHMETIC IFS
Arithmetic IFs allow you to conditionally define FUNCTION. The format for arithmetic IFs
follows.
IF (expression 1: expression 2, expression 3, expression 4)
Adams evaluates expression 1. If expression 1 is less than zero, the arithmetic IF equals expression 2;
if expression 1 equals zero, the arithmetic IF equals expression 3; and if expression 1 is greater than
zero, the arithmetic IF equals expression 4.
A FUNCTION expression with an arithmetic IF and its four expressions is below.
FUNCTION = 6 * IF(VR(10,31): 0 , 0 , 100)
If the radial velocity between markers 10 and 31 is less than or equal to zero, the value of the
FUNCTION expression is zero; but if the radial velocity between markers 10 and 31 is greater than
zero, the value of the FUNCTION expression is six hundred.
In some ways, you may treat IF as a variable. For example, you can place it anywhere in the
expression. In addition, you can nest arithmetic IFs nine levels deep.
FORTRAN-77 FUNCTIONS
You can use the FORTRAN functions ABS, ATAN, ATAN2, COS, EXP, LOG, LOG10, MIN,
MAX, SIN, SQRT, and TAN in your expression. For more information about these functions, see
a FORTRAN reference manual.
Invoke the text edit window and pick the FUNCTIONS button to get a list of functions that can be
accessed.
panel 83
panel set twindow_function impact
Adams FUNCTIONS
In general, an Adams function evaluates a mathematical equation and returns a value to your
FUNCTION expression. The following table lists all the Adams functions and their purposes.
Invoke the text edit window and pick the FUNCTIONS button to get a list of functions that can be
accessed.
Names Purposes
AKISPL Accesses the data in a SPLINE statement and uses the Akima cubic method to
fit a cubic curve (a spline) to the data.
BISTOP Evaluates a force restricting displacement of a part in two opposite directions.
CHEBY Evaluates a Chebyshev polynomial
CUBSPL Accesses the data in a SPLINE statement and uses the traditional cubic method
to fit a cubic curve (a spline) to the data.
FORCOS Evaluates a Fourier cosine series
FORSIN Evaluates a Fourier sine series
HAVSIN Evaluates a haversine function
IMPACT Evaluates a force restricting displacement of a part in one direction.
POLY Evaluates a polynomial
SHF Evaluates a simple harmonic function
STEP Approximates a step function with a cubic polynomial.
4. For an impact force, the free_length parameter specifies the distance above which there is no contact,
and therefore, no force is generated. Specifically, if x is less than the FREE_LENGTH (i.e. x1),
Adams calculates a positive value for the force. Otherwise, the force value is zero.
5. The BOUNDARY_PENETRATION parameter is given as "d" in the BISTOP_SLOT and
IMPACT equations below.
6. For an impact force, the angular_free_length is the distance above which there is no contact, and
therefore no force, is generated. Specifically, if x is less than the FREE_LENGTH (i.e. x1), Adams
calculates a positive value for the force. Otherwise, the force value is zero.
7. For a stiffening spring characteristic, FORCE_EXPONENT (i.e. e in the equations below) is greater
than 1.0. For a softening spring characteristic, 0 < FORCE_EXPONENT < 1.0.
84 Adams View Commands
panel set twindow_function input_value_for_plant
Cautions:
1. IMPACT is only used to determine force or torque magnitudes.
2. The force value and the distance measure must both be positive in the same direction.
3. When e is less than or equal to one, the rate of change of the force is discontinuous at contact. This
may cause convergence problems.
Format:
panel set twindow_function output_value_for_plant
plant_input_name = existing poutput
component = integer
Example:
panel set twindow_function output_value_for_plant &
plant_output_name = poutput_01 &
component = 2
panel 85
panel set twindow_function invpsd
The OUTPUT_VALUE_FOR_PLANT function returns the value for the 2nd VARIABLE in the list since
the component value specified is 2.
Description:
Extended Definition:
1. You may identify a plant_output by typing its name or by picking it from the screen.
Since plant_output do not have a geometric position, Adams View displays plant_output icons at or
near the model origin. If the plant_output icon is not visible on the screen, you must type the name.
You may also find it convenient to type the name even if the plant_output icon is displayed.
If you created the plant_output by reading an Adams data set or graphics file, the plant_output name
is the letters "POU" followed by the Adams data set plant_output ID number. For example, the
name of Adams POUTPUT/101 is POU101. If you created the plant_output during preprocessing,
you will have given it a name at that time.
If a plant_output is owned by the default model, you may identify it by entering only its name. If it
is not, you must enter its full name. To identify a plant_output under a different model, for instance,
you may need to enter the model name as well. For example, you may specify plant_output
'actual_velocity' from model 'motor' by entering ".motor.actual_velocity'". If you type a "?", Adams
View will list the plant_output available by default.
You must separate multiple plant_output names by commas.
If the plant_output is visible in one of your views, you may identify it by picking on any of the
graphics associated with it.
You need not separate multiple plant_output picks by commas.
2. The COMPONENT is an integer indicating the kth VARIABLE in the list.
For example, A PLANT_OUTPUT is made up of a list of VARIABLES (algebraic expressions). The
COMPONENT parameter for the OUTPUT_VALUE_FOR_PLANT function is an integer
indicating the kth VARIABLE in the list. Therefore, if the PLANT_OUTPUT is defined by a list of
ten VARIABLEs, and you request the 7th component to be returned, the
OUTPUT_VALUE_FOR_PLANT function returns the value for the 7th VARIABLE in the list.
Format:
panel set twindow_function invpsd
x = function
spline_name = an existing spline
min_frequency = real
max_frequency = real
num_frequencies = real
use_logarithmic = boolean
random_number_seed = real
Example:
panel set twindow_function invpsd &
panel set twindow_function invpsd spline_name = spline_1 &
panel set twindow_function invpsd min_frequency = 30 &
panel set twindow_function invpsd num_frequencies = 47 &
panel set twindow_function invpsd use_logarithmic = yes
Description:
Extended Definition:
1. This variable can be any value of interest that you can compute using a function expression. For
example, if the independent variable in the function is time, x is the system variable TIME.
To enter a function expression you enter a series of quoted strings.
The easiest way to enter a function expression in Adams View is to use the text editor in combination
with the function builder. To invoke the text editor for entering a function expression, highlight the
function field and then either pick the "EDIT" button at the top of the panel or type a ^t (control-
t). The Adams View "function builder" is discussed below.
The syntactical correctness of a function expression can be investigated by using the "VERIFY"
button at the upper right of the text editor. If there is a syntax error, a message is printed and the
cursor is put near the problem. Proper unit consistency is not checked during function expression
verification.
The remainder of this explanation will cover the components of FUNCTION expressions as
summerized in the following table.
Components Examples
NUMBERS FUNCTION = 1E2 + 3.4 + 6
OPERATORS FUNCTION = 3*6/2 + 3 - 2**2
SYSTEM CONSTANTS FUNCTION = PI + 20
SYSTEM VARIABLES FUNCTION = AX(1040, 2010)
ARITHMETIC IFS FUNCTION = IF(DX(3, 5): -1, 0, 1)
FORTRAN-77 FUNCTIONS FUNCTION = ABS(NUM) - 6
BLANKS FUNCTION = 1 + 2
CONTINUATION COMMAS FUNCTION = 1 + 1 + 1 + 1 + 1 + 1 , + 1 + 1 + 1 + 1 + 1 + 1 + 1
Adams FUNCTIONS FUNCTION = POLY(0, 0, 6.28)
NUMBERS
FUNCTION expressions can include integers, real numbers, and exponents. In other words, all
numbers that are legal in Adams are legal in a FUNCTION expression.
OPERATORS
In a FUNCTION expression, Adams allows any of the operators **, *, /, +, and -. Adams executes
these operators according to the following precedence rules:
• From the greatest to the least, the operators have the following priorities. ** then * / then + -. In
other words, Adams executes exponentiation (**) before all other operators and executes
multiplication (*) and division (/) before addition (+) and subtraction (-).
• When a statement has operators of the same priority, Adams executes them from left to right.
• You can use parentheses to alter the precedence of operators. For example, in the equation,
88 Adams View Commands
panel set twindow_function invpsd
FUNCTION = (1-TIME)*30/PI
Adams subtracts TIME from one before it performs multiplication and division.
SYSTEM CONSTANTS
You can include the following system constants in a FUNCTION expression:
• PI Value of pi (to eighteen significant digits)
• DTOR Value of pi/180 for converting degrees to radians
• RTOD Value of 180/pi for converting radians to degrees
The following example of a FUNCTION with a system constant multiplies the system constant PI
by the displacement of marker 10 with respect to marker 14:
FUNCTION = PI*DM(10,14)
BLANKS
A FUNCTION expression can contain any number of blank spaces. Five consecutive blank spaces in
an expression do not terminate input of the expression (by indicating that what follows is a comment)
as they do in an Adams statement. However, you should remember these two restrictions:
• You cannot put a blank space in the middle of a number.
• Adams does not accept a blank space between a function and its left bracket. (This is true for
both, FORTRAN-77 functions and Adams functions.)
CONTINUATION COMMAS
You can use a comma to continue FUNCTION expressions. You can break the expression anywhere
except in the middle of a number, in the middle of a name, or between a function and its left bracket.
Put a continuation comma in column one of the following line before the rest of the expression. If
you break the expression at a comma that is part of the expression, you must use both the expression
comma and the continuation comma. You may use more than one continuation comma to extend
an expression over several lines.
FUNCTION BUILDER
The FUNCTIONS button at the right side of the Adams View text editor provides a means of
constructing an Adams function string. These functions are briefly described below. Upon picking
the FUNCTIONS button, you will be presented with the list of available functions in the "selection
window". After you select the desired function, a panel will appear with fields representing the
various parameters for the function. You will have full access to on-line help with this panel just like
you have with regular panels. After you have completed the panel and selected the DONE button on
the panel, the function string will be constructed and inserted at the current text cursor location in
the text edit window.
SYSTEM VARIABLES
A FUNCTION expression may access the current value of a system variable and use the value in
computations. These values are accessed through a collection of functions. The accessible system
variables include the following: Time, Mode, Displacements (Translational and Rotational),
Velocities (Translational and Rotational), Accelerations (Translational and Rotational), Forces
(Translational and Rotational), and User-defined variables. Invoke the text edit window and pick the
FUNCTIONS button to get a list of functions that can be accessed.
panel 89
panel set twindow_function invpsd
In general, you use a function character string (such as DM, VX, or FZ) and a list of values (e.g. i1,
i2, and i3) to access a system variable in an expression. For example, the value i1 may be the name of
the marker for which you want to measure a quantity (such as displacement, velocity, acceleration, or
force), i2 is the name of the marker with respect to which you want to measure the quantity, and i3
is the name of the marker you want to use to resolve the components of the quantity. If you do not
specify marker i3, Adams computes the result in the ground reference frame.
ARITHMETIC IFS
Arithmetic IFs allow you to conditionally define FUNCTION. The format for arithmetic IFs is as
follows:
IF (expression 1: expression 2, expression 3, expression 4)
Adams evaluates expression 1. If expression 1 is less than zero, the arithmetic IF equals expression 2;
if expression 1 equals zero, the arithmetic IF equals expression 3; and if expression 1 is greater than
zero, the arithmetic IF equals expression 4.
A FUNCTION expression with an arithmetic IF and its four expressions is as given below:
FUNCTION = 6 * IF(VR(10,31): 0 , 0 , 100)
If the radial velocity between markers 10 and 31 is less than or equal to zero, the value of the
FUNCTION expression is zero; but if the radial velocity between markers 10 and 31 is greater than
zero, the value of the FUNCTION expression is six hundred.
In some ways, you may treat IF as a variable. For example, you can place it anywhere in the
expression. In addition, you can nest arithmetic IFs nine levels deep.
FORTRAN-77 FUNCTIONS
You can use the FORTRAN functions ABS, ATAN, ATAN2, COS, EXP, LOG, LOG10, MIN,
MAX, SIN, SQRT, and TAN in your expression. For more information about these functions, see
a FORTRAN reference manual. Invoke the text edit window and pick the FUNCTIONS button to
get a list of functions that can be accessed.
Adams FUNCTIONS
In general, an Adams function evaluates a mathematical equation and returns a value to your
FUNCTION expression. The following table lists all the Adams functions and their purposes. Invoke
the text edit window and pick the FUNCTIONS button to make a list of functions that can be
accessed.
Names Purposes
AKISPL Accesses the data in a SPLINE statement and uses the Akima cubic method to
fit a cubic curve (a spline) to the data.
BISTOP Evaluates a force restricting displacement of a part in two opposite directions
CHEBY Evaluates a Chebyshev polynomial
CUBSPL Accesses the data in a SPLINE statement and uses the traditional cubic method
to fit a cubic curve (a spline) to the data.
FORCOS Evaluates a Fourier cosine series
90 Adams View Commands
panel set twindow_function joint
Names Purposes
FORSIN Evaluates a Fourier sine series
HAVSIN Evaluates a haversine function
IMPACT Evaluates a force restricting displacement of a part in one direction
POLY Evaluates a polynomial
SHF Evaluates a simple harmonic function
STEP Approximates a step function with a cubic polynomial.
2. If you created the spline by reading an Adams data set, the spline name is the letters SPL followed by
the Adams data set spline ID number. The name of Adams SPLINE/101 is SPL101, for example. If
you created the spline during preprocessing, you gave it a name at that time.
If a spline is available by default, you may identify it by entering its name only. If it is not, you must
enter its full name. To identify a spline under another model, for instance, you may need to enter the
model name as well. For example, you may specify spline 'stiffness' from model 'suspension' by
entering ".suspension.stiffness". If you type a "?", Adams View will list the splines available by default.
3. The legal values are:yes (0) - linear domain no (1) - logarithmic domain
4. During a simulation, PSD can be called with up to a maximum of 20 different seeds.
Cautions:
1. You must separate multiple spline names by commas.
Format:
panel set twindow_function joint
joint_name = an existing joint
return_value_on_marker = marker_type
component = all_components
reference_marker = an existing marker
Example:
panel set twindow_function joint
panel set twindow_function single_component_force return_value_on_marker = i &
panel 91
panel set twindow_function joint
Description:
Extended Definition:
1. The force or torque is calculated in the coordinate system of the REFERENCE_MARKER. If the
RETURN_VALUE_ON_MARKER parameter is set to "i", the value returned is the force or torque
acting on the I_MARKER of the force/torque generating element. If
RETURN_VALUE_ON_MARKER parameter is set to "j", the value returned is that acting on the
J_MARKER. If the REFERENCE_MARKER is not specified the results are with respect to the
ground coordinate system.
2. Specifies an existing joint.
You may identify a joint by typing its name or by picking it from the screen.
If the joint is not visible on the screen, you must type the name. You may also find it convenient to
type the name even if the joint is displayed.
If you created the joint by reading an Adams data set or graphics file, the joint name is the letters JOI
followed by the Adams data set joint ID number. The name of Adams JOINT/101 is JOI101, for
example. If you created the joint during preprocessing, you gave it a name at that time.
If a joint is available by default, you may identify it by entering its name only. If it is not, you must
enter its full name. To identify a joint under a model, for instance, you may need to enter the model
name as well. For example, you may specify joint 'lower_pivot' in model 'links' by entering
".links.lower_pivot". If you type a "?", Adams View will list the joints available by default.
3. The force or torque is calculated in the coordinate system of the REFERENCE_MARKER. If the
RETURN_VALUE_ON_MARKER parameter is set to "i", the value returned is the force or torque
acting on the I_MARKER of the force/torque generating element. If
RETURN_VALUE_ON_MARKER parameter is set to "j", the value returned is that acting on the
J_MARKER. If the REFERENCE_MARKER is not specified the results are with respec to the
ground coordinate system.
92 Adams View Commands
panel set twindow_function m_acc
4. The value for the COMPONENT parameter is one of fm, fx, fy, fz, tm, tx, ty, or tz.
The force or torque is calculated in the coordinate system of the REFERENCE_MARKER. If the
RETURN_VALUE_ON_MARKER parameter is set to "i", the value returned is the force or torque
acting on the I_MARKER of the force/torque generating element. If
RETURN_VALUE_ON_MARKER parameter is set to "j", the value returned is that acting on the
J_MARKER. If the REFERENCE_MARKER is not specified the results are with respect to the
ground coordinate system.
5. The force or torque is calculated in the coordinate system of the REFERENCE_MARKER. If the
REFERENCE_MARKER is not specified the results are with respect to the ground coordinate
system.
Cautions:
1. You must separate multiple joint names by commas.
Tips:
1. If the joint is visible in one of your views, you may identify it by picking on any of the graphics
associated with it.
2. You need not separate multiple joint picks by commas.
Format:
panel set twindow_function m_acc
i_marker_name = an existing marker
j_marker_name = an existing marker
reference_frame_marker = an existing marker
Example:
panel set twindow_function m_acc &
panel set twindow_function dm i_marker_name = marker_71 &
panel set twindow_function dm j_marker_name = marker_82
panel 93
panel set twindow_function m_acc
Description:
Extended Definition:
1. Mathematically, M_ACC is calculated as follows:
M_ACC = ([ai1-ai2] dot_product_with [ai1-ai2])**1/2
where ai1 is the acceleration of the I_MARKER (i1) in ground, and ai2 is the acceleration of the
J_MARKER (i2) in ground.
2. You may identify a marker by typing its name or by picking it from the screen.
If the marker is not visible on the screen, you must type the name. You may also find it convenient
to type the name even if the marker is displayed.
If you created the marker by reading an Adams data set or graphics file, the marker name is the letters
MAR followed by the Adams data set marker ID number. The name of Adams MARKER/101 is
MAR101, for example. If you created the marker during preprocessing, you gave it a name at that
time.
If a marker is available by default, you may identify it by entering its name only. If it is not, you must
enter its full name. To identify a marker under a different part, for instance, you may need to enter
the model and part names as well. For example, you may specify marker 'pivot' from model 'links',
part 'lower_arm' by entering ".links.lower_arm.pivot". If you type a "?", Adams View will list the
markers available by default.
You must separate multiple marker names by commas.
If the marker is visible in one of your views, you may identify it by picking on it.
3. You may identify a marker by typing its name or by picking it from the screen.
If the marker is not visible on the screen, you must type the name. You may also find it convenient
to type the name even if the marker is displayed.
If you created the marker by reading an Adams data set or graphics file, the marker name is the letters
MAR followed by the Adams data set marker ID number. The name of Adams MARKER/101 is
MAR101, for example. If you created the marker during preprocessing, you gave it a name at that
time.
94 Adams View Commands
panel set twindow_function m_wdt
If a marker is available by default, you may identify it by entering its name only. If it is not, you must
enter its full name. To identify a marker under a different part, for instance, you may need to enter
the model and part names as well. For example, you may specify marker 'pivot' from model 'links',
part 'lower_arm' by entering ".links.lower_arm.pivot". If you type a "?", Adams View will list the
markers available by default.
4. Set l = 0 or omit the argument if you want the time derivatives to be calculated in the ground
coordinate system (GCS).
Format:
panel set twindow_function m_wdt
i_marker_name = existing marker
j_marker_name = existing marker
Reference_frame_marker = an existing marker
Example:
panel set twindow_function m_wdt &
i_marker_name = marker_3 &
j_marker_name = marker_6 &
reference_frame_marker = marker_4
Description:
Extended Definition:
1. You may identify a marker by typing its name or by picking it from the screen.
If the marker is not visible on the screen, you must type the name. You may also find it convenient
to type the name even if the marker is displayed.
If you created the marker by reading an Adams data set or graphics file, the marker name is the letters
MAR followed by the Adams data set marker ID number. The name of Adams MARKER/101 is
MAR101, for example. If you created the marker during preprocessing, you gave it a name at that
time.
If a marker is available by default, you may identify it by entering its name only. If it is not, you must
enter its full name. To identify a marker under a different part, for instance, you may need to enter
the model and part names as well. For example, you may specify marker 'pivot' from model 'links',
part 'lower_arm' by entering ".links.lower_arm.pivot". If you type a "?", Adams View will list the
markers available by default.
You must separate multiple marker names by commas.
If the marker is visible in one of your views, you may identify it by picking on it.
You need not separate multiple marker picks by commas.
Format:
panel set twindow_function motion
motion_name = an existing motion
return_value_on_marker = marker_type
component = all_components
reference_marker = an existing marker
Example:
panel set twindow_function motion
panel set twindow_function single_component_force return_value_on_marker = i &
panel set twindow_function single_component_force component = fx &
panel set twindow_function single_component_force reference_marker = marker_84
96 Adams View Commands
panel set twindow_function motion
Description:
Extended Definition:
1. The force or torque is calculated in the coordinate system of the REFERENCE_MARKER. If the
RETURN_VALUE_ON_MARKER parameter is set to "i", the value returned is the force or torque
acting on the I_MARKER of the force/torque generating element. If
RETURN_VALUE_ON_MARKER parameter is set to "j", the value returned is that acting on the
J_MARKER. If the REFERENCE_MARKER is not specified the results are with respect to the
ground coordinate system.
2. You may identify a motion generator by typing its name or by picking it from the screen.
If the motion generator is not visible on the screen, you must type the name. You may also find it
convenient to type the name even if the motion generator is displayed.
If you created the motion generator by reading an Adams data set file, its name is the letters MOT
followed by the Adams data set ID number. The name of Adams MOTION/101 is MOT101, for
example. If you created the motion generator during preprocessing, you gave it a name at that time.
If a motion generator is available by default, you may identify it by entering its name only. If it is
not, you must enter its full name. To identify a motion generator under a model, for instance, you
may need to enter the model name as well. For example, you may specify motion generator 'servo'
in model 'links' by entering ".links.servo". If you type a "?", Adams View will list the motion
generators available by default.
3. The force or torque is calculated in the coordinate system of the REFERENCE_MARKER. If the
RETURN_VALUE_ON_MARKER parameter is set to "i", the value returned is the force or torque
acting on the I_MARKER of the force/torque generating element. If
RETURN_VALUE_ON_MARKER parameter is set to "j", the value returned is that acting on the
J_MARKER. If the REFERENCE_MARKER is not specified the results are with respec to the
ground coordinate system.
4. The value for the COMPONENT parameter is one of fm, fx, fy, fz, tm, tx, ty, or tz.
panel 97
panel set twindow_function multi_point_force
The force or torque is calculated in the coordinate system of the REFERENCE_MARKER. If the
RETURN_VALUE_ON_MARKER parameter is set to "i", the value returned is the force or torque
acting on the I_MARKER of the force/torque generating element. If
RETURN_VALUE_ON_MARKER parameter is set to "j", the value returned is that acting on the
J_MARKER. If the REFERENCE_MARKER is not specified the results are with respect to the
ground coordinate system.
5. The force or torque is calculated in the coordinate system of the REFERENCE_MARKER. If the
REFERENCE_MARKER is not specified the results are with respect to the ground coordinate
system.
Cautions:
1. You must separate multiple motion-generator names by commas.
Tips:
1. If the motion generator is visible in one of your views, you may identify it by picking on any of the
graphics associated with it.
2. You need not separate multiple motion-generator picks by commas.
Example:
panel set twindow_function multi_point_force
panel set twindow_function multi_point_force marker_name = marker_1 &
panel set twindow_function multi_point_force reference_marker = marker_80
98 Adams View Commands
panel set twindow_function phi
Description:
Extended Definition:
1. You use multi_point_force_name parameter to identify the existing multi_point_force to affect with
this command.
You may identify a multiple point force by typing its name or by picking it from the screen.
If the multiple point force is not visible on the screen, you must type the name. You may also find it
convenient to type the name even if the multiple point force is displayed.
If you created the multiple point force by reading an Adams data set or graphics file, the multiple
point force name is the letters NFO followed by the Adams data set multiple point force ID number.
The name of Adams NFORCE/101 is NFO101, for example. If you created the multiple point force
during preprocessing, you gave it a name at that time.
If a multiple point force is available by default, you may identify it by entering its name only. If it is
not, you must enter its full name. To identify a multiple point force under another model, for
instance, you may need to enter the model name as well. For example, you may specify multiple point
force 'FEA_element' from the model 'suspension' by entering ".suspension.FEA_element". If you
type a "?", Adams View will list the multiple point forces available by default.
You must separate multiple multiple point force names by commas.
If the multiple point force is visible in one of your views, you may identify it by picking on any of the
graphics associated with it.
Tips:
1. You need not separate multiple multiple point force picks by commas.
Format:
panel set twindow_function phi
i_marker_name = existing marker
j_marker_name = existing marker
Example:
panel set twindow_function phi &
i_marker_name = marker_3 &
j_marker_name = marker_6
Description:
Extended Definition:
1. You may identify a marker by typing its name or by picking it from the screen.
If the marker is not visible on the screen, you must type the name.
You may also find it convenient to type the name even if the marker is displayed.
If you created the marker by reading an Adams data set or graphics file, the marker name is the letters
MAR followed by the Adams data set marker ID number. For example, the name of Adams
MARKER/101 is MAR101. If you created the marker during preprocessing, you will have given it a
name at that time.
If a marker is available by default, you may identify it by entering only its name. If it is not, you must
enter its full name. To identify a marker under a different part, for instance, you may need to enter
the model and part names as well. For example, you may specify marker 'pivot' from model 'links',
part 'lower_arm' by entering ".links.lower_arm.pivot". If you type a "?", Adams View will list the
markers available by default.
You must separate multiple marker names by commas.
If the marker is visible in one of your views, you may identify it by picking on it.
You need not separate multiple marker picks by commas.
Euler rotation sequence which will orient the J_MARKER (i2) the same as the I_MARKER (i1).
Format:
panel set twindow_function pitch
i_marker_name = an existing marker
j_marker_name = an existing marker
Example:
panel set twindow_function pitch &
i_marker_name = marker_1 &
j_marker_name = marker_2
Description:
Extended Definition:
1. You may identify a marker by typing its name or by picking it from the screen.
If the marker is not visible on the screen, you must type the name. You may also find it convenient
to type the name even if the marker is displayed.
If you created the marker by reading an Adams data set or graphics file, the marker name is the letters
MAR followed by the Adams data set marker ID number. The name of Adams MARKER/101 is
MAR101, for example. If you created the marker during preprocessing, you gave it a name at that
time.
If a marker is available by default, you may identify it by entering its name only. If it is not, you must
enter its full name. To identify a marker under a different part, for instance, you may need to enter
the model and part names as well. For example, you may specify marker 'pivot' from model 'links',
part 'lower_arm' by entering ".links.lower_arm.pivot". If you type a "?", Adams View will list the
markers available by default.
You must separate multiple marker names by commas.
If the marker is visible in one of your views, you may identify it by picking on it.
You need not separate multiple marker picks by commas.
panel 101
panel set twindow_function point_curve
Format:
panel set twindow_function point_curve
point_curve_name = existing point_curve
return_value_on_marker = marker_type
component = all_components
reference_marker = existing marker
Description:
Extended Definition:
1. You may identify a point_curve by typing its name or by picking it from the screen.
If the point_curve is not visible on the screen, you must type the name. You may also find it
convenient to type the name even if the point_curve is displayed.
If you created the point_curve by reading an Adams data set or graphics file, the point_curve name is
the letters PCU followed by the Adams data set point_curve ID number. For example, the name of
Adams CVCV/101 is PCU101. If you created the point_curve during preprocessing, you will have
given it a name at that time.
102 Adams View Commands
panel set twindow_function polynomial
If a point_curve is available by default, you may identify it by entering only its name. If it is not, you
must enter its full name.
To identify a point_curve under an model, for instance, you may need to enter the model name as
well. For example, you may specify CVCV101 from the model named test by entering
".test.PCU101". If you type a "?", Adams View will list the point_curves available by default.
You must separate multiple point_curve names by commas.
If the point_curve is visible in one of your views, you may identify it by picking on any of the graphics
associated with it.
You need not separate multiple point_curve picks by commas.
2. The force or torque is calculated in the coordinate system of the REFERENCE_MARKER. If the
RETURN_VALUE_ON_MARKER parameter is set to "i", the value returned is the force or torque
acting on the I_MARKER of the force/torque generating element. If the
RETURN_VALUE_ON_MARKER parameter is set to "j", the value returned is that acting on the
J_MARKER. If the REFERENCE_MARKER is not specified, the results are with respect to the
ground coordinate system.
3. The value for the COMPONENT parameter is one of fm, fx, fy, fz, tm, tx, ty, or tz.
The force or torque is calculated in the coordinate system of the REFERENCE_MARKER. If the
RETURN_VALUE_ON_MARKER parameter is set to "i", the value returned is the force or torque
acting on the I_MARKER of the force/torque generating element. If the
RETURN_VALUE_ON_MARKER parameter is set to "j", the value returned is that acting on the
J_MARKER. If the REFERENCE_MARKER is not specified, the results are with respect to the
ground coordinate system.
The index j has a range from zero to n, where n is the number of terms in the series.
Format:
panel set twindow_function polynomial
x = run time functiom
shif = real
panel 103
panel set twindow_function primitive_joint
Example:
panel set twindow_function polynomial &
x = time &
shift = 0 &
coefficients = 0
Description:
Format:
panel set twindow_function primitive_joint
jprim_name = an existing primative joint
return_value_on_marker = marker_type
component = all_components
reference_marker = an existing marker
Example:
panel set twindow_function primitive_joint &
panel set twindow_function single_component_force return_value_on_marker = i &
panel set twindow_function single_component_force component = fx &
panel set twindow_function single_component_force reference_marker = marker_84
Description:
Extended Definition:
1. The force or torque is calculated in the coordinate system of the REFERENCE_MARKER. If the
RETURN_VALUE_ON_MARKER parameter is set to "i", the value returned is the force or torque
acting on the I_MARKER of the force/torque generating element. If
RETURN_VALUE_ON_MARKER parameter is set to "j", the value returned is that acting on the
J_MARKER. If the REFERENCE_MARKER is not specified the results are with respect to the
ground coordinate system.
2. You may identify a jprim by typing its name or by picking it from the screen.
If the jprim is not visible on the screen, you must type the name. You may also find it convenient to
type the name even if the jprim is displayed.
panel 105
panel set twindow_function psi
If you created the jprim by reading an Adams data set or graphics file, the jprim name is the letters
JPR followed by the Adams data set jprim ID number. The name of AdamsAdams JPRIM/101 is
JPR101, for example. If you created the jprim during preprocessing, you gave it a name at that time.
If a jprim is available by default, you may identify it by entering its name only. If it is not, you must
enter its full name. To identify a jprim under an analysis, for instance, you may need to enter the
analysis name as well. For example, you may specify jprim 101 from the analysis named test by
entering ".test.jpr101". If you type a "?", Adams View will list the jprims available by default.
3. The force or torque is calculated in the coordinate system of the REFERENCE_MARKER. If the
RETURN_VALUE_ON_MARKER parameter is set to "i", the value returned is the force or torque
acting on the I_MARKER of the force/torque generating element. If
RETURN_VALUE_ON_MARKER parameter is set to "j", the value returned is that acting on the
J_MARKER. If the REFERENCE_MARKER is not specified the results are with respect to the
ground coordinate system.
4. The value for the COMPONENT parameter is one of fm, fx, fy, fz, tm, tx, ty, or tz.
The force or torque is calculated in the coordinate system of the REFERENCE_MARKER. If the
RETURN_VALUE_ON_MARKER parameter is set to "i", the value returned is the force or torque
acting on the I_MARKER of the force/torque generating element. If
RETURN_VALUE_ON_MARKER parameter is set to "j", the value returned is that acting on the
J_MARKER. If the REFERENCE_MARKER is not specified the results are with respect to the
ground coordinate system.
5. The force or torque is calculated in the coordinate system of the REFERENCE_MARKER. If the
REFERENCE_MARKER is not specified the results are with respect to the ground coordinate
system.
Cautions:
1. You must separate multiple jprim names by commas.
Tips:
1. If the jprim is visible in one of your views, you may identify it by picking on any of the graphics
associated with it.
2. You need not separate multiple jprim picks by commas.
Format:
panel set twindow_function psi
i_marker_name= existing marker
j_marker_name= existing marker
Example:
panel set twindow_function az &
i_marker_name = marker_3 &
j_marker_name = marker_6
Description:
Extended Definition:
1. You may identify a marker by typing its name or by picking it from the screen.
If the marker is not visible on the screen, you must type the name.
You may also find it convenient to type the name even if the marker is displayed.
If you created the marker by reading an Adams data set or graphics file, the marker name is the letters
MAR followed by the Adams data set marker ID number. For example, the name of Adams
MARKER/101 is MAR101. If you created the marker during preprocessing, you will have given it
a name at that time.
If a marker is available by default, you may identify it by entering only its name. If it is not, you must
enter its full name. To identify a marker under a different part, for instance, you may need to enter
the model and part names as well. For example, you may specify marker 'pivot' from model 'links',
part 'lower_arm' by entering ".links.lower_arm.pivot". If you type a "?", Adams View will list the
markers available by default.
You must separate multiple marker names by commas.
If the marker is visible in one of your views, you may identify it by picking on it.
You need not separate multiple marker picks by commas.
panel 107
panel set twindow_function roll
Format:
panel set twindow_function roll
i_marker_name = an existing marker
j_marker_name = an existing marker
Example:
panel set twindow_function roll &
i_marker_name = marker_1 &
j_marker_name = marker_2
Description:
Extended Definition:
1. You may identify a marker by typing its name or by picking it from the screen.
If the marker is not visible on the screen, you must type the name. You may also find it convenient
to type the name even if the marker is displayed.
If you created the marker by reading an Adams data set or graphics file, the marker name is the letters
MAR followed by the Adams data set marker ID number. The name of Adams MARKER/101 is
MAR101, for example. If you created the marker during preprocessing, you gave it a name at that
time.
If a marker is available by default, you may identify it by entering its name only. If it is not, you must
enter its full name. To identify a marker under a different part, for instance, you may need to enter
the model and part names as well. For example, you may specify marker 'pivot' from model 'links',
part 'lower_arm' by entering ".links.lower_arm.pivot".
You must separate multiple marker names by commas.
If the marker is visible in one of your views, you may identify it by picking on it.
You need not separate multiple marker picks by commas.
108 Adams View Commands
panel set twindow_function simple_harmonic_function
Tips:
1. If you type a "?", Adams View will list the markers available by default.
Format:
panel set twindow_function simple_harmonic_function
x= run time function
shift= real
angular_shift= angle
amplitude= real
average_value_of_displacement= real
angular_amplitude= angle
angular_average_value_of_displacement= angle
frequency= angle
phase_shift= angle
Example:
panel set twindow_function simple_harmonic_function &
x = time &
shift = 5 &
amplitude = 200 &
average_value_of_displacement = 256.6 &
frequency = 245 &
phase_shift = 45
panel 109
panel set twindow_function simple_harmonic_function
Description:
Extended Definition:
1. The “amplitude” and the “angular_amplitude” parameters are used in the following
SIMPLE_HARMONIC_ FUNCTION equation:
SHF = a * sin(w * (x-x0) - phi) + b
Where "a" is the AMPLITUDE parameter.
2. In the SIMPLE_HARMONIC_ FUNCTION, “b” represents the average_value_of_displacement.
SHF = a * sin(w * (x-x0) - phi) + b
where, b is the ANGULAR_AVERAGE_VALUE_OF_DISPLACEMENT parameter.
3. Adams assumes FREQUENCY is in radians per unit of the independent variable, unless you use a D
after the value.
110 Adams View Commands
panel set twindow_function sine_fourier_series
where:
Format:
panel set twindow_function sine_fourier_series
x= run time function
shift= real
angular_shift= angle
panel 111
panel set twindow_function sine_fourier_series
Description:
Extended Definition:
1. Adams assumes FREQUENCY is in radians per unit of the independent variable unless you use a D
after the value.
The FREQUENCY parameter is represented in the following functions as "w".
The SIMPLE_HARMONIC_FUNCTION
SHF = a * sin(w * (x-x0) - phi) + b
The FOURIER_COSINE_SERIES is defined :
F(x) =\ aj*Tj(x-x0),
where the Tj are:
Tj(x-x0)=cos{j * w * (x-x0)}
112 Adams View Commands
panel set twindow_function single_component_force
Format:
panel set twindow_function single_component_force
single_component_force_name= an existing single-component force
return_value_on_marker= marker_type
component= all_components
reference_marker= an existing marker
Example:
panel set twindow_function single_component_force &
panel set twindow_function single_component_force single_component_force_name = sforce &
panel set twindow_function single_component_force return_value_on_marker = i &
panel set twindow_function single_component_force component = fx &
panel set twindow_function single_component_force reference_marker = marker_84
Description:
Extended Definition:
1. The force or torque is calculated in the coordinate system of the REFERENCE_MARKER. If the
RETURN_VALUE_ON_MARKER parameter is set to "i", the value returned is the force or torque
acting on the I_MARKER of the force/torque generating element. If
RETURN_VALUE_ON_MARKER parameter is set to "j", the value returned is that acting on the
J_MARKER. If the REFERENCE_MARKER is not specified the results are with respect to the
ground coordinate system.
2. You may identify a single-component force by typing its name or by picking it from the screen.
If the single-component force is not visible on the screen, you must type the name. You may also find
it convenient to type the name even if the single-component force is displayed.
If you created the single-component force by reading an Adams data set or graphics file, the single-
component force name is the letters SFO followed by the Adams data set single-component force ID
number. The name of Adams SFORCE/101 is SFO101, for example. If you created the single-
component force during preprocessing, you gave it a name at that time.
If a single-component force is available by default, you may identify it by entering its name only. If
it is not, you must enter its full name. To identify a single-component force under another model, for
instance, you may need to enter the model name as well. For example, you may specify single-
component force 'spring' from the model 'suspension' by entering ".suspension.spring". If you type
a "?", Adams View will list the single-component forces available by default.
You must separate multiple single-component force names by commas.
If the single-component force is visible in one of your views, you may identify it by picking on any of
the graphics associated with it.
3. The force or torque is calculated in the coordinate system of the REFERENCE_MARKER. If the
RETURN_VALUE_ON_MARKER parameter is set to "i", the value returned is the force or torque
acting on the I_MARKER of the force/torque generating element. If
RETURN_VALUE_ON_MARKER parameter is set to "j", the value returned is that acting on the
J_MARKER. If the REFERENCE_MARKER is not specified the results are with respec to the
ground coordinate system.
4. The value for the COMPONENT parameter is one of fm, fx, fy, fz, tm, tx, ty, or tz.
The force or torque is calculated in the coordinate system of the REFERENCE_MARKER. If the
RETURN_VALUE_ON_MARKER parameter is set to "i", the value returned is the force or torque
acting on the I_MARKER of the force/torque generating element. If
RETURN_VALUE_ON_MARKER parameter is set to "j", the value returned is that acting on the
J_MARKER.
5. The force or torque is calculated in the coordinate system of the REFERENCE_MARKER. If the
REFERENCE_MARKER is not specified the results are with respect to the ground coordinate
system.
Cautions:
1. If the REFERENCE_MARKER is not specified the results are with respect to the ground coordinate
system.
114 Adams View Commands
panel set twindow_function spring_damper
Tips:
1. You need not separate multiple single-component force picks by commas.
Format:
panel set twindow_function spring_damper
spring_damper_name= existing spring_damper
return_value_on_marker= marker_type
component= all_components
reference_marker= existing marker
Description:
Extended Definition:
1. You may identify a spring-damper force by typing its name or by picking it from the screen.
If the spring-damper force is not visible on the screen, you must type the name. You may also find it
convenient to type the name even if the spring-damper is displayed.
panel 115
panel set twindow_function state_value_for_plant
If you created the spring-damper force by reading an Adams data set, the spring-damper name is the
letters SPR followed by the Adams data set spring-damper ID number. For example, the name of
Adams SPRINGDAMPER/101 is SPR101. If you created the spring-damper during preprocessing,
you will have given it a name at that time.
If a spring-damper is available by default, you may identify it by entering only its name. If it is not,
you must enter its full name.
To identify a spring-damper under a different model, for instance, you may need to enter the model
name as well. For example, you may specify spring-damper 'left' from model 'sla' by entering
".sla.left".
If you type a "?", Adams View will list the spring-dampers available by default.
You must separate multiple spring-damper names by commas.
If the spring-damper is visible in one of your views, you may identify it by picking on any of the
graphics associated with it.
You need not separate multiple spring-damper picks by commas.
2. The force or torque is calculated in the coordinate system of the REFERENCE_MARKER. If the
RETURN_VALUE_ON_MARKER parameter is set to "i", the value returned is the force or torque
acting on the I_MARKER of the force/torque generating element. If the
RETURN_VALUE_ON_MARKER parameter is set to "j", the value returned is that acting on the
J_MARKER. If the REFERENCE_MARKER is not specified, the results are with respect to the
ground coordinate system.
3. The value for the COMPONENT parameter is one of fm, fx, fy, fz, tm, tx, ty, or tz.
The force or torque is calculated in the coordinate system of the REFERENCE_MARKER. If the
RETURN_VALUE_ON_MARKER parameter is set to "i", the value returned is the force or torque
acting on the I_MARKER of the force/torque generating element. If the
RETURN_VALUE_ON_MARKER parameter is set to "j", the value returned is that acting on the
J_MARKER. If the REFERENCE_MARKER is not specified, the results are with respect to the
ground coordinate system.
Format:
panel set twindow_function state_value_for_plant
plant_state_name= existing plant state
component= integer
Example:
panel set twindow_function state_value_for_plant &
plant_state_name= pstate_01 &
component= 2
The STATE_VALUE_FOR_PLANT function returns the value for the 2nd VARIABLE in the list since the
component value specified is 2.
Description:
Extended Definition:
1. You may identify a plant_state by typing its name or by picking it from the screen.
Since plant_state do not have a geometric position, Adams View displays plant_state icons at or near
the model origin. If the plant_state icon is not visible on the screen, you must type the name. You
may also find it convenient to type the name even if the plant_state icon is displayed.
If a plant_state is owned by the default model, you may identify it by entering only its name. If it is
not, you must enter its full name. To identify a plant_state under a different model, for instance, you
may need to enter the model name as well. For example, you may specify plant_state 'actual_velocity'
from model 'motor' by entering ".motor.actual_velocity'". If you type a "?", Adams View will list the
plant_state available by default.
You must separate multiple plant_state names by commas.
If the plant_state is visible in one of your views, you may identify it by picking on any of the graphics
associated with it.
You need not separate multiple plant_state picks by commas.
2. The COMPONENT is an integer indicating the kth VARIABLE in the list.
panel 117
panel set twindow_function step
The value x is the independent variable, x0 and x1 define the variable values at which the step begins and
ends, h0 and h1 are the initial value and the final value of the step. The equation that defines STEP is as
follows.
118 Adams View Commands
panel set twindow_function step
Format:
panel set twindow_function step
x= runtime function
begin_at= real
end_at= real
angular_begin_at= angle
angular_end_at= angle
initial_function_value= real
final_function_value= real
angular_initial_function_value= angle
angular_final_function_value= angle
Step5 = boolean
Description:
Cautions:
1. The value x1 must not equal x0. Equal values of x1 and x0 imply a discontinuous step, which STEP
cannot fit.
Format:
panel set twindow_function sweep
x= function
amplitude= real
start_value= real
start_frequency= real
end_value= real
end_frequency= real
delta_x= real
120 Adams View Commands
panel set twindow_function sweep
Example:
panel set twindow_function sweep &
panel set twindow_function sweep amplitude = 10 &
panel set twindow_function sweep start_value= 2 &
panel set twindow_function sweep start_frequency = 4 &
panel set twindow_function sweep delta_x = .01
Description:
Extended Definition:
1. This variable can be any value of interest that you can compute using a function expression. For
example, if the independent variable in the function is time, x is the system variable TIME.
To enter a function expression you enter a series of quoted strings.
The easiest way to enter a function expression in Adams View is to use the text editor in combination
with the function builder. To invoke the text editor for entering a function expression, highlight the
function field and then either pick the "EDIT" button at the top of the panel or type a ^t (control-
t). The Adams View "function builder" is discussed below.
The syntactical correctness of a function expression can be investigated by using the "VERIFY"
button at the upper right of the text editor. If there is a syntax error, a message is printed and the
cursor is put near the problem. Proper unit consistency is not checked during function expression
verification.
The remainder of this explanation will cover the components of FUNCTION expressions as
summerized in the following table.
panel 121
panel set twindow_function sweep
Components Examples
NUMBERS FUNCTION = 1E2 + 3.4 + 6
OPERATORS FUNCTION = 3*6/2 + 3 - 2**2
SYSTEM CONSTANTS FUNCTION = PI + 20
SYSTEM VARIABLES FUNCTION = AX(1040, 2010)
ARITHMETIC IFS FUNCTION = IF(DX(3, 5): -1, 0, 1)
FORTRAN-77 FUNCTIONS FUNCTION = ABS(NUM) - 6
BLANKS FUNCTION = 1 + 2
CONTINUATION COMMAS FUNCTION = 1 + 1 + 1 + 1 + 1 + 1 , + 1 + 1 + 1 + 1 + 1 + 1 + 1
Adams FUNCTIONS FUNCTION = POLY(0, 0, 6.28)
NUMBERS
FUNCTION expressions can include integers, real numbers, and exponents. In other words, all
numbers that are legal in Adams are legal in a FUNCTION expression.
OPERATORS
In a FUNCTION expression, Adams allows any of the operators **, *, /, +, and -. Adams executes
these operators according to the following precedence rules:
• From the greatest to the least, the operators have the following priorities. ** then * / then + -. In
other words, Adams executes exponentiation (**) before all other operators and executes
multiplication (*) and division (/) before addition (+) and subtraction (-).
• When a statement has operators of the same priority, Adams executes them from left to right.
• You can use parentheses to alter the precedence of operators. For example, in the equation,
FUNCTION = (1-TIME)*30/PI
Adams subtracts TIME from one before it performs multiplication and division.
SYSTEM CONSTANTS
You can include the following system constants in a FUNCTION expression:
PI Value of pi (to eighteen significant digits)
DTOR Value of pi/180 for converting degrees to radians
RTOD Value of 180/pi for converting radians to degrees
The following example of a FUNCTION with a system constant multiplies the system constant PI
by the displacement of marker 10 with respect to marker 14:
FUNCTION = PI*DM(10,14)
BLANKS
122 Adams View Commands
panel set twindow_function sweep
A FUNCTION expression can contain any number of blank spaces. Five consecutive blank spaces in
an expression do not terminate input of the expression (by indicating that what follows is a comment)
as they do in an Adams statement. However, you should remember these two restrictions:
• You cannot put a blank space in the middle of a number.
• Adams does not accept a blank space between a function and its left bracket. (This is true for both,
FORTRAN-77 functions and Adams functions.)
CONTINUATION COMMAS
You can use a comma to continue FUNCTION expressions. You can break the expression anywhere
except in the middle of a number, in the middle of a name, or between a function and its left bracket.
Put a continuation comma in column one of the following line before the rest of the expression. If
you break the expression at a comma that is part of the expression, you must use both the expression
comma and the continuation comma. You may use more than one continuation comma to extend an
expression over several lines.
FUNCTION BUILDER
The FUNCTIONS button at the right side of the Adams View text editor provides a means of
constructing an Adams function string. These functions are briefly described below. Upon picking
the FUNCTIONS button, you will be presented with the list of available functions in the "selection
window". After you select the desired function, a panel will appear with fields representing the various
parameters for the function. You will have full access to on-line help with this panel just like you have
with regular panels. After you have completed the panel and selected the DONE button on the panel,
the function string will be constructed and inserted at the current text cursor location in the text edit
window.
SYSTEM VARIABLES
A FUNCTION expression may access the current value of a system variable and use the value in
computations. These values are accessed through a collection of functions. The accessible system
variables include the following: Time, Mode, Displacements (Translational and Rotational),
Velocities (Translational and Rotational), Accelerations (Translational and Rotational), Forces
(Translational and Rotational), and User-defined variables. Invoke the text edit window and pick the
FUNCTIONS button to get a list of functions that can be accessed.
In general, you use a function character string (such as DM, VX, or FZ) and a list of values (e.g. i1,
i2, and i3) to access a system variable in an expression. For example, the value i1 may be the name of
the marker for which you want to measure a quantity (such as displacement, velocity, acceleration, or
force), i2 is the name of the marker with respect to which you want to measure the quantity, and i3
is the name of the marker you want to use to resolve the components of the quantity. If you do not
specify marker i3, Adams computes the result in the ground reference frame.
ARITHMETIC IFS
Arithmetic IFs allow you to conditionally define FUNCTION. The format for arithmetic IFs is as
follows:
IF (expression 1: expression 2, expression 3, expression 4)
panel 123
panel set twindow_function sweep
Adams evaluates expression 1. If expression 1 is less than zero, the arithmetic IF equals expression 2;
if expression 1 equals zero, the arithmetic IF equals expression 3; and if expression 1 is greater than
zero, the arithmetic IF equals expression 4.
A FUNCTION expression with an arithmetic IF and its four expressions is as given below:
FUNCTION = 6 * IF(VR(10,31): 0 , 0 , 100)
If the radial velocity between markers 10 and 31 is less than or equal to zero, the value of the
FUNCTION expression is zero; but if the radial velocity between markers 10 and 31 is greater than
zero, the value of the FUNCTION expression is six hundred.
In some ways, you may treat IF as a variable. For example, you can place it anywhere in the
expression. In addition, you can nest arithmetic IFs nine levels deep.
FORTRAN-77 FUNCTIONS
You can use the FORTRAN functions ABS, ATAN, ATAN2, COS, EXP, LOG, LOG10, MIN,
MAX, SIN, SQRT, and TAN in your expression. For more information about these functions, see
a FORTRAN reference manual. Invoke the text edit window and pick the FUNCTIONS button to
get a list of functions that can be accessed.
Adams FUNCTIONS
In general, an Adams function evaluates a mathematical equation and returns a value to your
FUNCTION expression. The following table lists all the Adams functions and their purposes.
Invoke the text edit window and pick the FUNCTIONS button to make a list of functions that can
be accessed.
Names Purposes
AKISPL Accesses the data in a SPLINE statement and uses the Akima cubic method to fit a
cubic curve (a spline) to the data.
BISTOP Evaluates a force restricting displacement of a part in two opposite directions
CHEBY Evaluates a Chebyshev polynomial
CUBSPL Accesses the data in a SPLINE statement and uses the traditional cubic method to fit
a cubic curve (a spline) to the data.
FORCOS Evaluates a Fourier cosine series
FORSIN Evaluates a Fourier sine series
HAVSIN Evaluates a haversine function
IMPACT Evaluates a force restricting displacement of a part in one direction
POLY Evaluates a polynomial
SHF Evaluates a simple harmonic function
STEP Approximates a step function with a cubic polynomial.
124 Adams View Commands
panel set twindow_function theta
2. For each iteration of the loop, including the first, Adams View checks the value of START_VALUE
+ INCREMENT_VALUE. If the result is less than or equal to END_VALUE (or greater than or
equal to if INCREMENT_VALUE is negative) the loop is executed
Format:
panel set twindow_function theta
i_marker_name= existing marker
j_marker_name= existing marker
Example:
panel set twindow_function theta &
i_marker_name = marker_3 &
j_marker_name = marker_6
Description:
Extended Definition:
1. You may identify a marker by typing its name or by picking it from the screen.
If the marker is not visible on the screen, you must type the name.
You may also find it convenient to type the name even if the marker is displayed.
If you created the marker by reading an data set or graphics file, the marker name is the letters MAR
followed by the data set marker ID number. For example, the name of MARKER/101 is MAR101.
If you created the marker during preprocessing, you will have given it a name at that time.
panel 125
panel set twindow_function tm
If a marker is available by default, you may identify it by entering only its name. If it is not, you must
enter its full name. To identify a marker under a different part, for instance, you may need to enter
the model and part names as well. For example, you may specify marker 'pivot' from model 'links',
part 'lower_arm' by entering ".links.lower_arm.pivot". If you type a "?", /View will list the markers
available by default.
You must separate multiple marker names by commas.
If the marker is visible in one of your views, you may identify it by picking on it.
You need not separate multiple marker picks by commas.
Format:
panel set twindow_function tm
i_marker_name= existing marker
j_marker_name= existing marker
Example:
panel set twindow_function theta &
i_marker_name = marker_3 &
j_marker_name = marker_6
Description:
Extended Definition:
1. You may identify a marker by typing its name or by picking it from the screen.
If the marker is not visible on the screen, you must type the name.
You may also find it convenient to type the name even if the marker is displayed.
126 Adams View Commands
panel set twindow_function torque_vector
If you created the marker by reading an Adams data set or graphics file, the marker name is the letters
MAR followed by the Adams data set marker ID number. For example, the name of Adams
MARKER/101 is MAR101. If you created the marker during preprocessing, you will have given it a
name at that time.
If a marker is available by default, you may identify it by entering only its name. If it is not, you must
enter its full name. To identify a marker under a different part, for instance, you may need to enter
the model and part names as well. For example, you may specify marker 'pivot' from model 'links',
part 'lower_arm' by entering ".links.lower_arm.pivot". If you type a "?", Adams View will list the
markers available by default.
You must separate multiple marker names by commas.
If the marker is visible in one of your views, you may identify it by picking on it.
You need not separate multiple marker picks by commas.
Format:
panel set twindow_function torque_vector
torque_vector_name= an existing vtorque
return_value_on_marker= marker_type
component= all_components
reference_marker= an existing marker
Example:
panel set twindow_function torque_vector &
panel set twindow_function single_component_force return_value_on_marker = i &
panel set twindow_function single_component_force component = fx &
panel set twindow_function single_component_force reference_marker = marker_84
panel 127
panel set twindow_function torque_vector
Description:
Extended Definition:
1. The force or torque is calculated in the coordinate system of the REFERENCE_MARKER. If the
RETURN_VALUE_ON_MARKER parameter is set to "i", the value returned is the force or torque
acting on the I_MARKER of the force/torque generating element. If
RETURN_VALUE_ON_MARKER parameter is set to "j", the value returned is that acting on the
J_MARKER. If the REFERENCE_MARKER is not specified the results are with respect to the
ground coordinate system.
2. You may identify a torque vector by typing its name or by picking it from the screen.
If the torque vector is not visible on the screen, you must type the name. You may also find it
convenient to type the name even if the torque vector is displayed.
If you created the torque vector by reading an Adams data set or graphics file, the torque vector name
is the letters VTO followed by the Adams data set torque vector ID number. The name of Adams
VTORQUE/101 is VTO101, for example. If you created the torque vector during preprocessing,
you gave it a name at that time.
If a torque vector is available by default, you may identify it by entering its name only. If it is not,
you must enter its full name. To identify a torque vector under another model, for instance, you may
need to enter the model name as well. For example, you may specify torque vector 'spring' from the
model 'suspension' by entering ".suspension.spring". If you type a "?", Adams View will list the torque
vector available by default.
You must separate multiple torque vector names by commas.
3. The force or torque is calculated in the coordinate system of the REFERENCE_MARKER. If the
RETURN_VALUE_ON_MARKER parameter is set to "i", the value returned is the force or torque
acting on the I_MARKER of the force/torque generating element. If
RETURN_VALUE_ON_MARKER parameter is set to "j", the value returned is that acting on the
J_MARKER. If the REFERENCE_MARKER is not specified the results are with respec to the
ground coordinate system.
4. The value for the COMPONENT parameter is one of fm, fx, fy, fz, tm, tx, ty, or tz.
128 Adams View Commands
panel set twindow_function tx
The force or torque is calculated in the coordinate system of the REFERENCE_MARKER. If the
RETURN_VALUE_ON_MARKER parameter is set to "i", the value returned is the force or torque
acting on the I_MARKER of the force/torque generating element. If
RETURN_VALUE_ON_MARKER parameter is set to "j", the value returned is that acting on the
J_MARKER. If the REFERENCE_MARKER is not specified the results are with respect to the
ground coordinate system.
5. The force or torque is calculated in the coordinate system of the REFERENCE_MARKER. If the
REFERENCE_MARKER is not specified the results are with respect to the ground coordinate
system.
Tips:
1. If the torque vector is visible in one of your views, you may identify it by picking on any of the
graphics associated with it.
2. You need not separate multiple torque vector picks by commas.
Format:
panel set twindow_function tx
i_marker_name= existing marker
j_marker_name= existing marker
r_marker_name= existing marker
Example:
panel set twindow_function tx &
i_marker_name = marker_3 &
j_marker_name = marker_6 &
r_marker_name = cm
panel 129
panel set twindow_function ty
Description:
Extended Definition:
1. You may identify a marker by typing its name or by picking it from the screen.
If the marker is not visible on the screen, you must type the name.
You may also find it convenient to type the name even if the marker is displayed.
If you created the marker by reading an Adams data set or graphics file, the marker name is the letters
MAR followed by the Adams data set marker ID number. For example, the name of Adams
MARKER/101 is MAR101. If you created the marker during preprocessing, you will have given it a
name at that time.
If a marker is available by default, you may identify it by entering only its name. If it is not, you must
enter its full name. To identify a marker under a different part, for instance, you may need to enter
the model and part names as well. For example, you may specify marker 'pivot' from model 'links',
part 'lower_arm' by entering ".links.lower_arm.pivot". If you type a "?", Adams View will list the
markers available by default.
You must separate multiple marker names by commas.
If the marker is visible in one of your views, you may identify it by picking on it.
You need not separate multiple marker picks by commas.
Format:
panel set twindow_function ty
i_marker_name= existing marker
j_marker_name= existing marker
r_marker_name= existing marker
Example:
panel set twindow_function ty &
i_marker_name = marker_3 &
j_marker_name = marker_6 &
r_marker_name = cm
Description:
Extended Definition:
1. You may identify a marker by typing its name or by picking it from the screen.
If the marker is not visible on the screen, you must type the name.
You may also find it convenient to type the name even if the marker is displayed.
If you created the marker by reading an Adams data set or graphics file, the marker name is the letters
MAR followed by the Adams data set marker ID number. For example, the name of Adams
MARKER/101 is MAR101. If you created the marker during preprocessing, you will have given it
a name at that time.
panel 131
panel set twindow_function tz
If a marker is available by default, you may identify it by entering only its name. If it is not, you must
enter its full name. To identify a marker under a different part, for instance, you may need to enter
the model and part names as well. For example, you may specify marker 'pivot' from model 'links',
part 'lower_arm' by entering ".links.lower_arm.pivot". If you type a "?", Adams View will list the
markers available by default.
You must separate multiple marker names by commas.
If the marker is visible in one of your views, you may identify it by picking on it.
You need not separate multiple marker picks by commas.
Format:
panel set twindow_function tz
i_marker_name= existing marker
j_marker_name= existing marker
r_marker_name= existing marker
Example:
panel set twindow_function tz &
i_marker_name = marker_3 &
j_marker_name = marker_6 &
r_marker_name = cm
132 Adams View Commands
panel set twindow_function variable_value
Description:
Extended Definition:
1. You may identify a marker by typing its name or by picking it from the screen.
If the marker is not visible on the screen, you must type the name.
You may also find it convenient to type the name even if the marker is displayed.
If you created the marker by reading an Adams data set or graphics file, the marker name is the letters
MAR followed by the Adams data set marker ID number. For example, the name of Adams
MARKER/101 is MAR101. If you created the marker during preprocessing, you will have given it
a name at that time.
If a marker is available by default, you may identify it by entering its name only. If it is not, you must
enter its full name. To identify a marker under a different part, for instance, you may need to enter
the model and part names as well. For example, you may specify marker 'pivot' from model 'links',
part 'lower_arm' by entering ".links.lower_arm.pivot". If you type a "?", Adams View will list the
markers available by default.
You must separate multiple marker names by commas.
If the marker is visible in one of your views, you may identify it by picking on it.
You need not separate multiple marker picks by commas.
Format:
panel set twindow_function variable_value
variable_name= existing solver variable
Example:
panel set twindow_function variable_value &
variable_name = variable_1
Description:
Extended Definition:
1. You enter variable names as input parameters for array elements (U_INPUT_ARRAY), plant input
and output definitions, and in function expressions
You may identify a variable by typing its name or by picking it from the screen.
Since variable do not have a geometric position, Adams View displays variable icons at or near the
model origin. If the variable icon is not visible on the screen, you must type the name. You may also
find it convenient to type the name even if the variable icon is displayed.
If you created the variable by reading an Adams data set, the variable name is the letters VAR followed
by the Adams data set variable ID number. For example, the name of Adams VARIABLE/101 is
VAR101. If you created the variable during preprocessing, you will have given it a name at that time.
If a variable is owned by the default model, you may identify it by entering only its name. If it is not,
you must enter its full name.
To identify a variable under a different model, for instance, you may need to enter the model name
as well. For example, you may specify variable 'fluid_volume' from model 'hydro' by entering
".hydro.fluid_volume'". If you type a "?", Adams View will list the variable available by default.
You must separate multiple variable names by commas.
If the variable is visible in one of your views, you may identify it by picking on any of the graphics
associated with it.
You need not separate multiple variable picks by commas.
Format:
panel set twindow_function vm
i_marker_name = an existing marker
j_marker_name = an existing marker
reference_frame_marker = an existing marker
Example:
panel set twindow_function vm &
i_marker_name marker_1 &
j_marker_name marker_2
Description:
Extended Definition:
1. Mathematically, VM is calculated as follows:
VM = ( [ Vi1 - Vi2] dot_product_of [ Vi1 - Vi2] )**1/2
where Vi1 is the velocity of the I_MARKER (i1) in ground, and Vi2 is the velocity of the
J_MARKER (i2) in ground.
2. You may identify a marker by typing its name or by picking it from the screen.
If the marker is not visible on the screen, you must type the name. You may also find it convenient
to type the name even if the marker is displayed.
If you created the marker by reading an Adams data set or graphics file, the marker name is the letters
MAR followed by the Adams data set marker ID number. The name of Adams MARKER/101 is
MAR101, for example. If you created the marker during preprocessing, you gave it a name at that
time.
If a marker is available by default, you may identify it by entering its name only. If it is not, you must
enter its full name. To identify a marker under a different part, for instance, you may need to enter
the model and part names as well. For example, you may specify marker 'pivot' from model 'links',
part 'lower_arm' by entering ".links.lower_arm.pivot".
You must separate multiple marker names by commas.
If the marker is visible in one of your views, you may identify it by picking on it.
panel 135
panel set twindow_function vr
Tips:
1. If you type a "?", Adams View will list the markers available by default.
Format:
panel set twindow_function vr
i_marker_name= an existing marker
j_marker_name = an existing marker
reference_frame_marker = an existing marker
Example:
panel set twindow_function vr &
i_marker_name = marker_1 &
j_marker_name = marker_2
Description:
Extended Definition:
1. Mathematically, VR is calculated as follows:
VM = ( [ Vi1 - Vi2] dot_product_of [ Ri1 - Ri2] ) / DM(i1,i2)
136 Adams View Commands
panel set twindow_function vx
where Vi1 is the velocity of the I_MARKER (i1) in ground, Vi2 is the velocity of the J_MARKER
(i2) in ground, Ri1 is the displacement of the I_MARKER (i1) with respect to the global origin, Ri2
is the displacement of the J_MARKER (i2) with respect to the global origin, and DM(i1,i2) is the
distance between markers i1 and i2. When the I_MARKER (i1) and the J_MARKER (i2) are
separating from each other, VR is positive. VR is negative when the I_MARKER (i1) and the
J_MARKER (i2) are approaching each other.
2. You may identify a marker by typing its name or by picking it from the screen.
If the marker is not visible on the screen, you must type the name. You may also find it convenient
to type the name even if the marker is displayed.
If you created the marker by reading an Adams data set or graphics file, the marker name is the letters
MAR followed by the Adams data set marker ID number. The name of Adams MARKER/101 is
MAR101, for example. If you created the marker during preprocessing, you gave it a name at that
time.
If a marker is available by default, you may identify it by entering its name only. If it is not, you must
enter its full name. To identify a marker under a different part, for instance, you may need to enter
the model and part names as well. For example, you may specify marker 'pivot' from model 'links',
part 'lower_arm' by entering ".links.lower_arm.pivot".
You must separate multiple marker names by commas.
If the marker is visible in one of your views, you may identify it by picking on it.
You need not separate multiple marker picks by commas.
Tips:
1. If you type a "?", Adams View will list the markers available by default.
Format:
panel set twindow_function vx
i_marker_name = an existing marker
j_marker_name = an existing marker
r_marker_name = an existing marker
reference_frame_marker = an existing marker
panel 137
panel set twindow_function vx
Example:
panel set twindow_function vx &
i_marker_name = marker_1 &
j_marker_name = marker_2
Description:
Extended Definition:
1. Mathematically, VX is calculated as follows:
VX = [ Vi1 - Vi2] dot_product_with xi3
where Vi1 is the velocity of the I_MARKER (i1) in ground, Vi2 is the velocity of the J_MARKER
(i2) in ground, and xi3 is the unit vector along the x-axis of the R_MARKER (i3).
2. You may identify a marker by typing its name or by picking it from the screen.
If the marker is not visible on the screen, you must type the name. You may also find it convenient
to type the name even if the marker is displayed.
If you created the marker by reading an Adams data set or graphics file, the marker name is the letters
MAR followed by the Adams data set marker ID number. The name of Adams MARKER/101 is
MAR101, for example. If you created the marker during preprocessing, you gave it a name at that
time.
If a marker is available by default, you may identify it by entering its name only. If it is not, you must
enter its full name. To identify a marker under a different part, for instance, you may need to enter
the model and part names as well. For example, you may specify marker 'pivot' from model 'links',
part 'lower_arm' by entering ".links.lower_arm.pivot".
You must separate multiple marker names by commas.
If the marker is visible in one of your views, you may identify it by picking on it.
You need not separate multiple marker picks by commas.
138 Adams View Commands
panel set twindow_function vy
Tips:
1. If you type a "?", Adams View will list the markers available by default.
2. If you do not supply the the r_marker_name parameter, Adams will evaluate the function in the
ground reference frame.
Format:
panel set twindow_function vy
i_marker_name = an existing marker
j_marker_name = an existing marker
r_marker_name = an existing marker
reference_frame_marker = an existing marker
Example:
panel set twindow_function vy &
i_marker_name = marker_1 &
j_marker_name = marker_2
Description:
Extended Definition:
1. Mathematically, VY is calculated as follows:
panel 139
panel set twindow_function vz
Tips:
1. If you type a "?", Adams View will list the markers available by default.
2. If you do not supply the the r_marker_name parameter, Adams will evaluate the function in the
ground reference frame.
Format:
panel set twindow_function vz
i_marker_name = an existing marker
j_marker_name = an existing marker
r_marker_name = an existing marker
reference_frame_marker = an existing marker
140 Adams View Commands
panel set twindow_function vz
Example:
panel set twindow_function vz &
i_marker_name = marker_1 &
j_marker_name = marker_2
Description:
Extended Definition:
1. Mathematically, VZ is calculated as follows:
VZ = [ Vi1 - Vi2] dot_product_with zi3
where Vi1 is the velocity of the I_MARKER (i1) in ground, Vi2 is the velocity of the J_MARKER
(i2) in ground, and zi3 is the unit vector along the z-axis of the R_MARKER (i3) .
2. You may identify a marker by typing its name or by picking it from the screen.
If the marker is not visible on the screen, you must type the name. You may also find it convenient
to type the name even if the marker is displayed.
If you created the marker by reading an Adams data set or graphics file, the marker name is the letters
MAR followed by the Adams data set marker ID number. The name of Adams MARKER/101 is
MAR101, for example. If you created the marker during preprocessing, you gave it a name at that
time.
If a marker is available by default, you may identify it by entering its name only. If it is not, you must
enter its full name. To identify a marker under a different part, for instance, you may need to enter
the model and part names as well. For example, you may specify marker 'pivot' from model 'links',
part 'lower_arm' by entering ".links.lower_arm.pivot".
You must separate multiple marker names by commas.
If the marker is visible in one of your views, you may identify it by picking on it.
You need not separate multiple marker picks by commas.
panel 141
panel set twindow_function wx
Tips:
1. If you type a "?", Adams View will list the markers available by default.
2. If you do not supply the the r_marker_name parameter, Adams will evaluate the function in the
ground reference frame.
Format:
panel set twindow_function wx
i_marker_name= an existing marker
j_marker_name= an existing marker
r_marker_name= an existing marker
Example:
panel set twindow_function wx &
panel set twindow_function dm i_marker_name = marker_71 &
panel set twindow_function dm j_marker_name = marker_82
Description:
Extended Definition:
1. Mathematically, WX is calculated as follows:
WX = [wi1 - wi2] dot_product_with xi3
where wi1 is the angular velocity vector of the I_MARKER (i1) in ground, wi2 is the angular velocity
vector of the J_MARKER (i2) in ground, and xi3 is the unit vector along the x-axis of the
R_MARKER (i3) .
142 Adams View Commands
panel set twindow_function wy
2. You may identify a marker by typing its name or by picking it from the screen.
If the marker is not visible on the screen, you must type the name. You may also find it convenient
to type the name even if the marker is displayed.
If you created the marker by reading an Adams data set or graphics file, the marker name is the letters
MAR followed by the Adams data set marker ID number. The name of Adams MARKER/101 is
MAR101, for example. If you created the marker during preprocessing, you gave it a name at that
time.
If a marker is available by default, you may identify it by entering its name only. If it is not, you must
enter its full name. To identify a marker under a different part, for instance, you may need to enter
the model and part names as well. For example, you may specify marker 'pivot' from model 'links',
part 'lower_arm' by entering ".links.lower_arm.pivot". If you type a "?", Adams View will list the
markers available by default.
You must separate multiple marker names by commas.
If the marker is visible in one of your views, you may identify it by picking on it.
3. You may identify a marker by typing its name or by picking it from the screen.
If the marker is not visible on the screen, you must type the name. You may also find it convenient
to type the name even if the marker is displayed.
If you created the marker by reading an Adams data set or graphics file, the marker name is the letters
MAR followed by the Adams data set marker ID number. The name of Adams MARKER/101 is
MAR101, for example. If you created the marker during preprocessing, you gave it a name at that
time.
If a marker is available by default, you may identify it by entering its name only. If it is not, you must
enter its full name. To identify a marker under a different part, for instance, you may need to enter
the model and part names as well. For example, you may specify marker 'pivot' from model 'links',
part 'lower_arm' by entering ".links.lower_arm.pivot". If you type a "?", Adams View will list the
markers available by default.
4. If you do not supply this parameter, Adams will evaluate the function in the ground reference frame.
Tips:
1. You need not separate multiple marker picks by commas.
Format:
panel set twindow_function wy
i_marker_name= an existing marker
j_marker_name= an existing marker
r_marker_name= an existing marker
Example:
panel set twindow_function wy &
panel set twindow_function dm i_marker_name = marker_71 &
panel set twindow_function dm j_marker_name = marker_82
Description:
Extended Definition:
1. Mathematically, WY is calculated as follows:
WY = [wi1 - wi2] dot_product_with yi3
where wi1 is the angular velocity vector of the I_MARKER (i1) in ground, wi2 is the angular velocity
vector of the J_MARKER (i2) in ground, and yi3 is the unit vector along the y-axis of the
R_MARKER (i3) .
2. You may identify a marker by typing its name or by picking it from the screen.
If the marker is not visible on the screen, you must type the name. You may also find it convenient
to type the name even if the marker is displayed.
If you created the marker by reading an Adams data set or graphics file, the marker name is the letters
MAR followed by the Adams data set marker ID number. The name of Adams MARKER/101 is
MAR101, for example. If you created the marker during preprocessing, you gave it a name at that
time.
144 Adams View Commands
panel set twindow_function wz
If a marker is available by default, you may identify it by entering its name only. If it is not, you must
enter its full name. To identify a marker under a different part, for instance, you may need to enter
the model and part names as well. For example, you may specify marker 'pivot' from model 'links',
part 'lower_arm' by entering ".links.lower_arm.pivot". If you type a "?", Adams View will list the
markers available by default.
You must separate multiple marker names by commas.
If the marker is visible in one of your views, you may identify it by picking on it.
3. You may identify a marker by typing its name or by picking it from the screen.
If the marker is not visible on the screen, you must type the name. You may also find it convenient
to type the name even if the marker is displayed.
If you created the marker by reading an Adams data set or graphics file, the marker name is the letters
MAR followed by the Adams data set marker ID number. The name of Adams MARKER/101 is
MAR101, for example. If you created the marker during preprocessing, you gave it a name at that
time.
If a marker is available by default, you may identify it by entering its name only. If it is not, you must
enter its full name. To identify a marker under a different part, for instance, you may need to enter
the model and part names as well. For example, you may specify marker 'pivot' from model 'links',
part 'lower_arm' by entering ".links.lower_arm.pivot". If you type a "?", Adams View will list the
markers available by default.
4. If you do not supply this parameter, Adams will evaluate the function in the ground reference frame.
Format:
panel set twindow_function wz
i_marker_name= an existing marker
j_marker_name= an existing marker
r_marker_name= an existing marker
Example:
panel set twindow_function wz &
panel set twindow_function dm i_marker_name = marker_71 &
panel set twindow_function dm j_marker_name = marker_82
panel 145
panel set twindow_function wz
Description:
Extended Definition:
1. Mathematically, WZ is calculated as follows:
WZ = [wi1 - wi2] dot_product_with zi3
where wi1 is the angular velocity vector of the I_MARKER (i1) in ground, wi2 is the angular velocity
vector of the J_MARKER (i2) in ground, and zi3 is the unit vector along the z-axis of the
R_MARKER (i3) .
2. You may identify a marker by typing its name or by picking it from the screen.
If the marker is not visible on the screen, you must type the name. You may also find it convenient
to type the name even if the marker is displayed.
If you created the marker by reading an Adams data set or graphics file, the marker name is the letters
MAR followed by the Adams data set marker ID number. The name of Adams MARKER/101 is
MAR101, for example. If you created the marker during preprocessing, you gave it a name at that
time.
If a marker is available by default, you may identify it by entering its name only. If it is not, you must
enter its full name. To identify a marker under a different part, for instance, you may need to enter
the model and part names as well. For example, you may specify marker 'pivot' from model 'links',
part 'lower_arm' by entering ".links.lower_arm.pivot". If you type a "?", Adams View will list the
markers available by default.
You must separate multiple marker names by commas.
If the marker is visible in one of your views, you may identify it by picking on it.
3. You may identify a marker by typing its name or by picking it from the screen.
If the marker is not visible on the screen, you must type the name.
You may also find it convenient to type the name even if the marker is displayed.
If you created the marker by reading an Adams data set or graphics file, the marker name is the letters
MAR followed by the Adams data set marker ID number. The name of Adams MARKER/101 is
MAR101, for example. If you created the marker during preprocessing, you gave it a name at that
time.
146 Adams View Commands
panel set twindow_function x_acc
If a marker is available by default, you may identify it by entering its name only. If it is not, you must
enter its full name. To identify a marker under a different part, for instance, you may need to enter
the model and part names as well. For example, you may specify marker 'pivot' from model 'links',
part 'lower_arm' by entering ".links.lower_arm.pivot". If you type a "?", Adams View will list the
markers available by default.
4. If you do not supply this parameter, Adams will evaluate the function in the ground reference frame.
Tips:
1. You need not separate multiple marker picks by commas.
Format:
panel set twindow_function x_acc
i_marker_name= an existing marker
j_marker_name= an existing marker
r_marker_name= an existing marker
reference_frame_marker = an existing marker
Example:
panel set twindow_function x_acc &
panel set twindow_function dm i_marker_name= marker_71 &
panel set twindow_function dm j_marker_name = marker_82
panel 147
panel set twindow_function x_acc
Description:
Extended Definition:
1. Mathematically, X_ACC is calculated as follows:
X_ACC = [ ai1 - ai2] dot_product_with xi3
where ai1 is the velocity of the I_MARKER (i1) in ground, ai2 is the velocity of the J_MARKER (i2)
in ground, and xi3 is the unit vector along the x-axis of the R_MARKER (i3) .
2. You may identify a marker by typing its name or by picking it from the screen.
If the marker is not visible on the screen, you must type the name. You may also find it convenient
to type the name even if the marker is displayed.
If you created the marker by reading an Adams data set or graphics file, the marker name is the letters
MAR followed by the Adams data set marker ID number. The name of Adams MARKER/101 is
MAR101, for example. If you created the marker during preprocessing, you gave it a name at that
time.
If a marker is available by default, you may identify it by entering its name only. If it is not, you must
enter its full name. To identify a marker under a different part, for instance, you may need to enter
the model and part names as well. For example, you may specify marker 'pivot' from model 'links',
part 'lower_arm' by entering ".links.lower_arm.pivot". If you type a "?", Adams View will list the
markers available by default.
You must separate multiple marker names by commas.
If the marker is visible in one of your views, you may identify it by picking on it.
3. You may identify a marker by typing its name or by picking it from the screen.
If the marker is not visible on the screen, you must type the name. You may also find it convenient
to type the name even if the marker is displayed.
148 Adams View Commands
panel set twindow_function x_wdt
If you created the marker by reading an Adams data set or graphics file, the marker name is the letters
MAR followed by the Adams data set marker ID number. The name of Adams MARKER/101 is
MAR101, for example. If you created the marker during preprocessing, you gave it a name at that
time.
If a marker is available by default, you may identify it by entering its name only. If it is not, you must
enter its full name. To identify a marker under a different part, for instance, you may need to enter
the model and part names as well. For example, you may specify marker 'pivot' from model 'links',
part 'lower_arm' by entering ".links.lower_arm.pivot". If you type a "?", Adams View will list the
markers available by default.
4. If you do not supply this parameter, Adams will evaluate the function in the ground reference frame.
5. Set l = 0 or omit the argument if you want the time derivatives to be calculated in the ground
coordinate system (GCS).
Cautions:
1. You must separate multiple marker names by commas.
Tips:
1. You need not separate multiple marker picks by commas.
Format:
panel set twindow_function x_wdt
i_marker_name= existing marker
j_marker_name= existing marker
r_marker_name = existing marker
reference_frame_marker= an existing marker
panel 149
panel set twindow_function x_wdt
Example:
panel set twindow_function x_wdt &
i_marker_name = marker_3 &
j_marker_name = marker_6 &
reference_frame_marker = marker_4
Description:
Extended Definition:
1. You may identify a marker by typing its name or by picking it from the screen.
If the marker is not visible on the screen, you must type the name. You may also find it convenient
to type the name even if the marker is displayed.
If you created the marker by reading an Adams data set or graphics file, the marker name is the letters
MAR followed by the Adams data set marker ID number. The name of Adams MARKER/101 is
MAR101, for example. If you created the marker during preprocessing, you gave it a name at that
time.
If a marker is available by default, you may identify it by entering its name only. If it is not, you must
enter its full name. To identify a marker under a different part, for instance, you may need to enter
the model and part names as well. For example, you may specify marker 'pivot' from model 'links',
part 'lower_arm' by entering ".links.lower_arm.pivot". If you type a "?", Adams View will list the
markers available by default.
You must separate multiple marker names by commas.
If the marker is visible in one of your views, you may identify it by picking on it.
You need not separate multiple marker picks by commas.
150 Adams View Commands
panel set twindow_function y_acc
Format:
panel set twindow_function y_acc
i_marker_name= an existing marker
j_marker_name= an existing marker
r_marker_name= an existing marker
reference_frame_marker = an existing marker
Example:
panel set twindow_function y_acc &
panel set twindow_function dm i_marker_name = marker_71 &
panel set twindow_function dm j_marker_name = marker_82 &
panel set twindow_function x_acc reference_frame_marker = marker_74
Description:
Extended Definition:
1. Mathematically, Y_ACC is calculated as follows:
Y_ACC = [ ai1 - ai2] dot_product_with yi3
where ai1 is the acceleration of the I_MARKER (i1) in ground, ai2 is the acceleration of the
J_MARKER (i2) in ground, and yi3 is the unit vector along the y-axis of the R_MARKER (i3) .
panel 151
panel set twindow_function y_wdt
2. You may identify a marker by typing its name or by picking it from the screen.
If the marker is not visible on the screen, you must type the name. You may also find it convenient
to type the name even if the marker is displayed.
If you created the marker by reading an Adams data set or graphics file, the marker name is the letters
MAR followed by the Adams data set marker ID number. The name of Adams MARKER/101 is
MAR101, for example. If you created the marker during preprocessing, you gave it a name at that
time.
If a marker is available by default, you may identify it by entering its name only. If it is not, you must
enter its full name. To identify a marker under a different part, for instance, you may need to enter
the model and part names as well. For example, you may specify marker 'pivot' from model 'links',
part 'lower_arm' by entering ".links.lower_arm.pivot". If you type a "?", Adams View will list the
markers available by default.
You must separate multiple marker names by commas.
If the marker is visible in one of your views, you may identify it by picking on it.
3. You may identify a marker by typing its name or by picking it from the screen.
If the marker is not visible on the screen, you must type the name. You may also find it convenient
to type the name even if the marker is displayed.
If you created the marker by reading an Adams data set or graphics file, the marker name is the letters
MAR followed by the Adams data set marker ID number. The name of Adams MARKER/101 is
MAR101, for example. If you created the marker during preprocessing, you gave it a name at that
time.
If a marker is available by default, you may identify it by entering its name only. If it is not, you must
enter its full name. To identify a marker under a different part, for instance, you may need to enter
the model and part names as well. For example, you may specify marker 'pivot' from model 'links',
part 'lower_arm' by entering ".links.lower_arm.pivot". If you type a "?", Adams View will list the
markers available by default.
4. If you do not supply this parameter, Adams will evaluate the function in the ground reference frame.
5. Set l = 0 or omit the argument if you want the time derivatives to be calculated in the ground
coordinate system (GCS).
Cautions:
1. You must separate multiple marker names by commas.
Tips:
1. You need not separate multiple marker picks by commas.
computed in the coordinate system of the R_MARKER (i3). Mathematically, Y_WDT is calculated as
follows:
Y_WDT = [i1 - i2] dot_product_with yi3
where i1 is the angular acceleration vector of the I_MARKER (i1) in ground, i2 is the angular acceleration
vector of the J_MARKER (i2) in ground, and yi3 is the unit vector along the x-axis of the R_MARKER (i3) .
Format:
panel set twindow_function y_wdt
i_marker_name= existing marker
j_marker_name= existing marker
r_marker_name = existing marker
reference_frame_marker= an existing marker
Example:
panel set twindow_function y_wdt &
i_marker_name = marker_3 &
j_marker_name = marker_6 &
reference_frame_marker = marker_4
Description:
Extended Definition:
1. You may identify a marker by typing its name or by picking it from the screen.
If the marker is not visible on the screen, you must type the name. You may also find it convenient
to type the name even if the marker is displayed.
panel 153
panel set twindow_function yaw
If you created the marker by reading an Adams data set or graphics file, the marker name is the letters
MAR followed by the Adams data set marker ID number. The name of Adams MARKER/101 is
MAR101, for example. If you created the marker during preprocessing, you gave it a name at that
time.
If a marker is available by default, you may identify it by entering its name only. If it is not, you must
enter its full name. To identify a marker under a different part, for instance, you may need to enter
the model and part names as well. For example, you may specify marker 'pivot' from model 'links',
part 'lower_arm' by entering ".links.lower_arm.pivot". If you type a "?", Adams View will list the
markers available by default.
You must separate multiple marker names by commas.
If the marker is visible in one of your views, you may identify it by picking on it.
You need not separate multiple marker picks by commas.
Format:
panel set twindow_function yaw
i_marker_name = an existing marker
j_marker_name = an existing marker
Example:
panel set twindow_function yaw &
i_marker_name = origin &
j_marker_name = cm
Description:
Extended Definition:
1. You may identify a marker by typing its name or by picking it from the screen.
154 Adams View Commands
panel set twindow_function z_acc
If the marker is not visible on the screen, you must type the name. You may also find it convenient
to type the name even if the marker is displayed.
If you created the marker by reading an Adams data set or graphics file, the marker name is the letters
MAR followed by the Adams data set marker ID number. The name of Adams MARKER/101 is
MAR101, for example. If you created the marker during preprocessing, you gave it a name at that
time.
If a marker is available by default, you may identify it by entering its name only. If it is not, you must
enter its full name. To identify a marker under a different part, for instance, you may need to enter
the model and part names as well. For example, you may specify marker 'pivot' from model 'links',
part 'lower_arm' by entering ".links.lower_arm.pivot". If you type a "?", Adams View will list the
markers available by default.
You must separate multiple marker names by commas.
If the marker is visible in one of your views, you may identify it by picking on it.
You need not separate multiple marker picks by commas.
Format:
panel set twindow_function z_acc
i_marker_name= an existing marker
j_marker_name= an existing marker
r_marker_name= an existing marker
reference_frame_marker = an existing marker
Example:
panel set twindow_function z_acc &
panel set twindow_function dm i_marker_name = marker_71 &
panel set twindow_function dm j_marker_name = marker_82 &
panel set twindow_function x_acc reference_frame_marker = marker_74
panel 155
panel set twindow_function z_acc
Description:
Extended Definition:
1. Mathematically, Z_ACC is calculated as follows:
Z_ACC = [ ai1 - ai2] dot_product_with zi3
where ai1 is the acceleration of the I_MARKER (i1) in ground, ai2 is the acceleration of the
J_MARKER (i2) in ground, and zi3 is the unit vector along the z-axis of the R_MARKER (i3) .
2. You may identify a marker by typing its name or by picking it from the screen.
If the marker is not visible on the screen, you must type the name. You may also find it convenient
to type the name even if the marker is displayed.
If you created the marker by reading an adams data set or graphics file, the marker name is the letters
MAR followed by the adams data set marker ID number. The name of adams MARKER/101 is
MAR101, for example. If you created the marker during preprocessing, you gave it a name at that
time.
If a marker is available by default, you may identify it by entering its name only. If it is not, you must
enter its full name. To identify a marker under a different part, for instance, you may need to enter
the model and part names as well. For example, you may specify marker 'pivot' from model 'links',
part 'lower_arm' by entering ".links.lower_arm.pivot". If you type a "?", Adams View will list the
markers available by default.
You must separate multiple marker names by commas.
If the marker is visible in one of your views, you may identify it by picking on it.
3. You may identify a marker by typing its name or by picking it from the screen.
If the marker is not visible on the screen, you must type the name. You may also find it convenient
to type the name even if the marker is displayed.
156 Adams View Commands
panel set twindow_function z_wdt
If you created the marker by reading an adams data set or graphics file, the marker name is the letters
MAR followed by the adams data set marker ID number. The name of adams MARKER/101 is
MAR101, for example. If you created the marker during preprocessing, you gave it a name at that
time.
If a marker is available by default, you may identify it by entering its name only. If it is not, you must
enter its full name. To identify a marker under a different part, for instance, you may need to enter
the model and part names as well. For example, you may specify marker 'pivot' from model 'links',
part 'lower_arm' by entering ".links.lower_arm.pivot". If you type a "?", Adams View will list the
markers available by default.
4. If you do not supply this parameter, adams will evaluate the function in the ground reference frame.
5. Set l = 0 or omit the argument if you want the time derivatives to be calculated in the ground
coordinate system (GCS).
Cautions:
1. You must separate multiple marker names by commas.
Tips:
1. You need not separate multiple marker picks by commas.
Format:
panel set twindow_function z_wdt
i_marker_name= existing marker
j_marker_name= existing marker
R_marker_name = existing marker
Reference_frame_marker= an existing marker
panel 157
panel set twindow_function z_wdt
Example:
panel set twindow_function z_wdt &
i_marker_name = marker_3 &
j_marker_name = marker_6 &
reference_frame_marker = marker_4
Description:
Extended Definition:
1. You may identify a marker by typing its name or by picking it from the screen.
If the marker is not visible on the screen, you must type the name. You may also find it convenient
to type the name even if the marker is displayed.
If you created the marker by reading an data set or graphics file, the marker name is the letters MAR
followed by the data set marker ID number. The name of MARKER/101 is MAR101, for example.
If you created the marker during preprocessing, you gave it a name at that time.
f a marker is available by default, you may identify it by entering its name only. If it is not, you must
enter its full name. To identify a marker under a different part, for instance, you may need to enter
the model and part names as well. For example, you may specify marker 'pivot' from model 'links',
part 'lower_arm' by entering ".links.lower_arm.pivot". If you type a "?", /View will list the markers
available by default.
You must separate multiple marker names by commas.
If the marker is visible in one of your views, you may identify it by picking on it.
You need not separate multiple marker picks by commas.
158 Adams View Commands
panel set twindow_function z_wdt
part 1
part attributes
part
part attributes
Allows you to set attributes for a part:
Size or scale of icons - You can set a size of the icon used to represent the part in modeling units, or
you can scale its size by a non-unit scale factor.
Visibility - You can set a part's visibility to on or off, or toggle its current setting. When you set a
part's visibility off, the part will not be drawn and all markers and geometry belonging to the part are
turned off. When you set a part's visibility on, you allow the entire part to be drawn.
Name Visibility - You can set the visibility of the part's name label to on or off, or toggle its the
current setting.
Color - You can set the color of the part. You can also set the scope of the color using entity scope to
limit the application of the color. For example, you can set the scope of the color to only edges.
If an entity does not have a particular attribute setting, it can inherit that from another entity. Inheritance
can be either top down or bottom up. Top down refers to the natural hierarchy of an Adams model. The
hierarchy is a tree structure with the model at the apex. Parts exist beneath the model, and markers exist
beneath the parts
For example, if the icon size of the model is set to 0.1, and the default inheritance is set to top down, then all
icons displayed within the model are displayed at this size. However, if the icon size of a model is set to 0.1,
and the default inheritance is set to bottom up, then any icons set to a size other than the model's icon size
are displayed at their own size.
Format:
part attributes
part_name = existing part
flexible_body_name = existing flex body
external_system_name = existing external system
point_mass_name = existing point mass
equation_name = existing equation
fe_node_name = existing FE_Node
scale_of_icons = real
size_of_icons = length
visibility = on_off_with_toggle
name_visibility = on_off_with_toggle
color = existing color
entity_scope = color_scope
2 Adams View Commands
part attributes
part attributes
active = on_off_no_opinion
dependents_active = on_off_no_opinion
Example:
part attributes &
part_name = part__1 &
size_of_icons = .125 &
color = red &
visibility = on &
entity_scope = fill_color
Description:
Extended Definition:
1. The scale factor is relative to the current size set. If no initial size is specified for Adams View icons,
the default size is one modeling LENGTH unit. For example, if the modeling units are K/M/S, a part
axes icon has triad legs of one meter in length.
When you specify scale_of_icons, Adams View calculates a new size by multiplying the current size
by the scale, and storing the product as the new icon size.
2. For the size_of_icon parameter, if no initial size is specified for Adams View icons, the default size is
one modeling LENGTH unit. For example, if the modeling units are K/M/S, a part axes icon has
triad legs of one meter in length.
Example:
When you set size_of_icons at the model level, all Adams View icons used in creating a model use the
size specified. If the model has a size_of_icons set, and a part under that model has a different
size_of_icons, the model's size_of_icons takes precedence.
Example:
If the model has size_of_icons of set to 0.0, and a part under that model has a size_of_icons set to
.125, the part's icon size is used.
3. You can specify any color in the modeling database and no_color. If you specify no_color, Adams
View uses the default color for this entity if there is no color present in its parent modeling entity.
Example 1:
In the following example, the geometry (circle) will be red because its parent part is set to red and it
is set to no_color.
Example 2:
In the following example, the circle will be red because if a parent modeling entity has a color
previously specified, that color takes precedence. Adams View issues a warning message about color
precedence.
Example 3:
In this example, the parents of the geometry (circle) have no colors set, so the color of the geometry
takes precedence.
• edge_color - Applies color to lines making up the edges of the facets (or areas filled by the
fill_color) of a graphic that can be shaded.
• outline_color - Applies color to lines that define the outline of graphics, which cannot be shaded
or filled, such as two points defining an outline using the GRAPHICS statement or the coil of a
spring-damper.
• text_color - Applies color to the text associated with the part (its name).
• all - Applies all three entity types: fill_color, edge_color, and outline_color to the graphic entity.
entity_scope is optional and if you do not enter it, the default is set to fill_color.
5. The active parameter can take the following values: yes - The part is active. no - The part is written
to the dataset as a comment.
• no_opinion - The part inherits the activation status of its parent.
When you set the active attribute on an object, you are also setting it on the children of the object. If
you set active=no on a part, but want the marker on that part to be on, then you must explicitly set
active=yes on the marker, after setting activation on the part.
The dependents_active parameter acts in the same way, but sets the active attribute for the dependents,
all the way down the dependency chain. For example, if you execute the following command:
PART ATTRIBUTES PART=PAR1 DEPENDENTS_ACTIVE=NO
• where, PAR1 has a marker MAR1, which is the I marker of a joint JOI1 (which has a J marker
MAR2), then JOI1 will be deactivated.
• Also, if the joint JOI1 is referenced in a request function, or if the I marker is referenced by a
request, then the request will be deactivated.
Propagation of activation status through groups is as if each element were to have its activation status
changed individually.
Elements affected are:
• Group
• Part
• Differential equation
• Marker
• Geometry
• Constraints
• Forces
• Data elements
• Output control
part copy
Allows you to create a copy of an existing part (rigid body, equation, flexible body, point mass) within the
same model.
6 Adams View Commands
part copy
The copy is identical to the original with the exception of the part name. Parts must have unique names
relative to other parts in a given model. The replica is completely independent of the original, and you can
modify it without affecting the original.
All modeling entities under the original part will be copied to the replica, using the same names.
Because the parts have different names, markers under the two parts can have the same names.
Format:
part copy
part_name = existing part name
new_part_name = name of new rigid body
view_name = existing view
flexible_body_name = existing flexible body
new_flexible_body_name = new flex body
point_mass_name = new point mass
new_point_mass_name = existing point mass
equation_name = new equation
new_equation_name = existing equation
Example:
part copy &
part_name = part_3 &
new_part_name = part_3_copy
Description:
Extended Definition:
1. Adams View does not allow you to have two parts with the same name, so you must provide a unique
name.
2. You can identify a view by typing its name or by picking it from the screen. In most cases, you can
enter the special view name all, which means all the views currently displayed.
You must separate multiple view names by commas. You need not separate multiple view picks by
commas.
Format:
part create equation differential_equation
differential_equation_name= new equation
adams_id= integer
comments= string
initial_condition= real
no_initial_condition= true_only
function= function
user_function= real
static_hold= on/off
implicit= on/off
routine = string
Description:
Extended Definition:
1. When using the Adams View command language and naming entities, you can use the name later to
refer to this entity. Adams View does not allow you to have two entities with the same full name, so
you must provide a unique name. Normally, entity names are composed of alphabetic, numeric, or
'_' (underscore) characters, and start with an alphabetic or '_' character. They may be of any length.
By enclosing the name in double quotes, you can use other printable characters, or start the name with
a numeral. If a name contains characters, or starts with a numeral, you must always quote the name
when entering it.
Note that you can specify the parentage of an entity (for example, what part "owns" a marker or a
geometry element) when you create it by changing the name. If you enter just the entity name, then
Adams View assigns the default parent. If you type in the full name, then you can override the default
parent. In most cases, when creating an entity, Adams View provides a default name. The default
name that Adams View provides specifies the parentage that it has assumed. You can, of course, delete
this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
2. For comments, you can enter any alphanumeric characters. The comments that you create appear in
the Information window when you select to display information about the object, in the Adams View
log file, and in a command or dataset file when you export your model to these types of files. (Note
that design variables are not output to datasets; therefore, neither are their comments.)
3. Initial_condition parameter may also specify in case of definition of an implicit equation, an
approximate value of the initial time derivative of the differential equation at the start of the
simulation. (You do not need to supply a second value when you enter an explicit equation because
Adams Solver can compute the initial time derivative directly from the equation.)
Adams Solver might adjust the value of the time derivative when it performs an initial conditions
simulation. Entering an initial value for the time derivative helps Adams Solver converge to a desired
initial conditions solution.
4. Remember, leaving a velocity unset lets Adams View calculate the velocity of the part during an initial
conditions simulation, depending on the other forces and constraints acting on the part. It is not the
same as setting the initial velocity to zero.
5. Adams View treats the function parameter as a series of literal strings. When you write an Adams
Solver dataset, Adams View writes these strings, just as you enter them here, after the 'FUNCTION='
argument.
If you want to define the equation with an expression, enclose the expression in quotes and enter it
just as you would in the dataset.
If you want to define the equation with a user-written subroutine, enter the character string
"USER(r1[,...,r30])", where r1[,...,r30] are the values you want Adams Solver to pass to your user-
written subroutine DIFSUB. For example, if you enter "USER(1.,2.,3.)", Adams Solver calls your
DIFSUB with values 1, 2, and 3. For more information, see the Adams Solver Subroutines online
help
10 Adams View Commands
part create equation differential_equation
Note: The subroutine specified by the ROUTINE argument must have the same argument list
as the default subroutine. Only the name is changed. Failure to satisfy this requirement
results in unpredictable runtime failure.
Just like many elements of a particular type can share the default user subroutine, many elements may
share an alternative user subroutine. In other words, a group of your SFORCE elements may use the
SFOSUB in the default library while a different group of SFORCE elements is using mylib::mysfo.
You can either fully qualify the name and location of the library or rely on Adams Solver to search for
the library using predefined rules. For example, ROUTINE argument can specify absolute paths:
ROUTINE=/home/jdoe/mylibs/libsforces.so::sfo312
or relative paths with abbreviated library names:
ROUTINE=mylibs/sforces::sfo312
In the latter case, you would be relying on Adams Solver knowing to search in /home/jdoe (see the
PREFERENCES statement (C++ or FORTRAN) for details about the library search path) and built-
in search-rules that first look for the specified name, and failing that, try to prepend the lib prefix and
an architecture specific suffix (.dll on the Microsoft Windows platform, .sl on the HP-UX platform
and .so on other Linux platforms and Linux).
COUPLER and GSE
The COUPLER and GSE elements deserve special mention because they require more than one user
subroutine.
The COUPLER element requires that three subroutines be provided. This is handled by providing a
comma separated list of three libname::subname pairs, for example:
ROUTINE=lib1::cou1, lib2::cou2, lib3::cou3
where lib1, lib2, and lib3 can be three different libraries. The default names for these subroutines are
COUSUB,COUXX,COUXX2, in that order.
The GSE case is further complicated by the fact that the GSE subroutine interface has recently been
redesigned and the ROUTINE argument had been previously reserved to address the now deprecated
GSESUB interface. To specify the new GSE_DERIV, GSE_OUTPUT, GSE_UPDATE,
GSE_SAMP subroutines for GSE, use the INTERFACE argument:
INTERFACE=lib1::gse1,lib2::gse2,lib3::gse3,lib4::gse4
12 Adams View Commands
part create equation linear_state_equation
Format:
part create equation linear_state_equation
linear_state_equation_name = a new lse
adams_id = adams_id
comments = string
x_state_array_name = an existing array
u_input_array_name = an existing array
y_output_array_name = an existing array
ic_array_name = an existing array
a_state_matrix_name = an existing matrix
b_input_matrix_name = an existing matrix
c_output_matrix_name = an existing matrix
d_feedforward_matrix_name = an existing matrix
static_hold = on_off
Example:
part create equation linear_state_equation &
linear_state_equation_name = lse__1 &
adams_id = 10 &
comments = "a new lse" &
x_state_array_name = array__1 &
a_state_matrix_name = matrix__1
part 13
part create equation linear_state_equation
Description:
Extended Definition:
1. The LINEAR_STATE_EQUATION is used, along with associated arrays and matrices statements,
to define a system of constant coefficient, explicit, differential, and algebraic equations in the classic
state-space format.
14 Adams View Commands
part create equation linear_state_equation
The Linear State Equation (LSE) is designed to model a linear, time-invariant control system defined
in the state space, especially to facilitate importing of controllers developed in with external software.
It can be used, however, to define any arbitrary set of coupled constant-coefficient differential and
algebraic equations which can be expressed in matrix notation as:
| dX/dt | | A | B | |X|
< ----- > = | ----- | < - >
| Y | | C | C | |U|
where, at least the A matrix must be non-zero. The LINEAR_STATE_EQUATION follows standard
control systems terminology, where X is the state vector, Y is the output vector, U is the input vector
and IC is the initial condition vector, X(t=0). In the Adams data set, each of these vectors is defined
using an ARRAY. Similarly, A is the state matrix, B is the control matrix, C is the output matrix, and
D is the feedforward matrix. Each of these matrices is defined using a MATRIX. All MATRIX and
ARRAY sizes must be conformable as required by the above equation. ARRAYs with zero-length and
zero-sized matrices should not be defined; Adams will correctly formulate the system equations based
on those ARRAYs and MATRIXs which do exist.
2. You may use this name later to refer to this linear_state_equation. Adams View will not allow you to
have two linear_state_equations with the same name, so you must provide a unique name.
Normally, entity names are composed of alphabetic, numeric, or '_' (underscore) characters, and start
with an alphabetic or '_' character. They may be of any length.
By enclosing the name in double quotes, you may use other printable characters, or start the name
with a numeral. If a name contains characters, or starts with a numeral, you must always quote the
name when entering it.
Note that you can specify the parentage of an entity (e.g. what part "owns" a marker or a geometry
element) when you CREATE it by changing the name. If you enter just the entity name, then the
default parent will be assigned by Adams View. If you type in the full name, then you may override
the default parent. In most cases, when creating an entity, Adams View will provide a default name.
The default name that Adams View provides will specify the parentage that it has assumed.
You may, of course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
3. When you use the FILE ADAMS_DATA_SET WRITE command, Adams View writes an Adams
data file for your model. Adams requires that each modeling element be identified by a unique integer
identifier. If you use this parameter to specify a non-zero identifier, Adams View will use it in the
corresponding statement in the Adams data file.
You may also enter zero as an identifier, either explicitly or by default. The next time you write an
Adams file, Adams View will replace the zero with a unique, internally-generated identifier.
Adams View will permanently store this identifier with the element just as if you had entered it
yourself.
Normally, you would let all identifiers default to zero, and Adams View would generate the identifiers
for you. You are never required to enter a non-zero identifier. You only need to specify it if, for some
reason, you wish to control the Adams file output.
part 15
part create equation linear_state_equation
4. When an Adams Solver data file (.adm) is read into Adams View, all comments associated with a
statement (from the end of the previous statement through the end of the current statement) are
stored with the object. Comments in the data file can be associated with model.
These comments must follow the title statement and be followed by the comment 'END OF
MODEL COMMENTS'. This string must be uppercase.
When an Adams Solver data file is written, the comments for an object are written before the
statement corresponding to the object.
5. The user must have an array with the name specified by the x_array_name parameter, in their model
and it may not be used in any other LINEAR_STATE_EQUATION,
GENERAL_STATE_EQUATION or TRANSFER_FUNCTION.
6. When the Y_OUTPUT_ARRAY_NAME parameter is used, the user must have an array with this
name in the model and it may not be used in any other LINEAR_STATE_EQUATION,
GENERAL_STATE_EQUATION or TRANSFER_FUNCTION.
When the Y_OUTPUT_ARRAY_NAME parameter is used, the user must also include a
C_OUTPUT_MATRIX or D_FEEDFORWARD_MATRIX name, or both, in the
LINEAR_STATE_EQUATION definition, and these matrices must have the same number of rows
as there are elements in the Y_OUTPUT_ARRAY_NAME.
7. When the IC_ARRAY_NAME parameter is used, the user must have an array with this name in their
model and it must have the same number of elements as the X_STATE_ARRAY (equal to the
number of rows in the A_STATE_MATRIX). When no IC array is specified for a
LINEAR_STATE_EQUATION, all states are initialized to zero.
8. The user must have a MATRIX with this name in their model, it must be a square matrix (same
number of rows and columns) and it must have the same dimension as the X_STATE_ARRAY. If
the user has specified an inconsistent size for the X_STATE_ARRAY, Adams will issue a warning
message and automatically resizes the X_STATE_ARRAY to match the A_STATE_MATRIX.
9. When the B_INPUT_MATRIX_NAME parameter is used, the user must also include a
U_INPUT_ARRAY_NAME parameter in the LINEAR_STATE_EQUATION definition. You
must have a matrix with this name in your model. This matrix must have the same number of rows
as the A_STATE_MATRIX and the same number of columns as the number of elements in the
U_INPUT_ARRAY.
10. When the C_OUTPUT_MATRIX parameter is used, you must also include a
Y_OUTPUT_ARRAY parameter in the LINEAR_STATE_EQUATION definition. You must have
a matrix with this name in your model. This matrix must have the same number of columns as the
A_STATE_MATRIX and the same number of rows as the number of elements in the
Y_OUTPUT_ARRAY.
11. When the D_FEEDFORWARD_MATRIX_NAME parameter is used, you must also include both
Y_OUTPUT_ARRAY_NAME and U_INPUT_ARRAY_NAME parameters in the
LINEAR_STATE_EQUATION definition. You must have a matrix with this name in your model.
This matrix must have the same number of rows as the number of elements in the
Y_OUTPUT_ARRAY and the same number of columns as the number of elements in the
U_INPUT_ARRAY.
16 Adams View Commands
part create equation transfer_function
12. The user specified initial conditions are retained as the static equilibrium values. Note that this does
not guarantee that the time derivatives of the user-defined variable will be zero after static analysis.
Transfer functions are especially useful for describing elements from control-system block diagrams. The
characteristic equation for a single transfer function can be a polynomial of degree less than 30.
Internal to Adams Solver, there is an algorithm to automatically convert the list of fixed numerator and
denominator coefficients to the following elements:
Canonical state-space form
Set of coupled, linear, constant-coefficient differential equations
Single algebraic equation
You define the arrays for a transfer function using array data elements. The arrays define the transfer function
input and let you reference the states and output of the transfer function. Initial conditions for a transfer
function are assumed to be identically zero.
Format:
part create equation transfer_function
transfer_function_name= new tfsiso
adams_id= integer
comments= string
x_state_array_name= existing array
u_input_array_name= existing array
y_output_array_name= existing array
ic_array_name= existing adams array
static_hold= on_off
numerator_coefficients= real
denominator_coefficients= real
part 17
part create equation transfer_function
Description:
Extended Definition:
1. When using the Adams View command language and naming entities, you can use the name later to
refer to this entity. Adams View does not allow you to have two entities with the same full name, so
you must provide a unique name. Normally, entity names are composed of alphabetic, numeric, or
'_' (underscore) characters, and start with an alphabetic or '_' character. They may be of any length.
By enclosing the name in double quotes, you can use other printable characters, or start the name with
a numeral. If a name contains characters, or starts with a numeral, you must always quote the name
when entering it.
Note that you can specify the parentage of an entity (for example, what part "owns" a marker or a
geometry element) when you create it by changing the name. If you enter just the entity name, then
Adams View assigns the default parent. If you type in the full name, then you can override the default
parent. In most cases, when creating an entity, Adams View provides a default name. The default
name that Adams View provides specifies the parentage that it has assumed. You can, of course, delete
this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
18 Adams View Commands
part create external_system initial_velocity
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
Comments:
For comments, you can enter any alphanumeric characters. The comments that you create appear in the
Information window when you select to display information about the object, in the Adams View log file and
in a command or dataset file when you export your model to these types of files. (Note that design variables
are not output to datasets; therefore, neither are their comments.)
1. The array specified in the x_state_array_name must be a states (X) array, and it cannot be used in any
other linear state equation, general state equation, or transfer function. If you specified the size of the
array when you created it, it must be one less than the number of coefficients in the denominator.
2. The array specified in the y_state_array_name must be an outputs (Y) array, and it cannot be used in
any other linear state equation, general state equation, or transfer function. If you specify the size of
the array when you created it, its size must be one.
3. For the static_hold parameter, the user-specified initial conditions are retained as the static
equilibrium values. Note that this does not guarantee that the time derivatives of the user-defined
variable will be zero after static analysis.
During a static simulation, Adams Solver finds equilibrium values for user-defined differential
variables (differential equations, general state equations, linear state equations, and transfer
functions), as well as for the displacement and force variables. The equilibrium values it finds change
the initial conditions for subsequent simulations. To help you control the static simulation results,
Adams View provides an option that you can set to keep the values constant. This option is called
static hold. Static hold retains the user-specified initial conditions as the static equilibrium values.
If you do not set static hold, Adams Solver sets the time derivatives of the user-defined variables to
zero during a static simulation, and uses the user-supplied initial-condition values only as initial
guesses for the static solution. Generally, the final equilibrium values are not the same as the initial
condition values. Adams Solver then uses the equilibrium values of the user-defined variables as the
initial values for any subsequent simulation, just as with the equilibrium displacement and force
values.
If you do set static hold, Adams Solver retains the user-specified initial conditions as the static
equilibrium values. Therefore, the final equilibrium values are the same as the user-specified initial
conditions. Note that this does not guarantee that the time derivatives of the user-defined variable are
zero after a static simulation.
4. For the numerator_coefficients and the denominator_coefficients, list the coefficients in order of
ascending power of s, starting with s to the zero power, including any intermediate zero coefficients.
The number of coefficients for the denominator must be greater than or equal to the number of
coefficients for the numerator.
Format:
part create external_system initial_velocity
external_system_name = an existing part
vm = existing marker
wm = existing marker
vx = velocity
no_vx = true_only
vy = velocity
no_vy = true_only
vz = velocity
no_vz= true_only
wx = angular_vel
no_wx = true_only
wy = angular_vel
no_wy = true_only
wz = angular_vel
no_wz = true_only
Example:
part create external_system initial_velocity &
external_system_name= external_system_1 &
vm = cm &
wm = marker_1 &
vx = 1.02 &
vy = 1.01 &
vz = 1.05 &
no_wz = true
20 Adams View Commands
part create external_system initial_velocity
Description:
Extended Definition:
1. Translational velocities are specified by parameters VX, VY, and VZ.
Rotational velocities are specified by parameters WX, WY, and WZ.
Note: The initial translational velocities are with respect to the ground coordinate axes, while
the initial rotational velocities are with respect to the center-of-mass marker axes.
2. You may identify an external system by typing its name or by picking it from the screen.
a. If the external system part is not visible on the screen, you must type the name. You may also find
it convenient to type the name even if the part is displayed.
b. If you created the part by reading an Adams data set or graphics file, the part name is the letters
PAR followed by the Adams data set part ID number. For example, the name of Adams
PART/101 is PAR101.
c. If you created the part during preprocessing, you will have given it a name at that time.
d. If a part is available by default, you may identify it by entering only its name. If it is not, you must
enter its full name. To identify a part under another model, for instance, you may need to enter
the model name as well. For example, you may specify part 'arm' from model 'robot' by entering
".robot.arm". If you type a "?", Adams View will list the parts available by default.
e. You must separate multiple part names by commas. If the part is visible in one of your views, you
may identify it by picking on any of the graphics associated with it.
f. You need not separate multiple part picks by commas.
3. Note that the initial translational velocities are with respect to the ground coordinate axes, while the
initial rotational velocities are with respect to the center-of-mass marker axes.
4. Setting no_vx or no_vy or no_vz is not the same as setting the corresponding velocity value to zero.
A zero velocity is not the same as "no" velocity. Therefore, when this parameter is set to true, there is
no longer a velocity initial condition for this element.
5. Setting no_wx, no_wy, no_wz is not the same as setting the corresponding angular velocity value to
zero. A zero angular_velocity is not the same as "no" angular_velocity. Therefore, when this
parameter is set to true, there is no longer an angular_velocity initial condition for this element.
Format:
part create external_system name_and_position
external_system_name = a new external system
type = boolean
22 Adams View Commands
part create external_system name_and_position
Example:
part create external_system name_and_position &
external_system_name = external_system_1 &
adams_id = 1 &
type = nastran &
planar = yes &
relative_to = ground
Description:
Extended Definition:
1. The position of the external system part can be broken down into two parts:
24 Adams View Commands
part create external_system name_and_position
a. LOCATION
It can be specified by supplying three coordinates corresponding to the current coordinate system
type. For example, if the current coordinate system type is 'cartesian', you would supply an X, Y,
and Z. You may also specify location by "clicking" on an existing part or marker, with the mouse
cursor, that has the same desired location.
b. ORIENTATION
It can be specified by three different methods in Adams View.
The first is by supplying three angles that correspond to the current orientation type. For example,
if the current orientation type is 'body313' you would supply Z,X',Z'' rotation angles. You may
also supply three angles by "clicking" on an existing part or marker, that has the same desired
orientation. The second method is called the ALONG_AXIS_ORIENTATION. This method
specifies the orientation by directing one of the axes. Adams View will assign an arbitrary rotation
about that axis. The third and final method is called IN_PLANE_ORIENTATION. This
method specifies orientation by directing one of the axes, and locating one of the coordinate
planes.
All location and orientation coordinates will be relative to the coordinate system specified in the
parameter RELATIVE_TO. RELATIVE_TO defaults to the global origin of the model.
2. Currently, there are three types supported for an external system: nastran, marc and user. If the
parameter is not specified, it defaults to 'nastran'.
3. The input file name defines the source for the external analysis component. Nominally, this is a string
defining a path and input file, but can potentially be interpreted by the external analysis component
in an arbitrary manner.
4. Note that the parameters user_function and 'interface_routines' are valid only for external systems
that are of type 'user'.
5. When a valid rigid only MNF or an MD-DB (with the optional index) parameters are specified, the
external system will have a visual representation. Interactive marker creation and swap operations (for
a rigid or a flex body) are supported for such systems. However, these parameters are optional. When
not specified, the external system will have no visual representation.
6. Normally, entity names are composed of alphabetic, numeric, or '_' (underscore) characters, and start
with an alphabetic or '_' character. They may be of any length.
By enclosing the name in double quotes, you may use other printable characters, or start the name
with a numeral. If a name contains characters, or starts with a numeral, you must always quote the
name when entering it.
Note that you can specify the parentage of an entity (e.g. what part "owns" a marker or a geometry
element) when you CREATE it by changing the name. If you enter just the entity name, then the
default parent will be assigned by Adams View. If you type in the full name, then you may override
the default parent. In most cases, when creating an entity, Adams View will provide a default name.
The default name that AdamsAdams View provides will specify the parentage that it has assumed.
You may, of course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
part 25
part create external_system name_and_position
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
7. When you use the FILE ADAMS_DATA_SET WRITE command, Adams View writes an Adams
data file for your model. Adams requires that each modeling element be identified by a unique integer
identifier. If you use this parameter to specify a non-zero identifier, Adams View will use it in the
corresponding statement in the Adams data file.
You may also enter zero as an identifier, either explicitly or by default. The next time you write an
Adams file, Adams View will replace the zero with a unique, internally-generated identifier.
Adams View will permanently store this identifier with the element just as if you had entered it
yourself.
Normally, you would let all identifiers default to zero, and Adams View would generate the identifiers
for you. You are never required to enter a non-zero identifier. You only need to specify it if, for some
reason, you wish to control the Adams file output.
8. When an Adams Solver data file (.adm) is read into Adams View, all comments associated with a
statement (from the end of the previous statement through the end of the current statement) are
stored with the object. Comments in the data file can be associated with model.
These comments must follow the title statement and be followed by the comment 'END OF
MODEL COMMENTS'. This string must be uppercase.
When an Adams Solver data file is written, the comments for an object are written before the
statement corresponding to the object.
9. You may identify a view by typing its name or by picking it from the screen. In most cases, you may
enter the special view name 'all', which means all the views currently displayed.
You must separate multiple view names by commas. You need not separate multiple view picks by
commas.
10. By default, you supply Cartesian (x, y, z) coordinates. You may use the 'defaults units
coordinate_system_type =' command to change this convention. For example, selecting 'cylindrical'
means you will subsequently be supplying r, theta, and z coordinates.
Adams View applies your location coordinates in the coordinate system you identify with the
RELATIVE_TO parameter. The default for the RELATIVE_TO parameter is the default coordinate
system.
11. Adams View will orient the coordinate system by starting from the initial coordinate system and
applying three successive rotations.
Depending on the convention you have selected, the rotations may occur about space-fixed or body-
fixed axes in any meaningful combination of the x, y, and z axes.
By default, you supply Euler (body313, or body-fixed z, x, z) angles.You may change this convention
with the 'DEFAULTS UNITS ORIENTATION_TYPE=' command. For example, selecting
SPACE123 means you will subsequently be supplying space-fixed x, y, and z angles.
Adams View applies your orientation angles starting from the coordinate system you identify with the
RELATIVE_TO parameter. The default for the RELATIVE_TO parameter is the default coordinate
system.
26 Adams View Commands
part create fe_part
12. You may enter either one or two locations for the in_plane_orientation parameter to direct the axis.
If you enter one location, the axis will point toward the location. If you specify two locations, the axis
will be parallel to, and pointing the same way as the vector from the first location to the second. Note
that this does not completely dictate the orientation of the coordinate system. Adams View will
position the coordinate system with an arbitrary rotation about the axis. If you must completely
control the coordinate system orientation, use ORIENTATION or IN_PLANE_ORIENTATION.
By default, you direct the Z axis of the coordinate system. You may change this convention with the
'DEFAULTS ORIENT_AXIS_AND_PLANE AXIS_AND_PLANE_SETTING=' command. For
example, selecting either X_AXIS_XY_PLANE or X_AXIS_XZ_PLANE means you will
subsequently be directing the X axis. The plane-convention setting does not affect this parameter.
Adams View applies your location coordinates in the coordinate system you identify with the
RELATIVE_TO parameter. The default for the RELATIVE_TO parameter is the default coordinate
system.
13. If the relative_to parameter is not specified, the default coordinate system is used. The default
coordinate system is initially your model, that is, the global coordinate system. You may change the
default coordinate system using the 'defaults coordinate_system' command.
14. The six coordinates are below.
• X - X coordinate
• Y - Y coordinate
• Z - Z coordinate
• PSI - Psi angle
• THETA - Theta angle
• PHI - Phi angle
You may enter these coordinates in any order. If Adams has to alter the part position to obtain
consistent initial conditions, it does not vary the coordinates you specify with this parameter unless
Adams must vary them to satisfy the initial conditions you specify for a joint or for a motion.
Format:
part create fe_part name_position_section
fe_part_name = new fe_part name
ref_curve = refer existing gcurve
i_marker = select existing marker/point
j_marker = select existing marker/point
i_hard_point = refer existing point
part 27
part create fe_part
Example:
part create fe_part name_position_section
fe_part_name = FE_Part_1
adams_id = 1
ref_curve = GCURVE_1
material_type = steel
cratiok = 0.5
cratiom = 0.5
fepart_type = beamxy_2d
nodes_at_curve_points = yes/no
This will create an fe_part with the name FE_Part_1 with provided parameters.
Description:
Format:
part create flexible_body initial_velocity
flexible_body_name= existing flexible body
vm= existing marker
wm= existing marker
vx= velocity
no_vx= true_only
vy= velocity
part 29
part create flexible_body initial_velocity
Example:
part create flexible_body initial_velocity &
flexible_body_name = flex_body__2 &
vm = int_node_12001 &
vx = 200 &
no_vy = true &
no_vz = true
This will apply a translational velocity of 200 at the center-of-mass marker along the x-axis of the ground
reference frame.
Description:
Tips:
1. Remember, leaving a velocity unset lets Adams View calculate the velocity of the part during an initial
conditions simulation, depending on the other forces and constraints acting on the part. It is not the
same as setting the initial velocity to zero.
2. Note that the initial translational velocities are with respect to the ground coordinate axes, while the
initial rotational velocities are with respect to the center-of-mass marker axes.
Format:
part create flexible_body modal_ics
flexible_body_name = existing flex_body
selected_modes = real
initial_modal_displacements = real
initial_modal_velocities = real
modal_exact_coordinates = integer
set_ic_modes = integer
modal_ic_displacements = real
modal_ic_velocities = real
Description:
Extended Definition:
1. Note that when you change the selected modes, you should also modify any initial conditions that
you have set.
2. You can identify an entity, such as a marker or force, by typing its name or by picking it from the
screen. If the entity is not visible on the screen, you must type the name. You may also find it
convenient to type the name even if the element is displayed.
32 Adams View Commands
part create flexible_body name_and_position
If an entity is available by default, you can identify it by entering its name only. If it is not, you must
enter its full name. To identify a entity under a different part, you may need to enter the model and
part names as well. For example, you can specify marker 'pivot' from model 'links', part 'lower_arm'
by entering ".links.lower_arm.pivot".
If you type a "?", Adams View lists the entity available by default.
You must separate multiple entity names by commas. If the entity is visible in one of your views, you
can identify it by picking it. You need not separate multiple element picks by commas.
If you created a marker by reading an Adams Solver dataset or graphics file, the marker name is the
letters MAR followed by the dataset marker ID number. For example, the name of MARKER/101 is
MAR101. If you created the marker during preprocessing, you will have given it a name at that time.
You may have explicitly named an analysis when you created it by reading one or more Adams output
files (graphics (.gra), request (.req), or results (.res)). By default, the name of the analysis is the root
name of the Adams output files without the extension. If you created the analysis by reading an Adams
graphics file, for example, the analysis name is the name of the graphics file without the .gra extension.
Format:
part create flexible_body name_and_position
flexible_body_name = new flex body
adams_id = adams_id
comments = string
view_name = existing view
modal_neutral_file_name = string
md_db_file_name = string
bdf_file_name = string
unit_of_length = string
unit_of_mass = string
unit_of_force = string
unit_of_time = string
part 33
part create flexible_body name_and_position
index_in_database = integer
matrices = existing matrix
damping_ratio = function
damping_routine = string
generalized_damping = off/full/internal_only
dynamic_limit = real
location = location
orientation = orientation
along_axis_orientation = location
in_plane_orientation = location
relative_to = existing model part or marker
exact_coordinates = exact_coordinates
invariants = boolean
characteristic_length = real
representation = rigid/modal/nforce/none
stability_factor = real
Example:
part create flexible_body name_and_position &
flexible_body_name = flex_body__2 &
modal_neutral_file_name = "d:\mscsoftware\adams\con_rod.mnf" &
comments = "example of creating a flexible body"
Description:
2. Dual-representation or NFORCE
flexible bodies do not directly support
contact with any other bodies. One would
have to use dummy part geometry fixed to
the flexible body for contact modeling.
stability_factor Real Specifies the amount of damping needed to add to
the quasi-static modes to stabilize the simulation.
part 37
part create flexible_body name_and_position
Extended Definition:
1. When using the Adams View command language and naming entities, you can use the name later to
refer to this entity. Adams View does not allow you to have two entities with the same full name, so
you must provide a unique name. Normally, entity names are composed of alphabetic, numeric, or
'_' (underscore) characters, and start with an alphabetic or '_' character. They may be of any length.
By enclosing the name in double quotes, you can use other printable characters, or start the name with
a numeral. If a name contains characters, or starts with a numeral, you must always quote the name
when entering it.
Note that you can specify the parentage of an entity (for example, what part "owns" a marker or a
geometry element) when you create it by changing the name. If you enter just the entity name, then
Adams View assigns the default parent. If you type in the full name, then you can override the default
parent. In most cases, when creating an entity, Adams View provides a default name. The default
name that Adams View provides specifies the parentage that it has assumed. You can, of course, delete
this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
2. For comments, you can enter any alphanumeric characters. The comments that you create appear in
the Information window when you select to display information about the object, in the Adams View
log file, and in a command or dataset file when you export your model to these types of files. (Note
that design variables are not output to datasets; therefore, neither are their comments.)
3. You can identify an entity, such as a marker or force, by typing its name or by picking it from the
screen. If the entity is not visible on the screen, you must type the name. You may also find it
convenient to type the name even if the element is displayed.
If an entity is available by default, you can identify it by entering only its name. If it is not, you must
enter its full name. To identify a entity under a different part, you may need to enter the model and
part names as well. For example, you can specify marker 'pivot' from model 'links', part 'lower_arm'
by entering ".links.lower_arm.pivot".
If you type a "?", Adams View lists the entity available by default.
You must separate multiple entity names by commas. If the entity is visible in one of your views, you
can identify it by picking it. You need not separate multiple element picks by commas.
38 Adams View Commands
part create flexible_body name_and_position
Notes: If you created a marker by reading an Adams Solver dataset or graphics file, the marker
name is the letters MAR followed by the dataset marker ID number. For example, the
name of MARKER/101 is MAR101. If you created the marker during preprocessing, you
will have given it a name at that time.
You may have explicitly named an analysis when you created it by reading one or more
Adams output files (graphics (.gra), request (.req), or results (.res)). By default, the name of
the analysis is the root name of the Adams output files without the extension. If you
created the analysis by reading an Adams graphics file, for example, the analysis name is the
name of the graphics file without the .gra extension.
The matrices compose the modal integrals used by Adams Solver during simulation. In
general, if you enter the MNF, you do not need to specify names for the matrices.
For the damping_ratio parameter, do one of the following:
Do not specify to accept the default nonzero damping as follows:
1% damping for all modes with frequency lower than 100.
10% damping for modes with frequency in the 100-1000 range.
100% critical damping for modes with frequency above 1000.
Enter the scalar damping ratio that you want applied to all modes.
For example if you would like to apply 1% damping enter 0.01. For more examples you
can see FLEX_BODY statement documentation
Enter Adams run-time function expressions to create complex damping phenomena in
your flexible body. In addition, function expressions, such as FXFREQ and FXMODE,
allow you to apply different levels of damping to individual modes.
Several types of damping are inherently present in mechanical systems. Understanding the
source and level of damping are important in the simulation and testing of dynamic
systems. For example, a mechanism having low natural frequencies and relatively low
damping, could produce damaging motions under resonant conditions.
Applying damping judiciously can also improve simulation performance for models
containing flexible bodies. For example, consider a flexible body with a 10 kHz mode
whose shape is considered essential to allowing the body to assume a particular
deformation. Any response in this mode at its resonant frequency dictates integration steps
on the order of 1E-5 seconds, which can be unacceptable for long duration simulations. If
the damping for this mode is set at 100% of critical damping, however, any resonant
response is immediately suppressed. The mode's compliance is retained but its dynamics
are eliminated and the simulation performance is improved.
where:
• D is a symmetric matrix of damping coefficients
·
• q is a vector of generalized velocities:
x·
y·
z·
wx
·
q = wy
wz
·
q1
…
q· 2
x·, y·, z· are the absolute time derivatives of the position vector coordinates of the local part reference
frame with respect to the local part reference frame.
w x, w y, w z are the angular velocity vector coordinates with respect to the local part reference
frame.
·
q 1, …, q· 2 are the time derivatives of the modal coordinates.
The matrix D is composed of two parts, Dm and Dg:
D = Dm + Dg
Dm represents the contribution of proportional modal damping, and Dg represents the contribution
of a generalized damping matrix. Both are explained in the next section.
40 Adams View Commands
part create flexible_body name_and_position
where k i and m i are the generalized stiffness and mass for mode i.
Note: The damping ratio ζ i does not need to be constant. It can be a function of time or
system state.
If you do not specify modal damping when you create the flexible body, Adams Flex applies a default,
non-zero critical damping ratio as follows:
• 1% damping for all modes with frequency lower than 100.
• 10% damping for modes with frequency in the 100 to 1000 range.
• 100% critical damping for modes with frequency above 1000.
You can change the default modal damping in three ways:
• Assign a single scalar critical damping ratio that Adams Flex applies uniformly to all modes.
• Enter Adams run-time function expressions to create complex damping phenomena in your
flexible body. In addition, function expressions, such as FXFREQ and FXMODE, allow you to
apply different levels of damping to individual modes.
• Control the damping using the DMPSUB user-written subroutine. DMPSUB lets you set
different levels of damping for different modes and the damping can vary over time. For more on
writing subroutines, see the Subroutines section of the Adams Solver online help.
To assign modal damping when creating or modifying a flexible body:
1. In either the Create a Flexible Body dialog box or Flexible Body Modify dialog box, clear the selection
of default (use default in the Create a Flexible Body dialog box).
2. In the Damping Ratio text box, either:
part 41
part create flexible_body name_and_position
To better understand how the generalized damping matrix is handled in Adams Flex, it is helpful to
start with the discrete finite element equations of motion
Mx·· + Bx·· + Kx·· = F
where:
M, B, and K are the finite element mass, stiffness, and damping matrices, respectively.
··
x is the nodal coordinate vector.
is the applied force vector.
The damping matrix B is derived from damping elements and parameters defined in the finite
element model. The previous equation can be transformed into modal coordinates:
T T T T
P MPq·· + P BPq· + P KPq = P F
where P is the matrix of mode shapes stored column-wise and q is the vector of modal coordinates
PTBP represents the generalized damping matrix. However, before Adams Flex can use the
generalized damping matrix, the portion PTBP of that projects onto the rigid body modes must be
transformed to the nonlinear, large motion, generalized coordinates: X, Y, Z, ψ , θ , and Φ used to
represent the flexible bodys large overall motion in Adams Solver (C++). To this end, a m x 6
transformation matrix, A, is constructed and transforms m rigid body modes to the six coordinates X
,Y, Z, ψ , θ , and Φ , and the final generalized matrix Dg is computed:
T A 0
D g = A 0 P BP
T
0 I nxn 0 I nxn
42 Adams View Commands
part create flexible_body name_and_position
If the damping description in the finite element model results in a resultant damping force, there will
be nonzero entries in the sub-matrices D g
TT
, D g TR, D gTM, D gRR, D g RM . Because the resultant
damping force was derived from a linear finite element model governed by small strain
approximations and infinitesimal rotations, a resultant damping force may yield unexpected results
in the context of large overall motion supported in Adams. Therefore, Adams Flex provides the option
to ignore the resultant damping force. Ignoring a resultant damping force is referred to as internal-
only generalized damping.
Because the generalized matrix Dg is derived from the component finite element model, you can
leverage the damping elements and features in the finite element program. This is particularly useful
for defining non-proportional and spatially-dependent damping. Furthermore, the generalized
damping matrix is stored in the MNF to be optionally applied to the flexible body. That is, because
you defined damping in the finite element model, it is not necessary to employ it in Adams. To enable
generalized damping, however, you must have a generalized damping matrix stored in your MNF.
To specify generalized damping when creating or modifying a flexible body:
1. In either the Create a Flexible Body dialog box or Flexible Body Modify dialog box, set Generalized
Damping to:
• Off - Disables the generalized damping.
• Full - Enables the complete generalized damping matrix, including the effects of a resultant
damping force.
• Internal Only - Only enables the portion of the generalized damping matrix corresponding to the
modal coordinates (that is, ignore the resultant damping force).
2. Continue creating or modifying the body, and then select OK.
3. Orientation of rigid or flexible body using three rotation angles. Adams View orients the body starting
from the initial coordinate system and applying three successive rotations. Depending on the
convention you select, the rotations occur about space-fixed or body-fixed axes in any combination
of the x, y, and z axes. By default, you supply body 313 (body-fixed z, x, z) angles.
Adams View applies your orientation angles with respect to the coordinate system in the Orientation
Relative To or Relative To text box.
Along Axis Orientation
Orientation of a rigid or flexible body by directing one of its axes. Adams View assigns an arbitrary
rotation about the axis. Two points are needed to define an axis but you can enter either one or two
points to direct the axis. If you enter two points, the axis points from the first location to the second.
If you enter one point, Adams View uses the location you specified in the Location text box as the
first point and the new location as the second point.
Along Axis Orientation
part 43
part create flexible_body name_and_position
Adams View applies the location coordinates in the coordinate system you identify in the Location
Relative To or Relative To text box.
Note that this does not completely dictate the orientation of the coordinate system. Adams View
positions the coordinate system with an arbitrary rotation about the axis. If you must completely
control the coordinate system orientation, select Orientation or In Plane Orientation.
By default, you direct the z-axis of the coordinate system. You can use the DEFAULTS
ORIENT_AXIS_AND_PLANE AXIS_AND_PLANE_SETTING command to change this
convention. For example, selecting either X_AXIS_XY_PLANE or X_AXIS_XZ_PLANE directs the
x-axis. The plane-convention setting does not affect this parameter.
You can also direct the axis graphically using the marker’s position handle. Simply point the
appropriate axis on the marker in the desired direction.
In Plane Orientation
Orientation of the rigid or flexible body by directing one of the axes and locating one of the
coordinate planes.
In Plane Orientation
To define an axis and a plane, you need three points. You can enter either two or three locations, however. If
you enter three locations, the axis points from the first location to the second and the plane is parallel to the
plane defined by the three locations. If you enter only two locations, Adams View uses the location you
specified in the Location text box as the first point and the other two locations as the second and third points.
Adams View applies the location coordinates in the coordinate system in the Relative To text box.
By default, you direct the z-axis of the coordinate system marker and locate the zx plane. You can use
the DEFAULTS ORIENT_AXIS_AND_PLANE AXIS_AND_PLANE_SETTING command to
change this convention. For example, selecting X_AXIS_XY_PLANE directs the x-axis and orients
the xy plane.
4. The six coordinates for the exact_coordinates parameter are:
• X - X coordinate
• Y - Y coordinate
44 Adams View Commands
part create flexible_body name_and_position
• Z - Z coordinate
• PSI - Psi angle
• THETA - Theta angle
• PHI - Phi angle
You can enter these coordinates in any order. If Adams View has to alter the part position to
obtain consistent initial conditions, it does not vary the coordinates you specify with this
parameter unless Adams View must vary them to satisfy the initial conditions you specify for a
joint or for a motion.
5. Adams Flex computes the time varying mass matrix of the flexible body using nine inertia invariants.
(For details, see Theory of Flexible Bodies.) Four combinations of invariants have special significance
and they are provided with Adams Flex. In most cases, the modal basis in the MNF is an orthogonal
set including six rigid body modes. Theoretically, invariant 3 and 4 are zero in this situation even
though you may see some small non-zero entries due to numerical errors. So, invariants 3 and 4 are
disabled in all the four combinations by default. If you want to enable them, you can choose to
customize the invariant formulation. The standard formulations are:
• Rigid body - In this formulation, Adams Flex disables invariant 6, the modal mass, and the
flexible body is considered rigid. Adams View ignores all modes, even those you enable, during
the simulation. The results of the flexible body simulation closely resemble those for an Adams
rigid part although formulation differences can cause subtle result variations.
• Constant - In this formulation, Adams Flex disables invariants 3, 4, 5, 8 and 9. The flexible body's
inertial properties are unaffected by deformation (that is, deformation and rigid body motion are
uncoupled).
The Constant option may only have academic value because computational savings will be
modest while potentially having a dramatic effect on results. When you select Constant, Adams
View does not account for changes in the moment of inertia due to deformation.
• Partial coupling - In this formulation, which is the default, Adams Flex disables invariants 3, 4,
5 and 9. Invariants 5 and 9 provide a second-order correction to the flexible body inertia tensor.
These invariants impose the greatest computational overhead on the evaluation of the flexible
body equations of motion. Disabling these invariants can reduce CPU time significantly while
having minor impact on results in most cases.
• Full coupling - In this formulation, Adams Flex enables all of the invariants except for invariants
3 and 4. Use this method to achieve full accuracy.
When Adams Flex creates a flexible body, it uses the Partial Coupling formulation by default
because Partial Coupling has significant computational efficiency over the more accurate Full
Coupling formulation. You should verify, however, that your model does not require Full
Coupling.
You should always be careful when using the Constant formulation even when you expect
deformations to be small. Use it only after careful experimentation.
The Rigid Body formulation removes all flexibility effects, and you should only use it as a
debugging tool.
To set a modal formulation:
part 45
part create new_ground
1. In the Inertia modeling area of the Flexible Body Modify dialog box, select a formulation option or
select Custom.
When you select Custom, Adams Adams Flex displays a Custom Inertial Modeling dialog box that
lets you set up the invariants that you want selected.
2. Use the dialog box to select the inertia invariants, and then select OK.
You can also use this dialog box to view the effects of the different options. For example, select Partial
Coupling to view the invariants that option disables and enables.
Format:
part create new_ground
part_name = a new part
Example:
part create new_ground &
part_name = part_1
Description:
Extended Definition:
1. Normally, entity names are composed of alphabetic, numeric, or '_' (underscore) characters, and start
with an alphabetic or '_' character. They may be of any length.
By enclosing the name in double quotes, you may use other printable characters, or start the name
with a numeral. If a name contains characters, or starts with a numeral, you must always quote the
name when entering it.
Note that you can specify the parentage of an entity (e.g. what part "owns" a marker or a geometry
element) when you CREATE it by changing the name. If you enter just the entity name, then the
default parent will be assigned by Adams View. If you type in the full name, then you may override
the default parent. In most cases, when creating an entity, Adams View will provide a default name.
The default name that Adams View provides will specify the parentage that it has assumed.
You may, of course, delete this name and use your own. The form of a full name is:
46 Adams View Commands
part create point_mass initial_velocity
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
Cautions:
1. Adams View will not allow you to have two parts with the same name, so you must provide a unique
name.
Format:
part create point_mass initial_velocity
point_mass_name= existing point_mass
vm= existing marker
vx= velocity
no_vx= true_only
vy= velocity
no_vy= true_only
vz= velocity
no_vz= true_only
Example:
part create point_mass initial_velocity &
point_mass_name = point_mass__2 &
vm = int_node_12001 &
vx = 200 &
no_vy = true &
no_vz = true
This will apply a translational velocity of 200 at the center-of-mass marker along the x-axis of the ground
reference frame.
part 47
part create point_mass initial_velocity
Description:
Extended Definition:
1. You can specify initial velocities for parts. AdamsAdams View uses the initial velocity during the
initial conditions simulation, which it runs before it runs a simulation of your model.
You can specify translational and angular velocities for rigid bodies and only translational velocity for
point masses.
Translational velocity defines the time rate of change of a part’s center of mass with respect to
ground or another marker in your model. You can specify translational velocity for each vector
component of the marker.
Angular velocity defines the time rate of change of a part’s rotational position with respect to the
CM marker of the part or another marker in your model. You can specify angular velocity for each
vector component of the marker.
If you specify initial velocities, Adams View uses them as the initial velocity of the part during
assemble model operations, regardless of any other forces acting on the part. You can also leave some
or all of the velocities unset. Leaving a velocity unset lets Adams View calculate the velocity of the
part during an assemble operation depending on the other forces and constraints acting on the part.
Note that it is not the same as setting the initial velocity to zero. Setting an initial velocity to zero
means that the part will not be moving in the specified direction when the simulation starts,
regardless of any forces and constraints acting upon it.
48 Adams View Commands
part create point_mass mass_properties
Tips:
1. Remember, leaving a velocity unset lets Adams View calculate the velocity of the part during an initial
conditions simulation, depending on the other forces and constraints acting on the part. It is not the
same as setting the initial velocity to zero.
2. Note that the initial translational velocities are with respect to the ground coordinate axes.
Format:
part create point_mass mass_properties
point_mass_name= existing point_mass
mass= mass
center_of_mass_marker= existing marker
density= density
material_type= existing material
Description:
Extended Definition:
1. If the point mass has no mass, Adams View uses the point mass local part reference frame (LPRF) to
represent the position of the point mass internally. If the point mass has mass, Adams View uses the
position of the center-of-mass marker to represent the translational position of the point mass
internally.
The orientation of the point_mass and the center-of-mass marker have no effect on the simulation.
2. If the point mass has mass, Adams View uses the position of the CM marker to represent the
translational position of the point mass internally.
3. Adams View uses the part’s density and the volume of the geometry to calculate its mass and inertia.
Standard Material Properties
The following table shows the material properties for the standard material types in Adams View. All
material types in Adams View are assumed to be linearly elastic. Adams View automatically calculates
the material’s Shear Modulus (G) from the Young’s Modulus (E) and Poisson’s Ratio (ν) according
to the equation:
E
G = ---------------------
2(1 + υ)
1. When using the Adams View command language and naming entities, you can use the name later to
refer to this entity. Adams View does not allow you to have two entities with the same full name, so
you must provide a unique name. Normally, entity names are composed of alphabetic, numeric, or
'_' (underscore) characters, and start with an alphabetic or '_' character. They may be any length.
50 Adams View Commands
part create point_mass name_and_position
By enclosing the name in double quotes, you can use other printable characters, or start the name with
a numeral. If a name contains characters, or starts with a numeral, you must always quote the name
when entering it.
Note that you can specify the parentage of an entity (for example, what part "owns" a marker or a
geometry element) when you create it by changing the name. If you enter just the entity name, then
Adams View assigns the default parent. If you type in the full name, then you can override the default
parent. In most cases, when creating an entity, Adams View provides a default name. The default
name that Adams View provides specifies the parentage that it has assumed. You can, or course, delete
this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
Format:
part create point_mass name_and_position
point_mass_name= new point mass
adams_id= adams_id
comments= string
view_name= existing view
location= location
orientation= orientation
part 51
part create point_mass name_and_position
Description:
Extended Definition:
1. When using the Adams View command language and naming entities, you can use the name later to
refer to this entity. Adams View does not allow you to have two entities with the same name, so you
must provide a unique name. Normally, entity names are composed of alphabetic, numeric, or '_'
(underscore) characters, and start with an alphabetic or '_' character. They may be of any length.
By enclosing the name in double quotes, you can use other printable characters, or start the name with
a numeral. If a name contains characters, or starts with a numeral, you must always quote the name
when entering it.
52 Adams View Commands
part create point_mass name_and_position
Note that you can specify the parentage of an entity (for example, what part "owns" a marker or a
geometry element) when you create it by changing the name. If you enter just the entity name, then
Adams View assigns the default parent. If you type in the full name, then you can override the default
parent. In most cases, when creating an entity, Adams View provides a default name. The default
name that Adams View provides specifies the parentage that it has assumed. You can, of course, delete
this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
2. For comments, you can enter any alphanumeric characters. The comments that you create appear in
the Information window when you select to display information about the object, in the Adams View
log file, and in a command or dataset file when you export your model to these types of files. (Note
that design variables are not output to datasets; therefore, neither are their comments.)
3. You can identify an entity, such as a marker or force, by typing its name or by picking it from the
screen. If the entity is not visible on the screen, you must type the name. You may also find it
convenient to type the name even if the element is displayed.
If an entity is available by default, you can identify it by entering only its name. If it is not, you must
enter its full name. To identify an entity under a different part, you may need to enter the model and
part names as well. For example, you can specify marker 'pivot' from model 'links', part 'lower_arm'
by entering ".links.lower_arm.pivot".
If you type a "?", Adams View lists the entity available by default.
You must separate multiple entity names by commas. If the entity is visible in one of your views, you can
identify it by picking it. You need not separate multiple element picks by commas.
Notes: If you created a marker by reading an Adams Solver dataset or graphics file, the marker
name is the letters MAR followed by the dataset marker ID number. For example, the
name of MARKER/101 is MAR101. If you created the marker during preprocessing, you
will have given it a name at that time.
You may have explicitly named an analysis when you created it by reading one or more
Adams output files (graphics (.gra), request (.req), or results (.res)). By default, the name of
the analysis is the root name of the Adams output files without the extension. If you
created the analysis by reading an Adams graphics file, for example, the analysis name is the
name of the graphics file without the .gra extension.
4. You may identify a view by typing its name or by picking it from the screen. In most cases, you can
enter the special view name all, which means all the views currently displayed.
You must separate multiple view names by commas. You need not separate multiple view picks by
commas.
part 53
part create point_mass name_and_position
5. The along_axis_orientation parameter specifies the orientation of a rigid or flexible body by directing
one of its axes. Adams View assigns an arbitrary rotation about the axis. Two points are needed to
define an axis but you can enter either one or two points to direct the axis. If you enter two points,
the axis points from the first location to the second. If you enter one point, Adams View uses the
location you specified in the Location text box as the first point and the new location as the second
point.
Adams View applies the location coordinates in the coordinate system you identify in the Location
Relative To or Relative To text box. Note that this does not completely dictate the orientation of the
coordinate system. Adams View positions the coordinate system with an arbitrary rotation about the
axis. If you must completely control the coordinate system orientation, select Orientation or In Plane
Orientation.
By default, you direct the z-axis of the coordinate system. You can use the DEFAULTS
ORIENT_AXIS_AND_PLANE AXIS_AND_PLANE_SETTING command to change this
convention. For example, selecting either X_AXIS_XY_PLANE or X_AXIS_XZ_PLANE directs the
x-axis. The plane-convention setting does not affect this parameter.
You can also direct the axis graphically using the marker’s position handle. Simply point the
appropriate axis on the marker in the desired direction.
6. IThe in_plane_orientation parameter specifies the orientation of the rigid or flexible body by
directing one of the axes and locating one of the coordinate planes.
To define an axis and a plane, you need three points. You can enter either two or three locations,
however. If you enter three locations, the axis points from the first location to the second and the
plane is parallel to the plane defined by the three locations. If you enter only two locations, Adams
View uses the location you specified in the Location text box as the first point and the other two
locations as the second and third points. Adams View applies the location coordinates in the
54 Adams View Commands
part create rigid_body initial_velocity
coordinate system in the Relative To text box. By default, you direct the z-axis of the coordinate
system marker and locate the zx plane. You can use the DEFAULTS
ORIENT_AXIS_AND_PLANE AXIS_AND_PLANE_SETTING command to change this
convention. For example, selecting X_AXIS_XY_PLANE directs the x-axis and orients the xy plane.
7. The six coordinates for the exact_coordinates parameter are:
X - X coordinate
Y - Y coordinate
Z - Z coordinate
PSI - Psi angle
THETA - Theta angle
PHI - Phi angle
You can enter these coordinates in any order. If Adams View has to alter the part position to obtain
consistent initial conditions, it does not vary the coordinates you specify with this parameter unless
Adams View must vary them to satisfy the initial conditions you specify for a joint or for a motion.
Format:
part create rigid_body initial_velocity
part_name = an existing part
vm = an existing marker
wm = an existing marker
vx = velocity
no_vx = true_only
vy = velocity
no_vy = true_only
vz = velocity
no_vz = true_only
wx = angular_vel
no_wx = true_only
wy = angular_vel
no_wy = true_only
wz = angular_vel
part 55
part create rigid_body initial_velocity
Example:
part create rigid_body initial_velocity &
part_name = part__1 &
vm = cm &
wm = marker_1 &
vx = 1.02 &
vy = 1.01 &
vz = 1.05 &
no_wz = true
Description:
Extended Definition:
1. Translational velocities are specified by parameters VX, VY, and VZ.
Rotational velocities are specified by parameters WX, WY, and WZ.
Note: The initial translational velocities are with respect to the ground coordinate axes, while
the initial rotational velocities are with respect to the center-of-mass marker axes.
2. You may identify a part by typing its name or by picking it from the screen.
If the part is not visible on the screen, you must type the name. You may also find it convenient to
type the name even if the part is displayed.
If you created the part by reading an Adams data set or graphics file, the part name is the letters PAR
followed by the Adams data set part ID number. For example, the name of Adams PART/101 is
PAR101. If you created the part during preprocessing, you will have given it a name at that time.
If a part is available by default, you may identify it by entering only its name. If it is not, you must
enter its full name. To identify a part under another model, for instance, you may need to enter the
model name as well. For example, you may specify part 'arm' from model 'robot' by entering
".robot.arm". If you type a "?", Adams View will list the parts available by default.
You must separate multiple part names by commas.
If the part is visible in one of your views, you may identify it by picking on any of the graphics
associated with it.
You need not separate multiple part picks by commas.
3. Note that the initial translational velocities are with respect to the ground coordinate axes, while the
initial rotational velocities are with respect to the center-of-mass marker axes.
4. Setting no_vx or no_vy or no_vz is not the same as setting the corresponding velocity value to zero.
A zero velocity is not the same as "no" velocity. Therefore, when this parameter is set to true, there is
no longer a velocity initial condition for this element.
5. Setting no_wx, no_wy, no_wz is not the same as setting the corresponding angular velocity value to
zero. A zero angular_velocity is not the same as "no" angular_velocity. Therefore, when this
parameter is set to true, there is no longer a angular_velocity initial condition for this element.
part 57
part create rigid_body mass_properties
Format:
part create rigid_body mass_properties
part_name = an existing part
mass = mass
center_of_mass_marker = an existing marker
inertia_marker = an existing marker
ixx = inertia
iyy = inertia
izz = inertia
ixy = inertia
iyz = inertia
izx = inertia
material_type = an existing material
density = density
Example:
part create rigid_body mass_properties &
part_name = piston &
mass = 1.85 &
center_of_mass_marker = marker__1 &
material_type = steel
Description:
Extended Definition:
1. The mass properties of a part include the mass, mass-inertia tensor, center-of-mass marker, and inertia
marker.
You may assign zero mass to a part whose six degrees of motion you constrain with respect to parts
that do have mass. However, due to the number of changes that you may make to the data set in the
course of defining a model, the probability of a later change requiring that the part have mass is high.
Consequently, you are encouraged to assign finite (although insignificant) masses and inertias to parts
you would otherwise give zero inertial properties.
part 59
part create rigid_body mass_properties
A part without mass cannot have moments of inertia. If you specify the mass and moments of inertia
for a part, you must also specify the center-of-mass marker for the part.
2. You may identify a part by typing its name or by picking it from the screen.
If the part is not visible on the screen, you must type the name. You may also find it convenient to
type the name even if the part is displayed.
If you created the part by reading an Adams data set or graphics file, the part name is the letters PAR
followed by the Adams data set part ID number. For example, the name of Adams PART/101 is
PAR101. If you created the part during preprocessing, you will have given it a name at that time.
If a part is available by default, you may identify it by entering only its name. If it is not, you must
enter its full name. To identify a part under another model, for instance, you may need to enter the
model name as well. For example, you may specify part 'arm' from model 'robot' by entering
".robot.arm". If you type a "?", Adams View will list the parts available by default.
You must separate multiple part names by commas.
If the part is visible in one of your views, you may identify it by picking on any of the graphics
associated with it.
You need not separate multiple part picks by commas.
3. If the part has no mass, Adams uses the part LPRF to represent the position and orientation of the
part internally.
If the part has mass, Adams uses the position of the center-of-mass marker to represent the
translational position of the part internally and uses the principal axes of the inertia tensor about the
center-of-mass marker to represent the orientation of the part internally. This internal frame of
reference is referred to as the part principal axes frame.
4. If the part has mass, Adams uses the position of the center-of-mass (CM) marker to represent the
translational position of the part internally and uses the principal axes of the inertia tensor about the
CM marker to represent the orientation of the part internally. This internal frame of reference is
referred to as the part principal axes frame.
5. The inertia matrix is defined as follows:
[ Ixx -Ixy -Ixz]
[ ]
J = [-Ixy Iyy -Iyz]
[ ]
[-Ixz -Iyz Izz]
It is a symmetrical, positive definite matrix. Compute the individual terms as follows:
Ixx = Integral (y**2 + z**2) dm
Iyy = Integral (x**2 + z**2) dm
Izz = Integral (x**2 + y**2) dm
Ixy = Integral xy dm
Ixz = Integral xz dm
Iyz = Integral yz dm
60 Adams View Commands
part create rigid_body name_and_position
In the above formulae, x, y, and z are the components of displacement of an infinitesimal mass particle
of mass dm, measured from the origin of the inertia marker in the reference frame of the inertia
marker. The integral is performed over the entire mass of the body. If you do not specify the inertia
marker, then it defaults to the center-of-mass marker. In that case, you compute these quantities
about the origin of the center-of-mass marker in the reference frame of the center-of-mass marker.
Tips:
1. The calculated mass properties are based upon the solid geometry that belongs to the part.
Format:
part create rigid_body name_and_position
part_name = a new part
ground_part = boolean
adams_id = adams_id
comments = string
view_name = an existing view
location = location
orientation = orientation
along_axis_orientation = location
in_plane_orientation = location
relative_to = an existing model, part or marker
exact_coordinates = exact_coordinates
Example:
part create rigid_body name_and_position &
part_name = part__1 &
ground_part = yes &
adams_id = 1 &
comments = " a new ground part" &
planar = yes &
relative_to = ground
part 61
part create rigid_body name_and_position
Description:
Extended Definition:
1. You must supply a unique name for the new part, or accept the name that Adams View has generated
for you.
The position of the rigid body part can be broken down into two parts:
location, and orientation.
62 Adams View Commands
part create rigid_body name_and_position
LOCATION can be specified by supplying three coordinates corresponding to the current coordinate
system type. For example, if the current coordinate system type is 'cartesian', you would supply an X,
Y, and Z. You may also specify location by "clicking" on an existing part or marker, with the mouse
cursor, that has the same desired location.
ORIENTATION can be specified by three different methods in Adams View.
The first is by supplying three angles that correspond to the current orientation type. For example, if
the current orientation type is 'body313' you would supply Z,X',Z'' rotation angles. You may also
supply three angles by "clicking" on an existing part or marker, that has the same desired orientation.
The second method is called the ALONG_AXIS_ORIENTATION. This method specifies the
orientation by directing one of the axes. Adams View will assign an arbitrary rotation about that axis.
The third and final method is called IN_PLANE_ORIENTATION. This method specifies
orientation by directing one of the axes, and locating one of the coordinate planes.
All location and orientation coordinates will be relative to the coordinate system specified in the
parameter RELATIVE_TO. RELATIVE_TO defaults to the global origin of the model.
2. Normally, entity names are composed of alphabetic, numeric, or '_' (underscore) characters, and start
with an alphabetic or '_' character. They may be of any length.
By enclosing the name in double quotes, you may use other printable characters, or start the name
with a numeral. If a name contains characters, or starts with a numeral, you must always quote the
name when entering it.
Note that you can specify the parentage of an entity (e.g. what part "owns" a marker or a geometry
element) when you CREATE it by changing the name. If you enter just the entity name, then the
default parent will be assigned by Adams View. If you type in the full name, then you may override
the default parent. In most cases, when creating an entity, Adams View will provide a default name.
The default name that Adams View provides will specify the parentage that it has assumed.
You may, of course, delete this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
3. When you use the FILE ADAMS_DATA_SET WRITE command, Adams View writes an Adams
data file for your model. Adams requires that each modeling element be identified by a unique integer
identifier. If you use this parameter to specify a non-zero identifier, Adams View will use it in the
corresponding statement in the Adams data file.
You may also enter zero as an identifier, either explicitly or by default. The next time you write an
Adams file, Adams View will replace the zero with a unique, internally-generated identifier.
Adams View will permanently store this identifier with the element just as if you had entered it
yourself.
Normally, you would let all identifiers default to zero, and Adams View would generate the identifiers
for you. You are never required to enter a non-zero identifier. You only need to specify it if, for some
reason, you wish to control the Adams file output.
part 63
part create rigid_body name_and_position
4. When an Adams Solver data file (.adm) is read into Adams View, all comments associated with a
statement (from the end of the previous statement through the end of the current statement) are
stored with the object. Comments in the data file can be associated with model.
These comments must follow the title statement and be followed by the comment 'END OF
MODEL COMMENTS'. This string must be uppercase.
When an Adams Solver data file is written, the comments for an object are written before the
statement corresponding to the object.
5. You may identify a view by typing its name or by picking it from the screen. In most cases, you may
enter the special view name 'all', which means all the views currently displayed.
You must separate multiple view names by commas. You need not separate multiple view picks by
commas.
6. By default, you supply Cartesian (x, y, z) coordinates. You may use the 'defaults units
coordinate_system_type =' command to change this convention. For example, selecting 'cylindrical'
means you will subsequently be supplying r, theta, and z coordinates.
Adams View applies your location coordinates in the coordinate system you identify with the
RELATIVE_TO parameter. The default for the RELATIVE_TO parameter is the default coordinate
system.
7. Adams View will orient the coordinate system by starting from the initial coordinate system and
applying three successive rotations.
Depending on the convention you have selected, the rotations may occur about space-fixed or body-
fixed axes in any meaningful combination of the x, y, and z axes.
By default, you supply Euler (body313, or body-fixed z, x, z) angles.
You may change this convention with the 'DEFAULTS UNITS ORIENTATION_TYPE='
command. For example, selecting SPACE123 means you will subsequently be supplying space-fixed
x, y, and z angles.
Adams View applies your orientation angles starting from the coordinate system you identify with the
RELATIVE_TO parameter. The default for the RELATIVE_TO parameter is the default coordinate
system.
8. You may enter either one or two locations for the in_plane_orientation parameter to direct the axis.
If you enter one location, the axis will point toward the location. If you specify two locations, the axis
will be parallel to, and pointing the same way as, the vector from the first location to the second. Note
that this does not completely dictate the orientation of the coordinate system. Adams View will
position the coordinate system with an arbitrary rotation about the axis. If you must completely
control the coordinate system orientation, use ORIENTATION or IN_PLANE_ORIENTATION.
By default, you direct the Z axis of the coordinate system. You may change this convention with the
'DEFAULTS ORIENT_AXIS_AND_PLANE AXIS_AND_PLANE_SETTING=' command. For
example, selecting either X_AXIS_XY_PLANE or X_AXIS_XZ_PLANE means you will
subsequently be directing the X axis. The plane-convention setting does not affect this parameter.
Adams View applies your location coordinates in the coordinate system you identify with the
RELATIVE_TO parameter. The default for the RELATIVE_TO parameter is the default coordinate
system.
64 Adams View Commands
part delete
9. If the relative_to parameter is not specified, the default coordinate system is used. The default
coordinate system is initially your model, that is, the global coordinate system. You may change the
default coordinate system using the 'defaults coordinate_system' command.
10. The six coordinates are below.
• X - X coordinate
• Y - Y coordinate
• Z - Z coordinate
• PSI - Psi angle
• THETA - Theta angle
• PHI - Phi angle
You may enter these coordinates in any order. If Adams has to alter the part position to obtain
consistent initial conditions, it does not vary the coordinates you specify with this parameter unless
Adams must vary them to satisfy the initial conditions you specify for a joint or for a motion.
part delete
Allows you to delete an existing part (rigid body, equation, flexible body, point mass, or rigid stress object).
You must enter the name of the part you want to delete by either picking it from the screen or specifying the
full name.
You can reverse this deletion using an undo command.
Format:
part delete
part_name = existing part
equation_name = existing equation
flexible_body_name = existing flexible body
external_system_name = existing external system
point_mass_name = existing point mass
rigid_stress_name = existing rigid stress
fe_part_name = existing FE_Part
fe_node_name = existing FE_Node
Example:
part delete &
part_name = part_2
part 65
part delete
Description:
Extended Definition:
1. You can identify an entity, such as a marker or force, by typing its name or by picking it from the
screen. If the entity is not visible on the screen, you must type the name. You may also find it
convenient to type the name even if the element is displayed.
If an entity is available by default, you can identify it by entering only its name. If it is not, you must
enter its full name. To identify an entity under a different part, you may need to enter the model and
part names as well. For example, you can specify marker 'pivot' from model 'links', part 'lower_arm'
by entering ".links.lower_arm.pivot".
If you type a "?", Adams View lists the entity available by default.
You must separate multiple entity names by commas. If the entity is visible in one of your views, you
can identify it by picking it. You need not separate multiple element picks by commas.
Notes: You created a marker by reading an Adams Solver dataset or graphics file, the
marker name is the letters MAR followed by the dataset marker ID number. For
example, the name of MARKER/101 is MAR101. If you created the marker during
preprocessing, you will have given it a name at that time.
You may have explicitly named an analysis when you created it by reading one or
more Adams output files (graphics (.gra), request (.req), or results (.res)). By default,
the name of the analysis is the root name of the Adams output files without the
extension. If you created the analysis by reading an Adams graphics file, for example,
the analysis name is the name of the graphics file without the .gra extension
66 Adams View Commands
part display
part display
Allows you to display the part (rigid body, flexible body, or point mass) in the specified view. If you do not
specify a view, Adams View displays the model in the active view. This command can be useful when the
entire part is no longer visible in the current view space because it fits the model into the current view.
Format:
part display
part_name= existing part
flexible_body_name= existing flex body
point_mass_name= existing point mass
fe_part_name= existing fe part name
view_name= existing view
fit_to_view= boolean
Example:
part display &
part_name = part_1
Description:
Extended Definition:
1. You may identify a view by typing its name or by picking it from the screen. In most cases, you can
enter the special view name all, which means all the views currently displayed.
You must separate multiple view names by commas. You need not separate multiple view picks by
commas.
part 67
part merge rigid_body
Notes: If the parts differ in mass properties, the destination part's properties are used. If they
differ in density, the destination part's material will be used.
Children of the two parts that have the same names will be renamed after the merge with
an integer appended (for example, marker_1 would become marker_1_1).
Format:
part merge rigid_body
part_name = existing part
into_part_name= existing part
Example:
part merge rigid_body &
part_name = part_2 &
into_part_name = part_3
Description:
Extended Definition:
1. When using the Adams View command language and naming entities, you can use the name later to
refer to this entity. Adams View does not allow you to have two entities with the same name, so you
must provide a unique name. Normally, entity names are composed of alphabetic, numeric, or '_'
(underscore) characters, and start with an alphabetic or '_' character. They may be of any length.
By enclosing the name in double quotes, you can use other printable characters, or start the name with
a numeral. If a name contains characters, or starts with a numeral, you must always quote the name
when entering it.
68 Adams View Commands
part modify equation differential_equation
Note that you can specify the parentage of an entity (for example, what part "owns" a marker or a
geometry element) when you create it by changing the name. If you enter just the entity name, then
Adams View assigns the default parent. If you type in the full name, then you can override the default
parent. In most cases, when creating an entity, Adams View provides a default name. The default
name that Adams View provides specifies the parentage that it has assumed. You can, of course, delete
this name and use your own. The form of a full name is:
"...._NAME.GRAND_PARENT_NAME.PARENT_NAME.ENTITY_NAME"
The number of levels used varies from case to case and the parentage must exist before an entity can
be assigned to it.
Format:
part modify equation differential_equation
differential_equation_name = an existing equation
new_differential_equation_name = a new equation
adams_id = integer
comments = string
initial_condition = real
no_initial_condition = true_only
function = function
static_hold = on_off
implicit = on_off
Example:
part modify equation differential_equation &