SECTION 1 ADAMS/Solver subroutines overview

Slides:



Advertisements
Similar presentations
WS1-1 ADM703, Workshop 1, August 2005 Copyright  2005 MSC.Software Corporation WORKSHOP 1 JET ENGINE TURBINE.
Advertisements

Copyright © 2006 Addison-Wesley. All rights reserved.1-1 ICS 410: Programming Languages Chapter 3 : Describing Syntax and Semantics Operational Semantics.
CSI 101 Elements of Computing Spring 2009 Lecture #2 Development Life Cycle of a Computer Application Monday January 26th, 2009.
Chapter 2: The Visual Studio.NET Development Environment Visual Basic.NET Programming: From Problem Analysis to Program Design.
Copyright Arshi Khan1 System Programming Instructor Arshi Khan.
Using Simscape™ for Modeling Vibration Problems:
Other Features Index and table of contents Macros and VBA.
Chapter 9 Working with Forms. Principles of Web Design 2nd Ed. Chapter 9 2 Principles of Web Design Chapter 9 Objectives Understand how forms work Understand.
1 Integrated Development Environment Building Your First Project (A Step-By-Step Approach)
Software Apps. Word, PowerPoint, Excel, Access Mr. Miller.
XP Chapter 4 Succeeding in Business with Microsoft Office Access 2003: A Problem-Solving Approach 1 Collecting Data for Well-Designed Forms Chapter 4 “Making.
XP New Perspectives on Microsoft Access 2002 Tutorial 51 Microsoft Access 2002 Tutorial 5 – Enhancing a Table’s Design, and Creating Advanced Queries and.
Chapter 9 CAD & Parameters
INTRO-1 ADM , Introduction, August 2005 Copyright  2005 MSC.Software Corporation WELCOME TO ADVANCED ADAMS/VIEW TRAINING.
NOTE: To change the image on this slide, select the picture and delete it. Then click the Pictures icon in the placeholder to insert your own image. WEB.
WS6-1 ADM703, Workshop 6, August 2005 Copyright  2005 MSC.Software Corporation WORKSHOP 6 OVER-RUNNING PULLEY.
Week 12 Working with Forms Objectives Understand how forms work Understand form syntax Create input objects Build forms within tables Build and.
JSP Tag Libraries Lec Last Lecture Example We incorporated JavaBeans in “Course Outline” Example But still have to write java code inside java.jsp.
S4-1 ADM703, Section 4, August 2005 Copyright  2005 MSC.Software Corporation SECTION 4 WASHING MACHINE.
Introduction to Matlab & Data Analysis 2015 In this tutorial we will: Build a practical application using GUIDE Learn more about graphical user interface.
S6-1 ADM740, Section 6, June 2007 Copyright  2007 MSC.Software Corporation SECTION 6 CREATING AND SIMULATING SUSPENSIONS.
S6-1 ADM703, Section 6, August 2005 Copyright  2005 MSC.Software Corporation SECTION 6 OVER-RUNNING PULLEY.
Visual Basic for Application - Microsoft Access 2003 Programming applications using Objects.
® IBM Software Group © 2006 IBM Corporation JSF Panel – Section Controls This Learning Module shows how to develop server-side EGL applications with dynamic.
S11-1 ADM , Section 11, August 2005 Copyright  2005 MSC.Software Corporation SECTION 11 MACROS: OVERVIEW.
MSC.Software Corporation 2 MacArthur Place Santa Ana, CA 92707, USA Tel: (714) Fax: (714) Web: United States.
JavaScript 101 Introduction to Programming. Topics What is programming? The common elements found in most programming languages Introduction to JavaScript.
USING JAVASCRIPT TO SHOW AN ALERT Web Design Sec 6-2 Part or all of this lesson was adapted from the University of Washington’s “Web Design & Development.
WS2-1 ADM703, Workshop 2, August 2005 Copyright  2005 MSC.Software Corporation WORKSHOP 2 SPRING-DAMPER SYSTEM.
S3-1 ADM703, Section 3, August 2005 Copyright  2005 MSC.Software Corporation SECTION 3 SUSPENSION SYSTEM.
Software. Introduction n A computer can’t do anything without a program of instructions. n A program is a set of instructions a computer carries out.
WS16-1 ADM740, Workshop 16, June 2007 Copyright  2007 MSC.Software Corporation WORKSHOP 16 Using Adams/Linear with Adams/Car.
An Introduction to Programming with C++1 Void Functions Tutorial 5.
Chapter 2 Build Your First Project A Step-by-Step Approach 2 Exploring Microsoft Visual Basic 6.0 Copyright © 1999 Prentice-Hall, Inc. By Carlotta Eaton.
SECTION 6 DESIGN STUDY. What’s in this section: –Design Variables –Design Studies Overview –Specifying an Objective –Execution Display Settings –Output.
S3-1 ADM703c, Section 3, February 2013 Copyright  2013 MSC.Software Corporation SECTION 3 UTILITY SUBROUTINES.
WS2-1 ADM703c, Workshop 2, February 2013 Copyright  2013 MSC.Software Corporation WORKSHOP 2 EJECTOR MECHANISM.
WORKSHOP 3 Belt Modeling – Lawn Mower
Workshop 12 atv – lower control arm
Introduction.
WORKSHOP 1 CO-SIMULATION.
Adams/CHASSIS INTERFACE
WORKSHOP 18 HATCHBACK II.
Adams/CHASSIS FILE STRUCTURE
SECTION 4 GSE IMPORT METHOD.
WORKSHOP 3 PARAMETRICS In each module, review the problem statement and explain that you will use the concepts described below to solve it. Return to the.
Using JavaScript to Show an Alert
SECTION 4 WASHING MACHINE.
SECTION 2 SETUP, WRITING AND CREATING
Customizing custom.
WORKSHOP 12 BOUNCING BALL
WORKSHOP 1 CUSTOM TIRE SUBROUTINE
Key Ideas from day 1 slides
WORKSHOP 9 BRAKE SYSTEM II
INTRODUCING Adams/CHASSIS
System Programming and administration
SECTION 13 REQUESTS.
GATLING GUN FIRE MECHANISM
GATLING GUN FIRE MECHANISM
Section 1 INTRODUCTION.
SECTION 8 OVER-RUNNING PULLEY.
SECTION 1 INTRODUCTION.
SECTION 4 Driveline Analyses.
WORKSHOP 1 STAMPING MECHANISM
GO! with Microsoft Office 2016
INTRODUCTION.
CONTACTS AND MODAL FORCES
WORKSHOP 7 OVER-RUNNING PULLEY.
SECTION 3 MACROS: OVERVIEW.
WORKSHOP 3 GSE IMPORT.
Presentation transcript:

SECTION 1 ADAMS/Solver subroutines overview Example body page using the Section Header layout, shows correct fonts. Course information shown in the footer needs to be updated for your particular class on the Slide Master. (View tab, Slide Master in Presentation Views group)

WHAT IS IN THIS SECTION Why use subroutines? Incorporation into a model Running Adams with a custom library

WHY USE SUBROUTINES Subroutines are used to override the standard functionality in Adams/Solver. Examples of such situations include: Implementing complex logic that might be difficult using Adams/Solver function expressions Incorporating existing code for specialty mechanical elements Example – a mature control system created for vehicle handling control Including proprietary mechanical elements Example – equations for a proprietary spring-damper system can be ‘hidden’ within a subroutine and distributed safely to others When you need to interact with other software or complex data files

INCORPORATING INTO A MODEL The Adams model must be set up properly so that Adams/Solver knows to use user-written code for the particular element(s). The Adams/Solver manual shows the following syntax for many of the statements in an Adams/Solver dataset (.adm) file: where: e refers to an expression using Adams/Solver built-in function expressions, for example: STEP(time,1,0,10,10) USER()indicates that the Solver must call a provided user-written subroutine for this element. For example, if you had a subroutine that expected to be passed a spring constant followed by a damper constant then the expression might be: USER(120.0,10.1) where the spring and damper constants are 120.0 and 10.1 respectively. The input parameters can be anything that is defined by the user-written subroutine.

INCORPORATING INTO A MODEL (CONT.) Here is an example of a single component force element statement in an Adams/Solver dataset that uses standard function expressions: SFORCE/1, TRANSLATIONAL, I=10, J=11, ACTIONONLY, FUNCTION= STEP(TIME,0,0,12.5,200) This same SFORCE element could be instructed to calculate its value from a user-written subroutine if it was rewritten as: SFORCE/1, TRANSLATIONAL, I=10, J=11, ACTIONONLY, FUNCTION= USER(120,10.1) Adams/View has a toggle for most function expression fields that lets one use either standard function expressions or user-written code. The Define Using field for most elements in Adams/View has the options Subroutine and Function.

RUNNING ADAMS WITH A CUSTOM LIBRARY Specifying a user-written subroutine in the model file lets Adams/Solver know to look for a user library which calculates values User-written code libraries are typically stored in files of type: .dll (dynamically linked/loaded library) on Windows .so (shared object) on Linux This user library must be specified before running a simulation There are three ways to specify an Adams/Solver user library before running a simulation. They are detailed in the following table. Product Specification Notes Adams/Solver adams2013 ru-user library_name.dll Start with ‘ru-user’ flag and specify a library to use Adams/View Settings → Solver → Solver Executable Set ‘Solver Library’ field in this dialog box adams2013 aview ru-user i -n library_name.dll Start View with ‘ru-user’, specify a Solver library but not a View library

RUNNING ADAMS WITH A CUSTOM LIBRARY For example: adams2013 ru-user mysolver.dll run_commands.acf Would run Adams/Solver from the command line on Windows, using Adams v2013 The custom library mysolver.dll would be loaded at runtime The run_commands.acf file would specify the Solver commands needed to exercise the model

EXERCISE Perform Workshop 1 “Custom Tire Subroutine” in your exercise workbook