Table of Contents
- Preface
- I. Guide to Interfacing with ANSYS
- 1. Format of Binary Data Files
- 1.1. Understanding ANSYS Binary Files
- 1.1.1. Conventions Used to Describe Binary Files
- 1.1.2. The Standard Header for ANSYS Binary Files
- 1.2. Description of the Results File
- 1.2.1. Nomenclature
- 1.2.2. Standard ANSYS File Header
- 1.2.3. Results File Format
- 1.3. Description of the Reduced Displacement File
- 1.3.1. Standard ANSYS File Header
- 1.3.2. RDSP File Format
- 1.4. Description of the Reduced Complex Displacement File
- 1.4.1. Standard ANSYS File Header
- 1.4.2. RFRQ File Format
- 1.5. Description of the Modal Results File
- 1.5.1. Standard ANSYS File Header
- 1.5.2. MODE File Format
- 1.6. Description of the Element Matrices File
- 1.6.1. Standard ANSYS File Header
- 1.6.2. EMAT File Format
- 1.7. Description of the Substructure Matrices File
- 1.7.1. Standard ANSYS File Header
- 1.7.2. SUB File Format
- 1.8. Description of the Component Mode Synthesis Matrices (CMS) File
- 1.8.1. Standard ANSYS File Header
- 1.8.2. CMS File Format
- 1.8.3. TCMS File Format
- 1.9. Description of the Full Stiffness-Mass File
- 1.9.1. Standard ANSYS File Header
- 1.9.2. FULL File Format
- 1.10. Description of the Substructure Displacement File
- 1.10.1. Standard ANSYS File Header
- 1.10.2. DSUB File Format
- 2. Accessing Binary Data Files
- 2.1. Accessing ANSYS Binary Files
- 2.1.1. Access Routines to Results, Substructure, and Matrix Files
- 2.1.2. Characteristics of ANSYS Binary Files
- 2.1.3. Viewing Binary File Contents
- 2.1.4. Abbreviations
- 2.1.5. binini (Initializing Buffered Binary I/O Systems)
- 2.1.6. Function sysiqr (Retrieving the Status of a File)
- 2.1.7. Function biniqr8 (Retrieving System-Dependent Parameters)
- 2.1.8. Function binset (Opening a Blocked Binary File or Initializing Paging
Space)
- 2.1.9. Subroutine bintfo (Defining Data for a Standard ANSYS File Header)
- 2.1.10. Subroutine binhed (Writing the Standard ANSYS File Header)
- 2.1.11. Subroutine binrd8 (Reading Data from a Buffered File)
- 2.1.12. Subroutine binwrt8 (Writing Data to a Buffered File)
- 2.1.13. Subroutine exinc4 (Decoding an Integer String into a Character String)
- 2.1.14. Subroutine inexc4 (Coding a Character String into an Integer String)
- 2.1.15. Subroutine binclo (Closing or Deleting a Blocked Binary File)
- 2.1.16. Subroutine largeIntGet (Converting Two Integers into a Pointer)
- 2.2. Demonstration Routines
- 2.2.1. Program bintst (Demonstrates Dumping a Binary File and Copying It for Comparison
Purposes)
- 2.2.2. Subroutine bintrd (Demonstrates Printing a Dump of File Contents)
- 2.2.3. Subroutine bintwr (Demonstrates Copying Binary File Contents)
- 2.2.4. Program wrtsub (Demonstrates Writing an ANSYS Substructure File)
- 2.2.5. Program rdsubs (Demonstrates Reading a Substructure File)
- 2.2.6. Program rdfull (Demonstrates Reading and Reformatting the .FULL File)
- 2.2.7. Program ResRdDemo (Demonstrates Reading a Results File)
- 2.2.8. Program ResWrDemo (Demonstrates Writing a Results File)
- 2.3. Results File Access Routines
- 2.3.1. Overview of the Routines
- 2.3.2. ResRdBegin (Opening the File and Retrieving Global Information)
- 2.3.3. ResRdGeomBegin (Retrieving Global Geometry Information)
- 2.3.4. ResRdType (Retrieving Element Types)
- 2.3.5. ResRdReal (Retrieving Real Constants)
- 2.3.6. ResRdCsys (Retrieving Coordinate Systems)
- 2.3.7. ResRdNode (Retrieving Nodal Coordinates)
- 2.3.8. ResRdElem (Retrieving Elements)
- 2.3.9. ResRdSectMatBegin (Retrieving Global Section and Material Information)
- 2.3.10. ResRdSect (Retrieving Section Data)
- 2.3.11. ResRdMat (Retrieving Material Data)
- 2.3.12. ResRdSolBegin (Retrieving Result Set Location)
- 2.3.13. ResRdDisp (Retrieving Nodal Solution)
- 2.3.14. ResRdRfor (Retrieving Reaction Solution)
- 2.3.15. ResRdFix (Retrieving Applied Nodal Constraints)
- 2.3.16. ResRdForc (Retrieving Applied Nodal Loads Solution)
- 2.3.17. ResRdEstr (Retrieving Element Solutions)
- 3. The CDWRITE (CDB) File Format
- 3.1. Using the CDWRITE Command
- 3.1.1. Customizing Degree of Freedom Labels: the /DFLAB Command
- 3.2. Coded Database File Commands
- 3.2.1. CE Command
- 3.2.2. CP Command
- 3.2.3. CMBLOCK Command
- 3.2.4. CYCLIC Command
- 3.2.5. EBLOCK Command
- 3.2.6. EDCADAPT Command
- 3.2.7. EDCGEN Command
- 3.2.8. EDCURVE Command
- 3.2.9. EDDRELAX Command
- 3.2.10. EDLCS Command
- 3.2.11. EDLOAD Command
- 3.2.12. EDPREAD Command
- 3.2.13. EDWELD Command
- 3.2.14. EN Command
- 3.2.15. LOCAL Command
- 3.2.16. M Command
- 3.2.17. MPDATA Command
- 3.2.18. MPTEMP Command
- 3.2.19. N Command
- 3.2.20. NBLOCK Command
- 3.2.21. *PREAD Command
- 3.2.22. R Command
- 3.2.23. RLBLOCK Command
- 3.2.24. SE Command
- 3.2.25. SECBLOCK Command
- 3.2.26. SFBEAM Command
- 3.2.27. SFE Command
- 4. ANSYS Graphics File Format
- 4.1. Pixmap Format for Graphic Display Files
- 4.2. Neutral Graphics File Format
- 4.2.1. Characters the Graphics File Uses
- 4.2.2. Graphics File Directives
- 4.3. Decoding a Graphics File: an Example
- 4.3.1. The Example Command Stream
- 4.3.2. Example Graphics File Contents
- II. Guide to User-Programmable Features
- 1. Understanding User Programmable Features (UPFs)
- 1.1. What Are User Programmable Features?
- 1.2. What You Should Know Before Using UPFs
- 1.3. Planning Your UPFs
- 1.4. Studying the Mechanical APDL User Routines
- 1.5. Programming in Languages Other than Fortran
- 1.6. Developing UPFs: a Suggested Strategy
- 1.7. Include Decks
- 1.8. Choosing a Linking Method
- 1.9. Compiling and Linking UPFs on Linux Systems
- 1.9.1. Using the /UPF Command
- 1.9.2. Creating a Shared Library
- 1.9.3. Using the ANS_ADMIN Utility
- 1.10. Compiling and Linking UPFs on Windows Systems
- 1.10.1. Using the /UPF Command
- 1.10.2. Creating a Dynamic-link (DLL) Library
- 1.10.3. Using the ANS_ADMIN Utility
- 1.11. Activating UPFs
- 1.12. Running Your Custom Executable
- 1.13. Verifying Your Routines
- 1.14. Debugging Commands
- 1.14.1. Tracking the Path of Program Logic
- 1.14.2. Debugging Elements and Solutions
- 1.15. Other Useful Commands
- 1.16. Generating Output
- 1.17. Reading Large Data Files More Rapidly
- 2. UPF Subroutines and Functions
- 2.1. Creating a New Element
- 2.1.1. Input and Output Abbreviations
- 2.1.2. Creating a New Element via the User-Defined Element API
- 2.1.3. Creating a New Element by Directly Accessing the Program Database
- 2.2. Supporting Subroutines for Element Creation
- 2.2.1. Subroutine nminfo (Returning Element Reference Names)
- 2.2.2. Subroutine svgidx (Fetching the Index for Saved Variables)
- 2.2.3. Subroutine svrget (Fetching Saved Variable Data for an Element)
- 2.2.4. Subroutine svrput (Writing an Element's Saved Variable Set)
- 2.2.5. Subroutine svpidx (Writing the Saved Variable Element Index to a File)
- 2.2.6. Subroutine mreuse (Determining Which Element Matrices Can Be Reused)
- 2.2.7. Subroutine subrd (Reading Element Load Data for a Substructure Generation
Run)
- 2.2.8. Subroutine subwrt (Writing an Element Load Vector to a File for a Substructure
Generation Run)
- 2.2.9. Subroutine rvrget (Fetching Real Constants for an Element)
- 2.2.10. Subroutine propev (Evaluating a Group of Material Properties)
- 2.2.11. Subroutine prope1 (Evaluating One Material Property)
- 2.2.12. Subroutine pstev1 (Evaluating Material Properties for 1-D Elements)
- 2.2.13. Subroutine tbuser (Retrieving User Table Data)
- 2.2.14. Subroutine plast1 (Updating an Element's Plastic History)
- 2.2.15. Subroutine plast3 (Updating an Element's Plastic History, 4 or 6
components)
- 2.2.16. Subroutine creep1 (Updating an Element's Creep History)
- 2.2.17. Subroutine creep3 (Updating an Element's Creep History, 3-D Elements)
- 2.2.18. Subroutine swell1 (Updating an Element's Swelling History)
- 2.2.19. Subroutine swell3 (Updating an Element's Swelling History, 3-D Elements)
- 2.2.20. Function elLenPsvrBuf (Determining Additional ESAV Record for Plasticity)
- 2.2.21. Function nlget (Retrieving Material Nonlinear Property Information)
- 2.2.22. Subroutine usereo (Storing Data in the nmisc Record)
- 2.2.23. Subroutine eldwrtL (Writing Element Data to a File)
- 2.2.24. Subroutine eldwrnL (Writing Element Nonsummable Miscellaneous Data to the Results
File)
- 2.2.25. Subroutine trrot (Calculating the Rotation Vector)
- 2.2.26. Subroutine rottr (Calculating the Transformation Matrix)
- 2.2.27. Subroutine xyzup3 (Updating an Element's 3-D Nodal Coordinates)
- 2.2.28. Subroutine updrot (Updating the Rotation Pseudovector)
- 2.2.29. Subroutine tmpget (Defining Current Temperature Loads)
- 2.2.30. Subroutine prsget (Defining Current Pressure Loads)
- 2.2.31. Subroutine cnvget (Defining Current Convection Loads)
- 2.2.32. Subroutine hgnget (Defining Current Heat Generation Loads)
- 2.2.33. Subroutine prinst (Calculating Principal Stress and Stress Intensity)
- 2.3. Subroutines for Modifying and Monitoring Existing Elements
- 2.3.1. Subroutine userou (Storing User-Provided Element Output)
- 2.3.2. Subroutine useran (Modifying Orientation of Material Properties)
- 2.3.3. Subroutine userrc (Performing User Operations on COMBIN37 Parameters)
- 2.3.4. Subroutine UElMatx (Accessing Element Matrices and Load Vectors)
- 2.3.5. Subroutine uthick (Getting User-Defined Initial Thickness)
- 2.3.6. Subroutine UsrFictive (Providing User-Defined Fictive Temperature
Relationship)
- 2.3.7. Subroutine uflex (Calculating Flexibility Factors for PIPE288 and
PIPE289)
- 2.3.8. Subroutine UsrShift (Calculating Pseudotime Time Increment)
- 2.3.9. Subroutine UTimeInc (Overriding the Program-Determined Time Step)
- 2.3.10. Subroutine UCnvrg (Overriding the Program-Determined Convergence)
- 2.4. Subroutines for Customizing Material Behavior
- 2.4.1. Subroutine UserMat (Creating Your Own Material Model)
- 2.4.2. Subroutine UserMatTh (Creating Your Own Thermal Material Model)
- 2.4.3. Subroutine UserHyper (Writing Your Own Hyperelasticity Laws)
- 2.4.4. Subroutine UserCreep (Defining Creep Material Behavior)
- 2.4.5. Subroutine user_tbelastic (Defining Material Linear Elastic Properties)
- 2.4.6. Subroutine userfc (Defining Your Own Failure Criteria)
- 2.4.7. Subroutine userCZM (Defining Your Own Cohesive Zone Material)
- 2.4.8. Subroutine userswstrain (Defining Your Own Swelling Laws)
- 2.4.9. Subroutine userck (Checking User-Defined Material Data)
- 2.4.10. Supporting Function egen
- 2.4.11. Subroutine userfld (Update User-Defined Field Variables)
- 2.4.12. Subroutine userthstrain (Defining Your Own Thermal Strain)
- 2.5. Subroutines for Customizing Contact Interfacial Behavior
- 2.5.1. Subroutine usercnprop (Programming Your Own Contact Properties)
- 2.5.2. Subroutine userfric (Writing Your Own Friction Laws)
- 2.5.3. Subroutine userinter (Writing Your Own Contact Interactions)
- 2.5.4. Subroutine userwear (Writing Your Own Wear Law)
- 2.6. Subroutines for Customizing Loads
- 2.6.1. Subroutine usrefl (Changing Scalar Fields to User-Defined Values)
- 2.6.2. Subroutine userpr (Changing Element Pressure Information)
- 2.6.3. Subroutine usercv (Changing Element Face Convection Surface Information)
- 2.6.4. Subroutine userfx (Changing Element Face Heat Flux Surface Information)
- 2.6.5. Subroutine userch (Changing Element Face Charge Density Surface
Information)
- 2.6.6. Subroutine userfd (Calculating the Complex Load Vector for Frequency Domain
Logic)
- 2.6.7. Function userpe (Calculating Rotation Caused by Internal Pressure)
- 2.6.8. Subroutine usrsurf116 (Modifying SURF151 and SURF152 Film Coefficients and Bulk
Temperatures)
- 2.6.9. Subroutine User116Cond (Calculating the Conductance Coefficient for
FLUID116)
- 2.6.10. Subroutine User116Hf (Calculating the Film Coefficient for FLUID116)
- 2.6.11. Subroutine userPartVelAcc (Calculating Particle Velocities and Accelerations of
Ocean Waves)
- 2.6.12. Subroutine userPanelHydFor (Calculating Panel Loads Caused by Ocean
Loading)
- 2.7. Running Mechanical APDL as a Subroutine
- 2.8. Defining Your Own Commands
- 2.8.1. Function user01
- 2.8.2. Function user02 (Demonstrates Offsetting Selected Nodes)
- 2.8.3. Function user03 (Demonstrates Using Memory)
- 2.8.4. Function user04
- 2.8.5. Functions user05 through user10
- 2.9. Supporting Subroutines
- 2.9.1. Function GetRForce (Getting Nodal Reaction Force values)
- 2.9.2. Function GetStackDisp (Getting Current Displacement Values)
- 2.9.3. Subroutine ElResultStrt (Getting Load Data from Analysis Results)
- 2.9.4. Subroutine ElResultGet (Getting Results Values at Selected Points)
- 2.9.5. Subroutine ElInterp (Finding Element Coordinates)
- 2.10. Access at the Beginning and End of Various Operations
- 2.11. Memory Management Subroutines
- 2.11.1. Using the Memory-Management Subroutines
- 2.11.2. Function fAnsMemAlloc (Allocating Space and Returning a Pointer)
- 2.11.3. Subroutine fAnsMemFree (Deallocating Space)
- 2.12. Parameter-Processing Subroutines
- 2.12.1. Subroutine pardim (Creating a Dimensioned Parameter)
- 2.12.2. Function parevl (Finding and Evaluating a Parameter)
- 2.12.3. Subroutine pardef (Adding a Parameter)
- 2.13. Other Useful Functions
- 2.13.1. Using Function RunCommand
- 2.13.2. Using the /UNDO Command
- 2.13.3. Using the /HOLD command
- 3. Accessing the Mechanical APDL Database
- 3.1. Routines for Selecting and Retrieving Nodes and Elements
- 3.1.1. ndnext Function (Getting the Next Node Number)
- 3.1.2. ndprev Function (Getting the Number of the Previous Selected Node)
- 3.1.3. ndnxdf Function (Getting the Number of the Next Defined Node)
- 3.1.4. ndsel Function (Selecting, Unselecting, Deleting, or Inverting a Node)
- 3.1.5. elnext Function (Getting the Number of the Next Element)
- 3.1.6. elprev Function (Getting the Number of the Previous Selected Element)
- 3.1.7. elnxdf Function (Getting the Number of the Next Defined Element)
- 3.1.8. elsel Subroutine (Selecting, Unselecting, Deleting, or Inverting an
Element)
- 3.2. Node Information Routines
- 3.2.1. ndinqr Function (Getting Information About a Node)
- 3.2.2. getnod Function (Getting a Nodal Point)
- 3.2.3. putnod Function (Storing a Node)
- 3.2.4. ndgall Function (Getting the XYZ/Rotation Coordinates Vector for a Node)
- 3.2.5. ndspgt Subroutine (Getting the Nodal Solution for a Node of an Element)
- 3.3. Element Attribute Routines
- 3.3.1. elmiqr Function (Getting Information About an Element)
- 3.3.2. elmget Function (Getting an Element's Attributes and Nodes)
- 3.3.3. elmput Subroutine (Storing an Element)
- 3.3.4. etyiqr Function (Getting a Data Item About an Element Type)
- 3.3.5. etyget Function (Getting Information About an Element Type)
- 3.3.6. etyput Subroutine (Storing Element Type Data)
- 3.3.7. echrtr Subroutine (Getting Information About Element Characteristics)
- 3.3.8. etysel Subroutine (Selecting, Unselecting, Deleting, or Inverting an Element
Type)
- 3.3.9. mpinqr Function (Getting Information About a Material Property)
- 3.3.10. mpget Function (Getting a Material Property Table)
- 3.3.11. mpput Subroutine (Storing a Material Property Table)
- 3.3.12. mpdel Subroutine (Deleting a Material Property Table)
- 3.3.13. rlinqr Function (Getting Information About a Real Constant Set)
- 3.3.14. rlget Function (Getting Real Constant Data)
- 3.3.15. rlsel Subroutine (Selecting or Deleting a Real Constant Set)
- 3.3.16. csyiqr Function (Getting Information About a Coordinate System)
- 3.3.17. csyget Function (Getting a Coordinate System)
- 3.3.18. csyput Subroutine (Storing a Coordinate System)
- 3.3.19. csydel Subroutine (Deleting a Coordinate System)
- 3.3.20. userac Subroutine (Demonstrates Use of Element Attribute Routines)
- 3.4. Coupling and Constraint Routines
- 3.4.1. cpinqr Function (Getting Information About a Coupled Set)
- 3.4.2. cpget Function (Getting a Coupled Set)
- 3.4.3. cpput Subroutine (Storing a Coupled Set)
- 3.4.4. cpsel Subroutine (Selecting or Deleting a Coupled Set)
- 3.4.5. ceinqr Function (Getting Information About a Constraint Equation Set)
- 3.4.6. ceget Function (Getting a Constraint Equation)
- 3.4.7. ceput Subroutine (Storing a Constraint Equation)
- 3.4.8. cesel Subroutine (Deleting or Selecting a Constraint Equation)
- 3.5. Nodal Loading Routines
- 3.5.1. disiqr Function (Getting Information About Constraints)
- 3.5.2. disget Function (Getting a Constraint from the Database)
- 3.5.3. disput Subroutine (Storing a Constraint at a Node)
- 3.5.4. disdel Subroutine (Deleting a Constraint at a Node)
- 3.5.5. foriqr Function (Getting Information About Nodal Loads)
- 3.5.6. forget Function (Getting a Constraint from the Database)
- 3.5.7. forput Subroutine (Storing a Nodal Load at a Node)
- 3.5.8. fordel Subroutine (Deleting a Nodal Load at a Node)
- 3.5.9. ntpiqr Function (Getting Information About a Nodal Temperature)
- 3.5.10. ntpget Function (Getting a Specified Nodal Temperature)
- 3.5.11. ntpput Subroutine (Storing a Nodal Temperature)
- 3.5.12. ntpdel Subroutine (Deleting a Nodal Temperature)
- 3.5.13. nhgiqr Function (Getting Information About Nodal Heat Generations)
- 3.5.14. nhgget Function (Getting a Nodal Heat Generation)
- 3.5.15. nhgput Subroutine (Storing Nodal Heat Generation)
- 3.5.16. nhgdel Subroutine (Deleting a Nodal Heat Generation)
- 3.5.17. nfuiqr Function (Getting Information About Nodal Fluences)
- 3.5.18. nfuget Function (Getting a Nodal Fluence)
- 3.5.19. nfuput Subroutine (Storing a Nodal Fluence)
- 3.5.20. nfudel Subroutine (Deleting a Nodal Fluence)
- 3.5.21. ndciqr Function (Getting Information About Nodal Current Densities)
- 3.5.22. ndcget Function (Getting a Nodal Current Density)
- 3.5.23. ndcput Subroutine (Storing a Nodal Current Density)
- 3.5.24. ndcdel Subroutine (Deleting a Nodal Current Density)
- 3.5.25. nvdiqr Function (Getting Information About Nodal Magnetic Virtual
Displacements)
- 3.5.26. nvdget Function (Getting a Nodal Magnetic Virtual Displacement)
- 3.5.27. nvdput Subroutine (Storing a Nodal Virtual Displacement)
- 3.5.28. nvddel Subroutine (Deleting a Nodal Virtual Displacement)
- 3.6. Element Loading Routines
- 3.6.1. epriqr Function (Getting Information About Element Pressure/Convection)
- 3.6.2. eprget Function (Getting an Element Face Pressure)
- 3.6.3. eprput Subroutine (Storing an Element Face Pressure)
- 3.6.4. eprdel Subroutine (Deleting an Element Pressure/Convection)
- 3.6.5. ecviqr Function (Getting Information About Element Convections)
- 3.6.6. ecvget Function (Getting an Element Face Convection)
- 3.6.7. ecvput Subroutine (Storing an Element Face Convection)
- 3.6.8. ecvdel Subroutine (Deleting a Convection on an Element)
- 3.6.9. etpiqr Function (Getting Information About Element Temperatures)
- 3.6.10. etpget Function (Getting an Element Temperature)
- 3.6.11. etpput Subroutine (Storing an Element Temperature)
- 3.6.12. etpdel Subroutine (Deleting an Element Temperature)
- 3.6.13. ehgiqr Function (Getting Information About Element Heat Generation)
- 3.6.14. ehgget Function (Getting an Element Heat Generation)
- 3.6.15. ehgput Subroutine (Storing an Element Heat Generation)
- 3.6.16. ehgdel Subroutine (Deleting an Element Heat Generation)
- 3.6.17. efuiqr Function (Getting Information About Element Fluences)
- 3.6.18. efuget Function (Getting an Element Fluence)
- 3.6.19. efuput Subroutine (Storing an Element Fluence)
- 3.6.20. efudel Subroutine (Deleting an Element Fluence)
- 3.6.21. edciqr Function (Getting Information About Element Current Densities)
- 3.6.22. edcget Function (Getting Element Current Densities)
- 3.6.23. edcput Subroutine (Storing an Element Current Density)
- 3.6.24. edcdel Subroutine (Deleting an Element Current Density)
- 3.6.25. evdiqr Function (Getting Information About Element Virtual Displacements)
- 3.6.26. evdget Function (Getting an Element Virtual Displacement)
- 3.6.27. evdput Subroutine (Storing an Element Virtual Displacement)
- 3.6.28. eimiqr Function (Getting Information About Element Impedances)
- 3.6.29. eimget Function (Getting an Element Face Impedance)
- 3.6.30. eimput Subroutine (Storing an Element Impedance)
- 3.6.31. eimdel Subroutine (Deleting an Element Impedance)
- 3.6.32. esfiqr Function (Getting Information About Element Surface Stress Data)
- 3.6.33. esfget Function (Getting Element Surface Stress Data)
- 3.6.34. esfput Subroutine (Storing Element Surface Stress Data)
- 3.6.35. esfdel Subroutine (Deleting an Element's Surface Stress Data)
- 3.6.36. efsdel Subroutine (Deleting a Flagged Surface on an Element)
- 3.6.37. efsget function (Getting Element Face Flagged Surfaces)
- 3.6.38. efsiqr function (Getting Information About Flagged Surfaces)
- 3.6.39. efsput Subroutine (Storing an Element Face Flagged Surface)
- 3.7. Results Information Routines
- 3.7.1. dspiqr Function (Getting Information About Nodal Results)
- 3.7.2. dspget Function (Getting a Nodal Result from the Database)
- 3.7.3. dspput Subroutine (Storing a Result at a Node)
- 3.7.4. dspdel Subroutine (Deleting a Result at a Node)
- 3.7.5. emsiqr Function (Getting Information About an Element's Miscellaneous Summable
Data)
- 3.7.6. emsget Function (Getting an Element's Miscellaneous Summable Data)
- 3.7.7. emsput Subroutine (Storing an Element's Miscellaneous Summable Data)
- 3.7.8. emsdel Subroutine (Deleting an Element's Miscellaneous Summable Data)
- 3.7.9. enfiqr Function (Getting Information About Element Nodal Forces)
- 3.7.10. enfget Function (Getting an Element's Nodal Forces)
- 3.7.11. enfput Subroutine (Storing an Element's Nodal Forces)
- 3.7.12. enfdel Subroutine (Deleting an Element's Nodal Forces)
- 3.7.13. ensiqr Function (Getting Information About an Element's Nodal Stresses)
- 3.7.14. ensget Function (Getting an Element's Nodal Stresses)
- 3.7.15. ensput Subroutine (Storing Nodal Stresses at an Element)
- 3.7.16. ensdel Subroutine (Deleting an Element's Nodal Stresses)
- 3.7.17. engiqr Function (Getting Information About an Element's Energies)
- 3.7.18. engget Function (Getting an Element's Energies)
- 3.7.19. engput Subroutine (Storing an Element's Energies and Volume)
- 3.7.20. engdel Subroutine (Deleting an Element's Energies)
- 3.7.21. egriqr Function (Getting Information About an Element's Nodal Gradients)
- 3.7.22. egrget Function (Getting an Element's Nodal Gradients)
- 3.7.23. egrput Subroutine (Storing an Element's Nodal Gradients)
- 3.7.24. egrdel Subroutine (Deleting an Element's Nodal Gradients)
- 3.7.25. eeliqr Function (Getting Information About an Element's Nodal Elastic
Strains)
- 3.7.26. eelget Function (Getting an Element's Nodal Elastic Strains)
- 3.7.27. eelput Subroutine (Storing an Element's Nodal Elastic Strains)
- 3.7.28. eeldel Subroutine (Deleting an Element's Nodal Elastic Strains)
- 3.7.29. epliqr Function (Getting Information About an Element's Nodal Plastic
Strains)
- 3.7.30. eplget Function (Getting an Element's Nodal Plastic Strains)
- 3.7.31. eplput Subroutine (Storing an Element's Nodal Plastic Strains)
- 3.7.32. epldel Subroutine (Deleting an Element's Nodal Plastic Strains)
- 3.7.33. ecriqr Function (Getting Information About an Element's Nodal Creep
Strains)
- 3.7.34. ecrget Function (Getting an Element's Nodal Creep Strains)
- 3.7.35. ecrput Subroutine (Storing an Element's Nodal Creep Strains)
- 3.7.36. ecrdel Subroutine (Deleting an Element's Nodal Creep Strains)
- 3.7.37. ethiqr Function (Getting Information About an Element's Nodal Thermal
Strains)
- 3.7.38. ethget Function (Getting an Element's Nodal Thermal
Strains)
- 3.7.39. ethput Subroutine (Storing an Element's Nodal Thermal
Strains)
- 3.7.40. ethdel Subroutine (Deleting an Element's Thermal, Initial, and Swelling
Strains)
- 3.7.41. euliqr Function (Getting Information About an Element's Euler Angles)
- 3.7.42. eulget Function (Getting an Element's Nodal Euler Angles)
- 3.7.43. eulput Subroutine (Storing an Element's Euler Angles)
- 3.7.44. euldel Subroutine (Deleting an Element's Euler Angles)
- 3.7.45. efxiqr Function (Getting Information About Element Fluxes)
- 3.7.46. efxget Function (Getting an Element Flux)
- 3.7.47. efxput Subroutine (Storing an Element's Fluxes)
- 3.7.48. efxdel Subroutine (Deleting Element Fluxes)
- 3.7.49. elfiqr Function (Getting Information About Element Local Forces)
- 3.7.50. elfget Function (Getting an Element Local Force)
- 3.7.51. elfput Subroutine (Storing an Element's Local Forces)
- 3.7.52. elfdel Subroutine (Deleting Element Local Forces)
- 3.7.53. emniqr Function (Getting Information About Element Miscellaneous Non-summable
Data)
- 3.7.54. emnget Function (Getting an Element's Miscellaneous Non-summable Data)
- 3.7.55. emnput Subroutine (Storing an Element's Miscellaneous Non-summable Data)
- 3.7.56. emndel Subroutine (Deleting an Element's Miscellaneous Non-summable Data)
- 3.7.57. ecdiqr Function (Getting Information About Element Current Densities)
- 3.7.58. ecdget Function (Getting an Element Current Density)
- 3.7.59. ecdput Subroutine (Storing an Element's Current Densities)
- 3.7.60. ecddel Subroutine (Deleting Element Current Densities)
- 3.7.61. enliqr Function (Getting Information About Element Nonlinear Tables)
- 3.7.62. enlget Function (Getting Element Nonlinear Tables)
- 3.7.63. enlput Subroutine (Storing an Element's Nonlinear Tables)
- 3.7.64. enldel Subroutine (Deleting Element Nonlinear Tables)
- 3.7.65. ehciqr Function (Getting Information About Calculated Element Heat
Generations)
- 3.7.66. ehcget Function (Getting a Calculated Element Heat Generation)
- 3.7.67. ehcput Subroutine (Storing an Element's Calculated Heat Generations)
- 3.7.68. ehcdel Subroutine (Deleting Element Calculated Heat Generations)
- 4. Subroutines for Your Convenience
- 4.1. Input and Output Abbreviations
- 4.2. General Subroutines
- 4.2.1. dptoch Subroutine (Retrieve Eight Characters From a Double Precision
Variable)
- 4.2.2. wrinqr Function (Obtain Information About Output)
- 4.2.3. erinqr Subroutine (Obtaining Information from the Errors Common)
- 4.2.4. TrackBegin Subroutine (Beginning Tracking for a Subroutine Call)
- 4.2.5. TrackEnd Subroutine (Ending Tracking for a Subroutine Call)
- 4.2.6. erhandler Subroutine (Displaying Program Errors)
- 4.2.7. intrp Subroutine (Doing Single Interpolation)
- 4.2.8. tranx3 Subroutine (Processing Geometry for 3-D Line Elements)
- 4.2.9. systop Subroutine (Stopping a Program Run)
- 4.3. Vector Functions
- 4.3.1. vdot Function (Computing the Dot Product of Two Vectors)
- 4.3.2. vidot Function (Computing the Dot Product of Two Vectors with Increments)
- 4.3.3. vsum Function (Summing Vector Components)
- 4.3.4. vmax Function (Retrieving the Maximum Vector Value at a Given Location)
- 4.3.5. lastv Function (Retrieving the Position of the Last Nonzero Term in a Double
Precision Vector)
- 4.3.6. izero Function (Setting an Integer Vector to Zero)
- 4.3.7. imove Function (Assigning Equal Values to Two Integer Vectors)
- 4.3.8. vzero Subroutine (Initializing a Vector to Zero)
- 4.3.9. vmove Subroutine (Moving One Vector into Another)
- 4.3.10. vimove Subroutine (Moving One Vector into Another Incrementally)
- 4.3.11. vinit Subroutine (Assigning a Scalar Constant to a Vector)
- 4.3.12. viinit Subroutine (Assigning a Scalar Constant to a Vector Incrementally)
- 4.3.13. vapb Subroutine (Setting a Vector to Sum of Two vectors)
- 4.3.14. vapb1 Subroutine (Combining Two Vectors in One)
- 4.3.15. vapcb1 Subroutine (Multiplying a Vector to a Constant)
- 4.3.16. vamb Subroutine (Gets a Third Vector by Subtracting One Vector from
Another)
- 4.3.17. vamb1 Subroutine (Subtracting One Vector from Another)
- 4.3.18. vmult Subroutine (Multiplying a Vector by a Constant)
- 4.3.19. vmult1 Subroutine (Multiplying a Vector by a Constant)
- 4.3.20. vcross Subroutine (Defining a Vector via a Cross Product)
- 4.3.21. vnorme Subroutine (Normalizing a Three-Component Vector)
- 4.3.22. vnorm Subroutine (Normalizing a Vector to Unit Length)
- 4.3.23. ndgxyz Function (Getting the X,Y,Z Vector for a Node)
- 4.3.24. ndpxyz Subroutine (Storing X,Y,Z for a Node)
- 4.4. Matrix Subroutines
- 4.4.1. maxv Subroutine (Multiplying a Vector by a Matrix)
- 4.4.2. maxv1 Subroutine (Multiplying a Vector by a Matrix)
- 4.4.3. matxv Subroutine (Multiplying a Vector by a Full Transposed Matrix)
- 4.4.4. matxv1 Subroutine (Multiplying a Vector by a Full Transposed Matrix)
- 4.4.5. matxb Subroutine (Transposing a matrix)
- 4.4.6. maat Subroutine (Changing a Matrix Value via Addition, Multiplication, and
Transposition)
- 4.4.7. matba Subroutine (Updating Matrix Value via Transposition, Multiplications, and
Addition)
- 4.4.8. matsym Subroutine (Filling the Upper Triangle from the Lower Triangle)
- 4.4.9. mctac Subroutine (Transposing a symmetric matrix)
- 4.4.10. tran Subroutine (Transposing a matrix)
- 4.4.11. symeqn Subroutine (Solving Simultaneous Linear Equations)
- A. Creating External Commands in Linux
- A.1. Tasks in Creating an External Command
- A.1.1. Creating Compatible Code
- A.1.2. Creating a Shared Library
- A.1.3. Creating an External Table File
- A.1.4. Setting the ANSYS_EXTERNAL_PATH Environment Variable
- A.1.5. Using External Commands
- A.1.6. Checking External Command Status
- A.1.7. Resetting External Commands
- B. Creating External Commands in Windows
- B.1. Tasks in Creating an External Command
- B.1.1. Creating Compatible Code
- B.1.2. Creating a Visual Studio Project
- B.1.3. Creating an External Definition File
- B.1.4. Creating a Shared Library
- B.1.5. Creating an External Table File
- B.1.6. Setting the ANSYS_EXTERNAL_PATH Environment Variable
- B.1.7. Using External Commands
- B.1.8. Checking External Command Status
- B.1.9. Resetting External Commands
- B.1.10. Example: Creating an External Command Using Visual Studio 2012
Professional
- C. User Material (UserMat) Subroutine Example
- C.1. UserMat Example Description
- C.2. UserMat Example Input Data
- C.3. UserMat Example POST26 Output Results
- C.4. USERMAT.F List File for This Example
- C.5. Accessing Solution and Material Data
- D. Fully Coupled Wind Turbine Example in Mechanical APDL
- D.1. Implementing a Fully Coupled Wind Turbine Analysis
- D.2. Theory
- D.3. Compiling a Custom Version of Mechanical APDL
- D.4. Performing a Wind Coupled Analysis
- D.4.1. The Wind Coupling Process
- D.4.2. Data Exchange Routines
- D.4.3. Important Analysis Notes
- D.5. Example Analysis Using Provided “WindProg” Example for Aeroelastic
Coupling
- D.6. References