MAST
time_domain_flutter_root.cpp
Go to the documentation of this file.
1 /*
2  * MAST: Multidisciplinary-design Adaptation and Sensitivity Toolkit
3  * Copyright (C) 2013-2019 Manav Bhatia
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2.1 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this library; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18  */
19 
20 
21 // MAST includes
23 
24 
27 { }
28 
29 
30 
33 { }
34 
35 
36 
37 void
39  const Complex num,
40  const Complex den,
41  const RealMatrixX& Bmat,
42  const ComplexVectorX& evec_right,
43  const ComplexVectorX& evec_left) {
44 
45  if (std::abs(den) > 0.) {
46 
47  root = num/den;
48  V = v_ref_val;
49  omega = std::imag(root);
50  }
51 
52  // calculate the modal participation vector
53  const unsigned int
54  nvals = (int)Bmat.rows();
55  eig_vec_right = evec_right;
56  eig_vec_left = evec_left;
58  k_q = Bmat * evec_right;
59  modal_participation.resize(nvals, 1);
60 
61  for (unsigned int i=0; i<nvals; i++)
62  modal_participation(i) = std::abs(std::conj(evec_right(i)) * k_q(i));
63 
65 }
66 
ComplexVectorX eig_vec_left
void init(const Real v_ref_val, const Complex num, const Complex den, const RealMatrixX &Bmat, const ComplexVectorX &evec_right, const ComplexVectorX &evec_left)
initializes the data
Matrix< Complex, Dynamic, 1 > ComplexVectorX
libMesh::Real Real
libMesh::Complex Complex
TimeDomainFlutterRoot()
default constructor
Matrix< Real, Dynamic, Dynamic > RealMatrixX
RealVectorX modal_participation
ComplexVectorX eig_vec_right
right and left eigenvevtors