adaptive_time_solver.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_ADAPTIVE_TIME_SOLVER_H
21 #define LIBMESH_ADAPTIVE_TIME_SOLVER_H
22 
23 // Local includes
24 #include "libmesh/system_norm.h"
26 
27 // C++ includes
28 
29 namespace libMesh
30 {
31 
32 // Forward declarations
33 class System;
34 
49 // ------------------------------------------------------------
50 // Solver class definition
52 {
53 public:
58 
63  explicit
65 
69  virtual ~AdaptiveTimeSolver ();
70 
71  virtual void init();
72 
73  virtual void reinit();
74 
75  virtual void solve() = 0;
76 
77  virtual void advance_timestep();
78 
82  virtual Real error_order () const;
83 
87  virtual bool element_residual (bool get_jacobian,
88  DiffContext&);
89 
93  virtual bool side_residual (bool get_jacobian,
94  DiffContext&);
95 
100 
105 
110 
117  std::vector<float> component_scale;
118 
135 
152 
158 
164 
172 
188 
189 protected:
190 
197 
202 };
203 
204 
205 } // namespace libMesh
206 
207 
208 #endif // LIBMESH_ADAPTIVE_TIME_SOLVER_H

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

Hosted By:
SourceForge.net Logo