Loading and Solution
Loading and Solution
Other solution-related items - master DOF and gap conditions - are also defined in this phase.
math.nist.gov/mcsd/savg/tutorial/ansys/ldsolutn/index.html 1/9
8/11/17 Loading and Solution
Analysis Options
MODOPT ! Modal analysis options
TRNOPT ! Transient analysis options
HROPT ! Harmonic analysis options
BUCOPT ! Buckling analysis options
SSTIF ! Stress stiffening
NROPT ! Newton-Raphson options
Etc.
Preconditioned Conjugate Gradient (PCG) solver has been added as an alternate to the default frontal solver.
The PCG solver requires less file space but more memory than other solvers and is faster for larger
models(wavefronts > 1000). PCG is well-suited for problems with very large, sparse, symmetric matrices, such
as those encountered in magnetic field analysis.
/SOLUTION
ANTYPE,STATIC
EQSLV,PCG
........
Applying loads
There are six categories of loads, each with a generic set of commands:
Family Category
D ! DOF Constraints (displacements,temperatures,...)
F ! "FORCES" (forces,moments,heatflows,...)
SF ! Surface Loads (pressures,convections,...)
BF ! Body Loads (temperatures,heat generations,...)
ACEL ! Inertia Loads (accelerations,...)
LDREAD ! Coupled-Field Loads (thermal strain,...)
1. DOF constraints
math.nist.gov/mcsd/savg/tutorial/ansys/ldsolutn/index.html 2/9
8/11/17 Loading and Solution
Location Commands
Nodes D,DSYMM,DLIST,DDELE,DSCALE,DCUM
Keypoints DK,DKLIST,DKDELE
Lines DL,DLLIST,DLDELE
Areas DA,DALIST,DADELE
Transfer DTRAN,SBCTRAN
2. "FORCE"
Location Commands
Nodes F,FLIST,FDELE,FSCALE,FCUM
Keypoints FK,FKLIST,FKDELE
Transfer FTRAN,SBCTRAN
3. Surface loads
Location Commands
math.nist.gov/mcsd/savg/tutorial/ansys/ldsolutn/index.html 3/9
8/11/17 Loading and Solution
Nodes SF,SFLIST,SFDELE,SFSCALE,SFCUM,SFFUN,
SFGRAD
Elements SFE,SFELIS,SFEDEL,SFBEAM,SFFUN,SFGRAD
Lines SFL,SFLLIST,SFLDELE,SFGRAD
Areas SFA,SFALIST,SFADELE,SFGRAD
Transfer SFTRAN,SBCTRAN
e.g. NSEL,...
4. Body loads
Location Commands
Nodes BF,BFLIST,BFDELE,BFSCALE,BFCUM,BFUNIF
Elemnets BFE,BFELIS,BFEDEL,BFESCAL,BFECUM
Keypoints BFK,BFKLIST,BFKDELE
5. Inertia load
ACEL,OMEGA,DOMEGA,CGLOC,CGOMEGA,DCGOMG,IRLF
6. Coupled-field load
Coupled-field loads are applied using the new command LDREAD which reads data from the results file and
applies them as loads. For example,
LDREAD,TEMP,,,5.78,,,THERMAL,RTH
Displaying loads
math.nist.gov/mcsd/savg/tutorial/ansys/ldsolutn/index.html 4/9
8/11/17 Loading and Solution
For examples:
This is the actual computing portion of the analysis, and a complex ANSYS job often requires considerable
amount of CPU time. It is advisable that you save the database prior to executing the SOLVE command ( with
"SAVE, filename,db") and exit the ANSYS program. Next, create a batch submit file as the following:
# @$-lt 20:00
# @$-lw 32mb
# @$-eo
# @$-me
ANSYS <<'EOT'
/BATCH
/RESUME,<Filename>,db
/SOLUTION
SOLVE
FINISH
EXIT
'EOT'
This batch job can then be submitted to the tiber with the "qsub" command:
qsub batch-submit-file-name
math.nist.gov/mcsd/savg/tutorial/ansys/ldsolutn/index.html 5/9
8/11/17 Loading and Solution
unavailable to other users, severe restrictions will be imposed to all ANSYS users. As a rule of thumb, if the
SOLVE takes more than 3 minutes of CPU time, run it in batch.
Two of the RS6000s, snake and pecos, have been designated to run ANSYS batch jobs. The total size of files
created by ANSYS cannot exceed 2 GB in /tmp in pecos, while it is possible to exceed 2 GB in snake by
assigning files to two directories, /tmp and /wrk. Thus an ANSYS job that may create a total file size greater than
2 GB must run on snake. Users may follow the examples below to prepare an ANSYS batch script file on the
hudson and submit it to the pecos or the snake by the qsub command with "-q ANSYS" or "-q ANSYS.snake".
The ANSYS queue will run ANSYS on either pecos or snake, while ANSYS.snake will run ANSYS only on
snake.
qsub -q ANSYS .
qsub -q ANSYS.snake .
The script file and ANSYS input file may be kept in your home directory or its subdirectory.
The ANSYS program creates several output files that are in the order of tens of megabytes in pecos temporary
file space. These files are not interactively accessible because pecos is not directly accessible to user, but users
can use rsh command to browse these files:
math.nist.gov/mcsd/savg/tutorial/ansys/ldsolutn/index.html 6/9
8/11/17 Loading and Solution
rsh pecos rm /tmp/usrname/xx.
To copy a file from /tmp/usrname on pecos to somewhere in your tiber directory, you need to have
hudson.nist.gov in your tiber .rhosts and then use:
rcp pecos:/tmp/usrname/xx subdir/xx
If your home directory is on hudson and the file is too large to keep on hudson, specify a full pathname to your
tiber directory:
rcp pecos:/tmp/marge/xx /tiber/nist/marge/xx
In the load step file method, each load step is written(LSWRITE) to a different file - File.S01, File.S02,
File.S03,..., etc. The action command LSSOLVE reads in these step files sequentially and initiates the solution
for each step.
...
Load data
LSWRITE ----> File.S01
!
Load data
LSWRITE ----> File.S02
!
Load data
LSWRITE ----> File.S03
!
...
LSSOLVE
With the array parameter method, array parameters of type TABLE are used to define load versus time:
*DIM,LOAD,TABLE,5
LOAD(1)=0.0,560.0,560.0,238.5,0.0
LOAD(1,0)=0.0,0.8,7.2,8.5,9.3
math.nist.gov/mcsd/savg/tutorial/ansys/ldsolutn/index.html 7/9
8/11/17 Loading and Solution
The multiple SOLVE method defines load data, issues SOLVE; changes load data, issues SOLVE; and so on.
This method is better suited for batch mode than for interactive mode.
Selecting Outputs
New output controls separate print and post:
OUTPR,Item,FREQ,.....
OUTRES,Item,FREQ,....
If you have already prepared an ANSYS input file with PREP7, at the system prompt, you can redirect the input
file to ANSYS and run it in the background mode:
ANSYS output-file-name &, or
/input,input-file-name,ext,dir within ANSYS.
math.nist.gov/mcsd/savg/tutorial/ansys/ldsolutn/index.html 8/9
8/11/17 Loading and Solution
NSEL,S,,,1,150
PLNSOL,TEMP ! Display temperature
/SOLUTION ! Enter the SOLUTION processor
ANTYPE,TRANS ! Set analysis type = transient
TUNIF,0 ! Initially uniform temp = 0
TIMINT,ON ! Transient effect considered
KBC,1 ! Step loading
/FORMAT,,E,14,6
PI=3.1415927
TIME,100 ! Total of 100 sec
DELTIME,600 ! What does it mean?
AUTOTS,OFF ! Turn off automatic load-stepping
NSUBST,400 ! Use 400 substeps - 4 steps per sec
NSEL,S,,,91,95 ! Select node 91-95, i.e., Y = 4.0 - 4.2
F,ALL,HEAT,10.0/PI ! Constant heat flow rate per radian
! Total of 10000 nW applied
NSEL,S,LOC,Y,-3.5
D,ALL,TEMP,0
ALLSEL
/PBC,HEAT,1 ! Show heat load
/PBC,TEMP,1 ! Show temperature load
EPLOT
OUTPR,NSOL,4
OUTRES,NSOL,4 ! Write all solutions to the result file
*DO,TIMEVAL,BGNTIME,ENDTIME,DELTIME
TIME,TIMEVAL
SOLVE
*ENDDO
FINISH ! End of SOLUTION process
*ASK,LS,'Load Step to Display LS:',1
SET,LS,LAST
/POST26 ! Enter postprocess time history
/TITLE,TEMPERATURE CONTOUR PLOT
PLNSOL,TEMP ! Display temperature
NSOL,2,1,TEMP,Node-1
NSOL,3,11,TEMP,Node-11
NSOL,4,41,TEMP,Node-41
NSOL,5,71,TEMP,Node-71
NSOL,6,91,TEMP,Node-91
NSOL,7,101,TEMP,Node-101
PRNSOL,2,3,4,5
math.nist.gov/mcsd/savg/tutorial/ansys/ldsolutn/index.html 9/9