explicit_system.h
Go to the documentation of this file.
1 // The libMesh Finite Element Library.
2 // Copyright (C) 2002-2018 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_EXPLICIT_SYSTEM_H
21 #define LIBMESH_EXPLICIT_SYSTEM_H
22 
23 // Local Includes
24 #include "libmesh/system.h"
25 
26 namespace libMesh
27 {
28 
48 class ExplicitSystem : public System
49 {
50 public:
51 
57  const std::string & name,
58  const unsigned int number);
59 
64 
68  typedef System Parent;
69 
73  sys_type & system () { return *this; }
74 
79  virtual void clear () override;
80 
86  virtual void assemble_qoi (const QoISet & qoi_indices = QoISet()) override;
87 
93  virtual void assemble_qoi_derivative (const QoISet & qoi_indices = QoISet(),
94  bool include_liftfunc = true,
95  bool apply_constraints = true) override;
96 
101  virtual void solve () override;
102 
107  virtual std::string system_type () const override { return "Explicit"; }
108 
115 
116 
117 private:
118 
123  void add_system_rhs ();
124 };
125 
126 } // namespace libMesh
127 
128 #endif // LIBMESH_EXPLICIT_SYSTEM_H
Manages multiples systems of equations.
virtual void solve() override
Used to specify quantities of interest in a simulation.
Definition: qoi_set.h:45
NumericVector< Number > * rhs
unsigned int number() const
Definition: system.h:2025
Manages consistently variables, degrees of freedom, and coefficient vectors.
Definition: system.h:92
ExplicitSystem(EquationSystems &es, const std::string &name, const unsigned int number)
virtual std::string system_type() const override
virtual void clear() override
virtual void assemble_qoi(const QoISet &qoi_indices=QoISet()) override
virtual void assemble_qoi_derivative(const QoISet &qoi_indices=QoISet(), bool include_liftfunc=true, bool apply_constraints=true) override
const std::string & name() const
Definition: system.h:2017
Manages consistently variables, degrees of freedom, and coefficient vectors for explicit systems...