3.2.6.19. GimmeMCK Integrator
- integrator GimmeMCK $m $c $k <$ki>
ops.integrator('GimmeMCK', m, c, k, ki)
Argument |
Type |
Description |
|---|---|---|
$m |
float |
factor on the mass matrix |
$c |
float |
factor on the damping matrix |
$k |
float |
factor on the current tangent stiffness matrix |
$ki |
float |
factor on the initial stiffness matrix (optional: default = 0.0) |
Discussion
This command is used to construct a GimmeMCK integrator. It forms the matrix
so that the mass, damping or stiffness matrix of the model can be obtained, by setting one factor to 1.0 and the others to 0.0, performing one analysis step, and printing the matrix with the printA Command command [MHS2020].
Note
Use a FullGeneral system (see system Command), as printA Command needs the full matrix.
ZZTop is another name for this integrator.
Example:
The following example obtains the stiffness, mass and damping matrices of a model.
wipeAnalysis
system FullGeneral
integrator GimmeMCK 0. 0. 1.
analysis Transient
analyze 1 1
printA -file "K.txt"
wipeAnalysis
system FullGeneral
integrator GimmeMCK 1. 0. 0.
analysis Transient
analyze 1 1
printA -file "M.txt"
wipeAnalysis
system FullGeneral
integrator GimmeMCK 0. 1. 0.
analysis Transient
analyze 1 1
printA -file "C.txt"
import numpy as np
ops.system('FullGeneral')
ops.analysis('Transient')
# Mass
ops.integrator('GimmeMCK',1.0,0.0,0.0)
ops.analyze(1,0.0)
# Number of equations in the model
N = ops.systemSize() # Has to be done after analyze
M = ops.printA('-ret') # Or use ops.printA('-file','M.out')
M = np.array(M) # Convert the list to an array
M.shape = (N,N) # Make the array an NxN matrix
# Stiffness
ops.integrator('GimmeMCK',0.0,0.0,1.0)
ops.analyze(1,0.0)
K = ops.printA('-ret')
K = np.array(K)
K.shape = (N,N)
# Damping
ops.integrator('GimmeMCK',0.0,1.0,0.0)
ops.analyze(1,0.0)
C = ops.printA('-ret')
C = np.array(C)
C.shape = (N,N)
Scott, M. H., Gimme All Your Damping, All Your Mass and Stiffness Too (https://portwooddigital.com/2020/05/17/gimme-all-your-damping-all-your-mass-and-stiffness-too/)
Code Developed by: Michael H. Scott