mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Removed duplicate, inconsistent and spurious comments in .C files
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -30,7 +30,7 @@ License
|
||||
|
||||
namespace Foam
|
||||
{
|
||||
defineTypeNameAndDebug(treeDataEdge, 0);
|
||||
defineTypeNameAndDebug(treeDataEdge, 0);
|
||||
}
|
||||
|
||||
|
||||
@ -128,8 +128,6 @@ Foam::pointField Foam::treeDataEdge::shapePoints() const
|
||||
}
|
||||
|
||||
|
||||
//- Get type (inside,outside,mixed,unknown) of point w.r.t. surface.
|
||||
// Only makes sense for closed surfaces.
|
||||
Foam::volumeType Foam::treeDataEdge::getVolumeType
|
||||
(
|
||||
const indexedOctree<treeDataEdge>& oc,
|
||||
@ -140,7 +138,6 @@ Foam::volumeType Foam::treeDataEdge::getVolumeType
|
||||
}
|
||||
|
||||
|
||||
// Check if any point on shape is inside cubeBb.
|
||||
bool Foam::treeDataEdge::overlaps
|
||||
(
|
||||
const label index,
|
||||
@ -158,7 +155,6 @@ bool Foam::treeDataEdge::overlaps
|
||||
}
|
||||
|
||||
|
||||
// Check if any point on shape is inside sphere.
|
||||
bool Foam::treeDataEdge::overlaps
|
||||
(
|
||||
const label index,
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -31,9 +31,9 @@ License
|
||||
|
||||
namespace Foam
|
||||
{
|
||||
defineTypeNameAndDebug(treeDataFace, 0);
|
||||
defineTypeNameAndDebug(treeDataFace, 0);
|
||||
|
||||
scalar treeDataFace::tolSqr = sqr(1e-6);
|
||||
scalar treeDataFace::tolSqr = sqr(1e-6);
|
||||
}
|
||||
|
||||
|
||||
@ -178,8 +178,6 @@ Foam::pointField Foam::treeDataFace::shapePoints() const
|
||||
}
|
||||
|
||||
|
||||
//- Get type (inside,outside,mixed,unknown) of point w.r.t. surface.
|
||||
// Only makes sense for closed surfaces.
|
||||
Foam::volumeType Foam::treeDataFace::getVolumeType
|
||||
(
|
||||
const indexedOctree<treeDataFace>& oc,
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -88,8 +88,6 @@ Foam::pointField Foam::treeDataPoint::shapePoints() const
|
||||
}
|
||||
|
||||
|
||||
//- Get type (inside,outside,mixed,unknown) of point w.r.t. surface.
|
||||
// Only makes sense for closed surfaces.
|
||||
Foam::volumeType Foam::treeDataPoint::getVolumeType
|
||||
(
|
||||
const indexedOctree<treeDataPoint>& oc,
|
||||
@ -100,7 +98,6 @@ Foam::volumeType Foam::treeDataPoint::getVolumeType
|
||||
}
|
||||
|
||||
|
||||
// Check if any point on shape is inside cubeBb.
|
||||
bool Foam::treeDataPoint::overlaps
|
||||
(
|
||||
const label index,
|
||||
@ -112,7 +109,6 @@ bool Foam::treeDataPoint::overlaps
|
||||
}
|
||||
|
||||
|
||||
// Check if any point on shape is inside sphere.
|
||||
bool Foam::treeDataPoint::overlaps
|
||||
(
|
||||
const label index,
|
||||
|
||||
@ -146,8 +146,6 @@ Foam::pointField Foam::treeDataPrimitivePatch<PatchType>::shapePoints() const
|
||||
}
|
||||
|
||||
|
||||
//- Get type (inside,outside,mixed,unknown) of point w.r.t. surface.
|
||||
// Only makes sense for closed surfaces.
|
||||
template<class PatchType>
|
||||
Foam::volumeType Foam::treeDataPrimitivePatch<PatchType>::getVolumeType
|
||||
(
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -29,7 +29,6 @@ License
|
||||
|
||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||
|
||||
// Check if n is in same direction as normals of all faceLabels
|
||||
bool Foam::meshTools::visNormal
|
||||
(
|
||||
const vector& n,
|
||||
@ -668,7 +667,6 @@ void Foam::meshTools::constrainToMeshCentre
|
||||
}
|
||||
|
||||
|
||||
//- Set the constrained components of directions/velocity to zero
|
||||
void Foam::meshTools::constrainDirection
|
||||
(
|
||||
const polyMesh& mesh,
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -230,7 +230,6 @@ Foam::primitiveMeshGeometry::primitiveMeshGeometry
|
||||
|
||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||
|
||||
//- Take over properties from mesh
|
||||
void Foam::primitiveMeshGeometry::correct()
|
||||
{
|
||||
faceAreas_ = mesh_.faceAreas();
|
||||
@ -240,7 +239,6 @@ void Foam::primitiveMeshGeometry::correct()
|
||||
}
|
||||
|
||||
|
||||
//- Recalculate on selected faces
|
||||
void Foam::primitiveMeshGeometry::correct
|
||||
(
|
||||
const pointField& p,
|
||||
|
||||
@ -27,9 +27,7 @@ License
|
||||
#include "searchableSurfacesQueries.H"
|
||||
#include "ListOps.H"
|
||||
#include "Time.H"
|
||||
//#include "vtkSetWriter.H"
|
||||
#include "DynamicField.H"
|
||||
//#include "OBJstream.H"
|
||||
#include "PatchTools.H"
|
||||
#include "triSurfaceMesh.H"
|
||||
|
||||
@ -37,13 +35,12 @@ License
|
||||
|
||||
namespace Foam
|
||||
{
|
||||
defineTypeNameAndDebug(searchableSurfaces, 0);
|
||||
defineTypeNameAndDebug(searchableSurfaces, 0);
|
||||
}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
|
||||
|
||||
//- Is edge connected to triangle
|
||||
bool Foam::searchableSurfaces::connected
|
||||
(
|
||||
const triSurface& s,
|
||||
@ -325,8 +322,6 @@ void Foam::searchableSurfaces::findAnyIntersection
|
||||
}
|
||||
|
||||
|
||||
//- Find all intersections in order from start to end. Returns for
|
||||
// every hit the surface and the hit info.
|
||||
void Foam::searchableSurfaces::findAllIntersections
|
||||
(
|
||||
const pointField& start,
|
||||
@ -372,7 +367,6 @@ void Foam::searchableSurfaces::findNearestIntersection
|
||||
}
|
||||
|
||||
|
||||
// Find nearest. Return -1 or nearest point
|
||||
void Foam::searchableSurfaces::findNearest
|
||||
(
|
||||
const pointField& samples,
|
||||
@ -393,7 +387,6 @@ void Foam::searchableSurfaces::findNearest
|
||||
}
|
||||
|
||||
|
||||
// Find nearest. Return -1 or nearest point
|
||||
void Foam::searchableSurfaces::findNearest
|
||||
(
|
||||
const pointField& samples,
|
||||
@ -415,7 +408,7 @@ void Foam::searchableSurfaces::findNearest
|
||||
);
|
||||
}
|
||||
|
||||
//- Calculate bounding box
|
||||
|
||||
Foam::boundBox Foam::searchableSurfaces::bounds() const
|
||||
{
|
||||
return searchableSurfacesQueries::bounds
|
||||
@ -426,7 +419,6 @@ Foam::boundBox Foam::searchableSurfaces::bounds() const
|
||||
}
|
||||
|
||||
|
||||
//- Calculate point which is on a set of surfaces.
|
||||
Foam::pointIndexHit Foam::searchableSurfaces::facesIntersection
|
||||
(
|
||||
const scalar initDistSqr,
|
||||
|
||||
@ -33,7 +33,7 @@ License
|
||||
|
||||
namespace Foam
|
||||
{
|
||||
defineTypeNameAndDebug(searchableSurfacesQueries, 0);
|
||||
defineTypeNameAndDebug(searchableSurfacesQueries, 0);
|
||||
}
|
||||
|
||||
|
||||
@ -849,7 +849,6 @@ Foam::boundBox Foam::searchableSurfacesQueries::bounds
|
||||
}
|
||||
|
||||
|
||||
//- Calculate point which is on a set of surfaces.
|
||||
Foam::pointIndexHit Foam::searchableSurfacesQueries::facesIntersection
|
||||
(
|
||||
const PtrList<searchableSurface>& allSurfaces,
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -238,7 +238,6 @@ label cellZoneSet::maxSize(const polyMesh& mesh) const
|
||||
}
|
||||
|
||||
|
||||
//- Write using given format, version and compression
|
||||
bool cellZoneSet::writeObject
|
||||
(
|
||||
IOstream::streamFormat s,
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -331,7 +331,6 @@ label faceZoneSet::maxSize(const polyMesh& mesh) const
|
||||
}
|
||||
|
||||
|
||||
//- Write using given format, version and compression
|
||||
bool faceZoneSet::writeObject
|
||||
(
|
||||
IOstream::streamFormat s,
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -239,7 +239,6 @@ label pointZoneSet::maxSize(const polyMesh& mesh) const
|
||||
}
|
||||
|
||||
|
||||
//- Write using given format, version and compression
|
||||
bool pointZoneSet::writeObject
|
||||
(
|
||||
IOstream::streamFormat s,
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -39,15 +39,14 @@ License
|
||||
|
||||
namespace Foam
|
||||
{
|
||||
defineTypeNameAndDebug(surfaceFeatures, 0);
|
||||
defineTypeNameAndDebug(surfaceFeatures, 0);
|
||||
|
||||
const scalar surfaceFeatures::parallelTolerance = sin(degToRad(1.0));
|
||||
const scalar surfaceFeatures::parallelTolerance = sin(degToRad(1.0));
|
||||
}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
|
||||
|
||||
//- Get nearest point on edge and classify position on edge.
|
||||
Foam::pointIndexHit Foam::surfaceFeatures::edgeNearest
|
||||
(
|
||||
const point& start,
|
||||
@ -498,7 +497,6 @@ Foam::surfaceFeatures::surfaceFeatures
|
||||
}
|
||||
|
||||
|
||||
//- Construct from dictionary
|
||||
Foam::surfaceFeatures::surfaceFeatures
|
||||
(
|
||||
const triSurface& surf,
|
||||
@ -513,7 +511,6 @@ Foam::surfaceFeatures::surfaceFeatures
|
||||
{}
|
||||
|
||||
|
||||
//- Construct from file
|
||||
Foam::surfaceFeatures::surfaceFeatures
|
||||
(
|
||||
const triSurface& surf,
|
||||
@ -618,7 +615,6 @@ Foam::surfaceFeatures::surfaceFeatures
|
||||
}
|
||||
|
||||
|
||||
//- Construct as copy
|
||||
Foam::surfaceFeatures::surfaceFeatures(const surfaceFeatures& sf)
|
||||
:
|
||||
surf_(sf.surface()),
|
||||
|
||||
@ -624,8 +624,6 @@ Foam::scalar Foam::triSurfaceTools::edgeCosAngle
|
||||
}
|
||||
|
||||
|
||||
//- Calculate minimum (cos of) edge angle using addressing from collapsing
|
||||
// edge to v1 at pt.
|
||||
Foam::scalar Foam::triSurfaceTools::collapseMinCosAngle
|
||||
(
|
||||
const triSurface& surf,
|
||||
|
||||
Reference in New Issue
Block a user