User Library Overview
You can create user libraries and run them with your Adams products. There are two types of user libraries:
■Adams Interface or Adams View libraries - These libraries let you change the definition of your model by adding compiled design-time functions for use in Adams View expressions. You can also change post-processing by adding or changing functions that determine how simulation results are computed. You can use these functions in the same way you would use the built-in design-time functions. For more information, see the
Adams View Function Builder online help.
■Adams Solver libraries - These libraries let you add run-time functions for motion or force magnitudes to directly define the behavior of your model and change the way the simulation is performed. They let you take advantage of existing software to define complex modeling relationships, such as hydraulic actuators or tire forces. For more information on writing user-written subroutines, refer to the
Adams Solver online help.
Products, such as Adams View, and Adams Car, can run both an interface library and an Adams Solver library because they run Adams Solver internally. To set the Adams Solver user library to run internally with these products, set the preference solverUserLibrary as explained in
Adams View Preferences.
Once you create a library, you need to set up your modeling entities, such as motions or forces, to reference these subroutines and use the library whenever you perform a simulation on models referencing these subroutines. For information on using the subroutines in your model definition, refer to the
Adams Solver and
Adams View online help.
When you run an Adams Solver library, the associated Adams product only loads the library when a user triggers it, such as when a user selects a command that executes the subroutines in the library. This is because Adams Solver libraries are demand-loaded. When you run an interface library, the associated Adams product loads the library at startup so that design-time functions can be registered and available for immediate use.