www.mooseframework.org
FEProblem.h
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
3 //*
4 //* All rights reserved, see COPYRIGHT for full restrictions
5 //* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6 //*
7 //* Licensed under LGPL 2.1, please see LICENSE for details
8 //* https://www.gnu.org/licenses/lgpl-2.1.html
9 
10 #pragma once
11 
12 #include "FEProblemBase.h"
13 
14 class FEProblem;
15 class NonlinearSystem;
16 
17 template <>
19 
24 class FEProblem : public FEProblemBase
25 {
26 public:
28 
29  virtual bool getUseNonlinear() const { return _use_nonlinear; }
30  virtual void setUseNonlinear(bool use_nonlinear) { _use_nonlinear = use_nonlinear; }
31 
33 
34  NonlinearSystem & getNonlinearSystem() override { return *_nl_sys; }
35 
36  virtual void addLineSearch(const InputParameters & parameters) override;
37 
38 protected:
40  std::shared_ptr<NonlinearSystem> _nl_sys;
41 };
42 
bool _use_nonlinear
Definition: FEProblem.h:39
virtual void setInputParametersFEProblem(InputParameters &parameters) override
Definition: FEProblem.C:48
NonlinearSystem & getNonlinearSystem() override
Definition: FEProblem.h:34
Specialization of SubProblem for solving nonlinear equations plus auxiliary equations.
Definition: FEProblem.h:24
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
virtual void setUseNonlinear(bool use_nonlinear)
Definition: FEProblem.h:30
Specialization of SubProblem for solving nonlinear equations plus auxiliary equations.
FEProblem(const InputParameters &parameters)
Definition: FEProblem.C:28
InputParameters validParams< FEProblem >()
Definition: FEProblem.C:22
const InputParameters & parameters() const
Get the parameters of the object.
Definition: MooseObject.h:65
virtual void addLineSearch(const InputParameters &parameters) override
add a MOOSE line search
Definition: FEProblem.C:57
std::shared_ptr< NonlinearSystem > _nl_sys
Definition: FEProblem.h:40
virtual bool getUseNonlinear() const
Definition: FEProblem.h:29
Nonlinear system to be solved.