www.mooseframework.org
FEProblem.h
Go to the documentation of this file.
1 /****************************************************************/
2 /* DO NOT MODIFY THIS HEADER */
3 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
4 /* */
5 /* (c) 2010 Battelle Energy Alliance, LLC */
6 /* ALL RIGHTS RESERVED */
7 /* */
8 /* Prepared by Battelle Energy Alliance, LLC */
9 /* Under Contract No. DE-AC07-05ID14517 */
10 /* With the U. S. Department of Energy */
11 /* */
12 /* See COPYRIGHT for full restrictions */
13 /****************************************************************/
14 
15 #ifndef FEPROBLEM_H
16 #define FEPROBLEM_H
17 
18 #include "FEProblemBase.h"
19 
20 class FEProblem;
21 class NonlinearSystem;
22 
23 template <>
25 
30 class FEProblem : public FEProblemBase
31 {
32 public:
34 
35  virtual ~FEProblem();
36 
37  virtual bool getUseNonlinear() const { return _use_nonlinear; }
38  virtual void setUseNonlinear(bool use_nonlinear) { _use_nonlinear = use_nonlinear; }
39 
40  virtual void setInputParametersFEProblem(InputParameters & parameters) override;
41 
42  NonlinearSystem & getNonlinearSystem() override { return *_nl_sys; }
43 
44 protected:
46  std::shared_ptr<NonlinearSystem> _nl_sys;
47 };
48 
49 #endif /* FEPROBLEM_H */
bool _use_nonlinear
Definition: FEProblem.h:45
virtual void setInputParametersFEProblem(InputParameters &parameters) override
Definition: FEProblem.C:49
NonlinearSystem & getNonlinearSystem() override
Definition: FEProblem.h:42
Specialization of SubProblem for solving nonlinear equations plus auxiliary equations.
Definition: FEProblem.h:30
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
virtual void setUseNonlinear(bool use_nonlinear)
Definition: FEProblem.h:38
Specialization of SubProblem for solving nonlinear equations plus auxiliary equations.
virtual ~FEProblem()
Definition: FEProblem.C:46
FEProblem(const InputParameters &parameters)
Definition: FEProblem.C:30
InputParameters validParams< FEProblem >()
Definition: FEProblem.C:24
virtual bool getUseNonlinear() const
Definition: FEProblem.h:37
std::shared_ptr< NonlinearSystem > _nl_sys
Definition: FEProblem.h:46
Nonlinear system to be solved.
const InputParameters & parameters() const
Get the parameters of the object.
Definition: MooseObject.h:53