1 Introduction

Constructions are often subjected to external forces that may affect their stability, occupants and contents. Over time, many catastrophes have been recorded in large cities throughout the world, such as earthquakes in Mexico City (1985) and Loma Prieta (1989), where the devastating damage rate could have been mitigated using seismic control technology [1, 2]. Seismic control technology increases the structure capability for energy dissipation through devices that are incorporated into the structure. In this way, main structural elements will not receive all the applied energy, which means less likelihood of collapsing. The use of passive devices such as structural dampers represents an advantage compared to other kinds of devices, since they do not need an external source of energy for their operation. Moreover, once a natural phenomenon occurs and excitates the structure, these control devices can be removed and replaced by new ones.

Finding the optimal damper location is undoubtedly an important task for structural control design. Some studies proposed a procedure to establish the optimal position regarding the transfer function. The transfer function is defined as a mathematical model that expresses the relations between the output variables (system response) and the input variables (external excitation). Being an intrinsic property of the system, it does not depend on the nature and magnitude of the external loading. Transfer functions provide a full description of the system dynamic behavior without taking into account the physical structure of the system [3]. Takewaki [4,5,6,7] proposed an efficient procedure to minimize the transfer function amplitude evaluated at the undamped fundamental frequency of the structure and subject to a constraint on the sum of the added viscous dampers. Takewaki and Uetani [8] considering the amplification of the response due to the ground surface developed a method for optimal damper placement in building structures. Aydin et al. [9] studied different objective functions to determine the optimal placement of added dampers; instead of measuring the amplitude of the transfer function at the top of the building, the authors chose the evaluation of the amplitude of the transfer function of the base shear force as an objective function. Aydin and Boduroglu [10] presented a study for the optimal location of X steel diagonal braces (SDBs) using the amplitude of the transfer function as the objective function and the stiffness as the design variable. Aydin [11] proposed a method for finding the location and optimal size of viscous dampers in planar steel building frames; the author used the transfer function evaluated in the undamped frequency and defined the coefficients of the dampers as the design variable. The work aimed to minimize the amplitude of the transfer function, subjected to the restriction of the sum of the coefficients of the added dampers. Martinez et al. [12, 13] proposed a procedure to optimally define the damping coefficients of viscous and hysteretic dampers and comply with the structural design requirements established by seismic design codes. Sonmez et al. [14] used an artificial bee colony algorithm (ABCA) to calculate the size and location of viscous dampers and to reduce the damage caused by an earthquake. The efficiency of the method was evaluated through the amplitude of the transfer function.

The effective operation of the dampers depends not only on their mechanism and capacity of dissipate energy but also on their location in the structure. Other works that aimed the optimal location and the use of hysteretic dampers were published by Uetani et al. [15] and presented an innovative structure system design for buildings with hysteretic and viscous dampers. The program was based on the gradient projection algorithm and has the advantage of being easily manipulated by the structural designer to satisfy the design codes. Uz and Hadi [16] proposed a design strategy based on genetic algorithms (GA) applied in hysteretic dampers in order to reduce damage from pounding in adjacent structures. The authors concluded that a decrease in the number of dampers improves the dynamic response of the structure regarding to an unnecessary amount of anti-seismic devices. Murakami et al. [17] proposed an optimization method to find the size and location of the hysteretic dampers; this method includes a variable adaptive step length considering that hysteretic dampers have nonlinear restoring-force characteristics. Pu et al. [18] proposed a new methodology to reduce the seismic response of the structure using hysteretic dampers, thus improving the structural equivalent damping ratio and stiffness.

The optimal damper design in structures has been one of the predominant challenges in seismic control. There have been numerous studies on viscoelastic dampers. A simplified sequential search algorithm was published [19,20,21], which maximizes the effect of added dampers. Kim and Bang [22] worked with viscoelastic dampers and tried to reduce the torsional response of an asymmetric structure by an optimal damper distribution when subjected to an earthquake. Xu et al. [23, 24] used an optimization method called the simplex method, which finds the optimal parameters of the viscoelastic dampers as well as the location. The results showed that the seismic response of a structure will be reduced after applying the proposed methodology. Main and Krenk [25] developed a methodology that facilitates the setting of the location and optimal size of viscous dampers; the formulation was later applied to a 10-story building model with viscous dampers. Lang et al. [26] demonstrated the effectiveness of nonlinear viscous dampers over linear dampers as a method of vibration control through the use of a new technique for calculating the location and optimal design of dampers in multi-degree of freedom (MDOF) systems. Alibrandi and Falsone [27] presented a method to obtain the number and placement of the viscous or viscoelastic damping necessary to reduce the seismic response; the method is based on the minimization of the Expected value of the stochastic Dissipated Power (EDP). Kandemir and Mazanoglu [28] investigated the optimal parameters and number of viscous dampers needed to prevent pounding between two adjacent buildings when a seismic event occurs. The authors conducted parametric studies with varying story number as well as stiffness and capacity of viscous dampers. There are a number of solutions applied in practice and proposed in the related literature with optimal locations using different types of dampers [18, 29,30,31,32,33,34].

This work calculates the optimal placement of structural dampers based on the methodology proposed by Takewaki [4], which was developed and applied to a shear building model controlled by viscous dampers. Besides applying this methodology to another type of damper, this work also presents a step-by-step explanation of the Takewaki method, not found in the literature to the best of authors knowledge. In addition, some of the equations were simplified to a better understanding of the procedure. In other words, the mathematical expressions for a shear building model with structural damping are adapted and detailed. This methodology is about minimizing the amplitude of the transfer function evaluated at the fundamental frequency subject to a constraint on the sum of the damper coefficients. Through a numerical example using MATLAB software (The Mathworks, Inc.), the initial and optimal amplitudes of the transfer function responses are compared for shear buildings varying between two to six floors, keeping the stiffness unchanged on each floor. The initial amplitude is calculated with equal damping coefficients per floor, and the optimal amplitude is calculated with the optimal distribution of the damping coefficients after applying the methodology.

2 Optimal damper placement

Optimal damper placement (ODP) is an inverse problem. It is a challenge to find the optimal damper location that minimizes the sum of the transfer function amplitudes evaluated at the undamped fundamental frequency of a structural system subjected to a constraint. This constraint regards to the sum of the damping coefficients of the added dampers. It should also be noted that because the present formulation addresses a general dynamical property (i.e., the amplitude of the transfer function), the results are general and are not influenced by the characteristics of input motions [4].

Structural damping is attributed to the hysteresis phenomenon associated with cyclic stress in elastic materials, and the energy loss per stress cycle is equal to the area inside the hysteresis loop [35]. Systems with structural damping and subjected to harmonic excitation can be considered as having viscous damping with the equivalent coefficient \(\left( {C_{\text{eq}} } \right)\).

$$C_{\text{eq}} = \frac{\alpha }{\pi \omega }$$
(1)

where \(\alpha\) is a constant frequency independent of harmonic oscillation and \(\omega\) denote a circular frequency. Thus, the differential equation of motion for a one degree of freedom (1 DOF) system can be written as:

$$m\ddot{u}(t) + \frac{\alpha }{\pi \omega }\dot{u}(t) + ku(t) = Ake^{i\omega t}$$
(2)

where \(m\) is the mass, \(k\) is the stiffness, and \(A\) is a constant of integration. Because \(\dot{u} = i{\kern 1pt} {\kern 1pt} \omega {\kern 1pt} {\kern 1pt} u\), Eq. (2) can be rewritten as

$$m\ddot{u}(t) + k(1 + i\gamma )u(t) = Ake^{i\omega t}$$
(3)

where

$$\gamma = \frac{\alpha }{{\pi {\kern 1pt} k}} = \frac{{C_{{{\text{e}}{\kern 1pt} {\text{q}}}} \cdot \omega }}{k}$$
(4)

\(\gamma\) is the structural damping factor, which can be rewritten as

$$\gamma = \frac{{2\zeta m\omega_{n} \omega }}{k} = 2\zeta \frac{\omega }{{\omega_{n} }} = 2\beta$$
(5)

where \(\zeta\) is the damping ratio of a viscous system, \(\omega_{n}\) is a natural frequency, and \(\beta\) is the damping coefficient. The quantity \(k(1 + 2i\beta )\) is the complex stiffness or complex damping. In this work, we assume that dampers connected to the main structure provide structural damping.

The mathematical formulations have been expressed for a three-story shear building model with structural dampers as shown in Fig. 1. Let \(M = \left\{ {\bar{m}_{1} ,{\kern 1pt} \,\bar{m}_{2} ,{\kern 1pt} {\kern 1pt} {\kern 1pt} \bar{m}{}_{3}} \right\}\) denote the masses of the story and \(K = \left\{ {\bar{k}_{1} ,{\kern 1pt} {\kern 1pt} \bar{k}_{2} ,{\kern 1pt} {\kern 1pt} \bar{k}{}_{3}} \right\}\) denote their stiffness. The design variables are the damping coefficient \(\beta = \left\{ {\beta_{1} ,{\kern 1pt} {\kern 1pt} \beta_{2} ,{\kern 1pt} {\kern 1pt} \beta {}_{3}} \right\}\) of the added structural dampers. It is also assumed here that the original structural damping is negligible compared with the damping of the added dampers. The equation of motion for the model shown in Fig. 1 when subjected to a base acceleration \(\ddot{u}_{g}\) may be written as:

$$\begin{aligned} \left[ {\begin{array}{ccc} {\bar{k}_{1} + \bar{k}_{2} } \hfill & { - \bar{k}_{2} } \hfill & 0 \hfill \\ { - \bar{k}_{2} } \hfill & {\bar{k}_{2} + \bar{k}_{3} } \hfill & { - \bar{k}_{3} } \hfill \\ 0 \hfill & { - \bar{k}_{3} } \hfill & {\bar{k}_{3} } \hfill \\ \end{array} } \right]\left\{ {\begin{array}{c} {u_{1} } \hfill \\ {u_{2} } \hfill \\ {u_{3} } \hfill \\ \end{array} } \right\} + 2i\left[ {\begin{array}{ccc} {\beta_{1} \bar{k}_{1} + \beta_{2} \bar{k}_{2} } \hfill & { - \beta_{2} \bar{k}_{2} } \hfill & 0 \hfill \\ { - \beta_{2} \bar{k}_{2} } \hfill & {\beta_{2} \bar{k}_{2} + \beta_{3} \bar{k}_{3} } \hfill & { - \beta_{3} \bar{k}_{3} } \hfill \\ 0 \hfill & { - \beta_{3} \bar{k}_{3} } \hfill & { - \beta_{3} \bar{k}_{3} } \hfill \\ \end{array} } \right]\left\{ {\begin{array}{c} {u_{1} } \hfill \\ {u_{2} } \hfill \\ {u_{3} } \hfill \\ \end{array} } \right\} + \hfill \\ \left[ {\begin{array}{ccc} {\bar{m}_{1} } \hfill & 0 \hfill & 0 \hfill \\ 0 \hfill & {\bar{m}_{2} } \hfill & 0 \hfill \\ 0 \hfill & 0 \hfill & {\bar{m}_{3} } \hfill \\ \end{array} } \right]\left\{ {\begin{array}{*{20}l} {\ddot{u}_{1} } \hfill \\ {\ddot{u}_{2} } \hfill \\ {\ddot{u}_{3} } \hfill \\ \end{array} } \right\} = - \left[ {\begin{array}{ccc} {\bar{m}_{1} } \hfill & 0 \hfill & 0 \hfill \\ 0 \hfill & {\bar{m}_{2} } \hfill & 0 \hfill \\ 0 \hfill & 0 \hfill & {\bar{m}_{3} } \hfill \\ \end{array} } \right]\left\{ {\begin{array}{*{20}l} 1 \hfill \\ 1 \hfill \\ 1 \hfill \\ \end{array} } \right\}\ddot{u}_{g} \hfill \\ \end{aligned}$$
(6)

where \(i\) is the imaginary unit, and the displacements of masses \(m_{i}\) are denoted by \(u_{i}\).

Fig. 1
figure 1

Three-story shear building model with added structural damper

The differential equation of motion, Eq. (6), is then transformed to the following form using the Fourier transform:

$$\left( {\left[ {\begin{array}{ccc} {\bar{k}_{1} + \bar{k}_{2} } \hfill & { - \bar{k}_{2} } \hfill & 0 \hfill \\ { - \bar{k}_{2} } \hfill & {\bar{k}_{2} + \bar{k}_{3} } \hfill & { - \bar{k}_{3} } \hfill \\ 0 \hfill & { - \bar{k}_{3} } \hfill & {\bar{k}_{3} } \hfill \\ \end{array} } \right] + 2i\left[ {\begin{array}{ccc} {\beta_{1} \bar{k}_{1} + \beta_{2} \bar{k}_{2} } \hfill & { - \beta_{2} \bar{k}_{2} } \hfill & 0 \hfill \\ { - \beta_{2} \bar{k}_{2} } \hfill & {\beta_{2} \bar{k}_{2} + \beta_{3} \bar{k}_{3} } \hfill & { - \beta_{3} \bar{k}_{3} } \hfill \\ 0 \hfill & { - \beta_{3} \bar{k}_{3} } \hfill & {\beta_{3} \bar{k}_{3} } \hfill \\ \end{array} } \right] - \omega^{2} \left[ {\begin{array}{*{20}l} {\bar{m}_{1} } \hfill & 0 \hfill & 0 \hfill \\ 0 \hfill & {\bar{m}_{2} } \hfill & 0 \hfill \\ 0 \hfill & 0 \hfill & {\bar{m}_{3} } \hfill \\ \end{array} } \right]} \right)\left\{ {\begin{array}{*{20}l} {U_{1} \left( \omega \right)} \hfill \\ {U_{2} \left( \omega \right)} \hfill \\ {U_{3} \left( \omega \right)} \hfill \\ \end{array} } \right\} = - \left[ {\begin{array}{*{20}l} {\bar{m}_{1} } \hfill & 0 \hfill & 0 \hfill \\ 0 \hfill & {\bar{m}_{2} } \hfill & 0 \hfill \\ 0 \hfill & 0 \hfill & {\bar{m}_{3} } \hfill \\ \end{array} } \right]\left\{ {\begin{array}{*{20}l} 1 \hfill \\ 1 \hfill \\ 1 \hfill \\ \end{array} } \right\}\ddot{U}_{g}$$
(7)

where \(U_{1} (\omega )\), \(U_{2} (\omega )\), \(U_{3} (\omega )\), and \(\ddot{U}_{g} (\omega )\) denote the Fourier transforms of \(u_{1}\), \(u_{2}\), \(u_{3}\), and \(\ddot{u}_{g}\), respectively.

The Fourier transforms of the relative nodal displacements \(d_{1} = u_{1}\), \(d_{2} = u_{2} - u_{1}\), and \(d_{3} = u_{3} - u_{2}\) can be expressed in terms of \(U_{1} (\omega )\), \(U_{2} (\omega )\), and \(U_{3} (\omega )\), respectively, by

$$\left\{ {\begin{array}{*{20}l} {\delta_{1} \left( \omega \right)} \hfill \\ {\delta_{2} \left( \omega \right)} \hfill \\ {\delta_{3} \left( \omega \right)} \hfill \\ \end{array} } \right\} = \left[ {\begin{array}{*{20}l} 1 \hfill & {{\kern 1pt} 0} \hfill & 0 \hfill \\ { - \;1} \hfill & {{\kern 1pt} 1} \hfill & 0 \hfill \\ {{\kern 1pt} 0} \hfill & { - \;1} \hfill & 1 \hfill \\ \end{array} } \right]\left\{ {\begin{array}{*{20}l} {U_{1} \left( \omega \right)} \hfill \\ {U_{2} \left( \omega \right)} \hfill \\ {U_{3} \left( \omega \right)} \hfill \\ \end{array} } \right\}$$
(8)

From Eq. (8), the transfer function of interstory drifts can be calculated.

New complex-value quantities defined by Takewaki [4] as \(\hat{U}_{1}\), \(\hat{U}_{2}\), and \(\hat{U}_{3}\) can be written as:

$$\hat{U}_{1} = \frac{{U_{1} \left( {\omega_{1} } \right)}}{{\ddot{U}_{g} \left( {\omega_{1} } \right)}}\quad \hat{U}_{2} = \frac{{U_{2} \left( {\omega_{1} } \right)}}{{\ddot{U}_{g} \left( {\omega_{1} } \right)}}\quad \hat{U}_{3} = \frac{{U_{3} \left( {\omega_{1} } \right)}}{{\ddot{U}_{g} \left( {\omega_{1} } \right)}}$$
(9)

In Eq. (9), \(\hat{U}_{i}\) indicates the resonant amplitude of the floor displacement at the fundamental circular frequency and represents the value such that \(\omega_{1}\) is substituted in the frequency response function obtained as \(U_{i} (\omega )\) after substituting \(\ddot{U}_{g} (\omega ) = 1\) in Eq. (7). New complex-value quantities are defined by \(\hat{\delta }_{1} = \hat{U}_{1}\), \(\hat{\delta }_{2} = \hat{U}_{2} - \hat{U}_{1}\) and \(\hat{\delta }_{3} = \hat{U}_{3} - \hat{U}_{2}\), and the substitution of Eq. (9) into (7) with \(\omega = \omega_{1}\) provides

$$A_{H} \left\{ {\begin{array}{*{20}c} {\hat{U}_{1} } \\ {\hat{U}_{2} } \\ {\hat{U}_{3} } \\ \end{array} } \right\} = - \left\{ {\begin{array}{*{20}c} {\bar{m}_{1} } \\ {\bar{m}_{2} } \\ {\bar{m}_{3} } \\ \end{array} } \right\},\quad \to \quad A_{H} {\kern 1pt} \hat{U}\left( {\omega_{1} } \right) = - Mr$$
(10)

where \(M\) is the mass vector, \(r\) is the influence vector in terms of the direction of the base acceleration, and \(A_{H}\) is the transfer function matrix that also includes the design variables \(\left( {\bar{\beta }_{{{\kern 1pt} i}} } \right)\) expressed as

$$A_{H} = \left[ {\begin{array}{ccc} {k_{1} \left( {1 + 2\bar{\beta }_{1} i} \right) + k_{2} \left( {1 + 2\bar{\beta }_{2} i} \right) - \omega_{1}^{2} \bar{m}_{1} } \hfill & { - k_{2} \left( {1 + 2\bar{\beta }_{2} i} \right)} \hfill & 0 \hfill \\ { - k_{2} \left( {1 + 2\bar{\beta }_{2} i} \right)} \hfill & {k_{2} \left( {1 + 2\bar{\beta }_{2} i} \right) + k_{3} \left( {1 + 2\bar{\beta }_{3} i} \right) - \omega_{1}^{2} \bar{m}_{2} } \hfill & { - k_{3} \left( {1 + 2\bar{\beta }_{3} i} \right)} \hfill \\ 0 \hfill & { - k_{3} \left( {1 + 2\bar{\beta }_{3} i} \right)} \hfill & {k_{3} \left( {1 + 2\bar{\beta }_{3} i} \right) - \omega_{1}^{2} \bar{m}_{3} } \hfill \\ \end{array} } \right]$$
(11)

From Eq. (10), the transfer function vector of the displacements evaluated at the fundamental frequency of the structure can be written as follows:

$$\hat{U}\left( {\omega_{1} } \right) = - A_{H}^{ - 1} M{\kern 1pt} r$$
(12)

2.1 Optimal damper placement criteria

The methodology applied in this work aims to minimize the amplitude of the transfer function after optimal distribution of the damping coefficients, which means to decrease the sum of the relative floor displacement. The presented method in this paper proposed by Takewaki [4] automatically finds the optimal placement of the added dampers. For this model, the problem of optimal damper placement may be described as

$$V = \sum\limits_{i = 1}^{3} {\left| {\hat{\delta }_{i} (\beta )} \right|}$$
(13)

where \(V\) represents the global flexibility, and its minimization is preferred from the view of performance-based design. This methodology is subject to a constraint on the sum of the damping coefficients of the added dampers by

$$\sum\limits_{i = 1}^{3} {\beta_{i} = \overline{W} } \quad (\bar{W}:\;{\text{specified}}\;{\text{value}})$$
(14)

The optimality criteria for the optimal damper problem can be derived using the Lagrange multipliers method. The Lagrangian \(L\) for this problem may be written as

$$L\left( {\beta ,\lambda } \right) = \sum\limits_{i = 1}^{3} {\left| {\hat{\delta }_{i} (\beta )} \right|} + \lambda \left( {\sum\limits_{i = 1}^{3} {\beta_{i} - \overline{W} } } \right)$$
(15)

The optimality criteria for the global flexibility \(V\) may be derived from the stationarity conditions of \(L(\beta ,\lambda )\) with respect to \(\beta\) and \(\lambda\) as

$$\left( {\sum\limits_{i = 1}^{3} {\left| {\hat{\delta }_{i} } \right|} } \right)_{,j} + \lambda = 0\quad {\kern 1pt} (j = 1,\;2,\;3)$$
(16)
$$\sum\limits_{i = 1}^{3} {\beta_{i} - \overline{W} = 0}$$
(17)

The partial differentiation with respect to \(\beta_{j}\) is indicated by \(\left( \cdot \right),_{j}\). If \(\beta_{j} = 0\) or \(\beta_{j} = \bar{W}\), then Eq. (16) must be rewritten as follows:

$$\begin{aligned} \left( {\sum\limits_{i = 1}^{3} {\left| {\hat{\delta }_{i} } \right|} } \right)_{,j} + \lambda \ge 0\quad {\text{for}}\quad {\kern 1pt} \beta_{j} = 0 \hfill \\ \left( {\sum\limits_{i = 1}^{3} {\left| {\hat{\delta }_{i} } \right|} } \right)_{,j} + \lambda \le 0{\kern 1pt} \quad {\text{for}}\quad \beta_{j} = \bar{W} \hfill \\ \end{aligned}$$
(18)

In the construction of the optimality criteria, the term \(\lambda\) is used in Eqs. (15) and (18), and it may be convenient in the creation of a systematic solution algorithm to express it without that parameter. Thus, another expression to define the optimality criteria is given by the following:

$$\gamma_{1} = \frac{{\left( {\sum\nolimits_{i = 1}^{3} {\left| {\hat{\delta }_{i} } \right|} } \right)_{,2} }}{{\left( {\sum\nolimits_{i = 1}^{3} {\left| {\hat{\delta }_{i} } \right|} } \right)_{,1} }}\quad \gamma_{2} = \frac{{\left( {\sum\nolimits_{i = 1}^{3} {\left| {\hat{\delta }_{i} } \right|} } \right)_{,3} }}{{\left( {\sum\nolimits_{i = 1}^{3} {\left| {\hat{\delta }_{i} } \right|} } \right)_{,1} }}$$
(19)

where \(\gamma\) is an optimality index for each floor j. An optimal solution is achieved when the distribution of the dampers results in all values \(\gamma_{j}\) tending to the unit [36].

The solution of the algorithm is achieved using the differentiation of Eq. (10) with respect to a design variable \(\left( {\beta_{{{\kern 1pt} j}} } \right)\) as follows:

$$A_{H,j} \left\{ {\begin{array}{*{20}c} {\hat{U}_{1} } \\ {\hat{U}_{2} } \\ {\hat{U}_{3} } \\ \end{array} } \right\} + A_{H} \left\{ {\begin{array}{*{20}c} {\hat{U}_{1,j} } \\ {\hat{U}_{2,j} } \\ {\hat{U}_{3,j} } \\ \end{array} } \right\} = 0$$
(20)

where the matrix \(A_{H,j}\) in Eq. (20) is expressed as

$$A_{H,1} = 2i\left[ {\begin{array}{*{20}c} {\bar{k}_{1} } & 0 & 0 \\ 0 & 0 & 0 \\ 0 & 0 & 0 \\ \end{array} } \right]{\kern 1pt} \quad A_{H,2} = 2i\left[ {\begin{array}{*{20}c} {{\kern 1pt} \bar{k}_{2} } & { - \bar{k}_{2} } & 0 \\ { - \bar{k}_{2} } & {\bar{k}_{2} } & 0 \\ {{\kern 1pt} 0} & 0 & 0 \\ \end{array} } \right]{\kern 1pt} \quad A_{H,3} = 2i\left[ {\begin{array}{*{20}c} 0 & {{\kern 1pt} 0} & 0 \\ 0 & {\bar{k}_{3} } & { - \bar{k}_{3} } \\ 0 & { - \bar{k}_{3} } & {\bar{k}_{3} } \\ \end{array} } \right]$$
(21)

The first derivatives of \(\hat{U}_{1}\), \(\hat{U}_{2}\) and \(\hat{U}_{3}\) from Eq. (20), since \(A_{H}\) is regular, can be written as

$$\left\{ {\begin{array}{*{20}l} {\hat{U}_{1,j} } \hfill \\ {\hat{U}_{2,j} } \hfill \\ {\hat{U}_{3,j} } \hfill \\ \end{array} } \right\} = - A_{H}^{ - 1} A_{H,j} \left\{ {\begin{array}{*{20}l} {\hat{U}_{1} } \hfill \\ {\hat{U}_{2} } \hfill \\ {\hat{U}_{3} } \hfill \\ \end{array} } \right\}$$
(22)

where Eq. (22) represents the first-order sensitivity of the transfer function vector.

The first derivate of the interstory drift by substituting \(\hat{\delta }_{1} = \hat{U}_{1}\), \(\hat{\delta }_{2} = \hat{U}_{2} - \hat{U}_{1}\) and \(\hat{\delta }_{3} = \hat{U}_{3} - \hat{U}_{2}\), can be denoted as

$$\left\{ {\begin{array}{*{20}l} {\hat{\delta }_{1,j} } \hfill \\ {\hat{\delta }_{2,j} } \hfill \\ {\hat{\delta }_{3,j} } \hfill \\ \end{array} } \right\} = - TA_{H}^{ - 1} A_{H,j} T^{ - 1} \left\{ {\begin{array}{*{20}l} {\hat{\delta }_{1} } \hfill \\ {\hat{\delta }_{2} } \hfill \\ {\hat{\delta }_{3} } \hfill \\ \end{array} } \right\},\quad T = \left[ {\begin{array}{*{20}l} 1 \hfill & 0 \hfill & 0 \hfill \\ { - \;1} \hfill & 1 \hfill & 0 \hfill \\ 0 \hfill & { - \;1} \hfill & 1 \hfill \\ \end{array} } \right]$$
(23)

The deformation-displacement transformation matrix is indicated by \(T\), and \(\hat{\delta }_{i}\) may be expressed as

$$\hat{\delta }_{i} = Re\left[ {\hat{\delta }_{i} } \right] + iIm\left[ {\hat{\delta }_{i} } \right]$$
(24)

The first derivative of \(\hat{\delta }_{i}\) may be written as

$$\hat{\delta }_{i,j} = \left( {Re\left[ {\hat{\delta }_{i} } \right]} \right)_{,j} + i\left( {Im\left[ {\hat{\delta }_{i} } \right]} \right)_{,j}$$
(25)

The absolute value of \(\hat{\delta }_{i}\) is defined by

$$\left| {\hat{\delta }_{i} } \right| = \sqrt {\left( {Re\left[ {\hat{\delta }_{i} } \right]} \right)^{2} + \left( {Im\left[ {\hat{\delta }_{i} } \right]} \right)^{2} }$$
(26)

The first derivative of \(\left| {\hat{\delta }_{i} } \right|\) can be written as

$$\left| {\hat{\delta }_{i} } \right|_{,j} = \frac{1}{{\left| {\hat{\delta }_{i} } \right|}}\left\{ {Re\left[ {\hat{\delta }_{i} } \right]\left( {Re\left[ {\hat{\delta }_{i} } \right]} \right)_{,j} + Im\left[ {\hat{\delta }_{i} } \right]\left( {Im\left[ {\hat{\delta }_{i} } \right]} \right)_{,j} } \right\}$$
(27)

where \(\left( {Re\left[ {\hat{\delta }_{i} } \right]} \right)_{,j}\) and \(\left( {Im\left[ {\hat{\delta }_{i} } \right]} \right)_{,j}\) are calculated from Eq. (23).

According to the \(\gamma\) variation defined in Eq. (19), the distribution of the damping coefficients is based on an iterative process that considers the relation of relative displacements. The linear increments \(\Delta \gamma_{1}\) and \(\Delta \gamma_{2}\) may be expressed as

$$\begin{aligned} \Delta \gamma_{1} = \left( {\frac{1}{{B_{1} }}\frac{{\partial B_{2} }}{\partial \beta } - \frac{{B_{2} }}{{B_{1}^{2} }}\frac{{\partial B_{1} }}{\partial \beta }} \right)\Delta \beta = \frac{1}{{B_{1} }}\left( {\frac{{\partial B_{2} }}{\partial \beta } - \frac{{\partial B_{1} }}{\partial \beta }\gamma_{1} } \right)\Delta \beta \hfill \\ \Delta \gamma_{2} = \left( {\frac{1}{{B_{1} }}\frac{{\partial B_{3} }}{\partial \beta } - \frac{{B_{3} }}{{B_{1}^{2} }}\frac{{\partial B_{1} }}{\partial \beta }} \right)\Delta \beta = \frac{1}{{B_{1} }}\left( {\frac{{\partial B_{3} }}{\partial \beta } - \frac{{\partial B_{1} }}{\partial \beta }\gamma_{2} } \right)\Delta \beta \hfill \\ \end{aligned}$$
(28)

where \(B_{1}\), \(B_{2}\), and \(B_{3}\) are defined as

$$B_{1} = \left( {\sum\limits_{i = 1}^{3} {\left| {\hat{\delta }_{i} } \right|} } \right)_{,1} \quad B_{2} = \left( {\sum\limits_{i = 1}^{3} {\left| {\hat{\delta }_{i} } \right|} } \right)_{,2} \quad B_{3} = \left( {\sum\limits_{i = 1}^{3} {\left| {\hat{\delta }_{i} } \right|} } \right)_{,3}$$
(29)

Due to the constraint in Eq. (17), the increments \(\Delta \beta\) must satisfy the following relation:

$$\sum\limits_{i = 1}^{3} {\Delta \beta_{i} = 0}$$
(30)

The following set of simultaneous linear equations with respect to \(\Delta \beta\) is arranged from Eqs. (28) and (30):

$$\left[ {\begin{array}{ccc} {\frac{1}{{B_{1} }}\left( {\frac{{\partial B_{2} }}{{\partial \beta_{1} }} - \frac{{\partial B_{1} }}{{\partial \beta {}_{1}}}\gamma_{1} } \right)} \hfill & {\frac{1}{{B_{1} }}\left( {\frac{{\partial B_{2} }}{{\partial \beta_{2} }} - \frac{{\partial B_{1} }}{{\partial \beta {}_{2}}}\gamma_{1} } \right)} \hfill & {\frac{1}{{B_{1} }}\left( {\frac{{\partial B_{2} }}{{\partial \beta_{3} }} - \frac{{\partial B_{1} }}{{\partial \beta {}_{3}}}\gamma_{1} } \right)} \hfill \\ {\frac{1}{{B_{1} }}\left( {\frac{{\partial B_{3} }}{{\partial \beta_{1} }} - \frac{{\partial B_{1} }}{{\partial \beta_{1} }}\gamma_{2} } \right)} \hfill & {\frac{1}{{B_{1} }}\left( {\frac{{\partial B_{3} }}{{\partial \beta_{2} }} - \frac{{\partial B_{1} }}{{\partial \beta_{2} }}\gamma_{2} } \right)} \hfill & {\frac{1}{{B_{1} }}\left( {\frac{{\partial B_{3} }}{{\partial \beta_{3} }} - \frac{{\partial B_{1} }}{{\partial \beta_{3} }}\gamma_{2} } \right)} \hfill \\ 1 \hfill & 1 \hfill & 1 \hfill \\ \end{array} } \right]\left\{ {\begin{array}{*{20}l} {\Delta \beta_{1} } \hfill \\ {\Delta \beta_{2} } \hfill \\ {\Delta \beta_{3} } \hfill \\ \end{array} } \right\} = \left\{ {\begin{array}{*{20}l} {\Delta \gamma_{1} } \hfill \\ {\Delta \gamma_{2} } \hfill \\ 0 \hfill \\ \end{array} } \right\}$$
(31)

Equation (31) indicates that the optimal distribution of damping coefficient \(\left( {\Delta \beta_{i} } \right)\) can be found once \(\Delta \gamma_{i}\) is given and the left-hand side of the equation is evaluated. The increments \(\Delta \gamma_{i} = {{\left( {1 - \gamma_{0i} } \right)} \mathord{\left/ {\vphantom {{\left( {1 - \gamma_{0i} } \right)} N}} \right. \kern-0pt} N}\) where \(N\) is the step number, and \(\gamma_{0i}\) denotes the initial value of \(\gamma_{i}\) obtained from Eq. (19). If one of the \(\beta_{i}\) values vanishes, it is necessary to check whether the ratio \(\gamma_{i - 1}\) corresponding to \(\beta_{i} = 0\) satisfies the condition \(\gamma_{i - 1} \le 1\).

Regular repetitive application of Eq. (31) in the range \(\left( {\gamma_{0i} ,{\kern 1pt} {\kern 1pt} 1} \right)\) will provide a definite optimal distribution of damping coefficient \(\beta = \beta_{i} + \Delta \beta_{i}\).

The values of \({{\partial B_{1} } \mathord{\left/ {\vphantom {{\partial B_{1} } {\partial \beta }}} \right. \kern-0pt} {\partial \beta }}_{i}\), \({{\partial B_{2} } \mathord{\left/ {\vphantom {{\partial B_{2} } {\partial \beta }}} \right. \kern-0pt} {\partial \beta }}_{i}\) and \({{\partial B_{3} } \mathord{\left/ {\vphantom {{\partial B_{3} } {\partial \beta }}} \right. \kern-0pt} {\partial \beta }}_{i}\) in Eq. (31) can be obtained from partial differentiation of Eq. (27) with respect to \(\beta_{k}\) as

$$\left| {\hat{\delta }_{i} } \right|_{,jk} = \frac{1}{{\left| {\hat{\delta }_{i} } \right|^{2} }}\left( {\left| {\hat{\delta }_{i} } \right|\left\{ \begin{aligned} \left( {\text{Re} \left[ {\hat{\delta }_{i} } \right]} \right)_{,k} \left( {\text{Re} \left[ {\hat{\delta }_{i} } \right]} \right)_{,j} + \text{Re} \left[ {\hat{\delta }_{i} } \right]\left( {\text{Re} \left[ {\hat{\delta }_{i} } \right]} \right)_{,jk} \hfill \\ + \left( {\text{Im} \left[ {\hat{\delta }_{i} } \right]} \right)_{,k} \left( {\text{Im} \left[ {\hat{\delta }_{i} } \right]} \right)_{,j} + \text{Im} \left[ {\hat{\delta }_{i} } \right]\left( {\text{Im} \left[ {\hat{\delta }_{i} } \right]} \right)_{,jk} \hfill \\ \end{aligned} \right\} - \left| {\hat{\delta }_{i} } \right|_{,k} \left\{ \begin{aligned} \text{Re} \left[ {\hat{\delta }_{i} } \right]\left( {\text{Re} \left[ {\hat{\delta }_{i} } \right]} \right)_{,j} \hfill \\ + \text{Im} \left[ {\hat{\delta }_{i} } \right]\left( {\text{Im} \left[ {\hat{\delta }_{i} } \right]} \right)_{,j} \hfill \\ \end{aligned} \right\}} \right)$$
(32)

Then, \({{\partial B_{1} } \mathord{\left/ {\vphantom {{\partial B_{1} } {\partial \beta }}} \right. \kern-0pt} {\partial \beta }}_{i}\), \({{\partial B_{2} } \mathord{\left/ {\vphantom {{\partial B_{2} } {\partial \beta }}} \right. \kern-0pt} {\partial \beta }}_{i}\) and \({{\partial B_{3} } \mathord{\left/ {\vphantom {{\partial B_{3} } {\partial \beta }}} \right. \kern-0pt} {\partial \beta }}_{i}\) may be expressed as follows:

$$\frac{{\partial B_{1} }}{{\partial \beta_{1} }} = \left\{ {\left| {\hat{\delta }_{1} } \right|_{,11} + \left| {\hat{\delta }_{2} } \right|_{,11} + \left| {\hat{\delta }_{3} } \right|_{,11} } \right\}\quad \frac{{\partial B_{1} }}{{\partial \beta_{2} }} = \left\{ {\left| {\hat{\delta }_{1} } \right|_{,12} + \left| {\hat{\delta }_{2} } \right|_{,12} + \left| {\hat{\delta }_{3} } \right|_{,12} } \right\}\quad \frac{{\partial B_{1} }}{{\partial \beta_{3} }} = \left\{ {\left| {\hat{\delta }_{1} } \right|_{,13} + \left| {\hat{\delta }_{2} } \right|_{,13} + \left| {\hat{\delta }_{3} } \right|_{,13} } \right\}$$
(33)
$$\frac{{\partial B_{2} }}{{\partial \beta_{1} }} = \left\{ {\left| {\hat{\delta }_{1} } \right|_{,21} + \left| {\hat{\delta }_{2} } \right|_{,21} + \left| {\hat{\delta }_{3} } \right|_{,21} } \right\}{\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} \frac{{\partial B_{2} }}{{\partial \beta_{2} }} = \left\{ {\left| {\hat{\delta }_{1} } \right|_{,22} + \left| {\hat{\delta }_{2} } \right|_{,22} + \left| {\hat{\delta }_{3} } \right|_{,22} } \right\}{\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} \frac{{\partial B_{2} }}{{\partial \beta_{3} }} = \left\{ {\left| {\hat{\delta }_{1} } \right|_{,23} + \left| {\hat{\delta }_{2} } \right|_{,23} + \left| {\hat{\delta }_{3} } \right|_{,23} } \right\}$$
(34)
$$\frac{{\partial B_{3} }}{{\partial \beta_{1} }} = \left\{ {\left| {\hat{\delta }_{1} } \right|_{,31} + \left| {\hat{\delta }_{2} } \right|_{,31} + \left| {\hat{\delta }_{3} } \right|_{,31} } \right\}\quad {\kern 1pt} \frac{{\partial B_{3} }}{{\partial \beta_{2} }} = \left\{ {\left| {\hat{\delta }_{1} } \right|_{,32} + \left| {\hat{\delta }_{2} } \right|_{,32} + \left| {\hat{\delta }_{3} } \right|_{,32} } \right\}\quad {\kern 1pt} \frac{{\partial B_{3} }}{{\partial \beta_{3} }} = \left\{ {\left| {\hat{\delta }_{1} } \right|_{,33} + \left| {\hat{\delta }_{2} } \right|_{,33} + \left| {\hat{\delta }_{3} } \right|_{,33} } \right\}$$
(35)

where \(\left( {\text{Re} \left[ {\hat{\delta }_{i} } \right]} \right)_{,jk}\) and \(\left( {\text{Im} \left[ {\hat{\delta }_{i} } \right]} \right)_{,jk}\) in Eq. (32) can be obtained from

$$\left\{ {\begin{array}{*{20}l} {\hat{\delta }_{1,jk} } \hfill \\ {\hat{\delta }_{2,jk} } \hfill \\ {\hat{\delta }_{3,jk} } \hfill \\ \end{array} } \right\} = TA_{H}^{ - 1} A_{H,k} A_{H}^{ - 1} A_{H,j} T^{ - 1} \left\{ {\begin{array}{*{20}l} {\hat{\delta }_{1} } \hfill \\ {\hat{\delta }_{2} } \hfill \\ {\hat{\delta }_{3} } \hfill \\ \end{array} } \right\} - TA_{H}^{ - 1} A_{H,j} T^{ - 1} \left\{ {\begin{array}{*{20}l} {\hat{\delta }_{1,k} } \hfill \\ {\hat{\delta }_{2,k} } \hfill \\ {\hat{\delta }_{3,k} } \hfill \\ \end{array} } \right\}$$
(36)

which is derived by differentiating Eq. (23) with respect to \(\beta_{k}\) and using the relation \(A_{H,k}^{ - 1} = - A_{H}^{ - 1} A_{H,k} A_{H}^{ - 1}\). Since \(A_{H}\) is a linear function of \(\beta\), \(A_{H,jk}\) becomes a null matrix for all \(j\) and \(k\).

3 Numerical example

In this work it is defined the optimal placement of structural dampers to minimize the sum of amplitudes of the transfer functions evaluated at the undamped fundamental frequency of a shear frame subjected to a constraint on the sum of the damping coefficients of added dampers. For each floor, a damping coefficient \(\left( {\beta_{i} } \right)\) of the added dampers is defined as a design variable; thus, the number of floors represents the number of design variables.

A total of five shear frames with structural damping between two to six floors are considered, and the optimal placement is obtained based on the method developed by Takewaki [4]. Through the amplitude of the transfer function and global flexibility concept (the sum of the amplitude of the transfer function of the model \(V = \sum\nolimits_{i = 1}^{n} {\left| {\hat{\delta }_{i} (\beta )} \right|}\)), the efficiency of the method can be observed, comparing the initial flexibility \(\left( {V_{I} } \right)\) to the optimal flexibility \(\left( {V_{O} } \right)\). The model properties are given in Table 1. \(\left\{ {m_{1} \ldots m_{6} } \right\}\) are the masses, \(\left\{ {k_{1} \ldots k_{6} } \right\}\) are the spring stiffness, and \(\left\{ {\beta_{1} \ldots \beta_{6} } \right\}\) are the damping coefficients. The values of the masses and spring stiffness are equally distributed among floors and were taken from Takewaki [4]. The initial value damping coefficient \(\beta = 0.20\) is suggested in this work. It also assumed here that the system intrinsic structural damping is negligible compared with the damping of the additional dampers.

Table 1 Model properties

Table 2 shows the undamped fundamental circular frequency \(\left( {\omega_{1} } \right)\) for each model evaluated. The target values of \(\gamma\) are \(\gamma_{F1} = \cdots = \gamma_{F6} = 1.0\), and the number of steps in the redesign process is \(N = 75\), where \(N\) is used to calculate the increments \(\Delta \gamma_{i} = {{\left( {1 - \gamma_{0i} } \right)} \mathord{\left/ {\vphantom {{\left( {1 - \gamma_{0i} } \right)} N}} \right. \kern-0pt} N}\) (see Eq. (31)).

Table 2 Undamped fundamental circular frequency

The initial values of \(\gamma\), the relationships between the relative displacements defined in Eq. (19), are presented in Table 3.

Table 3 Initial values of \(\left\{ {\gamma_{j} } \right\}\)

4 Results

The obtained results, by the MATLAB code of the optimization procedure, are presented in Table 4. A total of five shear building models were evaluated, and the optimal distribution of the damping coefficients was calculated. Horizontally in Table 4, the amount of damping required for each floor is presented, and the last column verifies the constraint on the sum of the damping coefficients of added dampers as explained in detail in Eq. (14). The 2 DOF model result revealed lower amplitude of the transfer function (stage—optimal, see Table 5) and global flexibility (stage—optimal, see Table 5) of the structure, which occurs when all damping devices are placed on the first floor. Concerning the 6 DOF model, the smallest amplitude of the transfer function (stage—optimal, see Table 5) is obtained by damper location on the first three floors and none on the last three floors, as shown in Table 4.

Table 4 Distribution of structural damping coefficients
Table 5 Transfer function amplitude for the initial design and optimal design

The initial and optimal amplitudes of the transfer function evaluated at the undamped fundamental frequency of a structural system are presented in Table 5. It is important to note that for the calculation of the initial amplitude of the transfer function, a uniform damping was considered in each floor. The calculation of the optimal amplitude also used the distribution, presented in Table 4. In the last two lines of Table 5, it is shown the initial flexibility \((V_{I} )\) and optimal flexibility \((V_{O} )\); it was observed that there was a decrease in the transfer function amplitudes in all models when the damping coefficients were optimally distributed.

In Figs. 2, 3, 4, 5 and 6, the evolution of the initial and optimal amplitudes of the transfer function in the range of 0–50 rad/s is presented. There was a significant reduction in the transfer function amplitudes in all floors corresponding to the models evaluated, when the optimal distribution of the damping coefficients was considered.

Fig. 2
figure 2

Initial and optimal design—2 DOF

Fig. 3
figure 3

Initial and optimal design—3 DOF

Fig. 4
figure 4

Initial and optimal design—4 DOF

Fig. 5
figure 5

Initial and optimal design—5 DOF

Fig. 6
figure 6

Initial and optimal design—6 DOF

The results demonstrated the importance of defining the optimal location of dampers in a building. It is not the best way to fill the building with damping devices; it is more indicated to smartly place the dampers. When the stiffness is equally distributed among floors, the results suggested to distribute the dampers mainly from half of the building, toward the first levels.

The efficiency of the Takewaki’s method has been verified by Whittle et al. [36]. The authors conducted a review of five different damper placement methodologies. A comparative and detailed study was carried out in a ten-story, steel moment-resisting frame. Methods using simple empirical rules and advanced methods, including Takewaki’s method, were performed. The results showed that the Takewaki and Lavan methods were the most efficient. An advantage of Takewaki’s method is to require only minimal inputs and operate independent from ground motions. The results extracted from Wittle et al.’s paper are presented in Table 6.

Table 6 Maximum of peak interstory drifts in regular building [36]

Where DBE and MCE are seismic design parameters for building code design.

5 Conclusions

In this paper, a systematic procedure to find the optimal placement of structural dampers has been examined; shear building models were evaluated with device placement between two and six floors. The procedure was based on the method by Takewaki that proposed an optimal distribution to viscous devices. Mathematical equations were adapted and detailed for a system with structural damping devices.

Through this investigation, it has been shown that the random or equal distribution of dampers among the floors may result in a loss of performance. Table 4 shows the optimal distribution of the damping coefficients for the analyzed models, and it was evidenced that for a building with equal stiffness distribution among the floors, it is efficient to locate the dampers from the middle height of the building to the first level. This was also verified by comparing the initial and optimal amplitude of the transfer function presented in Table 5. Regarding to building and civil construction, cost is a relevant issue to be considered in the analysis of the feasibility of the proposed structural control system as well as materials and accessories. Therefore, it is very important and helpful to structural designers to be able to define, under high standard criteria, not only the quantity but also the location of dampers.

The initial and optimal amplitudes of the transfer function were also compared, as shown in Figs. 2, 3, 4, 5 and 6, and the smaller amplitude of the transfer function in a frequency range of 0–50 rad/s was obtained when the damping coefficients were distributed in the first levels. Analyzing the results for the 6 DOF model (Fig. 6), it is possible to observe that the initial and optimal amplitudes in the first three levels are similar. The effect of the optimal distribution of the damping coefficients is verified in the higher levels, where the difference between the amplitudes is higher. This investigation will help structural designers define a best location of structural damping devices to maximize its efficiency and protect structures from possible collapse in the case of occurrence excessive vibrations on the structure.