steady_solver.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_STEADY_SOLVER_H
21 #define LIBMESH_STEADY_SOLVER_H
22 
23 // Local includes
24 #include "libmesh/time_solver.h"
25 
26 // C++ includes
27 
28 namespace libMesh
29 {
30 
31 // Forward Declarations
32 class DiffContext;
33 class DifferentiableSystem;
34 class TimeSolver;
35 
47 class SteadySolver : public TimeSolver
48 {
49 public:
54 
58  typedef TimeSolver Parent;
59 
64  explicit
66 
70  virtual ~SteadySolver ();
71 
76  virtual Real error_order() const { return 0.; }
77 
83  virtual bool element_residual (bool request_jacobian,
84  DiffContext &) override;
85 
91  virtual bool side_residual (bool request_jacobian,
92  DiffContext &) override;
93 
99  virtual bool nonlocal_residual (bool request_jacobian,
100  DiffContext &) override;
101 
107  virtual Real du(const SystemNorm &) const override { return 0; }
108 
112  virtual bool is_steady() const override { return true; }
113 
114 protected:
115 
120  virtual bool _general_residual (bool request_jacobian,
121  DiffContext &,
122  ResFuncType time_deriv,
123  ResFuncType constraint);
124 };
125 
126 
127 } // namespace libMesh
128 
129 
130 #endif // LIBMESH_STEADY_SOLVER_H
virtual Real du(const SystemNorm &) const override
DifferentiableSystem sys_type
Definition: steady_solver.h:53
virtual Real error_order() const
Definition: steady_solver.h:76
SteadySolver(sys_type &s)
Definition: steady_solver.h:65
virtual bool is_steady() const override
bool(DifferentiablePhysics::* ResFuncType)(bool, DiffContext &)
Definition: time_solver.h:271
virtual bool _general_residual(bool request_jacobian, DiffContext &, ResFuncType time_deriv, ResFuncType constraint)
Definition: steady_solver.C:67
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
virtual bool nonlocal_residual(bool request_jacobian, DiffContext &) override
Definition: steady_solver.C:56
virtual bool element_residual(bool request_jacobian, DiffContext &) override
Definition: steady_solver.C:34
virtual bool side_residual(bool request_jacobian, DiffContext &) override
Definition: steady_solver.C:45