libMesh
Loading...
Searching...
No Matches
explicit_system.h
Go to the documentation of this file.
1// The libMesh Finite Element Library.
2// Copyright (C) 2002-2026 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
26namespace libMesh
27{
28
48class ExplicitSystem : public System
49{
50public:
51
56 const std::string & name,
57 const unsigned int number);
58
64 ExplicitSystem (const ExplicitSystem &) = delete;
68 virtual ~ExplicitSystem ();
69
74
78 typedef System Parent;
79
83 sys_type & system () { return *this; }
84
89 virtual void clear () override;
90
96 virtual void assemble_qoi (const QoISet & qoi_indices = QoISet()) override;
97
103 virtual void assemble_qoi_derivative (const QoISet & qoi_indices = QoISet(),
104 bool include_liftfunc = true,
105 bool apply_constraints = true) override;
106
111 virtual void solve () override;
112
117 virtual std::string system_type () const override { return "Explicit"; }
118
125
126private:
127
132 void add_system_rhs ();
133};
134
135} // namespace libMesh
136
137#endif // LIBMESH_EXPLICIT_SYSTEM_H
This is the EquationSystems class.
Manages consistently variables, degrees of freedom, and coefficient vectors for explicit systems.
ExplicitSystem sys_type
The type of system.
virtual void assemble_qoi_derivative(const QoISet &qoi_indices=QoISet(), bool include_liftfunc=true, bool apply_constraints=true) override
Prepares adjoint_rhs for quantity of interest derivative assembly, then calls user qoi derivative fun...
ExplicitSystem(const ExplicitSystem &)=delete
Special functions.
virtual void clear() override
Clear all the data structures associated with the system.
virtual void assemble_qoi(const QoISet &qoi_indices=QoISet()) override
Prepares qoi for quantity of interest assembly, then calls user qoi function.
NumericVector< Number > * rhs
The system matrix.
ExplicitSystem(ExplicitSystem &&)=default
virtual void solve() override
For explicit systems, just assemble the system which should directly compute A*x.
virtual std::string system_type() const override
ExplicitSystem & operator=(const ExplicitSystem &)=delete
void add_system_rhs()
Add the system right-hand-side vector to the _vectors data structure.
System Parent
The type of the parent.
Provides a uniform interface to vector storage schemes for different linear algebra libraries.
Data structure for specifying which Quantities of Interest should be calculated in an adjoint or a pa...
Definition qoi_set.h:46
Manages consistently variables, degrees of freedom, and coefficient vectors.
Definition system.h:100
const std::string & name() const
Definition system.h:2385
unsigned int number() const
Definition system.h:2393
The libMesh namespace provides an interface to certain functionality in the library.