newmark_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 
20 #ifndef LIBMESH_NEWMARK_SYSTEM_H
21 #define LIBMESH_NEWMARK_SYSTEM_H
22 
23 // Local Includes
25 
26 // C++ includes
27 
28 namespace libMesh
29 {
30 
31 // Forward Declarations
32 
33 
51 // ------------------------------------------------------------
52 // NewmarkSystem class definition
53 
55 {
56 public:
57 
63  const std::string& name,
64  const unsigned int number);
65 
69  ~NewmarkSystem ();
70 
71 
76 
81  virtual void clear ();
82 
87  virtual void reinit ();
88 
93  virtual void assemble ();
94 
99  virtual std::string system_type () const { return "Newmark"; }
100 
101 
102  //---------------------------------------------------------
103  // These members are specific to the Newmark system
104  //
105 
109  void initial_conditions ();
110 
115  void compute_matrix ();
116 
120  void update_rhs ();
121 
125  void update_u_v_a ();
126 
132  void set_newmark_parameters (const Real delta_T = _default_timestep,
133  const Real alpha = _default_alpha,
134  const Real delta = _default_delta);
135 
136 protected:
137 
138 
139 private:
140 
152 
157 
161  static const Real _default_alpha;
162 
166  static const Real _default_delta;
167 
171  static const Real _default_timestep;
172 
173 };
174 
175 
176 } // namespace libMesh
177 
178 
179 // ------------------------------------------------------------
180 // NewmarkSystem inline methods
181 
182 
183 
184 #endif // LIBMESH_NEWMARK_SYSTEM_H

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

Hosted By:
SourceForge.net Logo