Nondimentionalize the 2 DOF equations
Show older comments
Hello all,
I hope you are doing well. I asked a question regarding dimensionalizing the motion equations in 2DOFs. Due to my mistakes, the description is not very clear. As suggested, I post a single question for the same question.
I would like to present the system I want to establish in MATLAB firstly. The absorber consists of a mass, three-spring system in the left fig, and the dashpot.


For the angular velocity
, damping ratioξ, mass ratio μ, and the stiffness ratio α, they are easy to determine. The length of the oblique spring
in my code is set to be 2.5m. But it can be various physically.
, damping ratioξ, mass ratio μ, and the stiffness ratio α, they are easy to determine. The length of the oblique spring
in my code is set to be 2.5m. But it can be various physically. I am not sure the approach to achieve the nondimensionlized equation is corret or not. Also, I would like to know whether I could use the ratio value only. Specifically, I do not need to set the
value.
value.My codes are also attached. Thank you for your help.
Best wishes,
Yu
clc;
clear all;
tspan = 0:0.25:200;
% Units:
% stiffness: N/m, mass:kg, damping(c_1):Ns/m
% displacement(X):m
% alpha (stiffness ratio):k_o/k_v
% gamma (dimension ratio):a/L (structure length)
% f_opt (frequency ratio): f_1/f_2
% k_v the stiffness of the vertical spring
% k_o the stiffness of the oblique spring
X0 = [0 0 0 0];
%parameters-------
global alpha gamma mu Omega_1 Omega_2 L_0
alpha = 1 % stiffness ratio k_o/k_v
gamma = 2*alpha/(2*alpha+1)
L_0 = 2.5
a = L_0*gamma;
h = sqrt(L_0^2-a^2);
mu = 0.02; % mass ratio
f_opt = 1/(1+mu); % frequency ratio
xi_2 = sqrt(3*mu/8*(1+mu));
Omega_1 = 0.188; % 0.03 Hz angular velocity of the primary structure
Omega_2 = Omega_1*f_opt; % angular velocity of the damper
xi_1 = 0.01; % damping ratio of primary structure
%matrix--------
M = [(1+mu)/(Omega_1^2*L_0) mu/(Omega_1^2*L_0);
1/(Omega_2^2*L_0) 1/(Omega_2^2*L_0)];
C = [2*xi_1/(Omega_1*L_0) 0;
0 2*xi_2/(Omega_2*L_0)];
K = [1/L_0 0;
0 1/L_0];
% state space model-------------------
% M: mass matrix, K:stiffness matrix, C:damping matrix
O = zeros(2,2);
I = eye(2);
A = [O I; -inv(M)*K -inv(M)*C];
B = [O; inv(M)];
E = [I O];
D = zeros(2,2);
% solve the equations-------------------
options = odeset('RelTol',1e-10,'AbsTol',1e-10);
[t,X] = ode45(@(t,X) QZSdamper(t,A,B,X),tspan,X0,options);
x = X(:,1:4);
%% plot
figure,
plot(t,x(:,1)); xlabel('Time/s'),ylabel('Dimensionless displacement of primary structure')
figure,
plot(t,(x(:,2)); xlabel('Time/s'),ylabel('Dimensionless displacement of TMD ')
sys = ss(A,B,E,D);
figure,
bodeplot(sys(1,1))
bp.FrequencyScale = "linear";
[mag,phase,wout] = bode(sys(1,1));
mag = squeeze(mag);
phase = squeeze(phase);
fout = wout/(2*pi);
BodeTable = table(fout,mag,phase);
function dXdt = QZSdamper(t,A,B,X)
global alpha gamma mu Omega_1 Omega_2
w = 0.180;
F1 = 0.001/(Omega_1^2*L_0)*sin(w*t); %harmonic excitation
F_o = 2*alpha*(sqrt(1-gamma^2)+X(2)/L_0)*(sqrt(1/((X(2)/L_0)^2+2*sqrt(1-gamma^2)*X(2)/L_0+1))-1);
F = [F;F_o];
dXdt = A*X+B*(F);
end
5 Comments
Yu
on 7 Oct 2024
I think mu = m1/m2 is incorrect. It should be mu = m2/m1.
And in system (5) each term has unit s^2 - thus your system is not dimensionless. You must write your equation not in x1(t) and x2(t), but in x1(t'*T)/L0 and x2(t'*T)/L0 where T is some characteristic time (e.g. the endtime) (0<=t'<=1 dimensionless, defined as t/T).
And the easiest way to compare whether you did everyting right is to compare the results from (3) and (5). They should agree.
Yu
on 7 Oct 2024
I'm not a physician - thus I don't know how to non-dimensionalize time in a suitable way for your application. But as long as any quantity in your system of differential equations has a physical unit, the system is not dimensionless. And your derivatives are with respect to physical time t, not some kind of dimensionless time t', I guess.
In the definition of new parameters you probably mean
omega1 = sqrt(k1/m1), omega2 = sqrt(k2/m2)
instead of
omega1 = sqrt(k1^2/m1^2), omega2 = sqrt(k2^2/m2^2)
Then each term of equations (5) is dimensionless (except for the independent variable t).
Yu
on 7 Oct 2024
Answers (2)
William Rose
on 7 Oct 2024
1 vote
@Yu,
You are smart to add Sam Chak's name. He is a great and smart source of analysis and help.
There is more than one way you can create nondimensional coordinates for this system. It helps me to list all the physical constants in the systrem and relate them.
Before I do that, I suggest that the next time you post, you invest more time to provide a better diagram. This will make it easier for others to help you. The diagram on the left should be to the right of the diagram on the right, and it should be rotated 90 degrees, I think. The positive direction of x points up in the left diagram. The x direction is not shown on the right diagram, but I suspect it points to the right. Mass m2 and damper c2 appear in the discussion and in the equations, but neither m2 nor c2 appear in either diagram. And so on.
Is there a sign error in the equation for nonlinear force? You have

I think it should be
. A better diagram would make it easier to know if the signs are correct.
Now let's list the physical constants of your system: masses m1, m2; lengths L0, a (or (a, h) or (h, L0)); dampers c1, c2; spring constants k1, kv, ko. You could write in terms of normalized length and normalized time. For length, you could normalize by L0. For time, you could choose to make the natural radian frequency,
, of small oscillations of m1 about its rest point, equal to unity. To do this, you must compute
in standard time units:
, where knet is the sum of all the effectve spring constants acting on m1 at rest. It looks to me like
, where
is the angle of the ko springs at rest, and
. I think the factor sine squared makes sense, but maybe there's an error or oversight in my mind's eye. Check my work.
, where knet is the sum of all the effectve spring constants acting on m1 at rest. It looks to me like
, where
. I think the factor sine squared makes sense, but maybe there's an error or oversight in my mind's eye. Check my work. 4 Comments
Yu
on 7 Oct 2024
William Rose
on 8 Oct 2024
@Yu,
Thank you for your response and for the diagram. You refer above to "vertical" and "oblique" forces, and you say "the direction of oblique stiffness force would be opposite to the direction of vertical stiffness force". This suggests that "oblique" and "vertical" are opposite directions. Please explain forces and directions relative to the +x axis. I realize that forces orthogonal to the x-axis cancel out, since the oblique springs are assumed to be identical but opposite.
You said you would provide a better diagram, but you have not. I am trying to imagine the physical arrangement that accounts for equation 3 in your original post. If we convert equation 3 from a matrix equation to a pair of coupled equations, we get:
Here are two diagrams I can imagine, and the associated differential equations. Neither diagram's differential equations match your equation 3. In my equations below,
should be
. Force
acts on m2 and is due to oblique springs.

I assume the oblique springs Hookean, and that the nonlinear behavior arises soley because they are oblique. Therefore, in the limit as
, the nonlinear springs become linear, because in this case they are aligned with the x-axis. Is that your understanding also?
In your comment, you include a plot of fnon versus xnon. What is xnon? Does it equal x2? Indicate xnon and x2 on your diagram, and explain if they are different. I understand (from your original posting) that, on the plot of fnon,
.
In your original post, you say
(your equation 1). Does "x" in equation 1 refer to x1 or x2? I assume from equation 1 that fnon is the force due to the network of kv plus two oblique springs. It appears from equation 3 that fnon acts on m2. But equation 1 indicates that when x (i.e. x2) becomes more positive, the kv component of fnon also becomes more positive. For a stable system, the force from spring kv should become more negative, or less positive, when x becomes more positive, so that spring kv provides a restoring force. This is why I think the sign for the
component of fnon, in equation 1, is incorrect. The sign of the
component is correct in equation 3.
For the plot of fnon versus xnon, please confirm that fnon includes both the kv component AND the ko components. It might be more instructive to plot the ko component of force only, versus x2, since kv is a simple linear spring which is well understood.
Equation 2 in your original post indicates that the force from oblique springs equals zero only when x=-h. The position x=-h corresponds to the spirings being oriented perpendicular to the direction of motion. In other words, equation 2 suggests that the oblique springs are unstressed, at their resting length, when x=-h. Your system diagram indicates that when x=0, the springs are longer than when x=-h. This means the springs are extended, not compressed, when x=0, which is contrary to what you said in your comment.
I assume that m1 and m2 are initially at equilibrium and that the masses are at positions x1=0 and x2=0 respectively. Do you agree? You said the oblique springs are compressed in the initial equlibrium state. Then k1 and maybe kv must also be compressed, for the system to be at equilibrium. If you think the initial compression of the oblique springs is important, then the equations for all springs may need to include the unstressed length of each, and you should confirm that the spring forces sum to zero, on each mass, when x1=0 and x2=0 - that is, if the system is supposed to be at equilibrium at x1=0 and x2=0.
I am not sure why you want to find non-dimensional equations for the system. If it were me, I would want to make sure I have the equations right, and solve the system, using the real physical units. Then I mihght try to gain deeper insight thorugh dimensional analysis.
Sam Chak
on 8 Oct 2024
Hi @Yu
The modeling process cannot be rushed, and the derived model must be verified. I advise young researchers to focus on "get things right before getting things done", as this can help avoid the need for repeated corrections. Therefore, before attempting to make the system dynamics dimensionless, please ensure that the model is correctly derived. You might also consider applying Lagrangian mechanics to see if you obtain the same mathematical model.
William Rose
on 8 Oct 2024
0 votes
@Yu, The two diagrams in your recent comment are helpful.
You say in your recent comment "I define x2 as the relative displacement of m2 with respect to m1 to simplify the equations, as shown in my equations." I think this is a confusing definition, because the oblique springs are anchored at one end to the external world, not to m1. Therefore the force of the oblique springs (fo) depends on the position of m2 relative to the external world, and not on the4 position of m2 relative to m1. If you really want to define x2 as displacement of m2 relative to m1, then you need to revise your equations for f0 to reflect the fact that fo depends on (x1+x2) rather than on x2 only. You also need to revise your equation for , for the same reason. (Your equation for uses "x". I assume you mean x2. Please do not use "x" in your equations. Use only x1 and x2, for clarity.) For the reasons just listed, I encourage you to define x2 as position of m2 relative to the external world. I assume below that this is how x2 is defined.
Equation 3 in your original post is not correct for the system illustrated in the diagrams in your recent comment. The correct coupled equations for x1 and x2 are
10 Comments
William Rose
on 8 Oct 2024
I am having trouble posting my replies. Please bear with me.
William Rose
on 8 Oct 2024
Equation 3 in your original post is incorrect, in my opinion. The correct coupled equations for x1 and x2 are
...
which you can write in matrix form. Check my work.
You say in your recent comment "The objective of the system is to achieve zero stiffness, as illustrated in the plot. The stiffness force will be zero when x2 is at a specific position." Please define "zero stiffness" and "stiffness force". Does this objective apply to x1 or to x2 or to both? I suspect that what you mean is that ... when x2=0, and ... when x2=0. But I could be wrong.
You use L and {\ell} in your recent post. Please explain with equations what the difference is.
I will discuss in a later post. No time now.
William Rose
on 8 Oct 2024
@Yu,
I am finding it impossible to post comments that contain equations written with the Matlab Answers equation editor. I tried again, still no luck. I also tried screenshot of the equations and inserting the image, but that too does not post.
Yu
on 8 Oct 2024
David Goodmanson
on 11 Oct 2024
Edited: David Goodmanson
on 11 Oct 2024
Hello Yu,
I agree with WR here. First that the equations have to be complete and correct before even thinking about dimensionality. Second, it makes sense for displacement x2 of m2 to be relative to the fixed lab frame rather than relative to m1. Then for the linear part of the problem the stiffness matrix K is no longer diagonal but it's still easy, being
[k1+k2, -k2
-k2, k2]
(similar for C) and the harder, nonlinear part of the force is easier to calculate.
After the equations are set up, including unstretched spring lengths, it will be useful to have the static equilibrium position, where the total potential energy for all the springs is at a minimum. That can be done numerically if necessary.
As to dimensionality, you have a system
M (d^2/dt^2) x + C (d/dt) x + K x = F(t,x) (1)
where x is the column vector [x1;x2] and F is the nonlinear force contribution due to the oblique springs. (In your case F is not an explicit function of t, but in general it could be). For dimensionless equations you need characteristic parameters m0,L0,t0. The characteristic mass can be one of the masses, say m0 = m1, and the characteristic time can be t0 = 1/w0 = sqrt(m0/k0), where k0 is a suitable choice from K, but that's it. Bringing in a parameter from C, say c0 = c1, provides a useful dimensionless constant, the damping ratio c0/(w0 m0) [ or c0/(2 w0 m0) as in your eqn (6) ], but no L0. For that you need the force term.
Introducing dimensionless time u, with t = u/w0, d/dt = w0 d/du gives
(M/m0) (d^2/du^2) x + C/(m0 w0) (d/du) x + K/(m0 w0^2) x = F(t,x)/(m0 w0^2) (2)
% all terms are proportional to length
There are a couple of ways to get a the characteristic length. If the force is defined by a specific value F0 as, for example, F = F0 cos(wt) then
L0 = F0/(m0 w0^2) (3)
That's not the case you have though. Instead there is a bunch of geometry and spring constants. However, the nonlinear force can be expressed as F = k L f(x2). Here k and L are a characteristic spring constant and distance for the nonlinear part, and f(x) is dimensionless function of x that varies within a few orders of magnitude around 1. Taking your orginal example you have
F = 2 k0new (h+x) (sqrt(h^2+a^2)/sqrt((h+x)^2+a^2) -1) (4.1)
% here k0new is not the same k0 as was used before
= 2 k0new h (1+x/h) (sqrt(h^2+a^2)/sqrt((h+x)^2+a^2) -1) (4.2)
An obvious choice is L0 = h and after going to x = hy with a dimensionless y, the final result is the dimensionless
(M/m0) (d^2/du^2) y + C/(m0 w0) (d/du) y + K/(m0 w0^2) y
= 2 k0new/(m0 w0^2) (1+y) (sqrt(h^2+a^2)/sqrt((h^2(1+y)^2+a^2) -1) (5)
Yu
on 11 Oct 2024
David Goodmanson
on 11 Oct 2024
Edited: David Goodmanson
on 12 Oct 2024
Hello Yu,
In going dimensionless, in all cases I divided both sides of an equation by a constant, the same way as you are doing. In my comment (edited to number the equations), to go from (1) to (2) you plug in
d/dt = w0 d/du
(u being dimensionless) everywhere in (1), then divide both sides of the resulting equation by (m0 w0^2). The result is (2), in which the leading term is (M/m0).
In that term (M/m0) you you don't have to worry about factors of w0 any more because division by (m0 w0^2) takes care of it.
To get from (2) to (5), after substituting (4.2) into to (2), you have
M/m0) (d^2/du^2) x + C/(m0 w0) (d/du) x + K/(m0 w0^2) x =
= (1/(m0 w0^2)) 2 k0new h (1+x/h) (sqrt(h^2+a^2)/sqrt((h+x)^2+a^2) -1)
If you put in x = hy (which sort of implicitly assumes L0 = h) and divide both sides of the resulting equation by h, you get (5), with all terms dimensionless. The right hand side of (5) is
2 (k0new/(m0 w0^2)) (1+y) (sqrt(h^2+a^2)/sqrt((h^2(1+y)^2+a^2) -1)
You are of course right that there are still dimensions in the sqrt. But there is a ratio of two square roots and that ratio is dimensinless. I see now that you are interested in having dimensionless parameters everywhere as much as possible.. So in
sqrt(h^2+a^2)/sqrt((h^2(1+y)^2+a^2)
you can divide top and bottom by h, which is the same as dividing by h^2 inside the sqrt, to arrive at
sqrt(1+(a/h)^2)/sqrt(((1+y)^2+(a/h)^2)
where now the result is expressed in terms of a new dimensionless parameter (a/h).
I not commenting on whether (4.1) [your original nonlear force expression] is correct in tems of the system you are describing. It is just a good example of the process.
Categories
Find more on Programming in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!













