pyyeti.ode.SolveNewmark.tsolve¶
- SolveNewmark.tsolve(force, d0=None, v0=None)[source]¶
Solve time-domain 2nd order ODE equations
- Parameters:
force (2d ndarray) – The force matrix; ndof x time
d0 (1d ndarray; optional) – Displacement initial conditions; if None, zero ic’s are used.
v0 (1d ndarray; optional) – Velocity initial conditions; if None, zero ic’s are used.
- Returns:
A record (SimpleNamespace class) with the members
d (2d ndarray) – Displacement; ndof x time
v (2d ndarray) – Velocity; ndof x time
a (2d ndarray) – Acceleration; ndof x time
h (scalar) – Time-step
t (1d ndarray) – Time vector: np.arange(d.shape[1])*h
z (dictionary of 2d ndarrays; optional) – Only present if there are nonlinear force terms. The dictionary keys correspond to the keys used to define the nonlinear force terms in
def_nonlin(). The values are the output of the functions that defined these force terms (seedef_nonlin()).