https://mooseframework.inl.gov
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"
12 #include "SegregatedSolverUtils.h"
13 #include "LinearSystem.h"
14 
15 using namespace libMesh;
16 
19 {
21  params.addParam<unsigned int>(
22  "num_piso_iterations",
23  0,
24  "The number of PISO iterations without recomputing the momentum matrix.");
25 
26  return params;
27 }
28 
31  _num_piso_iterations(getParam<unsigned int>("num_piso_iterations"))
32 {
33 }
34 
35 std::pair<unsigned int, Real>
36 PIMPLESolve::correctVelocity(const bool /*subtract_updated_pressure*/,
37  const bool /*recompute_face_mass_flux*/,
38  const SolverParams & solver_params)
39 {
40  std::pair<unsigned int, Real> residual;
41  unsigned int piso_iteration_counter = 0;
42  while (piso_iteration_counter <= _num_piso_iterations)
43  {
45  piso_iteration_counter == 0, piso_iteration_counter == _num_piso_iterations, solver_params);
46  piso_iteration_counter++;
47  }
48 
49  return residual;
50 }
Common base class for segregated solvers for the Navier-Stokes equations with linear FV assembly rout...
void addParam(const std::string &name, const std::initializer_list< typename T::value_type > &value, const std::string &doc_string)
const unsigned int _num_piso_iterations
Number of H(u) and u iterations with fixed face flux.
Definition: PIMPLESolve.h:45
The following methods are specializations for using the Parallel::packed_range_* routines for a vecto...
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.
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:36
PIMPLESolve(Executioner &ex)
Definition: PIMPLESolve.C:29
static InputParameters validParams()
Definition: PIMPLESolve.C:18
void ErrorVector unsigned int