https://mooseframework.inl.gov
Loading...
Searching...
No Matches
Steady.C
Go to the documentation of this file.
1//* This file is part of the MOOSE framework
2//* https://mooseframework.inl.gov
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// MOOSE includes
11#include "Steady.h"
12#include "FEProblem.h"
13#include "Factory.h"
14#include "MooseApp.h"
15#include "NonlinearSystem.h"
16
18
21{
23 params.addClassDescription("Executioner for steady-state simulations.");
25 return params;
26}
27
28Steady::Steady(const InputParameters & parameters) : SteadyBase(parameters), _feproblem_solve(*this)
29{
31}
32
33void
42
43void
45{
46 // check to make sure that we don't have any time kernels in this simulation (Steady State)
47 for (const auto & system : _feproblem_solve.systemsToSolve())
48 if (system->containsTimeKernel())
49 mooseError("You have specified time kernels in your steady-state simulation in system ",
50 system->name(),
51 " on the following variables: ",
52 Moose::stringify(system->timeKernelVariableNames()));
53}
void mooseError(Args &&... args)
Emit an error message with the given stringified, concatenated args and terminate the application.
Definition MooseError.h:311
const ExecFlagType EXEC_PRE_MULTIAPP_SETUP
Definition Moose.C:56
registerMooseObject("MooseApp", Steady)
std::unique_ptr< FixedPointSolve > _fixed_point_solve
virtual void execute(const ExecFlagType &exec_type)
Convenience function for performing execution of MOOSE systems.
void initialSetup() override
virtual void initialSetup() override
Method that should be executed once, before any solve calls.
static InputParameters validParams()
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system.
void addClassDescription(const std::string &doc_string)
This method adds a description of the class that will be displayed in the input file syntax dump.
const std::vector< SolverSystem * > & systemsToSolve() const
Returns a reference to the vector of solver systems that this object is supposed to solve.
A base class that can be used for executioners solving for steady state problems.
Definition SteadyBase.h:25
static InputParameters validParams()
Definition SteadyBase.C:20
FEProblemBase & _problem
Just an alias for now.
Definition SteadyBase.h:59
Steady executioners usually only call "solve()" on the NonlinearSystem once.
Definition Steady.h:18
virtual void init() override
Initialize the executioner.
Definition Steady.C:34
Steady(const InputParameters &parameters)
Constructor.
Definition Steady.C:28
FEProblemSolve _feproblem_solve
The solve object to use in this executioner.
Definition Steady.h:36
static InputParameters validParams()
Definition Steady.C:20
virtual void checkIntegrity()
Check if a time kernel has been declared.
Definition Steady.C:44
std::string stringify(const T &t)
conversion to string
Definition Conversion.h:64