unsteady_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_UNSTEADY_SOLVER_H
21 #define LIBMESH_UNSTEADY_SOLVER_H
22 
23 // Local includes
24 #include "libmesh/auto_ptr.h"
25 #include "libmesh/libmesh_common.h"
26 #include "libmesh/numeric_vector.h"
27 #include "libmesh/time_solver.h"
28 
29 // C++ includes
30 
31 namespace libMesh
32 {
33 
34 // Forward Declarations
35 class UnsteadySolver;
36 
51 // ------------------------------------------------------------
52 // UnsteadySolver class definition
53 class UnsteadySolver : public TimeSolver
54 {
55 public:
60  explicit
62 
66  virtual ~UnsteadySolver ();
67 
72  virtual void init ();
73 
79  virtual void init_data ();
80 
85  virtual void reinit ();
86 
92  virtual void solve ();
93 
100  virtual void advance_timestep ();
101 
107  virtual void adjoint_advance_timestep ();
108 
113  virtual void retrieve_timestep ();
114 
122  virtual Real error_order () const = 0;
123 
128  Number old_nonlinear_solution (const dof_id_type global_dof_number) const;
129 
134 
144  virtual Real du(const SystemNorm& norm) const;
145 
149  virtual bool is_steady() const { return false; }
150 
151 protected:
152 
158 
164 };
165 
166 
167 } // namespace libMesh
168 
169 
170 #endif // LIBMESH_UNSTEADY_SOLVER_H

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

Hosted By:
SourceForge.net Logo