3.2.7. analysis Command
This command is used to construct the Analysis object, which assembles the component objects of the analysis, i.e. the constraint handler, DOF numberer, system of equations, convergence test, solution algorithm and integrator, into a static or a transient analysis. The steps of the analysis are then performed with the analyze Command command.
- analysis $analysisType <-noWarnings> <-numSubLevels $numSubLevels> <-numSubSteps $numSubSteps>
ops.analysis(analysisType, '-noWarnings', '-numSubLevels', numSubLevels, '-numSubSteps', numSubSteps)
Argument |
Type |
Description |
|---|---|---|
$analysisType |
string |
type of analysis: Static, Transient (transient analysis with a constant time step) or VariableTransient (transient analysis with a variable time step) |
-noWarnings |
string |
do not print the warnings for components that have not been created (see note 1) (optional) |
$numSubLevels |
integer |
Transient only: number of times a failed step is subdivided (optional: default = 0, no subdivision) |
$numSubSteps |
integer |
Transient only: number of substeps a failed step, or substep, is divided into (optional: default = 10) |
Note
The components of the analysis should be created before the analysis command. If a component has not been created, a warning is printed and a default is used: a Plain constraint handler, an RCM numberer, a ProfileSPD system, a NormUnbalance test with a tolerance of 1.0e-6 and 25 iterations, a Newton algorithm, and a LoadControl integrator with an increment of 1.0 for a static analysis, or a Newmark integrator with \(\gamma = 0.5\) and \(\beta = 0.25\) for a transient analysis.
Components can be changed after the analysis has been created, e.g. a different algorithm can be tried for a step that fails. The analysis uses the new component from the next step.
With -numSubLevels, if a step of a Transient analysis fails, it is tried again divided into numSubSteps substeps. If a substep fails it is divided again, down to numSubLevels levels of subdivision. This is often a better option for nonlinear problems with convergence difficulties than a VariableTransient analysis.
For a VariableTransient analysis, the time step limits and target number of iterations are given with the analyze Command command.
If an analysis of the same type already exists, the command does nothing; e.g. new -numSubLevels and -numSubSteps values are ignored. Use wipeAnalysis Command first to change them.
Warning
When switching from one type of analysis to another, e.g. from a static (gravity) analysis to a transient analysis, issue the wipeAnalysis Command command first. Without it a warning is printed and problems may arise, as components created for the first analysis, e.g. a static integrator, are kept.
Example 1: Static analysis
The following example creates the components of a static analysis and then the analysis.
system SuperLU
constraints Transformation
numberer RCM
test NormDispIncr 1.0e-12 10 3
algorithm Newton
integrator LoadControl 0.1
analysis Static
ops.system('SuperLU')
ops.constraints('Transformation')
ops.numberer('RCM')
ops.test('NormDispIncr', 1.0e-12, 10, 3)
ops.algorithm('Newton')
ops.integrator('LoadControl', 0.1)
ops.analysis('Static')
Example 2: Transient analysis
The following example creates the components of a transient analysis and then the analysis, with up to 3 levels of subdivision into 10 substeps for steps that fail.
system SuperLU
constraints Transformation
numberer RCM
test NormDispIncr 1.0e-12 10 3
algorithm Newton
integrator Newmark 0.5 0.25
analysis Transient -numSubLevels 3 -numSubSteps 10
ops.system('SuperLU')
ops.constraints('Transformation')
ops.numberer('RCM')
ops.test('NormDispIncr', 1.0e-12, 10, 3)
ops.algorithm('Newton')
ops.integrator('Newmark', 0.5, 0.25)
ops.analysis('Transient', '-numSubLevels', 3, '-numSubSteps', 10)
Code Developed by: fmk