https://mooseframework.inl.gov
Loading...
Searching...
No Matches
PIMPLESolve.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#include "PIMPLESolve.h"
11#include "FEProblem.h"
13#include "LinearSystem.h"
14
17{
19 params.addParam<unsigned int>(
20 "num_piso_iterations",
21 0,
22 "The number of PISO iterations without recomputing the momentum matrix.");
23
24 return params;
25}
26
29 _num_piso_iterations(getParam<unsigned int>("num_piso_iterations"))
30{
31}
32
33std::pair<unsigned int, Real>
34PIMPLESolve::correctVelocity(const bool /*subtract_updated_pressure*/,
35 const bool /*recompute_face_mass_flux*/,
36 const SolverParams & solver_params)
37{
38 std::pair<unsigned int, Real> residual;
39 unsigned int piso_iteration_counter = 0;
40 while (piso_iteration_counter <= _num_piso_iterations)
41 {
43 piso_iteration_counter == 0, piso_iteration_counter == _num_piso_iterations, solver_params);
44 piso_iteration_counter++;
45 }
46
47 return residual;
48}
void ErrorVector unsigned int
void addParam(const std::string &name, const std::initializer_list< typename T::value_type > &value, const std::string &doc_string)
Common base class for segregated solvers for the Navier-Stokes equations with linear FV assembly rout...
virtual std::pair< unsigned int, Real > correctVelocity(const bool subtract_updated_pressure, const bool recompute_face_mass_flux, const SolverParams &solver_params)
Computes new velocity field based on computed pressure gradients.
const unsigned int _num_piso_iterations
Number of H(u) and u iterations with fixed face flux.
Definition PIMPLESolve.h:45
PIMPLESolve(Executioner &ex)
Definition PIMPLESolve.C:27
virtual std::pair< unsigned int, Real > correctVelocity(const bool subtract_updated_pressure, const bool recompute_face_mass_flux, const SolverParams &solver_params) override
Computes new velocity field based on computed pressure gradients.
Definition PIMPLESolve.C:34
static InputParameters validParams()
Definition PIMPLESolve.C:16