Line data Source code
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 "SIMPLENonlinearAssembly.h" 12 : #include "FEProblem.h" 13 : 14 : registerMooseObject("NavierStokesApp", SIMPLENonlinearAssembly); 15 : 16 : InputParameters 17 1484 : SIMPLENonlinearAssembly::validParams() 18 : { 19 1484 : InputParameters params = SteadyBase::validParams(); 20 1484 : params.addClassDescription("Solves the Navier-Stokes equations using the " 21 : "SIMPLENonlinearAssembly algorithm."); 22 1484 : params += SIMPLESolveNonlinearAssembly::validParams(); 23 1484 : return params; 24 0 : } 25 : 26 742 : SIMPLENonlinearAssembly::SIMPLENonlinearAssembly(const InputParameters & parameters) 27 742 : : SteadyBase(parameters), _simple_solve(*this) 28 : { 29 742 : _fixed_point_solve->setInnerSolve(_simple_solve); 30 742 : } 31 : 32 : void 33 742 : SIMPLENonlinearAssembly::init() 34 : { 35 742 : _problem.execute(EXEC_PRE_MULTIAPP_SETUP); 36 742 : _problem.initialSetup(); 37 742 : _simple_solve.checkIntegrity(); 38 742 : _simple_solve.linkRhieChowUserObject(); 39 742 : _simple_solve.setupPressurePin(); 40 742 : }