Table of Contents

www.kxcad.net Home > CAE Index > ANSYS Index > Release 11.0 Documentation for ANSYS


Your Ad Here

1. Introducing APDL
2. Working with the Toolbar
2.1. Adding Commands to the Toolbar
2.2. Modifying the Toolbar
2.2.1. Example: Adding a Toolbar Button
2.2.2. Saving Toolbar Buttons
2.3. Nesting Toolbar Abbreviations
3. Using Parameters
3.1. Guidelines for Parameter Names
3.1.1. Hiding Parameters from *STATUS
3.2. Defining Parameters
3.2.1. Assigning Parameter Values During Execution
3.2.2. Assigning Parameter Values At Startup
3.2.3. Assigning ANSYS-Supplied Values to Parameters
3.2.4. Listing Parameters
3.3. Deleting Parameters
3.4. Using Character Parameters
3.5. Substitution of Numeric Parametric Values
3.5.1. Preventing Substitution
3.5.2. Substitution of Character Parametric Values
3.6. Dynamic Substitution of Numeric or Character Parameters
3.7. Parametric Expressions
3.8. Parametric Functions
3.9. Saving, Resuming, and Writing Parameters
3.10. Array Parameters
3.10.1. Array Parameter Basics
3.10.2. Array Parameter Examples
3.10.3. TABLE Type Array Parameters
3.10.4. Defining and Listing Array Parameters
3.10.5. Specifying Array Element Values
3.10.6. Writing Data Files
3.10.7. Operations Among Array Parameters
3.10.8. Plotting Array Parameter Vectors
3.10.9. Modifying Curve Labels
4. APDL as a Macro Language
4.1. Creating a Macro
4.1.1. Macro File Naming Conventions
4.1.2. Macro Search Path
4.1.3. Creating a Macro Within ANSYS
4.1.4. Creating Macros with a Text Editor
4.1.5. Using Macro Library Files
4.2. Executing Macros and Macro Libraries
4.3. Local Variables
4.3.1. Passing Arguments to a Macro
4.3.2. Local Variables Within Macros
4.3.3. Local Variables Outside of Macros
4.4. Controlling Program Flow in APDL
4.4.1. Nested Macros: Calling Subroutines Within a Macro
4.4.2. Unconditional Branching: Goto
4.4.3. Conditional Branching: The *IF Command
4.4.4. Repeating a Command
4.4.5. Looping: Do-Loops
4.4.6. Implied (colon) Do Loops
4.4.7. Additional Looping: Do-While
4.5. Control Functions Quick Reference
4.6. Using the _STATUS and _RETURN Parameters in Macros
4.7. Using Macros with Components and Assemblies
4.8. Reviewing Example Macros
5. Interfacing with the GUI
5.1. Prompting Users for a Single Parameter Value
5.2. Prompting Users With a Dialog Box
5.3. Using Macros to Display Your Own Messages
5.4. Creating and Maintaining a Status Bar from a Macro
5.5. Picking within Macros
5.6. Calling Dialog Boxes From a Macro
6. Encrypting Macros
6.1. Preparing a Macro for Encryption
6.2. Creating an Encrypted Macro
6.3. Running an Encrypted Macro
I. APDL Commands Reference
*ABBR - Defines an abbreviation.
ABBRES - Reads abbreviations from a coded file.
ABBSAV - Writes the current abbreviation set to a coded file.
*AFUN - Specifies units for angular functions in parameter expressions.
*ASK - Prompts the user to input a parameter value.
*CFCLOS - Closes the "command" file.
*CFOPEN - Opens a "command" file.
*CFWRITE - Writes an ANSYS command (or similar string) to a "command" file.
*CREATE - Opens (creates) a macro file.
*CYCLE - Bypasses commands within a do-loop.
*DEL - Deletes a parameter or parameters (GUI).
/DFLAB - Changes DOF labels for user custom elements.
*DIM - Defines an array parameter and its dimensions.
/DIRECTORY - Put the file names in the current directory into a string parameter array.
*DO - Defines the beginning of a do-loop.
*DOWHILE - Loops repeatedly through the next *ENDDO command.
*ELSE - Separates the final if-then-else block.
*ELSEIF - Separates an intermediate if-then-else block.
*END - Closes a macro file.
*ENDDO - Ends a do-loop and starts the looping action.
*ENDIF - Ends an if-then-else.
*EXIT - Exits a do-loop.
*GET - Retrieves a value and stores it as a scalar parameter or part of an array parameter.
*GO - Causes a specified line on the input file to be read next.
*IF - Conditionally causes commands to be read.
/INQUIRE - Returns system information to a parameter.
/MAIL - Mails file to the specifed address.
*MFOURI - Calculates the coefficients for, or evaluates, a Fourier series.
*MFUN - Copies or transposes an array parameter matrix.
/MKDIR - Creates a directory.
*MOPER - Performs matrix operations on array parameter matrices.
*MSG - Writes an output message via the ANSYS message subroutine.
*MWRITE - Writes a matrix to a file in a formatted sequence.
PARRES - Reads parameters from a file.
PARSAV - Writes parameters to a file.
/PMACRO - Specifies that macro contents be written to the session log file.
/PSEARCH - Specifies a directory to be searched for "unknown command" macro files.
*REPEAT - Repeats the previous command.
*RETURN - Returns input stream to a higher level.
/RMDIR - Removes (deletes) a directory.
*SET - Assigns values to user-named parameters.
*SREAD - Reads a file into a string array parameter.
*STATUS - Lists the current parameters and abbreviations.
*TAXIS - Defines table index numbers.
/TEE - Writes a list of commands to a specified file at the same time that the commands are being executed.
*TOPER - Operates on table parameters.
*TREAD - Reads data from an external file into a table array parameter.
/UCMD - Assigns a user-defined command name.
*ULIB - Identifies a macro library file.
*USE - Executes a macro file.
*VABS - Applies the absolute value function to array parameters.
*VCOL - Specifies the number of columns in matrix operations.
*VCUM - Allows array parameter results to add to existing results.
*VEDIT - Allows numerical array parameters to be graphically edited.
*VFACT - Applies a scale factor to array parameters.
*VFILL - Fills an array parameter.
*VFUN - Performs a function on a single array parameter.
*VGET - Retrieves values and stores them into an array parameter.
*VITRP - Forms an array parameter by interpolation of a table.
*VLEN - Specifies the number of rows to be used in array parameter operations.
*VMASK - Specifies an array parameter as a masking vector.
*VOPER - Operates on two array parameters.
*VPLOT - Graphs columns (vectors) of array parameters.
*VPUT - Restores array parameter values into the ANSYS database.
*VREAD - Reads data and produces an array parameter vector or matrix.
*VSCFUN - Determines properties of an array parameter.
*VSTAT - Lists the current specifications for the array parameters.
*VWRITE - Writes data to a file in a formatted sequence.
/WAIT - Causes a delay before the reading of the next command.
A. APDL Gateway Commands
B. GET Function Summary
Your Ad Here
??