36#ifndef incompressiblePrimalSolver_H
37#define incompressiblePrimalSolver_H
53class incompressiblePrimalSolver
62 incompressiblePrimalSolver(
const incompressiblePrimalSolver&) =
delete;
65 void operator=(
const incompressiblePrimalSolver&) =
delete;
93 incompressiblePrimalSolver,
108 incompressiblePrimalSolver
162 virtual bool write(
const bool valid =
true)
const
164 if (
mesh_.time().writeTime())
A list of pointers to objects of type <T>, without allocation/deallocation management of the pointers...
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Mesh data needed to do the Finite Volume discretisation.
static autoPtr< incompressiblePrimalSolver > New(fvMesh &mesh, const word &managerType, const dictionary &dict, const word &solverName)
Return a reference to the selected incompressible primal solver.
TypeName("incompressible")
Run-time type information.
virtual ~incompressiblePrimalSolver()=default
Destructor.
const incompressibleVars & getIncoVars() const
Access to the incompressible variables set.
virtual bool write(const bool valid=true) const
In case of multi-point runs with turbulent flows, output dummy turbulence fields with the base names,...
virtual bool readDict(const dictionary &dict)
Read dict if updated.
label phiReconstructionIters_
Max iterations for reconstructing phi from U and p.
virtual bool writeNow() const
In case of multi-point runs with turbulent flows, output dummy turbulence fields with the base names,...
scalar phiReconstructionTol_
Convergence criterion for reconstructing phi from U and p.
UPtrList< objective > getObjectiveFunctions() const
Return the list of objectives assodicated with this solver.
virtual void correctBoundaryConditions()
Update boundary conditions.
declareRunTimeSelectionTable(autoPtr, incompressiblePrimalSolver, dictionary,(fvMesh &mesh, const word &managerType, const dictionary &dict, const word &solverName),(mesh, managerType, dict, solverName))
Base class for solution control classes.
bool write() const
Write dummy turbulent fields to allow for continuation in multi-point, turbulent runs.
Abstract base class for objective functions. No point in making this runTime selectable since its chi...
const word & managerType() const
Return the manager type.
const dictionary & dict() const
Return the solver dictionary.
const fvMesh & mesh() const
Return the solver mesh.
const word & solverName() const
Return the solver name.
fvMesh & mesh_
Reference to the mesh database.
A class for handling words, derived from Foam::string.
#define declareRunTimeSelectionTable(ptrWrapper, baseType, argNames, argList, parList)
Declare a run-time selection (variables and adder classes).
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.