fem_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_FEM_SYSTEM_H
21 #define LIBMESH_FEM_SYSTEM_H
22 
23 // Local Includes
24 #include "libmesh/diff_system.h"
25 #include "libmesh/fem_physics.h"
26 
27 // C++ includes
28 #include <cstddef>
29 
30 namespace libMesh
31 {
32 
33 // Forward Declarations
34 class DiffContext;
35 class FEMContext;
36 
37 
52 // ------------------------------------------------------------
53 // FEMSystem class definition
54 
56  public FEMPhysics
57 {
58 public:
59 
65  const std::string& name,
66  const unsigned int number);
67 
71  virtual ~FEMSystem ();
72 
77 
82 
87  virtual void clear ();
88 
94  virtual void assembly (bool get_residual, bool get_jacobian);
95 
104  virtual void solve ();
105 
110  void mesh_position_get();
111 
116  void mesh_position_set();
117 
127 
128  /*
129  * Prepares the result of a build_context() call for use.
130  *
131  * Most FEMSystem-based problems will need to reimplement this in order to
132  * call FE::get_*() as their particular physics requires.
133  */
134  virtual void init_context(DiffContext &);
135 
140  virtual void postprocess ();
141 
150  virtual void assemble_qoi
151  (const QoISet& indices = QoISet());
152 
160  virtual void assemble_qoi_derivative
161  (const QoISet& indices = QoISet());
162 
170 
177 
192 
196  typedef bool (TimeSolver::*TimeSolverResPtr)(bool, DiffContext&);
197 
203  FEMContext &context) const;
204 
210  void numerical_elem_jacobian (FEMContext &context) const;
211 
217  void numerical_side_jacobian (FEMContext &context) const;
218 
219 protected:
224  virtual void init_data ();
225 };
226 
227 
228 } // namespace libMesh
229 
230 
231 #endif // LIBMESH_FEM_SYSTEM_H

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

Hosted By:
SourceForge.net Logo