euler2_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_EULER2_SOLVER_H
21 #define LIBMESH_EULER2_SOLVER_H
22 
23 // Local includes
25 
26 // C++ includes
27 
28 namespace libMesh
29 {
30 
49 {
50 public:
55 
60  explicit
61  Euler2Solver (sys_type & s);
62 
66  virtual ~Euler2Solver ();
67 
71  virtual Real error_order() const override;
72 
79  virtual bool element_residual (bool request_jacobian,
80  DiffContext &) override;
81 
88  virtual bool side_residual (bool request_jacobian,
89  DiffContext &) override;
90 
97  virtual bool nonlocal_residual (bool request_jacobian,
98  DiffContext &) override;
99 
106 
107 protected:
108 
113  virtual bool _general_residual (bool request_jacobian,
114  DiffContext &,
115  ResFuncType mass,
116  ResFuncType damping,
117  ResFuncType time_deriv,
118  ResFuncType constraint,
121 
122 };
123 
124 
125 } // namespace libMesh
126 
127 
128 #endif // LIBMESH_EULER2_SOLVER_H
virtual void reinit() override
bool compute_second_order_eqns(bool compute_jacobian, DiffContext &c)
virtual bool _general_residual(bool request_jacobian, DiffContext &, ResFuncType mass, ResFuncType damping, ResFuncType time_deriv, ResFuncType constraint, ReinitFuncType reinit, bool compute_second_order_eqns)
Definition: euler2_solver.C:99
Euler2Solver(sys_type &s)
Definition: euler2_solver.C:27
void(DiffContext::* ReinitFuncType)(Real)
Definition: time_solver.h:273
virtual bool element_residual(bool request_jacobian, DiffContext &) override
Definition: euler2_solver.C:50
virtual bool nonlocal_residual(bool request_jacobian, DiffContext &) override
Definition: euler2_solver.C:82
bool(DifferentiablePhysics::* ResFuncType)(bool, DiffContext &)
Definition: time_solver.h:271
virtual bool side_residual(bool request_jacobian, DiffContext &) override
Definition: euler2_solver.C:67
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
FirstOrderUnsteadySolver Parent
Definition: euler2_solver.h:54
virtual Real error_order() const override
Definition: euler2_solver.C:40