added boundaryManipulate function

This commit is contained in:
andy
2008-08-27 11:14:21 +01:00
parent 1dc35beb58
commit 2b614594ed
2 changed files with 27 additions and 6 deletions

View File

@ -591,6 +591,20 @@ void Foam::fvMatrix<Type>::relax()
}
template<class Type>
void Foam::fvMatrix<Type>::boundaryManipulate
(
typename GeometricField<Type, fvPatchField, volMesh>::
GeometricBoundaryField& bFields
)
{
forAll(bFields, patchI)
{
bFields[patchI].manipulateMatrix(*this);
}
}
template<class Type>
Foam::tmp<Foam::scalarField> Foam::fvMatrix<Type>::D() const
{

View File

@ -350,6 +350,13 @@ public:
// alpha is read from controlDict
void relax();
//- Manipulate based on a boundary field
void boundaryManipulate
(
typename GeometricField<Type, fvPatchField, volMesh>::
GeometricBoundaryField& values
);
//- Construct and return the solver
// Solver controls read from Istream
autoPtr<fvSolver> solver(Istream&);