Mechanical APDL Basic Analysis Guide - Ansys

Mechanical APDL Basic Analysis Guide - Ansys Mechanical APDL Basic Analysis Guide - Ansys

www1.ansys.com
from www1.ansys.com More from this publisher
15.11.2012 Views

Chapter 8:The Time-History Postprocessor (POST26) 1. Specify a variable in the variable name input area. This must be a unique name, otherwise you will be prompted to overwrite the existing variable of that name. 2. Define the desired variable expression by clicking on the appropriate keys, or selecting time-history variables or APDL parameters from the drop down lists. Result: The appropriate operators, APDL parameters or other variable names appear in the Expression Input Area. 3. Click the “Enter” button on the calculator portion of the Variable viewer Notes: Result: The data is calculated and the resultant variable name appears in the variable list area. The expression will be available in the variable viewer for the variable name until the variable viewer is closed. • To find the derivative of a variable “UYBLOCK” with respect to another variable VBLOCK = deriv ({UYBLOCK} , {TIME}) • To find the amplitude of a complex time-history variable “PRESMID” AMPL_MID = abs ({PRESMID}) OR, AMPL_MID = sqrt (real ({PRESMID}) ^2 + imag ({PRESMID}) ^2) • To find the phase angle of a complex time-history variable “UYFANTIP” PHAS_TIP = atan ({UYFANTIP}) * 180/pi Where pi = acos (-1) • To multiply a complex time-history variable “PRESMID” with a factor (2 + 3i) SCAL_MID = cmplx (2,3)* {PRESMID} • To fill a variable with ramped data use the following equation RAMP_.25BY_0.5 = .25 + (.05 * ({nset} - 1)) • To fill a variable as a function of time use the following equation FUNC_TIME_1 = 10 * ({TIME} - .25) • To find the relative acceleration response PSD for a variable named UZ_4, use the following equation RPSD_4 = RPSD({UZ_4},{UZ_4},3,2) 8.4.2. Batch In batch mode, you use combinations of commands. Some identify the variable and the format for the output, while others identify the variable data to be used to create the new variable. The calculator operations themselves are performed by specific commands. • To find the derivative of a variable “UYBLOCK “ with respect to another variable “TIME” 196 NSOL,2,100,u,y,UYBLOCK !Variable 2 is UY of node 100 DERIV, 3,2,1,,VYBLOCK !Variable 3 is named VYBLOCK It is the Release 13.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.

!derivative of variable 2 with respect !to variable 1 (time) • To find the amplitude of a complex time-history variable PRESMID NSOL,2,123,PRES,,PRESMID !Variable 2 is the pressure at node 123 ABS, 3,2,,,AMPL_MID !Absolute value of a complex variable !is its amplitude. • To find the phase angle (in degrees of a complex time-history variable “UYFANTIP” Pi = acos(-1) ATAN,4,2,,,PHAS_MID,,,180/pi !ATAN function of a complex !variable (a + ib) gives atan (b/a) • To multiply a complex POST 26 variable “PRESMID” with a factor (2+3i): CFACT,2,3 !Scale factor of 2+3i ADD,5,2,,,SCAL_MID !Use ADD command to store variable 2 into !variable 5 with the scale factor of (2+3i) • To fill a variable with ramped data FILLDATA,6,,,.25,.05,ramp_func !Fill a variable with !ramp function data. The following commands are used to process your variables, develop computed relationships and store the data. See the specific command reference for more information on processing your time-history variables. ABS ADD ATAN CLOG CONJUG DERIV EXP Variable processing commands IMAGIN INT1 LARGE NLOG PROD QUOT REALVAR 8.5. Importing Data SMALL SQRT RPSD CVAR RESP This feature allows the user to read in set(s) of data from a file into time history variable(s). This enables the user, for instance, to display and compare test results data against the corresponding ANSYS results data. 8.5.1. Interactive The "Import Data” button in the variable viewer leads the user through the interactive data import process. Clicking on "Import Data" allows the user to browse and select the appropriate file. The data must be in the format below: # TEST DATA FILE EXAMPLE # ALL COMMENT LINES BEGIN WITH # # Blank lines are ignored # # The first line without # sign must contain the variable names to be used # for each column of data read into POST26. NOTE that for complex data only # one variable name should be supplied per (real, imaginary) pair as shown below. Release 13.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates. 8.5.1. Interactive 197

!derivative of variable 2 with respect<br />

!to variable 1 (time)<br />

• To find the amplitude of a complex time-history variable PRESMID<br />

NSOL,2,123,PRES,,PRESMID !Variable 2 is the pressure at node 123<br />

ABS, 3,2,,,AMPL_MID !Absolute value of a complex variable<br />

!is its amplitude.<br />

• To find the phase angle (in degrees of a complex time-history variable “UYFANTIP”<br />

Pi = acos(-1)<br />

ATAN,4,2,,,PHAS_MID,,,180/pi !ATAN function of a complex<br />

!variable (a + ib) gives atan (b/a)<br />

• To multiply a complex POST 26 variable “PRESMID” with a factor (2+3i):<br />

CFACT,2,3 !Scale factor of 2+3i<br />

ADD,5,2,,,SCAL_MID !Use ADD command to store variable 2 into<br />

!variable 5 with the scale factor of (2+3i)<br />

• To fill a variable with ramped data<br />

FILLDATA,6,,,.25,.05,ramp_func !Fill a variable with<br />

!ramp function data.<br />

The following commands are used to process your variables, develop computed relationships and store the<br />

data. See the specific command reference for more information on processing your time-history variables.<br />

ABS<br />

ADD<br />

ATAN<br />

CLOG<br />

CONJUG<br />

DERIV<br />

EXP<br />

Variable processing commands<br />

IMAGIN<br />

INT1<br />

LARGE<br />

NLOG<br />

PROD<br />

QUOT<br />

REALVAR<br />

8.5. Importing Data<br />

SMALL<br />

SQRT<br />

RPSD<br />

CVAR<br />

RESP<br />

This feature allows the user to read in set(s) of data from a file into time history variable(s). This enables the<br />

user, for instance, to display and compare test results data against the corresponding ANSYS results data.<br />

8.5.1. Interactive<br />

The "Import Data” button in the variable viewer leads the user through the interactive data import process.<br />

Clicking on "Import Data" allows the user to browse and select the appropriate file. The data must be in the<br />

format below:<br />

# TEST DATA FILE EXAMPLE<br />

# ALL COMMENT LINES BEGIN WITH #<br />

# Blank lines are ignored<br />

#<br />

# The first line without # sign must contain the variable names to be used<br />

# for each column of data read into POST26. NOTE that for complex data only<br />

# one variable name should be supplied per (real, imaginary) pair as shown below.<br />

Release 13.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information<br />

of ANSYS, Inc. and its subsidiaries and affiliates.<br />

8.5.1. Interactive<br />

197

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!