Removed duplicate, inconsistent and spurious comments in .C files

This commit is contained in:
Henry Weller
2016-02-29 18:33:54 +00:00
parent 99c000fc94
commit c544bec896
67 changed files with 138 additions and 392 deletions

View File

@ -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) 2011-2015 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -30,7 +30,6 @@ License
// * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * * // // * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * * //
//- Calculate and return the laminar viscosity
void Foam::incompressibleThreePhaseMixture::calcNu() void Foam::incompressibleThreePhaseMixture::calcNu()
{ {
nuModel1_->correct(); nuModel1_->correct();

View File

@ -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-2016 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -36,13 +36,10 @@ License
namespace Foam namespace Foam
{ {
defineTypeNameAndDebug(cellShapeControl, 0); defineTypeNameAndDebug(cellShapeControl, 0);
} }
// * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * * //
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
Foam::cellShapeControl::cellShapeControl Foam::cellShapeControl::cellShapeControl
@ -173,7 +170,6 @@ Foam::scalar Foam::cellShapeControl::cellSize(const point& pt) const
} }
//- Return the cell alignment at the given location
Foam::tensor Foam::cellShapeControl::cellAlignment(const point& pt) const Foam::tensor Foam::cellShapeControl::cellAlignment(const point& pt) const
{ {
scalarList bary; scalarList bary;

View File

@ -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) 2011-2015 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -36,7 +36,7 @@ License
namespace Foam namespace Foam
{ {
defineTypeNameAndDebug(meshDualiser, 0); defineTypeNameAndDebug(meshDualiser, 0);
} }
@ -123,8 +123,6 @@ void Foam::meshDualiser::dumpPolyTopoChange
} }
//- Given cell and point on mesh finds the corresponding dualCell. Most
// points become only one cell but the feature points might be split.
Foam::label Foam::meshDualiser::findDualCell Foam::label Foam::meshDualiser::findDualCell
( (
const label cellI, const label cellI,
@ -146,8 +144,6 @@ Foam::label Foam::meshDualiser::findDualCell
} }
// Helper function to generate dualpoints on all boundary edges emanating
// from (boundary & feature) point
void Foam::meshDualiser::generateDualBoundaryEdges void Foam::meshDualiser::generateDualBoundaryEdges
( (
const PackedBoolList& isBoundaryEdge, const PackedBoolList& isBoundaryEdge,

View File

@ -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) 2011-2015 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -206,7 +206,6 @@ void Foam::ensightLagrangianField
} }
//- Write generalized field components
template<class Type> template<class Type>
void Foam::ensightVolField void Foam::ensightVolField
( (

View File

@ -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) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -25,7 +25,6 @@ License
#include "collapseEdge.H" #include "collapseEdge.H"
//- Sets point neighbours of face to val
static void markPointNbrs static void markPointNbrs
( (
const triSurface& surf, const triSurface& surf,

View File

@ -188,7 +188,6 @@ bool Foam::isAdministrator()
} }
// use $HOME environment variable or passwd info
Foam::fileName Foam::home() Foam::fileName Foam::home()
{ {
char* env = ::getenv("HOME"); char* env = ::getenv("HOME");
@ -588,14 +587,12 @@ bool Foam::mkDir(const fileName& pathName, mode_t mode)
} }
// Set the file mode
bool Foam::chMod(const fileName& name, const mode_t m) bool Foam::chMod(const fileName& name, const mode_t m)
{ {
return ::chmod(name.c_str(), m) == 0; return ::chmod(name.c_str(), m) == 0;
} }
// Return the file mode
mode_t Foam::mode(const fileName& name) mode_t Foam::mode(const fileName& name)
{ {
fileStat fileStatus(name); fileStat fileStatus(name);
@ -610,7 +607,6 @@ mode_t Foam::mode(const fileName& name)
} }
// Return the file type: FILE or DIRECTORY
Foam::fileName::Type Foam::type(const fileName& name) Foam::fileName::Type Foam::type(const fileName& name)
{ {
mode_t m = mode(name); mode_t m = mode(name);
@ -630,28 +626,24 @@ Foam::fileName::Type Foam::type(const fileName& name)
} }
// Does the name exist in the filing system?
bool Foam::exists(const fileName& name, const bool checkGzip) bool Foam::exists(const fileName& name, const bool checkGzip)
{ {
return mode(name) || isFile(name, checkGzip); return mode(name) || isFile(name, checkGzip);
} }
// Does the directory exist?
bool Foam::isDir(const fileName& name) bool Foam::isDir(const fileName& name)
{ {
return S_ISDIR(mode(name)); return S_ISDIR(mode(name));
} }
// Does the file exist?
bool Foam::isFile(const fileName& name, const bool checkGzip) bool Foam::isFile(const fileName& name, const bool checkGzip)
{ {
return S_ISREG(mode(name)) || (checkGzip && S_ISREG(mode(name + ".gz"))); return S_ISREG(mode(name)) || (checkGzip && S_ISREG(mode(name + ".gz")));
} }
// Return size of file
off_t Foam::fileSize(const fileName& name) off_t Foam::fileSize(const fileName& name)
{ {
fileStat fileStatus(name); fileStat fileStatus(name);
@ -666,7 +658,6 @@ off_t Foam::fileSize(const fileName& name)
} }
// Return time of last file modification
time_t Foam::lastModified(const fileName& name) time_t Foam::lastModified(const fileName& name)
{ {
fileStat fileStatus(name); fileStat fileStatus(name);
@ -681,7 +672,6 @@ time_t Foam::lastModified(const fileName& name)
} }
// Read a directory and return the entries as a string list
Foam::fileNameList Foam::readDir Foam::fileNameList Foam::readDir
( (
const fileName& directory, const fileName& directory,
@ -776,7 +766,6 @@ Foam::fileNameList Foam::readDir
} }
// Copy, recursively if necessary, the source to the destination
bool Foam::cp(const fileName& src, const fileName& dest) bool Foam::cp(const fileName& src, const fileName& dest)
{ {
// Make sure source exists. // Make sure source exists.
@ -877,7 +866,6 @@ bool Foam::cp(const fileName& src, const fileName& dest)
} }
// Create a softlink. dst should not exist. Returns true if successful.
bool Foam::ln(const fileName& src, const fileName& dst) bool Foam::ln(const fileName& src, const fileName& dst)
{ {
if (POSIX::debug) if (POSIX::debug)
@ -915,7 +903,6 @@ bool Foam::ln(const fileName& src, const fileName& dst)
} }
// Rename srcFile dstFile
bool Foam::mv(const fileName& src, const fileName& dst) bool Foam::mv(const fileName& src, const fileName& dst)
{ {
if (POSIX::debug) if (POSIX::debug)
@ -941,8 +928,6 @@ bool Foam::mv(const fileName& src, const fileName& dst)
} }
//- Rename to a corresponding backup file
// If the backup file already exists, attempt with "01" .. "99" index
bool Foam::mvBak(const fileName& src, const std::string& ext) bool Foam::mvBak(const fileName& src, const std::string& ext)
{ {
if (POSIX::debug) if (POSIX::debug)
@ -980,7 +965,6 @@ bool Foam::mvBak(const fileName& src, const std::string& ext)
} }
// Remove a file, returning true if successful otherwise false
bool Foam::rm(const fileName& file) bool Foam::rm(const fileName& file)
{ {
if (POSIX::debug) if (POSIX::debug)
@ -1001,7 +985,6 @@ bool Foam::rm(const fileName& file)
} }
// Remove a dirctory and its contents
bool Foam::rmDir(const fileName& directory) bool Foam::rmDir(const fileName& directory)
{ {
if (POSIX::debug) if (POSIX::debug)
@ -1314,31 +1297,31 @@ Foam::fileNameList Foam::dlLoaded()
void Foam::osRandomSeed(const label seed) void Foam::osRandomSeed(const label seed)
{ {
#ifdef USE_RANDOM #ifdef USE_RANDOM
srandom((unsigned int)seed); srandom((unsigned int)seed);
#else #else
srand48(seed); srand48(seed);
#endif #endif
} }
Foam::label Foam::osRandomInteger() Foam::label Foam::osRandomInteger()
{ {
#ifdef USE_RANDOM #ifdef USE_RANDOM
return random(); return random();
#else #else
return lrand48(); return lrand48();
#endif #endif
} }
Foam::scalar Foam::osRandomDouble() Foam::scalar Foam::osRandomDouble()
{ {
#ifdef USE_RANDOM #ifdef USE_RANDOM
return (scalar)random()/INT_MAX; return (scalar)random()/INT_MAX;
#else #else
return drand48(); return drand48();
#endif #endif
} }

View File

@ -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) 2011-2013 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -55,8 +55,6 @@ Foam::dynamicTreeDataPoint::shapePoints() const
} }
//- Get type (inside,outside,mixed,unknown) of point w.r.t. surface.
// Only makes sense for closed surfaces.
Foam::volumeType Foam::dynamicTreeDataPoint::getVolumeType Foam::volumeType Foam::dynamicTreeDataPoint::getVolumeType
( (
const dynamicIndexedOctree<dynamicTreeDataPoint>& oc, const dynamicIndexedOctree<dynamicTreeDataPoint>& oc,
@ -129,8 +127,6 @@ void Foam::dynamicTreeDataPoint::findNearest
} }
//- Calculates nearest (to line) point in shape.
// Returns point and distance (squared)
void Foam::dynamicTreeDataPoint::findNearest void Foam::dynamicTreeDataPoint::findNearest
( (
const labelUList& indices, const labelUList& indices,

View File

@ -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) 2011-2015 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -405,14 +405,12 @@ bool Foam::regIOobject::upToDate
} }
//- Flag me as up to date
void Foam::regIOobject::setUpToDate() void Foam::regIOobject::setUpToDate()
{ {
eventNo_ = db().getEvent(); eventNo_ = db().getEvent();
} }
// Rename object and re-register with objectRegistry under new name
void Foam::regIOobject::rename(const word& newName) void Foam::regIOobject::rename(const word& newName)
{ {
// Check out of objectRegistry // Check out of objectRegistry
@ -428,7 +426,6 @@ void Foam::regIOobject::rename(const word& newName)
} }
// Assign to IOobject
void Foam::regIOobject::operator=(const IOobject& io) void Foam::regIOobject::operator=(const IOobject& io)
{ {
if (isPtr_) if (isPtr_)

View File

@ -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) 2011-2015 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -35,16 +35,16 @@ namespace Foam
/* * * * * * * * * * * * * * * Static Member Data * * * * * * * * * * * * * */ /* * * * * * * * * * * * * * * Static Member Data * * * * * * * * * * * * * */
//- Since dimensionSystems() can be reread we actually store a copy of // Since dimensionSystems() can be reread we actually store a copy of
// the controlDict subDict (v.s. a reference to the subDict for e.g. // the controlDict subDict (v.s. a reference to the subDict for e.g.
// dimensionedConstants) // dimensionedConstants)
dictionary* dimensionSystemsPtr_(NULL); dictionary* dimensionSystemsPtr_(NULL);
HashTable<dimensionedScalar>* unitSetPtr_(NULL); HashTable<dimensionedScalar>* unitSetPtr_(NULL);
dimensionSets* writeUnitSetPtr_(NULL); dimensionSets* writeUnitSetPtr_(NULL);
//- Helper class to // Helper class to
// - register re-reader // register re-reader
// - deallocate demand-driven data // deallocate demand-driven data
class addDimensionSetsToDebug class addDimensionSetsToDebug
: :
public ::Foam::simpleRegIOobject public ::Foam::simpleRegIOobject

View File

@ -33,7 +33,6 @@ namespace Foam
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
//- Interpolate point field
template<class FromPatch, class ToPatch> template<class FromPatch, class ToPatch>
template<class Type> template<class Type>
tmp<Field<Type>> tmp<Field<Type>>
@ -102,7 +101,6 @@ PatchToPatchInterpolation<FromPatch, ToPatch>::pointInterpolate
} }
//- Interpolate face field
template<class FromPatch, class ToPatch> template<class FromPatch, class ToPatch>
template<class Type> template<class Type>
tmp<Field<Type>> tmp<Field<Type>>

View File

@ -636,7 +636,6 @@ void Foam::mapDistribute::exchangeAddressing
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
//- Construct null
Foam::mapDistribute::mapDistribute() Foam::mapDistribute::mapDistribute()
: :
constructSize_(0), constructSize_(0),
@ -644,7 +643,6 @@ Foam::mapDistribute::mapDistribute()
{} {}
//- Construct from components
Foam::mapDistribute::mapDistribute Foam::mapDistribute::mapDistribute
( (
const label constructSize, const label constructSize,
@ -659,7 +657,6 @@ Foam::mapDistribute::mapDistribute
{} {}
//- Construct from components
Foam::mapDistribute::mapDistribute Foam::mapDistribute::mapDistribute
( (
const label constructSize, const label constructSize,

View File

@ -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) 2011-2015 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -56,7 +56,6 @@ void Foam::mapDistributePolyMesh::calcPatchSizes()
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
//- Construct from components
Foam::mapDistributePolyMesh::mapDistributePolyMesh Foam::mapDistributePolyMesh::mapDistributePolyMesh
( (
const polyMesh& mesh, const polyMesh& mesh,

View File

@ -31,7 +31,6 @@ License
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * // // * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
// Distribute list.
template<class T> template<class T>
void Foam::mapDistribute::distribute void Foam::mapDistribute::distribute
( (
@ -381,7 +380,6 @@ void Foam::mapDistribute::distribute
} }
// Distribute list.
template<class T, class CombineOp> template<class T, class CombineOp>
void Foam::mapDistribute::distribute void Foam::mapDistribute::distribute
( (
@ -783,7 +781,6 @@ void Foam::mapDistribute::receive(PstreamBuffers& pBufs, List<T>& field) const
} }
// In case of no transform: copy elements
template<class T> template<class T>
void Foam::mapDistribute::applyDummyTransforms(List<T>& field) const void Foam::mapDistribute::applyDummyTransforms(List<T>& field) const
{ {
@ -801,7 +798,6 @@ void Foam::mapDistribute::applyDummyTransforms(List<T>& field) const
} }
// In case of no transform: copy elements
template<class T> template<class T>
void Foam::mapDistribute::applyDummyInverseTransforms(List<T>& field) const void Foam::mapDistribute::applyDummyInverseTransforms(List<T>& field) const
{ {
@ -818,7 +814,6 @@ void Foam::mapDistribute::applyDummyInverseTransforms(List<T>& field) const
} }
// Calculate transformed elements.
template<class T, class TransformOp> //, class CombineOp> template<class T, class TransformOp> //, class CombineOp>
void Foam::mapDistribute::applyTransforms void Foam::mapDistribute::applyTransforms
( (
@ -849,7 +844,6 @@ void Foam::mapDistribute::applyTransforms
} }
// Calculate transformed elements.
template<class T, class TransformOp> //, class CombineOp> template<class T, class TransformOp> //, class CombineOp>
void Foam::mapDistribute::applyInverseTransforms void Foam::mapDistribute::applyInverseTransforms
( (
@ -880,7 +874,6 @@ void Foam::mapDistribute::applyInverseTransforms
} }
//- Distribute data using default commsType.
template<class T> template<class T>
void Foam::mapDistribute::distribute void Foam::mapDistribute::distribute
( (
@ -899,7 +892,6 @@ void Foam::mapDistribute::distribute
} }
//- Distribute data using default commsType.
template<class T> template<class T>
void Foam::mapDistribute::distribute void Foam::mapDistribute::distribute
( (
@ -948,7 +940,7 @@ void Foam::mapDistribute::distribute
); );
} }
//- Fill in transformed slots with copies // Fill in transformed slots with copies
if (dummyTransform) if (dummyTransform)
{ {
applyDummyTransforms(fld); applyDummyTransforms(fld);
@ -956,7 +948,6 @@ void Foam::mapDistribute::distribute
} }
//- Reverse distribute data using default commsType.
template<class T> template<class T>
void Foam::mapDistribute::reverseDistribute void Foam::mapDistribute::reverseDistribute
( (
@ -1013,9 +1004,6 @@ void Foam::mapDistribute::reverseDistribute
} }
//- Reverse distribute data using default commsType.
// Since constructSize might be larger than supplied size supply
// a nullValue
template<class T> template<class T>
void Foam::mapDistribute::reverseDistribute void Foam::mapDistribute::reverseDistribute
( (
@ -1079,7 +1067,6 @@ void Foam::mapDistribute::reverseDistribute
} }
//- Distribute data using default commsType.
template<class T, class TransformOp> template<class T, class TransformOp>
void Foam::mapDistribute::distribute void Foam::mapDistribute::distribute
( (

View File

@ -1130,7 +1130,6 @@ Foam::tmp<Foam::scalarField> Foam::polyMesh::movePoints
} }
// Reset motion by deleting old points
void Foam::polyMesh::resetMotion() const void Foam::polyMesh::resetMotion() const
{ {
curMotionTimeIndex_ = 0; curMotionTimeIndex_ = 0;
@ -1138,7 +1137,6 @@ void Foam::polyMesh::resetMotion() const
} }
// Return parallel info
const Foam::globalMeshData& Foam::polyMesh::globalData() const const Foam::globalMeshData& Foam::polyMesh::globalData() const
{ {
if (globalMeshDataPtr_.empty()) if (globalMeshDataPtr_.empty())

View File

@ -269,12 +269,6 @@ bool Foam::polyMesh::checkFaceSkewness
} }
// Check 1D/2Dness of edges. Gets passed the non-empty directions and
// checks all edges in the mesh whether they:
// - have no component in a non-empty direction or
// - are only in a singe non-empty direction.
// Empty direction info is passed in as a vector of labels (synchronised)
// which are 1 if the direction is non-empty, 0 if it is.
bool Foam::polyMesh::checkEdgeAlignment bool Foam::polyMesh::checkEdgeAlignment
( (
const pointField& p, const pointField& p,
@ -283,6 +277,13 @@ bool Foam::polyMesh::checkEdgeAlignment
labelHashSet* setPtr labelHashSet* setPtr
) const ) const
{ {
// Check 1D/2Dness of edges. Gets passed the non-empty directions and
// checks all edges in the mesh whether they:
// - have no component in a non-empty direction or
// - are only in a singe non-empty direction.
// Empty direction info is passed in as a vector of labels (synchronised)
// which are 1 if the direction is non-empty, 0 if it is.
if (debug) if (debug)
{ {
InfoInFunction << "Checking edge alignment" << endl; InfoInFunction << "Checking edge alignment" << endl;

View File

@ -127,7 +127,6 @@ Foam::labelList Foam::polyMesh::facePatchFaceCells
} }
//- Set faces_, calculate cells and patchStarts.
void Foam::polyMesh::setTopology void Foam::polyMesh::setTopology
( (
const cellShapeList& cellsAsShapes, const cellShapeList& cellsAsShapes,

View File

@ -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) 2011-2015 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -104,11 +104,6 @@ Foam::label Foam::oldCyclicPolyPatch::findMaxArea
} }
// Get geometric zones of patch by looking at normals.
// Method 1: any edge with sharpish angle is edge between two halves.
// (this will handle e.g. wedge geometries).
// Also two fully disconnected regions will be handled this way.
// Method 2: sort faces into two halves based on face normal.
bool Foam::oldCyclicPolyPatch::getGeometricHalves bool Foam::oldCyclicPolyPatch::getGeometricHalves
( (
const primitivePatch& pp, const primitivePatch& pp,
@ -116,6 +111,12 @@ bool Foam::oldCyclicPolyPatch::getGeometricHalves
labelList& half1ToPatch labelList& half1ToPatch
) const ) const
{ {
// Get geometric zones of patch by looking at normals.
// Method 1: any edge with sharpish angle is edge between two halves.
// (this will handle e.g. wedge geometries).
// Also two fully disconnected regions will be handled this way.
// Method 2: sort faces into two halves based on face normal.
// Calculate normals // Calculate normals
const vectorField& faceNormals = pp.faceNormals(); const vectorField& faceNormals = pp.faceNormals();
@ -282,9 +283,6 @@ bool Foam::oldCyclicPolyPatch::getGeometricHalves
} }
// Given a split of faces into left and right half calculate the centres
// and anchor points. Transform the left points so they align with the
// right ones.
void Foam::oldCyclicPolyPatch::getCentresAndAnchors void Foam::oldCyclicPolyPatch::getCentresAndAnchors
( (
const primitivePatch& pp, const primitivePatch& pp,
@ -430,7 +428,6 @@ void Foam::oldCyclicPolyPatch::getCentresAndAnchors
} }
// Calculates faceMap and rotation. Returns true if all ok.
bool Foam::oldCyclicPolyPatch::matchAnchors bool Foam::oldCyclicPolyPatch::matchAnchors
( (
const bool report, const bool report,

View File

@ -611,10 +611,6 @@ void Foam::processorPolyPatch::initOrder
} }
// Returns rotation.
// + -1 : no match
// + 0 : match
// + >0 : match if rotated clockwise by this amount
Foam::label Foam::processorPolyPatch::matchFace Foam::label Foam::processorPolyPatch::matchFace
( (
const face& a, const face& a,
@ -721,10 +717,6 @@ Foam::label Foam::processorPolyPatch::matchFace
} }
// Return new ordering. Ordering is -faceMap: for every face index
// the new face -rotation:for every new face the clockwise shift
// of the original face. Return false if nothing changes (faceMap
// is identity, rotation is 0)
bool Foam::processorPolyPatch::order bool Foam::processorPolyPatch::order
( (
PstreamBuffers& pBufs, PstreamBuffers& pBufs,

View File

@ -342,6 +342,10 @@ public:
// refer to *this (except for name() and type() etc.) // refer to *this (except for name() and type() etc.)
virtual void initOrder(PstreamBuffers&, const primitivePatch&) const; virtual void initOrder(PstreamBuffers&, const primitivePatch&) const;
//- Returns rotation.
// -1 : no match
// 0 : match
// >0 : match if rotated clockwise by this amount
static label matchFace static label matchFace
( (
const face& localFace, const face& localFace,

View File

@ -321,10 +321,6 @@ void Foam::processorCyclicPolyPatch::initOrder
} }
// Return new ordering. Ordering is -faceMap: for every face index
// the new face -rotation:for every new face the clockwise shift
// of the original face. Return false if nothing changes (faceMap
// is identity, rotation is 0)
bool Foam::processorCyclicPolyPatch::order bool Foam::processorCyclicPolyPatch::order
( (
PstreamBuffers& pBufs, PstreamBuffers& pBufs,

View File

@ -293,7 +293,6 @@ const Foam::vectorField::subField Foam::polyPatch::faceAreas() const
} }
// Return the patch face neighbour cell centres
Foam::tmp<Foam::vectorField> Foam::polyPatch::faceCellCentres() const Foam::tmp<Foam::vectorField> Foam::polyPatch::faceCellCentres() const
{ {
tmp<vectorField> tcc(new vectorField(size())); tmp<vectorField> tcc(new vectorField(size()));

View File

@ -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) 2011-2015 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -35,7 +35,6 @@ License
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * // // * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
// Combine val with existing value at index
template<class T, class CombineOp> template<class T, class CombineOp>
void Foam::syncTools::combine void Foam::syncTools::combine
( (
@ -58,7 +57,6 @@ void Foam::syncTools::combine
} }
// Combine val with existing value at (implicit index) e.
template<class T, class CombineOp> template<class T, class CombineOp>
void Foam::syncTools::combine void Foam::syncTools::combine
( (

View File

@ -132,7 +132,6 @@ bool Foam::ZoneMesh<ZoneType, MeshType>::read()
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
// Read constructor given IOobject and a MeshType reference
template<class ZoneType, class MeshType> template<class ZoneType, class MeshType>
Foam::ZoneMesh<ZoneType, MeshType>::ZoneMesh Foam::ZoneMesh<ZoneType, MeshType>::ZoneMesh
( (
@ -149,7 +148,6 @@ Foam::ZoneMesh<ZoneType, MeshType>::ZoneMesh
} }
// Construct given size. Zones will be set later
template<class ZoneType, class MeshType> template<class ZoneType, class MeshType>
Foam::ZoneMesh<ZoneType, MeshType>::ZoneMesh Foam::ZoneMesh<ZoneType, MeshType>::ZoneMesh
( (
@ -205,7 +203,6 @@ Foam::ZoneMesh<ZoneType, MeshType>::~ZoneMesh()
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
// Map of zones for quick zone lookup
template<class ZoneType, class MeshType> template<class ZoneType, class MeshType>
const Foam::Map<Foam::label>& const Foam::Map<Foam::label>&
Foam::ZoneMesh<ZoneType, MeshType>::zoneMap() const Foam::ZoneMesh<ZoneType, MeshType>::zoneMap() const
@ -219,8 +216,6 @@ Foam::ZoneMesh<ZoneType, MeshType>::zoneMap() const
} }
// Given a global object index, return the zone it is in.
// If object does not belong to any zones, return -1
template<class ZoneType, class MeshType> template<class ZoneType, class MeshType>
Foam::label Foam::ZoneMesh<ZoneType, MeshType>::whichZone Foam::label Foam::ZoneMesh<ZoneType, MeshType>::whichZone
( (
@ -241,7 +236,6 @@ Foam::label Foam::ZoneMesh<ZoneType, MeshType>::whichZone
} }
// Return a list of zone names
template<class ZoneType, class MeshType> template<class ZoneType, class MeshType>
Foam::wordList Foam::ZoneMesh<ZoneType, MeshType>::types() const Foam::wordList Foam::ZoneMesh<ZoneType, MeshType>::types() const
{ {
@ -258,7 +252,6 @@ Foam::wordList Foam::ZoneMesh<ZoneType, MeshType>::types() const
} }
// Return a list of zone names
template<class ZoneType, class MeshType> template<class ZoneType, class MeshType>
Foam::wordList Foam::ZoneMesh<ZoneType, MeshType>::names() const Foam::wordList Foam::ZoneMesh<ZoneType, MeshType>::names() const
{ {
@ -412,7 +405,6 @@ void Foam::ZoneMesh<ZoneType, MeshType>::clear()
} }
// Check zone definition
template<class ZoneType, class MeshType> template<class ZoneType, class MeshType>
bool Foam::ZoneMesh<ZoneType, MeshType>::checkDefinition bool Foam::ZoneMesh<ZoneType, MeshType>::checkDefinition
( (
@ -509,7 +501,6 @@ bool Foam::ZoneMesh<ZoneType, MeshType>::checkParallelSync
} }
// Correct zone mesh after moving points
template<class ZoneType, class MeshType> template<class ZoneType, class MeshType>
void Foam::ZoneMesh<ZoneType, MeshType>::movePoints(const pointField& p) void Foam::ZoneMesh<ZoneType, MeshType>::movePoints(const pointField& p)
{ {
@ -522,7 +513,6 @@ void Foam::ZoneMesh<ZoneType, MeshType>::movePoints(const pointField& p)
} }
// writeData member function required by regIOobject
template<class ZoneType, class MeshType> template<class ZoneType, class MeshType>
bool Foam::ZoneMesh<ZoneType, MeshType>::writeData(Ostream& os) const bool Foam::ZoneMesh<ZoneType, MeshType>::writeData(Ostream& os) const
{ {
@ -530,6 +520,7 @@ bool Foam::ZoneMesh<ZoneType, MeshType>::writeData(Ostream& os) const
return os.good(); return os.good();
} }
// * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * * //
template<class ZoneType, class MeshType> template<class ZoneType, class MeshType>

View File

@ -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) 2011-2015 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -32,8 +32,6 @@ Description
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
// Finds area, starting at faceI, delimited by borderEdge.
// Marks all visited faces (from face-edge-face walk) with currentZone.
template template
< <
class BoolListType, class BoolListType,
@ -42,9 +40,7 @@ template
class PointField, class PointField,
class PointType class PointType
> >
void Foam::PatchTools::markZone
void
Foam::PatchTools::markZone
( (
const PrimitivePatch<Face, FaceList, PointField, PointType>& p, const PrimitivePatch<Face, FaceList, PointField, PointType>& p,
const BoolListType& borderEdge, const BoolListType& borderEdge,
@ -112,8 +108,6 @@ Foam::PatchTools::markZone
} }
// Finds areas delimited by borderEdge (or 'real' edges).
// Fills faceZone accordingly
template template
< <
class BoolListType, class BoolListType,
@ -154,9 +148,6 @@ Foam::PatchTools::markZones
} }
// Finds areas delimited by borderEdge (or 'real' edges).
// Fills faceZone accordingly
template template
< <
class BoolListType, class BoolListType,

View File

@ -73,8 +73,6 @@ Foam::primitiveMesh::primitiveMesh()
{} {}
// Construct from components
// WARNING: ASSUMES CORRECT ORDERING OF DATA.
Foam::primitiveMesh::primitiveMesh Foam::primitiveMesh::primitiveMesh
( (
const label nPoints, const label nPoints,

View File

@ -360,6 +360,10 @@ protected:
) const; ) const;
//- Check face angles //- Check face angles
// Allows a slight non-convexity. E.g. maxDeg = 10 allows for
// angles < 190 (or 10 degrees concavity) (if truly concave and
// points not visible from face centre the face-pyramid check in
// checkMesh will fail)
bool checkFaceAngles bool checkFaceAngles
( (
const pointField& points, const pointField& points,

View File

@ -664,10 +664,6 @@ bool Foam::primitiveMesh::checkFaceSkewness
} }
// Check convexity of angles in a face. Allow a slight non-convexity.
// E.g. maxDeg = 10 allows for angles < 190 (or 10 degrees concavity)
// (if truly concave and points not visible from face centre the face-pyramid
// check in checkMesh will fail)
bool Foam::primitiveMesh::checkFaceAngles bool Foam::primitiveMesh::checkFaceAngles
( (
const pointField& points, const pointField& points,
@ -966,8 +962,6 @@ bool Foam::primitiveMesh::checkConcaveCells
} }
// Topological tests
bool Foam::primitiveMesh::checkUpperTriangular bool Foam::primitiveMesh::checkUpperTriangular
( (
const bool report, const bool report,
@ -1229,7 +1223,6 @@ bool Foam::primitiveMesh::checkCellsZipUp
} }
// Vertices of face within point range and unique.
bool Foam::primitiveMesh::checkFaceVertices bool Foam::primitiveMesh::checkFaceVertices
( (
const bool report, const bool report,
@ -1375,7 +1368,6 @@ bool Foam::primitiveMesh::checkPoints
} }
// Check if all points on face are shared between faces.
bool Foam::primitiveMesh::checkDuplicateFaces bool Foam::primitiveMesh::checkDuplicateFaces
( (
const label faceI, const label faceI,
@ -1417,7 +1409,6 @@ bool Foam::primitiveMesh::checkDuplicateFaces
} }
// Check that shared points are in consecutive order.
bool Foam::primitiveMesh::checkCommonOrder bool Foam::primitiveMesh::checkCommonOrder
( (
const label faceI, const label faceI,
@ -1579,8 +1570,6 @@ bool Foam::primitiveMesh::checkCommonOrder
} }
// Checks common vertices between faces. If more than 2 they should be
// consecutive on both faces.
bool Foam::primitiveMesh::checkFaceFaces bool Foam::primitiveMesh::checkFaceFaces
( (
const bool report, const bool report,

View File

@ -31,7 +31,6 @@ License
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * // // * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
// Returns edgeI between two points.
Foam::label Foam::primitiveMesh::getEdge Foam::label Foam::primitiveMesh::getEdge
( (
List<DynamicList<label>>& pe, List<DynamicList<label>>& pe,
@ -670,6 +669,4 @@ const Foam::labelList& Foam::primitiveMesh::cellEdges(const label cellI) const
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
// ************************************************************************* // // ************************************************************************* //

View File

@ -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) 2011-2015 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -29,14 +29,12 @@ License
namespace Foam namespace Foam
{ {
defineTypeNameAndDebug(patchZones, 0); defineTypeNameAndDebug(patchZones, 0);
} }
// * * * * * * * * * * * * * * * Global Functions * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Global Functions * * * * * * * * * * * * * //
// Gets labels of changed faces and propagates them to the edges. Returns
// labels of edges changed.
Foam::labelList Foam::patchZones::faceToEdge Foam::labelList Foam::patchZones::faceToEdge
( (
const labelList& changedFaces, const labelList& changedFaces,
@ -71,7 +69,6 @@ Foam::labelList Foam::patchZones::faceToEdge
} }
// Reverse of faceToEdge: gets edges and returns faces
Foam::labelList Foam::patchZones::edgeToFace(const labelList& changedEdges) Foam::labelList Foam::patchZones::edgeToFace(const labelList& changedEdges)
{ {
labelList changedFaces(pp_.size(), -1); labelList changedFaces(pp_.size(), -1);
@ -102,7 +99,6 @@ Foam::labelList Foam::patchZones::edgeToFace(const labelList& changedEdges)
} }
// Finds area, starting at faceI, delimited by borderEdge
void Foam::patchZones::markZone(label faceI) void Foam::patchZones::markZone(label faceI)
{ {
// List of faces whose faceZone has been set. // List of faces whose faceZone has been set.
@ -148,7 +144,6 @@ void Foam::patchZones::markZone(label faceI)
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
// Construct from components
Foam::patchZones::patchZones Foam::patchZones::patchZones
( (
const primitivePatch& pp, const primitivePatch& pp,

View File

@ -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) 2011-2015 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -30,13 +30,12 @@ License
namespace Foam namespace Foam
{ {
defineTypeNameAndDebug(walkPatch, 0); defineTypeNameAndDebug(walkPatch, 0);
} }
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * // // * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
// Get other face using v0, v1 (in localFaces numbering). Or -1.
Foam::label Foam::walkPatch::getNeighbour Foam::label Foam::walkPatch::getNeighbour
( (
const label faceI, const label faceI,
@ -124,8 +123,6 @@ Foam::label Foam::walkPatch::getNeighbour
} }
// Gets labels of changed faces and enterVertices on faces.
// Returns labels of faces changed and enterVertices on them.
void Foam::walkPatch::faceToFace void Foam::walkPatch::faceToFace
( (
const labelList& changedFaces, const labelList& changedFaces,
@ -186,7 +183,6 @@ void Foam::walkPatch::faceToFace
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
// Construct from components
Foam::walkPatch::walkPatch Foam::walkPatch::walkPatch
( (
const primitivePatch& pp, const primitivePatch& pp,

View File

@ -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) 2011-2015 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -28,7 +28,6 @@ License
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * // // * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
// Calculate base point and unit normal vector from plane equation
void Foam::plane::calcPntAndVec(const scalarList& C) void Foam::plane::calcPntAndVec(const scalarList& C)
{ {
if (mag(C[0]) > VSMALL) if (mag(C[0]) > VSMALL)
@ -110,7 +109,6 @@ void Foam::plane::calcPntAndVec
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
// Construct from normal vector through the origin
Foam::plane::plane(const vector& normalVector) Foam::plane::plane(const vector& normalVector)
: :
unitVector_(normalVector), unitVector_(normalVector),
@ -131,7 +129,6 @@ Foam::plane::plane(const vector& normalVector)
} }
// Construct from point and normal vector
Foam::plane::plane(const point& basePoint, const vector& normalVector) Foam::plane::plane(const point& basePoint, const vector& normalVector)
: :
unitVector_(normalVector), unitVector_(normalVector),
@ -152,14 +149,12 @@ Foam::plane::plane(const point& basePoint, const vector& normalVector)
} }
// Construct from plane equation
Foam::plane::plane(const scalarList& C) Foam::plane::plane(const scalarList& C)
{ {
calcPntAndVec(C); calcPntAndVec(C);
} }
// Construct from three points
Foam::plane::plane Foam::plane::plane
( (
const point& a, const point& a,
@ -171,7 +166,6 @@ Foam::plane::plane
} }
// Construct from dictionary
Foam::plane::plane(const dictionary& dict) Foam::plane::plane(const dictionary& dict)
: :
unitVector_(vector::zero), unitVector_(vector::zero),
@ -221,7 +215,6 @@ Foam::plane::plane(const dictionary& dict)
} }
// Construct from Istream. Assumes point and normal vector.
Foam::plane::plane(Istream& is) Foam::plane::plane(Istream& is)
: :
unitVector_(is), unitVector_(is),
@ -244,21 +237,18 @@ Foam::plane::plane(Istream& is)
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
// Return plane normal vector
const Foam::vector& Foam::plane::normal() const const Foam::vector& Foam::plane::normal() const
{ {
return unitVector_; return unitVector_;
} }
// Return plane base point
const Foam::point& Foam::plane::refPoint() const const Foam::point& Foam::plane::refPoint() const
{ {
return basePoint_; return basePoint_;
} }
// Return coefficients for plane equation: ax + by + cz + d = 0
Foam::FixedList<Foam::scalar, 4> Foam::plane::planeCoeffs() const Foam::FixedList<Foam::scalar, 4> Foam::plane::planeCoeffs() const
{ {
FixedList<scalar, 4> C(4); FixedList<scalar, 4> C(4);
@ -306,21 +296,18 @@ Foam::FixedList<Foam::scalar, 4> Foam::plane::planeCoeffs() const
} }
// Return nearest point in the plane for the given point
Foam::point Foam::plane::nearestPoint(const point& p) const Foam::point Foam::plane::nearestPoint(const point& p) const
{ {
return p - unitVector_*((p - basePoint_) & unitVector_); return p - unitVector_*((p - basePoint_) & unitVector_);
} }
// Return distance from the given point to the plane
Foam::scalar Foam::plane::distance(const point& p) const Foam::scalar Foam::plane::distance(const point& p) const
{ {
return mag((p - basePoint_) & unitVector_); return mag((p - basePoint_) & unitVector_);
} }
// Cutting point for plane and line defined by origin and direction
Foam::scalar Foam::plane::normalIntersect Foam::scalar Foam::plane::normalIntersect
( (
const point& pnt0, const point& pnt0,
@ -333,7 +320,6 @@ Foam::scalar Foam::plane::normalIntersect
} }
// Cutting line of two planes
Foam::plane::ray Foam::plane::planeIntersect(const plane& plane2) const Foam::plane::ray Foam::plane::planeIntersect(const plane& plane2) const
{ {
// Mathworld plane-plane intersection. Assume there is a point on the // Mathworld plane-plane intersection. Assume there is a point on the
@ -401,7 +387,6 @@ Foam::plane::ray Foam::plane::planeIntersect(const plane& plane2) const
} }
// Cutting point of three planes
Foam::point Foam::plane::planePlaneIntersect Foam::point Foam::plane::planePlaneIntersect
( (
const plane& plane2, const plane& plane2,

View File

@ -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) 2011-2012 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -119,18 +119,19 @@ void Foam::tetrahedron<Point, PointRef>::tetOverlap
} }
// (Probably very inefficient) minimum containment sphere calculation.
// From http://www.imr.sandia.gov/papers/imr11/shewchuk2.pdf:
// Sphere ctr is smallest one of
// - tet circumcentre
// - triangle circumcentre
// - edge mids
template<class Point, class PointRef> template<class Point, class PointRef>
Foam::pointHit Foam::tetrahedron<Point, PointRef>::containmentSphere Foam::pointHit Foam::tetrahedron<Point, PointRef>::containmentSphere
( (
const scalar tol const scalar tol
) const ) const
{ {
// (Probably very inefficient) minimum containment sphere calculation.
// From http://www.imr.sandia.gov/papers/imr11/shewchuk2.pdf:
// Sphere ctr is smallest one of
// - tet circumcentre
// - triangle circumcentre
// - edge mids
const scalar fac = 1 + tol; const scalar fac = 1 + tol;
// Halve order of tolerance for comparisons of sqr. // Halve order of tolerance for comparisons of sqr.

View File

@ -180,7 +180,6 @@ Foam::treeBoundBox Foam::treeBoundBox::subBbox(const direction octant) const
} }
// Octant to bounding box using permutation only.
Foam::treeBoundBox Foam::treeBoundBox::subBbox Foam::treeBoundBox Foam::treeBoundBox::subBbox
( (
const point& mid, const point& mid,
@ -230,24 +229,6 @@ Foam::treeBoundBox Foam::treeBoundBox::subBbox
} }
// line intersection. Returns true if line (start to end) inside
// bb or intersects bb. Sets pt to intersection.
//
// Sutherlands algorithm:
// loop
// - start = intersection of line with one of the planes bounding
// the bounding box
// - stop if start inside bb (return true)
// - stop if start and end in same 'half' (e.g. both above bb)
// (return false)
//
// Uses posBits to efficiently determine 'half' in which start and end
// point are.
//
// Note:
// - sets coordinate to exact position: e.g. pt.x() = min().x()
// since plane intersect routine might have truncation error.
// This makes sure that posBits tests 'inside'
bool Foam::treeBoundBox::intersects bool Foam::treeBoundBox::intersects
( (
const point& overallStart, const point& overallStart,
@ -258,6 +239,22 @@ bool Foam::treeBoundBox::intersects
direction& ptOnFaces direction& ptOnFaces
) const ) const
{ {
// Sutherlands algorithm:
// loop
// - start = intersection of line with one of the planes bounding
// the bounding box
// - stop if start inside bb (return true)
// - stop if start and end in same 'half' (e.g. both above bb)
// (return false)
//
// Uses posBits to efficiently determine 'half' in which start and end
// point are.
//
// Note:
// - sets coordinate to exact position: e.g. pt.x() = min().x()
// since plane intersect routine might have truncation error.
// This makes sure that posBits tests 'inside'
const direction endBits = posBits(end); const direction endBits = posBits(end);
pt = start; pt = start;
@ -393,9 +390,8 @@ bool Foam::treeBoundBox::intersects
bool Foam::treeBoundBox::contains(const vector& dir, const point& pt) const bool Foam::treeBoundBox::contains(const vector& dir, const point& pt) const
{ {
//
// Compare all components against min and max of bb // Compare all components against min and max of bb
//
for (direction cmpt=0; cmpt<3; cmpt++) for (direction cmpt=0; cmpt<3; cmpt++)
{ {
if (pt[cmpt] < min()[cmpt]) if (pt[cmpt] < min()[cmpt])
@ -430,7 +426,6 @@ bool Foam::treeBoundBox::contains(const vector& dir, const point& pt) const
} }
// Code position of pt on bounding box faces
Foam::direction Foam::treeBoundBox::faceBits(const point& pt) const Foam::direction Foam::treeBoundBox::faceBits(const point& pt) const
{ {
direction faceBits = 0; direction faceBits = 0;
@ -464,7 +459,6 @@ Foam::direction Foam::treeBoundBox::faceBits(const point& pt) const
} }
// Code position of point relative to box
Foam::direction Foam::treeBoundBox::posBits(const point& pt) const Foam::direction Foam::treeBoundBox::posBits(const point& pt) const
{ {
direction posBits = 0; direction posBits = 0;
@ -499,8 +493,6 @@ Foam::direction Foam::treeBoundBox::posBits(const point& pt) const
} }
// nearest and furthest corner coordinate.
// !names of treeBoundBox::min() and treeBoundBox::max() are confusing!
void Foam::treeBoundBox::calcExtremities void Foam::treeBoundBox::calcExtremities
( (
const point& pt, const point& pt,
@ -558,9 +550,6 @@ Foam::scalar Foam::treeBoundBox::maxDist(const point& pt) const
} }
// Distance comparator
// Compare all vertices of bounding box against all of other bounding
// box to see if all vertices of one are nearer
Foam::label Foam::treeBoundBox::distanceCmp Foam::label Foam::treeBoundBox::distanceCmp
( (
const point& pt, const point& pt,

View File

@ -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) 2011-2015 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -25,53 +25,48 @@ License
#include "tensor2D.H" #include "tensor2D.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
namespace Foam
{
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
template<> template<>
const char* const tensor2D::typeName = "tensor2D"; const char* const Foam::tensor2D::typeName = "tensor2D";
template<> template<>
const char* tensor2D::componentNames[] = const char* Foam::tensor2D::componentNames[] =
{ {
"xx", "xy", "xx", "xy",
"yx", "yy" "yx", "yy"
}; };
template<> template<>
const tensor2D tensor2D::zero const Foam::tensor2D Foam::tensor2D::zero
( (
0, 0, 0, 0,
0, 0 0, 0
); );
template<> template<>
const tensor2D tensor2D::one const Foam::tensor2D Foam::tensor2D::one
( (
1, 1, 1, 1,
1, 1 1, 1
); );
template<> template<>
const tensor2D tensor2D::max const Foam::tensor2D Foam::tensor2D::max
( (
VGREAT, VGREAT, VGREAT, VGREAT,
VGREAT, VGREAT VGREAT, VGREAT
); );
template<> template<>
const tensor2D tensor2D::min const Foam::tensor2D Foam::tensor2D::min
( (
-VGREAT, -VGREAT, -VGREAT, -VGREAT,
-VGREAT, -VGREAT -VGREAT, -VGREAT
); );
template<> template<>
const tensor2D tensor2D::I const Foam::tensor2D Foam::tensor2D::I
( (
1, 0, 1, 0,
0, 1 0, 1
@ -80,8 +75,7 @@ const tensor2D tensor2D::I
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
// Return eigenvalues in ascending order of absolute values Foam::vector2D Foam::eigenValues(const tensor2D& t)
vector2D eigenValues(const tensor2D& t)
{ {
scalar i = 0; scalar i = 0;
scalar ii = 0; scalar ii = 0;
@ -132,7 +126,7 @@ vector2D eigenValues(const tensor2D& t)
} }
vector2D eigenVector(const tensor2D& t, const scalar lambda) Foam::vector2D Foam::eigenVector(const tensor2D& t, const scalar lambda)
{ {
if (lambda < SMALL) if (lambda < SMALL)
{ {
@ -161,7 +155,7 @@ vector2D eigenVector(const tensor2D& t, const scalar lambda)
} }
tensor2D eigenVectors(const tensor2D& t) Foam::tensor2D Foam::eigenVectors(const tensor2D& t)
{ {
vector2D evals(eigenValues(t)); vector2D evals(eigenValues(t));
@ -175,8 +169,4 @@ tensor2D eigenVectors(const tensor2D& t)
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam
// ************************************************************************* // // ************************************************************************* //

View File

@ -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) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -30,7 +30,6 @@ License
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
// Construct from Istream
template<class Form, class Cmpt, int nCmpt> template<class Form, class Cmpt, int nCmpt>
Foam::VectorSpace<Form, Cmpt, nCmpt>::VectorSpace Foam::VectorSpace<Form, Cmpt, nCmpt>::VectorSpace
( (
@ -53,7 +52,6 @@ Foam::VectorSpace<Form, Cmpt, nCmpt>::VectorSpace
} }
// Return a string representation
template<class Form, class Cmpt, int nCmpt> template<class Form, class Cmpt, int nCmpt>
Foam::word Foam::word
Foam::name Foam::name

View File

@ -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) 2011-2015 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -29,8 +29,6 @@ License
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
// NB: values chosen such that bitwise '&' 0x1 yields the bool value
// INVALID is also evaluates to false, but don't rely on that
const char* Foam::Switch::names[Foam::Switch::INVALID+1] = const char* Foam::Switch::names[Foam::Switch::INVALID+1] =
{ {
"false", "true", "false", "true",
@ -38,7 +36,7 @@ const char* Foam::Switch::names[Foam::Switch::INVALID+1] =
"no", "yes", "no", "yes",
"n", "y", "n", "y",
"f", "t", "f", "t",
"none", "true", // is there a reasonable counterpart to "none"? "none", "true", // Is there a reasonable counterpart to "none"?
"invalid" "invalid"
}; };

View File

@ -187,7 +187,7 @@ Description
// acceptable. Do NOT use for cryptographic purposes. // acceptable. Do NOT use for cryptographic purposes.
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
//- Specialized little-endian code // Specialized little-endian code
#if !defined (__BYTE_ORDER) || (__BYTE_ORDER == __LITTLE_ENDIAN) #if !defined (__BYTE_ORDER) || (__BYTE_ORDER == __LITTLE_ENDIAN)
static unsigned jenkins_hashlittle static unsigned jenkins_hashlittle
( (

View File

@ -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) 2011-2015 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -36,7 +36,6 @@ const Foam::string Foam::string::null;
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
// Count and return the number of a given character in the string
Foam::string::size_type Foam::string::count(const char c) const Foam::string::size_type Foam::string::count(const char c) const
{ {
size_type cCount = 0; size_type cCount = 0;
@ -53,7 +52,6 @@ Foam::string::size_type Foam::string::count(const char c) const
} }
// Replace first occurence of sub-string oldStr with newStr
Foam::string& Foam::string::replace Foam::string& Foam::string::replace
( (
const string& oldStr, const string& oldStr,
@ -72,7 +70,6 @@ Foam::string& Foam::string::replace
} }
// Replace all occurences of sub-string oldStr with newStr
Foam::string& Foam::string::replaceAll Foam::string& Foam::string::replaceAll
( (
const string& oldStr, const string& oldStr,
@ -102,7 +99,6 @@ Foam::string& Foam::string::expand(const bool allowEmpty)
} }
// Remove repeated characters returning true if string changed
bool Foam::string::removeRepeated(const char character) bool Foam::string::removeRepeated(const char character)
{ {
bool changed = false; bool changed = false;
@ -141,7 +137,6 @@ bool Foam::string::removeRepeated(const char character)
} }
// Return string with repeated characters removed
Foam::string Foam::string::removeRepeated(const char character) const Foam::string Foam::string::removeRepeated(const char character) const
{ {
string str(*this); string str(*this);
@ -150,7 +145,6 @@ Foam::string Foam::string::removeRepeated(const char character) const
} }
// Remove trailing character returning true if string changed
bool Foam::string::removeTrailing(const char character) bool Foam::string::removeTrailing(const char character)
{ {
bool changed = false; bool changed = false;
@ -166,7 +160,6 @@ bool Foam::string::removeTrailing(const char character)
} }
// Return string with trailing character removed
Foam::string Foam::string::removeTrailing(const char character) const Foam::string Foam::string::removeTrailing(const char character) const
{ {
string str(*this); string str(*this);

View File

@ -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) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -30,8 +30,6 @@ License
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * // // * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
//- Calculate map from new patch faces to old patch faces. -1 where
// could not map.
Foam::labelList Foam::fvMeshAdder::calcPatchMap Foam::labelList Foam::fvMeshAdder::calcPatchMap
( (
const label oldStart, const label oldStart,
@ -61,7 +59,6 @@ Foam::labelList Foam::fvMeshAdder::calcPatchMap
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
// Inplace add mesh1 to mesh0
Foam::autoPtr<Foam::mapAddedPolyMesh> Foam::fvMeshAdder::add Foam::autoPtr<Foam::mapAddedPolyMesh> Foam::fvMeshAdder::add
( (
fvMesh& mesh0, fvMesh& mesh0,

View File

@ -39,7 +39,7 @@ License
namespace Foam namespace Foam
{ {
defineTypeNameAndDebug(meshCutAndRemove, 0); defineTypeNameAndDebug(meshCutAndRemove, 0);
} }
@ -89,7 +89,6 @@ bool Foam::meshCutAndRemove::isIn
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * // // * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
// Returns the cell in cellLabels that is cut. Or -1.
Foam::label Foam::meshCutAndRemove::findCutCell Foam::label Foam::meshCutAndRemove::findCutCell
( (
const cellCuts& cuts, const cellCuts& cuts,
@ -109,10 +108,6 @@ Foam::label Foam::meshCutAndRemove::findCutCell
} }
//- Returns first pointI in pointLabels that uses an internal
// face. Used to find point to inflate cell/face from (has to be
// connected to internal face). Returns -1 (so inflate from nothing) if
// none found.
Foam::label Foam::meshCutAndRemove::findInternalFacePoint Foam::label Foam::meshCutAndRemove::findInternalFacePoint
( (
const labelList& pointLabels const labelList& pointLabels
@ -145,8 +140,6 @@ Foam::label Foam::meshCutAndRemove::findInternalFacePoint
} }
// Find point on face that is part of original mesh and that is point connected
// to the patch
Foam::label Foam::meshCutAndRemove::findPatchFacePoint Foam::label Foam::meshCutAndRemove::findPatchFacePoint
( (
const face& f, const face& f,
@ -177,8 +170,6 @@ Foam::label Foam::meshCutAndRemove::findPatchFacePoint
} }
// Get new owner and neighbour of face. Checks anchor points to see if
// cells have been removed.
void Foam::meshCutAndRemove::faceCells void Foam::meshCutAndRemove::faceCells
( (
const cellCuts& cuts, const cellCuts& cuts,
@ -244,7 +235,6 @@ void Foam::meshCutAndRemove::getZoneInfo
} }
// Adds a face from point.
void Foam::meshCutAndRemove::addFace void Foam::meshCutAndRemove::addFace
( (
polyTopoChange& meshMod, polyTopoChange& meshMod,
@ -407,7 +397,6 @@ void Foam::meshCutAndRemove::modFace
} }
// Copies face starting from startFp up to and including endFp.
void Foam::meshCutAndRemove::copyFace void Foam::meshCutAndRemove::copyFace
( (
const face& f, const face& f,
@ -474,8 +463,6 @@ void Foam::meshCutAndRemove::splitFace
} }
// Adds additional vertices (from edge cutting) to face. Used for faces which
// are not split but still might use edge that has been cut.
Foam::face Foam::meshCutAndRemove::addEdgeCutsToFace(const label faceI) const Foam::face Foam::meshCutAndRemove::addEdgeCutsToFace(const label faceI) const
{ {
const face& f = mesh().faces()[faceI]; const face& f = mesh().faces()[faceI];

View File

@ -133,7 +133,6 @@ void Foam::motionSmootherAlgo::checkConstraints
} }
// Average of connected points.
template<class Type> template<class Type>
Foam::tmp<Foam::GeometricField<Type, Foam::pointPatchField, Foam::pointMesh>> Foam::tmp<Foam::GeometricField<Type, Foam::pointPatchField, Foam::pointMesh>>
Foam::motionSmootherAlgo::avg Foam::motionSmootherAlgo::avg
@ -232,7 +231,6 @@ Foam::motionSmootherAlgo::avg
} }
// smooth field (point-jacobi)
template<class Type> template<class Type>
void Foam::motionSmootherAlgo::smooth void Foam::motionSmootherAlgo::smooth
( (
@ -257,7 +255,6 @@ void Foam::motionSmootherAlgo::smooth
} }
//- Test synchronisation of generic field (not positions!) on points
template<class Type, class CombineOp> template<class Type, class CombineOp>
void Foam::motionSmootherAlgo::testSyncField void Foam::motionSmootherAlgo::testSyncField
( (

View File

@ -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) 2011-2015 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -33,11 +33,7 @@ License
namespace Foam namespace Foam
{ {
defineTypeNameAndDebug(polyMeshGeometry, 0);
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
defineTypeNameAndDebug(polyMeshGeometry, 0);
} }
@ -349,7 +345,6 @@ Foam::polyMeshGeometry::polyMeshGeometry(const polyMesh& mesh)
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
//- Take over properties from mesh
void Foam::polyMeshGeometry::correct() void Foam::polyMeshGeometry::correct()
{ {
faceAreas_ = mesh_.faceAreas(); faceAreas_ = mesh_.faceAreas();
@ -359,7 +354,6 @@ void Foam::polyMeshGeometry::correct()
} }
//- Recalculate on selected faces
void Foam::polyMeshGeometry::correct void Foam::polyMeshGeometry::correct
( (
const pointField& p, const pointField& p,

View File

@ -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) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -50,7 +50,6 @@ Foam::attachPolyTopoChanger::attachPolyTopoChanger
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
//- Attach mesh
void Foam::attachPolyTopoChanger::attach(const bool removeEmptyPatches) void Foam::attachPolyTopoChanger::attach(const bool removeEmptyPatches)
{ {
if (debug) if (debug)

View File

@ -34,9 +34,7 @@ License
namespace Foam namespace Foam
{ {
defineTypeNameAndDebug(refinementHistory, 0);
defineTypeNameAndDebug(refinementHistory, 0);
} }
@ -108,7 +106,6 @@ void Foam::refinementHistory::writeDebug
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
//- Construct null
Foam::refinementHistory::splitCell8::splitCell8() Foam::refinementHistory::splitCell8::splitCell8()
: :
parent_(-1), parent_(-1),
@ -116,7 +113,6 @@ Foam::refinementHistory::splitCell8::splitCell8()
{} {}
//- Construct as child element of parent
Foam::refinementHistory::splitCell8::splitCell8(const label parent) Foam::refinementHistory::splitCell8::splitCell8(const label parent)
: :
parent_(parent), parent_(parent),
@ -124,14 +120,12 @@ Foam::refinementHistory::splitCell8::splitCell8(const label parent)
{} {}
//- Construct from Istream
Foam::refinementHistory::splitCell8::splitCell8(Istream& is) Foam::refinementHistory::splitCell8::splitCell8(Istream& is)
{ {
is >> *this; is >> *this;
} }
//- Construct as (deep) copy.
Foam::refinementHistory::splitCell8::splitCell8(const splitCell8& sc) Foam::refinementHistory::splitCell8::splitCell8(const splitCell8& sc)
: :
parent_(sc.parent_), parent_(sc.parent_),
@ -362,7 +356,6 @@ Foam::refinementHistory::refinementHistory(const IOobject& io)
} }
//- Read or construct
Foam::refinementHistory::refinementHistory Foam::refinementHistory::refinementHistory
( (
const IOobject& io, const IOobject& io,

View File

@ -42,7 +42,7 @@ namespace Foam
defineTypeNameAndDebug(removePoints, 0); defineTypeNameAndDebug(removePoints, 0);
//- Combine-reduce operator to combine data on faces. Takes care // Combine-reduce operator to combine data on faces. Takes care
// of reverse orientation on coupled face. // of reverse orientation on coupled face.
template<class T, template<class> class CombineOp> template<class T, template<class> class CombineOp>
class faceEqOp class faceEqOp
@ -71,31 +71,11 @@ public:
} }
}; };
//// Dummy transform for List. Used in synchronisation.
//template<class T>
//class dummyTransformList
//{
//public:
// void operator()(const coupledPolyPatch&, Field<List<T>>&) const
// {}
//};
//// Dummy template specialisation. Used in synchronisation.
//template<>
//class pTraits<boolList>
//{
//public:
//
// //- Component type
// typedef label cmptType;
//};
} }
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * // // * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
// Change the vertices of the face whilst keeping everything else the same.
void Foam::removePoints::modifyFace void Foam::removePoints::modifyFace
( (
const label faceI, const label faceI,
@ -148,7 +128,6 @@ void Foam::removePoints::modifyFace
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
// Construct from mesh
Foam::removePoints::removePoints Foam::removePoints::removePoints
( (
const polyMesh& mesh, const polyMesh& mesh,

View File

@ -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) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -29,9 +29,7 @@ License
namespace Foam namespace Foam
{ {
defineTypeNameAndDebug(featureEdgeMesh, 0);
defineTypeNameAndDebug(featureEdgeMesh, 0);
} }
@ -64,7 +62,6 @@ Foam::featureEdgeMesh::featureEdgeMesh(const IOobject& io)
} }
//- Construct from components
Foam::featureEdgeMesh::featureEdgeMesh Foam::featureEdgeMesh::featureEdgeMesh
( (
const IOobject& io, const IOobject& io,

View File

@ -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) 2011-2012 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -46,7 +46,6 @@ void Foam::engineTime::timeAdjustment()
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
//- Construct from objectRegistry arguments
Foam::engineTime::engineTime Foam::engineTime::engineTime
( (
const word& name, const word& name,

View File

@ -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) 2011-2015 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -51,7 +51,6 @@ const Foam::NamedEnum<Foam::coordSet::coordFormat, 5>
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
//- Construct from components
Foam::coordSet::coordSet Foam::coordSet::coordSet
( (
const word& name, const word& name,
@ -65,7 +64,6 @@ Foam::coordSet::coordSet
{} {}
//- Construct from components
Foam::coordSet::coordSet Foam::coordSet::coordSet
( (
const word& name, const word& name,

View File

@ -864,7 +864,6 @@ bool Foam::fvMesh::writeObjects
} }
//- Write mesh using IO settings from the time
bool Foam::fvMesh::write() const bool Foam::fvMesh::write() const
{ {
bool ok = true; bool ok = true;

View File

@ -2390,7 +2390,6 @@ Foam::label Foam::autoLayerDriver::checkAndUnmark
} }
//- Count global number of extruded faces
Foam::label Foam::autoLayerDriver::countExtrusion Foam::label Foam::autoLayerDriver::countExtrusion
( (
const indirectPrimitivePatch& pp, const indirectPrimitivePatch& pp,

View File

@ -1743,7 +1743,6 @@ Foam::labelList Foam::meshRefinement::intersectedPoints() const
} }
//- Create patch from set of patches
Foam::autoPtr<Foam::indirectPrimitivePatch> Foam::meshRefinement::makePatch Foam::autoPtr<Foam::indirectPrimitivePatch> Foam::meshRefinement::makePatch
( (
const polyMesh& mesh, const polyMesh& mesh,
@ -2757,7 +2756,6 @@ const
} }
//- Return either time().constant() or oldInstance
Foam::word Foam::meshRefinement::timeName() const Foam::word Foam::meshRefinement::timeName() const
{ {
if (overwrite_ && mesh_.time().timeIndex() == 0) if (overwrite_ && mesh_.time().timeIndex() == 0)

View File

@ -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) 2011-2015 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -30,7 +30,7 @@ License
namespace Foam 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 Foam::volumeType Foam::treeDataEdge::getVolumeType
( (
const indexedOctree<treeDataEdge>& oc, 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 bool Foam::treeDataEdge::overlaps
( (
const label index, const label index,
@ -158,7 +155,6 @@ bool Foam::treeDataEdge::overlaps
} }
// Check if any point on shape is inside sphere.
bool Foam::treeDataEdge::overlaps bool Foam::treeDataEdge::overlaps
( (
const label index, const label index,

View File

@ -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) 2011-2015 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -31,9 +31,9 @@ License
namespace Foam 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 Foam::volumeType Foam::treeDataFace::getVolumeType
( (
const indexedOctree<treeDataFace>& oc, const indexedOctree<treeDataFace>& oc,

View File

@ -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) 2011-2015 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License 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 Foam::volumeType Foam::treeDataPoint::getVolumeType
( (
const indexedOctree<treeDataPoint>& oc, 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 bool Foam::treeDataPoint::overlaps
( (
const label index, const label index,
@ -112,7 +109,6 @@ bool Foam::treeDataPoint::overlaps
} }
// Check if any point on shape is inside sphere.
bool Foam::treeDataPoint::overlaps bool Foam::treeDataPoint::overlaps
( (
const label index, const label index,

View File

@ -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> template<class PatchType>
Foam::volumeType Foam::treeDataPrimitivePatch<PatchType>::getVolumeType Foam::volumeType Foam::treeDataPrimitivePatch<PatchType>::getVolumeType
( (

View File

@ -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) 2011-2015 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -29,7 +29,6 @@ License
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
// Check if n is in same direction as normals of all faceLabels
bool Foam::meshTools::visNormal bool Foam::meshTools::visNormal
( (
const vector& n, const vector& n,
@ -668,7 +667,6 @@ void Foam::meshTools::constrainToMeshCentre
} }
//- Set the constrained components of directions/velocity to zero
void Foam::meshTools::constrainDirection void Foam::meshTools::constrainDirection
( (
const polyMesh& mesh, const polyMesh& mesh,

View File

@ -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) 2011-2015 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -230,7 +230,6 @@ Foam::primitiveMeshGeometry::primitiveMeshGeometry
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
//- Take over properties from mesh
void Foam::primitiveMeshGeometry::correct() void Foam::primitiveMeshGeometry::correct()
{ {
faceAreas_ = mesh_.faceAreas(); faceAreas_ = mesh_.faceAreas();
@ -240,7 +239,6 @@ void Foam::primitiveMeshGeometry::correct()
} }
//- Recalculate on selected faces
void Foam::primitiveMeshGeometry::correct void Foam::primitiveMeshGeometry::correct
( (
const pointField& p, const pointField& p,

View File

@ -27,9 +27,7 @@ License
#include "searchableSurfacesQueries.H" #include "searchableSurfacesQueries.H"
#include "ListOps.H" #include "ListOps.H"
#include "Time.H" #include "Time.H"
//#include "vtkSetWriter.H"
#include "DynamicField.H" #include "DynamicField.H"
//#include "OBJstream.H"
#include "PatchTools.H" #include "PatchTools.H"
#include "triSurfaceMesh.H" #include "triSurfaceMesh.H"
@ -37,13 +35,12 @@ License
namespace Foam namespace Foam
{ {
defineTypeNameAndDebug(searchableSurfaces, 0); defineTypeNameAndDebug(searchableSurfaces, 0);
} }
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * // // * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
//- Is edge connected to triangle
bool Foam::searchableSurfaces::connected bool Foam::searchableSurfaces::connected
( (
const triSurface& s, 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 void Foam::searchableSurfaces::findAllIntersections
( (
const pointField& start, const pointField& start,
@ -372,7 +367,6 @@ void Foam::searchableSurfaces::findNearestIntersection
} }
// Find nearest. Return -1 or nearest point
void Foam::searchableSurfaces::findNearest void Foam::searchableSurfaces::findNearest
( (
const pointField& samples, const pointField& samples,
@ -393,7 +387,6 @@ void Foam::searchableSurfaces::findNearest
} }
// Find nearest. Return -1 or nearest point
void Foam::searchableSurfaces::findNearest void Foam::searchableSurfaces::findNearest
( (
const pointField& samples, const pointField& samples,
@ -415,7 +408,7 @@ void Foam::searchableSurfaces::findNearest
); );
} }
//- Calculate bounding box
Foam::boundBox Foam::searchableSurfaces::bounds() const Foam::boundBox Foam::searchableSurfaces::bounds() const
{ {
return searchableSurfacesQueries::bounds 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 Foam::pointIndexHit Foam::searchableSurfaces::facesIntersection
( (
const scalar initDistSqr, const scalar initDistSqr,

View File

@ -33,7 +33,7 @@ License
namespace Foam 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 Foam::pointIndexHit Foam::searchableSurfacesQueries::facesIntersection
( (
const PtrList<searchableSurface>& allSurfaces, const PtrList<searchableSurface>& allSurfaces,

View File

@ -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) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -238,7 +238,6 @@ label cellZoneSet::maxSize(const polyMesh& mesh) const
} }
//- Write using given format, version and compression
bool cellZoneSet::writeObject bool cellZoneSet::writeObject
( (
IOstream::streamFormat s, IOstream::streamFormat s,

View File

@ -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) 2011-2015 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -331,7 +331,6 @@ label faceZoneSet::maxSize(const polyMesh& mesh) const
} }
//- Write using given format, version and compression
bool faceZoneSet::writeObject bool faceZoneSet::writeObject
( (
IOstream::streamFormat s, IOstream::streamFormat s,

View File

@ -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) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -239,7 +239,6 @@ label pointZoneSet::maxSize(const polyMesh& mesh) const
} }
//- Write using given format, version and compression
bool pointZoneSet::writeObject bool pointZoneSet::writeObject
( (
IOstream::streamFormat s, IOstream::streamFormat s,

View File

@ -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) 2011-2015 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -39,15 +39,14 @@ License
namespace Foam 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 * * * * * * * * * * * // // * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
//- Get nearest point on edge and classify position on edge.
Foam::pointIndexHit Foam::surfaceFeatures::edgeNearest Foam::pointIndexHit Foam::surfaceFeatures::edgeNearest
( (
const point& start, const point& start,
@ -498,7 +497,6 @@ Foam::surfaceFeatures::surfaceFeatures
} }
//- Construct from dictionary
Foam::surfaceFeatures::surfaceFeatures Foam::surfaceFeatures::surfaceFeatures
( (
const triSurface& surf, const triSurface& surf,
@ -513,7 +511,6 @@ Foam::surfaceFeatures::surfaceFeatures
{} {}
//- Construct from file
Foam::surfaceFeatures::surfaceFeatures Foam::surfaceFeatures::surfaceFeatures
( (
const triSurface& surf, const triSurface& surf,
@ -618,7 +615,6 @@ Foam::surfaceFeatures::surfaceFeatures
} }
//- Construct as copy
Foam::surfaceFeatures::surfaceFeatures(const surfaceFeatures& sf) Foam::surfaceFeatures::surfaceFeatures(const surfaceFeatures& sf)
: :
surf_(sf.surface()), surf_(sf.surface()),

View File

@ -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 Foam::scalar Foam::triSurfaceTools::collapseMinCosAngle
( (
const triSurface& surf, const triSurface& surf,

View File

@ -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) 2011-2015 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -126,12 +126,6 @@ void Foam::wallBoundedParticle::patchInteraction
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
//- Track particle to a given position and returns 1.0 if the
// trajectory is completed without hitting a face otherwise
// stops at the face and returns the fraction of the trajectory
// completed.
// on entry 'stepFraction()' should be set to the fraction of the
// time-step at which the tracking starts.
template<class TrackData> template<class TrackData>
Foam::scalar Foam::wallBoundedParticle::trackToEdge Foam::scalar Foam::wallBoundedParticle::trackToEdge
( (
@ -139,6 +133,13 @@ Foam::scalar Foam::wallBoundedParticle::trackToEdge
const vector& endPosition const vector& endPosition
) )
{ {
// Track particle to a given position and returns 1.0 if the
// trajectory is completed without hitting a face otherwise
// stops at the face and returns the fraction of the trajectory
// completed.
// on entry 'stepFraction()' should be set to the fraction of the
// time-step at which the tracking starts.
// Are we on a track face? If not we do a topological walk. // Are we on a track face? If not we do a topological walk.
// Particle: // Particle:

View File

@ -34,7 +34,6 @@ License
namespace Foam namespace Foam
{ {
//- Comparison operator for probes class
template<class T> template<class T>
class isNotEqOp class isNotEqOp
{ {

View File

@ -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) 2011-2015 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -38,7 +38,6 @@ namespace Foam
// * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * * // // * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * * //
//- Calculate and return the laminar viscosity
void Foam::incompressibleTwoPhaseMixture::calcNu() void Foam::incompressibleTwoPhaseMixture::calcNu()
{ {
nuModel1_->correct(); nuModel1_->correct();