diff --git a/src/finiteVolume/Make/files b/src/finiteVolume/Make/files index 84ff879b50..126669d56a 100644 --- a/src/finiteVolume/Make/files +++ b/src/finiteVolume/Make/files @@ -196,6 +196,8 @@ $(interpolation)/interpolationCellPoint/makeInterpolationCellPoint.C $(interpolation)/interpolationCellPointFace/makeInterpolationCellPointFace.C $(interpolation)/interpolationCellPointWallModified/cellPointWeightWallModified/cellPointWeightWallModified.C $(interpolation)/interpolationCellPointWallModified/makeInterpolationCellPointWallModified.C +$(interpolation)/interpolationPoint/pointMVCWeight.C +$(interpolation)/interpolationPoint/makeInterpolationPoint.C volPointInterpolation = interpolation/volPointInterpolation /* diff --git a/src/finiteVolume/interpolation/interpolation/interpolationPoint/interpolationPoint.C b/src/finiteVolume/interpolation/interpolation/interpolationPoint/interpolationPoint.C new file mode 100644 index 0000000000..598a5807ee --- /dev/null +++ b/src/finiteVolume/interpolation/interpolation/interpolationPoint/interpolationPoint.C @@ -0,0 +1,255 @@ +/*---------------------------------------------------------------------------*\ + ========= | + \\ / F ield | OpenFOAM: The Open Source CFD Toolbox + \\ / O peration | + \\ / A nd | Copyright (C) 1991-2010 OpenCFD Ltd. + \\/ M anipulation | +------------------------------------------------------------------------------- +License + This file is part of OpenFOAM. + + OpenFOAM is free software: you can redistribute it and/or modify it + under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + OpenFOAM is distributed in the hope that it will be useful, but WITHOUT + ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + for more details. + + You should have received a copy of the GNU General Public License + along with OpenFOAM. If not, see . + +\*---------------------------------------------------------------------------*/ + +#include "interpolationPoint.H" +#include "volPointInterpolation.H" + +// * * * * * * * * * * * * * * * * Constructor * * * * * * * * * * * * * * * // + +template +Foam::interpolationPoint::interpolationPoint +( + const GeometricField& psi +) +: + interpolation(psi), + psip_(volPointInterpolation::New(psi.mesh()).interpolate(psi)) +{} + + +// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // + +//template +//void Foam::interpolationPoint::calcWeights +//( +// const vector& position, +// const label cellI, +// const label faceI, +// scalarField& weights +//) const +//{ +// const polyMesh& mesh = this->pMesh_; +// const pointField& points = mesh.points(); +// +// +// const scalar eps = 0.00000001; +// +// +// // Addressing - face vertices to local points +// const labelList& toGlobal = mesh.cellPoints()[cellI]; +// Map