MAST
generalized_alpha_transient_solver.h
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 #ifndef __mast__generalized_alpha_transient_solver__
21 #define __mast__generalized_alpha_transient_solver__
22 
23 // MAST includes
25 
26 
27 namespace MAST {
28 
29 
37  public:
39 
41 
47 
52 
57 
61  void update_coefficient(Real rho_infinity);
62 
63 
67  virtual void
68  set_element_data(const std::vector<libMesh::dof_id_type>& dof_indices,
69  const std::vector<libMesh::NumericVector<Real>*>& sols);
70 
75  virtual void
76  extract_element_sensitivity_data(const std::vector<libMesh::dof_id_type>& dof_indices,
77  const std::vector<libMesh::NumericVector<Real>*>& sols,
78  std::vector<RealVectorX>& local_sols);
79 
83  virtual void
85  (const std::vector<libMesh::dof_id_type>& dof_indices,
86  const std::vector<libMesh::NumericVector<Real>*>& sols);
87 
88 
95  virtual void
96  elem_calculations(bool if_jac,
97  RealVectorX& vec,
98  RealMatrixX& mat);
99 
100  protected:
101 
102  };
103 
104 }
105 
106 #endif // __mast__generalized_alpha_transient_solver__
virtual void elem_calculations(bool if_jac, RealVectorX &vec, RealMatrixX &mat)
performs the element calculations over elem, and returns the element vector and matrix quantities in ...
This class implements the Newmark solver for solution of a second-order ODE.
virtual void extract_element_sensitivity_data(const std::vector< libMesh::dof_id_type > &dof_indices, const std::vector< libMesh::NumericVector< Real > * > &sols, std::vector< RealVectorX > &local_sols)
provides the element with the sensitivity of transient data for calculations
void update_coefficient(Real rho_infinity)
Computes the value of coefficients basde on value of .
libMesh::Real Real
Matrix< Real, Dynamic, Dynamic > RealMatrixX
virtual void set_element_perturbed_data(const std::vector< libMesh::dof_id_type > &dof_indices, const std::vector< libMesh::NumericVector< Real > * > &sols)
provides the element with the transient data for calculations
Matrix< Real, Dynamic, 1 > RealVectorX
virtual void set_element_data(const std::vector< libMesh::dof_id_type > &dof_indices, const std::vector< libMesh::NumericVector< Real > * > &sols)
provides the element with the transient data for calculations
This class implements the generalized alpha method for solution of a second-order ODE...