GRINS-0.6.0
grins_unsteady_solver.h
Go to the documentation of this file.
1 //-----------------------------------------------------------------------bl-
2 //--------------------------------------------------------------------------
3 //
4 // GRINS - General Reacting Incompressible Navier-Stokes
5 //
6 // Copyright (C) 2014-2015 Paul T. Bauman, Roy H. Stogner
7 // Copyright (C) 2010-2013 The PECOS Development Team
8 //
9 // This library is free software; you can redistribute it and/or
10 // modify it under the terms of the Version 2.1 GNU Lesser General
11 // Public License as published by the Free Software Foundation.
12 //
13 // This library is distributed in the hope that it will be useful,
14 // but WITHOUT ANY WARRANTY; without even the implied warranty of
15 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 // Lesser General Public License for more details.
17 //
18 // You should have received a copy of the GNU Lesser General Public
19 // License along with this library; if not, write to the Free Software
20 // Foundation, Inc. 51 Franklin Street, Fifth Floor,
21 // Boston, MA 02110-1301 USA
22 //
23 //-----------------------------------------------------------------------el-
24 
25 
26 #ifndef GRINS_UNSTEADY_SOLVER_H
27 #define GRINS_UNSTEADY_SOLVER_H
28 
29 //GRINS
30 #include "grins/grins_solver.h"
31 
32 //libMesh
33 #include "libmesh/system_norm.h"
34 
35 namespace GRINS
36 {
37  class UnsteadySolver : public Solver
38  {
39  public:
40 
41  UnsteadySolver( const GetPot& input );
42  virtual ~UnsteadySolver();
43 
44  virtual void solve( SolverContext& context );
45 
46  protected:
47 
48  virtual void init_time_solver(GRINS::MultiphysicsSystem* system);
49 
50  unsigned int _n_timesteps;
51  unsigned int _backtrack_deltat;
52  double _theta;
53  double _deltat;
54 
55  // Options for adaptive time solvers
58  double _max_growth;
59  libMesh::SystemNorm _component_norm;
60  };
61 
62 } // end namespace GRINS
63 #endif // GRINS_UNSTEADY_SOLVER_H
UnsteadySolver(const GetPot &input)
GRINS namespace.
virtual void init_time_solver(GRINS::MultiphysicsSystem *system)
Interface with libMesh for solving Multiphysics problems.
virtual void solve(SolverContext &context)
libMesh::SystemNorm _component_norm
Simple class to hold objects passed to Solver::solve.

Generated on Mon Jun 22 2015 21:32:20 for GRINS-0.6.0 by  doxygen 1.8.9.1