Merge branch 'master' of github.com-OpenFOAM:OpenFOAM/OpenFOAM-4.x
This commit is contained in:
commit
4cfa55f2ea
4 changed files with 12 additions and 9 deletions
|
|
@ -2,7 +2,7 @@
|
||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2012-2016 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2012-2017 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
|
|
@ -62,7 +62,7 @@ Foam::tmp<Foam::Field<Type>> filterFarPoints
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
tmp<Field<Type>> tNewField(new Field<Type>(field.size()));
|
tmp<Field<Type>> tNewField(new Field<Type>(field.size()));
|
||||||
Field<Type>& newField = tNewField();
|
Field<Type>& newField = tNewField.ref();
|
||||||
|
|
||||||
label added = 0;
|
label added = 0;
|
||||||
label count = 0;
|
label count = 0;
|
||||||
|
|
@ -160,7 +160,7 @@ Foam::tmp<Foam::triadField> buildAlignmentField(const T& mesh)
|
||||||
(
|
(
|
||||||
new triadField(mesh.vertexCount(), triad::unset)
|
new triadField(mesh.vertexCount(), triad::unset)
|
||||||
);
|
);
|
||||||
triadField& alignments = tAlignments();
|
triadField& alignments = tAlignments.ref();
|
||||||
|
|
||||||
for
|
for
|
||||||
(
|
(
|
||||||
|
|
@ -188,7 +188,7 @@ Foam::tmp<Foam::pointField> buildPointField(const T& mesh)
|
||||||
(
|
(
|
||||||
new pointField(mesh.vertexCount(), point(GREAT, GREAT, GREAT))
|
new pointField(mesh.vertexCount(), point(GREAT, GREAT, GREAT))
|
||||||
);
|
);
|
||||||
pointField& points = tPoints();
|
pointField& points = tPoints.ref();
|
||||||
|
|
||||||
for
|
for
|
||||||
(
|
(
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2012-2015 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2012-2017 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
|
|
@ -30,6 +30,7 @@ License
|
||||||
#include "scalarIOField.H"
|
#include "scalarIOField.H"
|
||||||
#include "labelIOField.H"
|
#include "labelIOField.H"
|
||||||
#include "pointConversion.H"
|
#include "pointConversion.H"
|
||||||
|
#include "polyMesh.H"
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2012-2016 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2012-2017 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
|
|
@ -311,7 +311,7 @@ tmp<scalarField> signedDistance
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
tmp<scalarField> tfld(new scalarField(points.size(), Foam::sqr(GREAT)));
|
tmp<scalarField> tfld(new scalarField(points.size(), Foam::sqr(GREAT)));
|
||||||
scalarField& fld = tfld();
|
scalarField& fld = tfld.ref();
|
||||||
|
|
||||||
// Find nearest
|
// Find nearest
|
||||||
List<pointIndexHit> nearest;
|
List<pointIndexHit> nearest;
|
||||||
|
|
@ -647,7 +647,8 @@ int main(int argc, char *argv[])
|
||||||
forAll(fvm.C().boundaryField(), patchi)
|
forAll(fvm.C().boundaryField(), patchi)
|
||||||
{
|
{
|
||||||
const pointField& cc = fvm.C().boundaryField()[patchi];
|
const pointField& cc = fvm.C().boundaryField()[patchi];
|
||||||
fvPatchScalarField& fld = cellDistance.boundaryField()[patchi];
|
fvPatchScalarField& fld =
|
||||||
|
cellDistance.boundaryFieldRef()[patchi];
|
||||||
scalarField patchDistSqr
|
scalarField patchDistSqr
|
||||||
(
|
(
|
||||||
fld.patch().patchInternalField(distSqr)
|
fld.patch().patchInternalField(distSqr)
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2013-2015 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2013-2017 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
|
|
@ -33,6 +33,7 @@ Description
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
#include "CGAL/number_utils.h"
|
||||||
#include "CGAL/Delaunay_triangulation_2.h"
|
#include "CGAL/Delaunay_triangulation_2.h"
|
||||||
|
|
||||||
#ifdef CGAL_INEXACT
|
#ifdef CGAL_INEXACT
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue