38 List<
void (Type::*)()>& funcs
61 fvMatrix<Type>& matrix
67 const GeometricField<Type, fvPatchField, volMesh>&
psi = matrix.psi();
void solveWithArgs(Type &type, List< void(Type::*)()> &funcs)
Main control loop.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
virtual void solveIter()=0
Execute one iteration of the solution algorithm.
#define forAll(list, i)
Loop across all elements in list.
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
bool active_
Solve equations?
virtual bool loop()=0
Looper (advances iters, time step)
zeroField Sp(const Foam::zero, const GeometricField< Type, fvPatchField, volMesh > &)
A no-op source.
virtual void preLoop()
Functions to be called before loop.
const volScalarField & psi
void addOptimisationTypeSource(fvMatrix< Type > &matrix) const
Add source from optimisationType to underlaying equation.
virtual void postLoop()
Functions to be called after loop.
Calculate the finiteVolume matrix for implicit and explicit sources.