Array Parameters Module 2. Training Manual October 30, 2001 Inventory #001571 2-2 2. Array Parameters Array Parameters are parameters that can take on.

Slides:



Advertisements
Similar presentations
2.3 Modeling Real World Data with Matrices
Advertisements

Introduction to MATLAB for Biomedical Engineering BME 1008 Introduction to Biomedical Engineering FIU, Spring 2015 Lesson 2: Element-wise vs. matrix operations.
Chapter 7 Introduction to Procedures. So far, all programs written in such way that all subtasks are integrated in one single large program. There is.
Slides 2c: Using Spreadsheets for Modeling - Excel Concepts (Updated 1/19/2005) There are several reasons for the popularity of spreadsheets: –Data are.
Microsoft Office XP Microsoft Excel
Slide deck by Dr. Greg Reese Miami University MATLAB An Introduction With Applications, 5 th Edition Dr. Amos Gilat The Ohio State University Chapter 3.
Module 5 Beam Modeling.
Post-processing J.Cugnoni, LMAF/EPFL, Finite element « outputs » Essential variables:  Displacement u, temperature T find u such that : K u = f.
Maths for Computer Graphics
CIS 101: Computer Programming and Problem Solving Lecture 2 Usman Roshan Department of Computer Science NJIT.
Lecture 7 Sept 19, 11 Goals: two-dimensional arrays (continued) matrix operations circuit analysis using Matlab image processing – simple examples Chapter.
Lecture 6 Sept 15, 09 Goals: two-dimensional arrays matrix operations circuit analysis using Matlab image processing – simple examples.
Concatenation MATLAB lets you construct a new vector by concatenating other vectors: – A = [B C D... X Y Z] where the individual items in the brackets.
EGR 106 – Week 3 – More on Arrays Brief review of last week Additional ideas: – Special arrays – Changing an array – Some array operators – Character arrays.
Lesson 4 Review of Vectors and Matrices. Vectors A vector is normally expressed as or in terms of unit vectors likewise.
Matrix Approach to Simple Linear Regression KNNL – Chapter 5.
Coupling and Constraint Equations Module 3. Training Manual October 30, 2001 Inventory # Coupling & Constraint Equations Just as DOF constraints.
Thermal Analysis Module 6. Training Manual January 30, 2001 Inventory # Thermal Analysis In this chapter, we will briefly describe the procedure.
Introduction to MATLAB ENGR 1187 MATLAB 1. Programming In The Real World Programming is a powerful tool for solving problems in every day industry settings.
Spreadsheets Objective 6.02
Mathcad Variable Names A string of characters (including numbers and some “special” characters (e.g. #, %, _, and a few more) Cannot start with a number.
Verifying Pressures Workshop 9 Macro Basics. Workshop Supplement October 30, 2001 Inventory # W Macro Basics Verifying Pressures Create a.
Concepts of Database Management, Fifth Edition
Sundermeyer MAR 550 Spring Laboratory in Oceanography: Data and Methods MAR550, Spring 2013 Miles A. Sundermeyer Linear Algebra & Calculus Review.
ANSYS Fundamentals This document contains no technical data subject to the EAR or the ITAR.
Arrays 1 Multiple values per variable. Why arrays? Can you collect one value from the user? How about two? Twenty? Two hundred? How about… I need to collect.
Learner’s Guide to MATLAB® Chapter 2 : Working with Arrays.
Lesson 17 Getting Started with Access Essentials
Matrix Arithmetic. A matrix M is an array of cell entries (m row,column ) and it must have rectangular dimensions (Rows x Columns). Example: 3x x.
Training Manual Aug APDL Enhancements ANSYS Parametric Design Language enhancements in ANSYS 5.7 include: A.Matrix output capability.
Written by Changhyun, SON Chapter 2. Parameters - 1 CHAPTER 2 Parameters.
7 1 Chapter 7 Introduction to Structured Query Language (SQL) Database Systems: Design, Implementation, and Management, Seventh Edition, Rob and Coronel.
Select Logic Module 11. Training Manual January 30, 2001 Inventory # Select Logic Overview Suppose you wanted to do the following: –Plot all.
APDL Basics Module 12. Training Manual January 30, 2001 Inventory # APDL Basics Overview APDL is an acronym for ANSYS Parametric Design Language,
Axisymmetric Wheel Workshop 1 Array Parameters. Workshop Supplement October 30, 2001 Inventory # W Array Parameters Axisymmetric Wheel Determine.
Introduction to Enterprise Guide Jennifer Schmidt Rhonda Ellis Cassandra Hall.
A string is an array of characters Strings have many uses in MATLAB Display text output Specify formatting for plots Input arguments for some functions.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Introduction to MATLAB 7 for Engineers William J. Palm.
Matrices: Simplifying Algebraic Expressions Combining Like Terms & Distributive Property.
Matlab Basic. MATLAB Product Family 2 3 Entering & Quitting MATLAB To enter MATLAB double click on the MATLAB icon. To Leave MATLAB Simply type quit.
Submodeling Module 6. Training Manual January 30, 2001 Inventory # Submodeling Submodeling is a finite element technique used to get more.
Short Topics Chapter 14. Training Manual October 30, 2001 Inventory # In this chapter, we will present some general tips and “tricks” on how.
Structural Analysis Chapter 10. Training Manual October 30, 2001 Inventory # In this chapter, we will describe the specifics of a structural.
Surface-to-Surface Simulation
1 An Introduction to R © 2009 Dan Nettleton. 2 Preliminaries Throughout these slides, red text indicates text that is typed at the R prompt or text that.
Workshop 1 Contact Stiffness
1 Faculty Name Prof. A. A. Saati. 2 MATLAB Fundamentals 3 1.Reading home works ( Applied Numerical Methods )  CHAPTER 2: MATLAB Fundamentals (p.24)
Complex, Time and/or Spatially-Varying Boundary Conditions Chapter 6.
Volumetric Locking Workshop Two REFERENCE: Training Manual Element Technology (2-64)
R objects  All R entities exist as objects  They can all be operated on as data  We will cover:  Vectors  Factors  Lists  Data frames  Tables 
Snap Fit Workshop Seventeen Introduction to Contact REFERENCE: Training Manual Introduction to Contact (7-69)
Parametric Modeling Chapter Two. Training Manual January 30, 2001 Inventory # Parametric Modeling The basic requirement for optimization.
Mode Superposition Module 7. Training Manual January 30, 2001 Inventory # Module 7 Mode Superposition A. Define mode superposition. B. Learn.
INFORMATION TECHNOLOGY DATABASE MANAGEMENT. A database is a collection of information organized to provide efficient retrieval. The collected information.
Chapter 5: Matrices and Determinants Section 5.1: Matrix Addition.
1-2 What is the Matlab environment? How can you create vectors ? What does the colon : operator do? How does the use of the built-in linspace function.
Stress Relaxation Workshop Six REFERENCE: Training Manual Implicit Creep (4-32)
A rectangular array of numeric or algebraic quantities subject to mathematical operations. The regular formation of elements into columns and rows.
ExCel Chapters 1 and 2 Classwork: Problems 2-3, 2-6, 2-8, 2-10 Homework: Problems 2-4, 2-7, 2-9, 2-13.
Web Database Programming Using PHP
Module 2 Array Parameters.
Truss Element Equations
Web Database Programming Using PHP
Matrix Operations.
Matrix Operations.
Module 6 Submodeling.
Web DB Programming: PHP
2.2 Introduction to Matrices
Lesson 23 Getting Started with Access Essentials
TransCAD Working with Matrices 2019/4/29.
Presentation transcript:

Array Parameters Module 2

Training Manual October 30, 2001 Inventory # Array Parameters Array Parameters are parameters that can take on multiple values. They can be 1-D, 2-D, or 3-D. –1-D: m rows x 1 column –2-D: m rows x n columns –3-D: m rows x n columns x k planes x1 array5x3 arraymxnx3 array AA =BB =CC =

Training Manual October 30, 2001 Inventory # Array Parameters In this chapter, we will discuss how to define array parameters and how to perform operations among them. Topics covered: A. Types of Array Parameters B. How to Define C. Retrieving Database Information D. Array Operations E. Workshop

Training Manual October 30, 2001 Inventory # Array Parameters A. Types of Array Parameters There are three types of array parameters: –Array –Table –Character Type array is a standard 1-D, 2-D, or 3-D matrix of numeric values, such as BB shown here. –BB(2,3) = 704 –BB(3,1) = 1033 –etc x3 array BB =

Training Manual October 30, 2001 Inventory # Array Parameters...Types of Array Parameters Type table is similar to array, except that its row, column, and plane indices can be real numbers, allowing you to interpolate values. –Requires the “zeroth” row, column, and plane to be filled with numbers. –Useful to define time-dependent loads and other similar functions. –Primary variables include X, Y, Z, temperature, velocity, pressure and time. –For example, the table array FORCE could represent a force-vs-time function, with the zeroth column representing time values. FORCE(0.4) = FORCE(6.5) = FORCE(8.9) = etc.

Training Manual October 30, 2001 Inventory # Array Parameters...Types of Array Parameters A character array is a 1-D, 2-D, or 3-D matrix of alphanumeric strings. –Useful for storing file names, DOF labels, etc. –Each string can have up to eight characters. JOB1 JOB2 JOB3 JOB4 JOB5 jobs = UX UY UZ ROTY ROTZ dofs =

Training Manual October 30, 2001 Inventory # Array Parameters B. How to Define Two steps to define an array parameter: 1.Specify name, type and dimension. –Utility Menu > Parameters > Array Parameters > Define/Edit > Add –or *DIM command. Example: *dim,aa,array,4! 4x1x1 array *dim,force,table,5! 5x1x1 table *dim,bb,array,5,3! 5x3x1 array *dim,dofs,char,6! 6x1x1 character array –parameter name can not exceed 32 characters

Training Manual October 30, 2001 Inventory # Array Parameters...How to Define 2. Fill in the array values. –Utility Menu > Parameters > Array Parameters > Define/Edit > Edit –Or *VEDIT command –Or “=”command. Example: bb(1,1)=11,21,31,41,51 bb(1,2)=12,22,32,42,52 bb(1,3)=13,23,33,43,53

Training Manual October 30, 2001 Inventory # Array Parameters...How to Define For table type arrays, you must fill in values for the zeroth locations. Otherwise, their values will default to the “tiny” number E-31. –For example: force(1,1)=0,560,560,238.5,0 force(1,0)=1E-6,0.8,7.2,8.5,9.3 force(0,1)=0

Training Manual October 30, 2001 Inventory # Array Parameters...How to Define For character arrays, there is no graphical way to fill in the strings. –Use the “=”command to type in the values, then use *STAT to list them. –Each string must be enclosed in single quotes. –Example: dofs(1) = ‘ux’, ‘uy’, ‘uz’, ‘rotx’, ‘roty’, ‘rotz’ *stat,dofs

Training Manual October 30, 2001 Inventory # Array Parameters...How to Define There are many other ways to fill arrays: –Predefined functions in *VFILL command (Utility Menu > Parameters > Array Parameters > Fill) ramp function random function etc. –Read data from a file: *VREAD for arrays *TREAD for tables Or Utility Menu > Parameters > Read from File –Retrieve data from the database (discussed next).

Training Manual October 30, 2001 Inventory # Array Parameters C. Retrieving Database Information Just as *GET retrieves scalar data from the database, you can use *VGET to retrieve array information. –Or Utility Menu > Parameters > Get Array Data First dimension the array, then retrieve the data. Example: *dim,dispval,array,20,3! 20x3 array *vget,dispval(1,1),node,1,u,x! UX of nodes 1-20 in column 1 *vget,dispval(1,2),node,1,u,y! UY in column 2 *vget,dispval(1,3),node,1,u,z! UZ in column 3

Training Manual October 30, 2001 Inventory # Array Parameters …Retrieving Database Information Other types of array information you can retrieve: –nodal and keypoint coordinates (in the active CSYS) –attributes of elements, volumes, areas, etc. –select status of entities (1 if selected, 0 if not selected) –nodal stresses, strains, thermal gradients, thermal flux, etc. –element table data –and so on…

Training Manual October 30, 2001 Inventory # Array Parameters D. Array Operations Once you have defined array parameters, you can perform a variety of operations among them. –Utility Menu > Parameters > Array Operations –Or *VFUN, *VOPER, *VSCFUN, *VWRITE, etc.

Training Manual October 30, 2001 Inventory # Array Parameters...Array Operations *VFUN operates on a single array parameter. –*vfun,b(1),sin,a(1) will result in b(j)=sin(a(j)) –Other operations include: natural log, common log, exponential Square root, sort, copy Conversion from local to global coordinates and vice-versa Tangent and normal vectors to a path etc.

Training Manual October 30, 2001 Inventory # Array Parameters...Array Operations *VOPER operates on two array parameters. –*voper,c(1),a(1),sub,b(1) will result in c(k)=a(k)-b(k) –Other operations include: addition, subtraction, multiplication, division min, max, logical operations derivatives, integrals dot and cross products

Training Manual October 30, 2001 Inventory # Array Parameters...Array Operations *VSCFUN determines properties of an array parameter. –*vscfun,maxval,max,a(1) will result in a scalar parameter maxval = max(a(i)) –Other operations include: sum of all the elements of an array statistical quantities such as mean, median, standard deviation, variance and rms min/max, index location of min/max index locations of first and last non-zero entry

Training Manual October 30, 2001 Inventory # Array Parameters...Array Operations *VWRITE writes data to a file in a formatted sequence. –Utility Menu > Parameters > Array Parameters > Write to File –Example: *cfopen,wing,dat *vwrite (/,3x,’Node Number’,4x,’Temperature’,/) *vwrite,nnum(1),tval(1) (5x,f6.0,6x,e14.8) *cfclose will create a file called wing.dat with the nnum and tval arrays written in specified format.

Training Manual October 30, 2001 Inventory # Array Parameters...Array Operations There are many, many more array operations available. Please refer to your APDL Programmer’s Guide for details.

Training Manual October 30, 2001 Inventory # Array Parameters E. Workshop Refer to your Workshop Supplement for instructions on: W1. Axisymmetric Wheel