ENH: motionSolver: twoDPointConstraints is now meshobject

This commit is contained in:
mattijs
2013-11-29 15:59:14 +00:00
parent 183ee750fb
commit 1f35db6234
2 changed files with 6 additions and 13 deletions

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -27,6 +27,7 @@ License
#include "Time.H"
#include "polyMesh.H"
#include "dlLibraryTable.H"
#include "twoDPointCorrector.H"
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
@ -71,8 +72,7 @@ Foam::motionSolver::motionSolver(const polyMesh& mesh)
IOobject::NO_WRITE
)
),
mesh_(mesh),
twoDPointCorrector_(mesh)
mesh_(mesh)
{}
@ -85,7 +85,6 @@ Foam::motionSolver::motionSolver
:
IOdictionary(stealRegistration(dict), dict),
mesh_(mesh),
twoDPointCorrector_(mesh),
coeffDict_(dict.subDict(type + "Coeffs"))
{}
@ -172,14 +171,12 @@ Foam::tmp<Foam::pointField> Foam::motionSolver::newPoints()
void Foam::motionSolver::twoDCorrectPoints(pointField& p) const
{
twoDPointCorrector_.correctPoints(p);
twoDPointCorrector::New(mesh_).correctPoints(p);
}
void Foam::motionSolver::updateMesh(const mapPolyMesh& mpm)
{
twoDPointCorrector_.updateMesh();
}
{}
// ************************************************************************* //

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -37,7 +37,6 @@ SourceFiles
#include "IOdictionary.H"
#include "pointField.H"
#include "twoDPointCorrector.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -64,9 +63,6 @@ private:
//- Reference to mesh
const polyMesh& mesh_;
//- 2-D motion corrector pointer
twoDPointCorrector twoDPointCorrector_;
//- Model coefficients dictionary
dictionary coeffDict_;