condensed_eigen_system.h
Go to the documentation of this file.
1 // The libMesh Finite Element Library.
2 // Copyright (C) 2002-2014 Benjamin S. Kirk, John W. Peterson, Roy H. Stogner
3 
4 // This library is free software; you can redistribute it and/or
5 // modify it under the terms of the GNU Lesser General Public
6 // License as published by the Free Software Foundation; either
7 // version 2.1 of the License, or (at your option) any later version.
8 
9 // This library is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 // Lesser General Public License for more details.
13 
14 // You should have received a copy of the GNU Lesser General Public
15 // License along with this library; if not, write to the Free Software
16 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 
18 
19 #ifndef LIBMESH_CONDENSED_EIGEN_SYSTEM_H
20 #define LIBMESH_CONDENSED_EIGEN_SYSTEM_H
21 
22 #include "libmesh/libmesh_config.h"
23 
24 // Currently, the EigenSystem should only be available
25 // if SLEPc support is enabled.
26 #if defined(LIBMESH_HAVE_SLEPC)
27 
28 // Local Includes
29 #include "libmesh/eigen_system.h"
30 #include "libmesh/sparse_matrix.h"
31 
32 // C++ includes
33 
34 namespace libMesh
35 {
36 
45 // ------------------------------------------------------------
46 // CondensedEigenSystem class definition
47 
49 {
50 public:
51 
57  const std::string& name,
58  const unsigned int number);
59 
64 
69 
73  sys_type & system () { return *this; }
74 
80  void initialize_condensed_dofs(std::set<unsigned int>& global_dirichlet_dofs_set);
81 
85  unsigned int n_global_non_condensed_dofs() const;
86 
92  virtual void solve();
93 
100  virtual std::pair<Real, Real> get_eigenpair(unsigned int i);
101 
106 
111 
117  std::vector<dof_id_type> local_non_condensed_dofs_vector;
118 
119 private:
120 
126 
127 };
128 
129 
130 } // namespace libMesh
131 
132 
133 #endif // LIBMESH_HAVE_SLEPC
134 
135 #endif // LIBMESH_CONDENSED_EIGEN_SYSTEM_H

Site Created By: libMesh Developers
Last modified: February 07 2014 16:57:04 UTC

Hosted By:
SourceForge.net Logo