Code style: Updated line comments to start with a space

//This is a comment   ->   // This is a comment
This commit is contained in:
Henry Weller
2018-05-01 11:57:50 +01:00
parent 9ffc025b08
commit 87e32ab499
476 changed files with 2009 additions and 1967 deletions

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -181,7 +181,7 @@ void Foam::cellSplitter::setRefinement
);
addedPoints_.insert(celli, addedPointi);
//Pout<< "Added point " << addedPointi
// Pout<< "Added point " << addedPointi
// << iter() << " in cell " << celli << " with centre "
// << mesh_.cellCentres()[celli] << endl;
}
@ -226,7 +226,7 @@ void Foam::cellSplitter::setRefinement
cellToCells.insert(celli, newCells);
//Pout<< "Split cell " << celli
// Pout<< "Split cell " << celli
// << " with centre " << mesh_.cellCentres()[celli] << nl
// << " faces:" << cFaces << nl
// << " into :" << newCells << endl;

View File

@ -624,7 +624,7 @@ int main(int argc, char *argv[])
}
// Not implemented yet:
//cutter.updateMesh(morphMap());
// cutter.updateMesh(morphMap());
if (!overwrite)

View File

@ -662,7 +662,7 @@ int main(int argc, char *argv[])
{
if (cuts.cellLoops()[celli].size())
{
//Info<< "Removing cut cell " << celli << " from wishlist"
// Info<< "Removing cut cell " << celli << " from wishlist"
// << endl;
cellsToCut.erase(celli);
}

View File

@ -204,12 +204,12 @@ void ReadVertices
);
CCMIOReadMap(&err, mapID, mapData.begin(), offset, offsetPlusSize);
//CCMIOSize size;
//CCMIOEntityDescription(&err, vertices, &size, nullptr);
//char *desc = new char[size + 1];
//CCMIOEntityDescription(&err, vertices, nullptr, desc);
//Pout<< "label: '" << desc << "'" << endl;
//delete [] desc;
// CCMIOSize size;
// CCMIOEntityDescription(&err, vertices, &size, nullptr);
// char *desc = new char[size + 1];
// CCMIOEntityDescription(&err, vertices, nullptr, desc);
// Pout<< "label: '" << desc << "'" << endl;
// delete [] desc;
// Convert to foamPoints
foamPoints.setSize(nVertices);
@ -336,7 +336,7 @@ void ReadProblem
}
//foamPatchMap.append(prostarI);
// foamPatchMap.append(prostarI);
// Read boundary name:

View File

@ -666,7 +666,7 @@ endOfSection {space}")"{space}
}
<readZoneBlock>{lbrac} {
//Warning
// Warning
// << "Found unknown block in zone: " << YYText() << nl
// << " on line " << lineNo << endl;
yy_push_state(ignoreBlock);
@ -916,7 +916,7 @@ int main(int argc, char *argv[])
// It is ok if the periodics are already ordered. We should read the
// periodic shadow faces section (section 18) to give use the ordering
// For now just disable.
//fluentToFoamType.insert("periodic", cyclicPolyPatch::typeName);
// fluentToFoamType.insert("periodic", cyclicPolyPatch::typeName);
// Foam patch type for Fluent zone type
@ -1389,13 +1389,13 @@ int main(int argc, char *argv[])
faces[facei],
owner[facei],
neighbour[facei],
-1, //masterPointID
-1, //masterEdgeID
facei, //masterFace
false, //flipFaceFlux
-1, //patchID
-1, //zoneID
false //zoneFlip
-1, // masterPointID
-1, // masterEdgeID
facei, // masterFace
false, // flipFaceFlux
-1, // patchID
-1, // zoneID
false // zoneFlip
);
}
}

View File

@ -1151,7 +1151,7 @@ int main(int argc, char *argv[])
}
//make patchless mesh before analysing boundaries
// make patchless mesh before analysing boundaries
faceListList patches(0);
wordList patchNames(0);
@ -1191,9 +1191,9 @@ int main(int argc, char *argv[])
Info<< endl << "Building boundary and internal patches." << endl;
//adding patches after mesh construction allows topological checks
//on whether a patch is internal or external, something fluent
//doesn't seem to mind
// adding patches after mesh construction allows topological checks
// on whether a patch is internal or external, something fluent
// doesn't seem to mind
// Make boundary patches
@ -1223,7 +1223,7 @@ int main(int argc, char *argv[])
label nPatches = 0;
//colate information for all patches (internal and external)
// colate information for all patches (internal and external)
for
(
;
@ -1271,7 +1271,7 @@ int main(int argc, char *argv[])
}
}
//inlets and outlets
// inlets and outlets
if
(
curPatchType == "pressure"
@ -1293,7 +1293,7 @@ int main(int argc, char *argv[])
nPatches++;
}
else if (curPatchType == "wall" ) //wall boundaries
else if (curPatchType == "wall" ) // wall boundaries
{
patches[nPatches] = patchFaces;
patchTypes[nPatches] = wallPolyPatch::typeName;
@ -1305,7 +1305,7 @@ int main(int argc, char *argv[])
(
curPatchType == "symmetry"
|| curPatchType == "axis"
) //symmetry planes
) // symmetry planes
{
patches[nPatches] = patchFaces;
patchTypes[nPatches] = symmetryPolyPatch::typeName;
@ -1322,7 +1322,7 @@ int main(int argc, char *argv[])
|| curPatchType == "fan"
|| curPatchType == "radiator"
|| curPatchType == "porous-jump"
) //interior boundaries - will not be added as patches
) // interior boundaries - will not be added as patches
{
patches[nPatches] = patchFaces;
patchTypes[nPatches] = "internal";
@ -1333,7 +1333,7 @@ int main(int argc, char *argv[])
else if
(
curPatchType == ""
) //unnamed face regions default to interior patches
) // unnamed face regions default to interior patches
{
Info<< "Patch " << faceGroupZoneIDIter()
<< ": Faces are defined but "
@ -1347,7 +1347,7 @@ int main(int argc, char *argv[])
nPatches++;
}
else //unknown face regions are not handled
else // unknown face regions are not handled
{
FatalErrorInFunction
<< "fluent patch type " << curPatchType << " not recognised."
@ -1355,7 +1355,7 @@ int main(int argc, char *argv[])
}
}
//add front and back boundaries for 2D meshes
// add front and back boundaries for 2D meshes
if (dimensionOfGrid == 2)
{
Info<< "Creating patch for front and back planes" << endl << endl;
@ -1367,16 +1367,16 @@ int main(int argc, char *argv[])
nPatches++;
}
//Now have all patch information,
//check whether each patch is internal or external
//and add boundaries to mesh
//also write face sets of all patches
// Now have all patch information,
// check whether each patch is internal or external
// and add boundaries to mesh
// also write face sets of all patches
patches.setSize(nPatches);
patchTypes.setSize(nPatches);
patchNames.setSize(nPatches);
//old polyBoundary
// old polyBoundary
const polyBoundaryMesh& oPatches = pShapeMesh.boundaryMesh();
// new patches.
DynamicList<polyPatch*> newPatches(nPatches);
@ -1403,12 +1403,12 @@ int main(int argc, char *argv[])
}
//check if patch is internal
//also check internal/external-ness of first patch face
//internal faces cannot become foam boundaries
//if a face is defined as internal but is actually external
//it will be put in a default wall boundary
//internal boundaries are simply ignored
// check if patch is internal
// also check internal/external-ness of first patch face
// internal faces cannot become foam boundaries
// if a face is defined as internal but is actually external
// it will be put in a default wall boundary
// internal boundaries are simply ignored
if
(
@ -1416,10 +1416,10 @@ int main(int argc, char *argv[])
&& !pShapeMesh.isInternalFace(meshFaces[0])
)
{
//first face is external and has valid non-internal type
// first face is external and has valid non-internal type
//check all faces for externalness just to be sure
//and mark patch number to global list
// check all faces for externalness just to be sure
// and mark patch number to global list
forAll(meshFaces, i)
{
label facei = meshFaces[i];
@ -1446,7 +1446,7 @@ int main(int argc, char *argv[])
facePatchID[facei - pShapeMesh.nInternalFaces()] = nBoundaries;
}
//add to boundary patch
// add to boundary patch
Info<< "Adding new patch " << patchNames[patchi]
<< " of type " << patchTypes[patchi]

View File

@ -1001,7 +1001,7 @@ int main(int argc, char *argv[])
Info<< endl;
//Get polyMesh to write to constant
// Get polyMesh to write to constant
runTime.setTime(instant(runTime.constant()), 0);

View File

@ -683,7 +683,7 @@ int main(int argc, char *argv[])
// Switch on additional debug info
const bool verbose = false; //true;
const bool verbose = false; // true;
// Unit scale factors
scalar lengthScale = 1;

View File

@ -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-2018 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -44,7 +44,7 @@ void Foam::sammMesh::fillSammCellShapeTable()
sammShapeLookup[64] = sammTrim1Ptr_;
sammShapeLookup[128] = sammTrim1Ptr_;
//SAMM trim type 2: 12 models
// SAMM trim type 2: 12 models
sammShapeLookup[3] = sammTrim2Ptr_;
sammShapeLookup[12] = sammTrim2Ptr_;
sammShapeLookup[192] = sammTrim2Ptr_;

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -171,7 +171,7 @@ void Foam::sammMesh::readBoundary()
pointLabels[2] == pointLabels[3]
)
{
//Info<< "Converting collapsed quad into triangle"
// Info<< "Converting collapsed quad into triangle"
// << " for face " << facei
// << " in Samm boundary " << lineIndex << endl;

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -169,7 +169,7 @@ void Foam::starMesh::readBoundary()
pointLabels[2] == pointLabels[3]
)
{
//Info<< "Converting collapsed quad into triangle"
// Info<< "Converting collapsed quad into triangle"
// << " for face " << facei
// << " in Star boundary " << lineIndex << endl;

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2017 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -243,7 +243,7 @@ int main(int argc, char *argv[])
forAll(cellCentres, celli)
{
//point cc = b.blockShape().centre(b.points());
// point cc = b.blockShape().centre(b.points());
const point& cc = cellCentres[celli];
str << "v " << cc.x() << ' ' << cc.y() << ' ' << cc.z() << nl;

View File

@ -810,7 +810,7 @@ void addCouplingPatches
<< '\t' << newPatches[interRegionBottomPatch[zoneI]]->type()
<< nl;
}
else //patch using shadow face zones.
else // patch using shadow face zones.
{
interRegionTopPatch[zoneI] = addPatch<mappedWallPolyPatch>
(
@ -1256,7 +1256,7 @@ void extrudeGeometricProperties
)
);
//forAll(extrudePatch.edges(), edgeI)
// forAll(extrudePatch.edges(), edgeI)
//{
// const edge& e = extrudePatch.edges()[edgeI];
// Pout<< "Edge:" << e.centre(extrudePatch.localPoints()) << nl
@ -1599,49 +1599,49 @@ int main(int argc, char *argv[])
//// Read objects in time directory
//IOobjectList objects(mesh, runTime.timeName());
// IOobjectList objects(mesh, runTime.timeName());
//
//// Read vol fields.
//
//PtrList<volScalarField> vsFlds;
//ReadFields(mesh, objects, vsFlds);
// PtrList<volScalarField> vsFlds;
// ReadFields(mesh, objects, vsFlds);
//
//PtrList<volVectorField> vvFlds;
//ReadFields(mesh, objects, vvFlds);
// PtrList<volVectorField> vvFlds;
// ReadFields(mesh, objects, vvFlds);
//
//PtrList<volSphericalTensorField> vstFlds;
//ReadFields(mesh, objects, vstFlds);
// PtrList<volSphericalTensorField> vstFlds;
// ReadFields(mesh, objects, vstFlds);
//
//PtrList<volSymmTensorField> vsymtFlds;
//ReadFields(mesh, objects, vsymtFlds);
// PtrList<volSymmTensorField> vsymtFlds;
// ReadFields(mesh, objects, vsymtFlds);
//
//PtrList<volTensorField> vtFlds;
//ReadFields(mesh, objects, vtFlds);
// PtrList<volTensorField> vtFlds;
// ReadFields(mesh, objects, vtFlds);
//
//// Read surface fields.
//
//PtrList<surfaceScalarField> ssFlds;
//ReadFields(mesh, objects, ssFlds);
// PtrList<surfaceScalarField> ssFlds;
// ReadFields(mesh, objects, ssFlds);
//
//PtrList<surfaceVectorField> svFlds;
//ReadFields(mesh, objects, svFlds);
// PtrList<surfaceVectorField> svFlds;
// ReadFields(mesh, objects, svFlds);
//
//PtrList<surfaceSphericalTensorField> sstFlds;
//ReadFields(mesh, objects, sstFlds);
// PtrList<surfaceSphericalTensorField> sstFlds;
// ReadFields(mesh, objects, sstFlds);
//
//PtrList<surfaceSymmTensorField> ssymtFlds;
//ReadFields(mesh, objects, ssymtFlds);
// PtrList<surfaceSymmTensorField> ssymtFlds;
// ReadFields(mesh, objects, ssymtFlds);
//
//PtrList<surfaceTensorField> stFlds;
//ReadFields(mesh, objects, stFlds);
// PtrList<surfaceTensorField> stFlds;
// ReadFields(mesh, objects, stFlds);
//
//// Read point fields.
//
//PtrList<pointScalarField> psFlds;
//ReadFields(pointMesh::New(mesh), objects, psFlds);
// PtrList<pointScalarField> psFlds;
// ReadFields(pointMesh::New(mesh), objects, psFlds);
//
//PtrList<pointVectorField> pvFlds;
//ReadFields(pointMesh::New(mesh), objects, pvFlds);
// PtrList<pointVectorField> pvFlds;
// ReadFields(pointMesh::New(mesh), objects, pvFlds);
@ -2136,12 +2136,12 @@ int main(int argc, char *argv[])
// << " name:" << newPatches[patchi]->name()
// << endl;
// }
// //label nOldPatches = mesh.boundary().size();
// // label nOldPatches = mesh.boundary().size();
// mesh.clearOut();
// mesh.removeFvBoundary();
// mesh.addFvPatches(newPatches, true);
// //// Add calculated fvPatchFields for the added patches
// //for
// // for
// //(
// // label patchi = nOldPatches;
// // patchi < mesh.boundary().size();
@ -2152,7 +2152,7 @@ int main(int argc, char *argv[])
// // << endl;
// // addCalculatedPatchFields(mesh);
// //}
// //Pout<< "** Added " << mesh.boundary().size()-nOldPatches
// // Pout<< "** Added " << mesh.boundary().size()-nOldPatches
// // << " patches." << endl;
// }
@ -2368,7 +2368,7 @@ int main(int argc, char *argv[])
vectorField firstDisp(localRegionNormals.size());
forAll(firstDisp, regionI)
{
//const point& regionPt = regionCentres[regionI];
// const point& regionPt = regionCentres[regionI];
const point& regionPt = extrudePatch.points()
[
extrudePatch.meshPoints()
@ -2724,7 +2724,7 @@ int main(int argc, char *argv[])
}
}
if (zoneShadowNames.size() > 0) //if there is a top faceZone specified
if (zoneShadowNames.size() > 0) // if there is a top faceZone specified
{
forAll(extrudeMeshFaces, zoneFacei)
{
@ -2788,7 +2788,7 @@ int main(int argc, char *argv[])
true, // flip flux
interMeshTopPatch[zoneI], // patch for face
-1, // zone for face
false //face flip in zone
false // face flip in zone
);
}
}

View File

@ -49,7 +49,7 @@ sampleMode nearestPatchFace;
oneD false;
//- If oneD: specify which boundary is wanted between the layers
//oneDPolyPatchType empty; //wedge
// oneDPolyPatchType empty; // wedge
//- If oneD: specify whether to duplicate points (i.e. disconnect 1D
// columns) or only on non-manifold extrusion areas. Default is false.

View File

@ -88,7 +88,7 @@ Foam::extrude2DMesh::extrude2DMesh
:
mesh_(mesh),
dict_(dict),
//patchDict_(dict.subDict("patchInfo")),
// patchDict_(dict.subDict("patchInfo")),
model_(model),
modelType_(dict.lookup("extrudeModel")),
patchType_(dict.lookup("patchType")),
@ -209,11 +209,11 @@ void Foam::extrude2DMesh::setRefinement
{
meshMod.addCell
(
-1, //masterPointID,
-1, //masterEdgeID,
-1, //masterFaceID,
celli + offset, //masterCellID,
mesh_.cellZones().whichZone(celli) //zoneID
-1, // masterPointID,
-1, // masterEdgeID,
-1, // masterFaceID,
celli + offset, // masterCellID,
mesh_.cellZones().whichZone(celli) // zoneID
);
}
}

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -68,7 +68,7 @@ class extrude2DMesh
const dictionary dict_;
//const dictionary patchDict_;
// const dictionary patchDict_;
const extrudeModel& model_;
@ -85,7 +85,7 @@ class extrude2DMesh
void check2D() const;
//- Find extrusion direction
//void findExtrudeDirection();
// void findExtrudeDirection();
//- Disallow default bitwise copy construct
extrude2DMesh(const extrude2DMesh&);

View File

@ -1074,7 +1074,7 @@ bool Foam::backgroundMeshDecomposition::overlapsThisProcessor
const scalar radiusSqr
) const
{
//return bFTreePtr_().findAnyOverlap(centre, radiusSqr);
// return bFTreePtr_().findAnyOverlap(centre, radiusSqr);
return bFTreePtr_().findNearest(centre, radiusSqr).hit();
}
@ -1448,7 +1448,7 @@ Foam::labelList Foam::backgroundMeshDecomposition::overlapProcessors
////
//// if (flagOverlap)
//// {
//// //if (vertexOctree.findAnyOverlap(c, rSqr))
//// // if (vertexOctree.findAnyOverlap(c, rSqr))
////// if (vertexOctree.findNearest(c, rSqr*1.001).hit())
////// {
////// sphereOverlapsCandidate[sI] = true;
@ -1565,7 +1565,7 @@ Foam::labelList Foam::backgroundMeshDecomposition::overlapProcessors
//
// if (flagOverlap)
// {
// //if (vertexOctree.findAnyOverlap(c, rSqr))
// // if (vertexOctree.findAnyOverlap(c, rSqr))
//// if (vertexOctree.findNearest(c, rSqr*1.001).hit())
//// {
//// sphereOverlapsCandidate[sI] = true;

View File

@ -95,7 +95,7 @@ class backgroundMeshDecomposition
// Private data
//- Method details dictionary
//dictionary coeffsDict_;
// dictionary coeffsDict_;
//- Reference to runtime
const Time& runTime_;

View File

@ -142,7 +142,7 @@ word cellShapeControlMesh::meshSubDir = "cellShapeControlMesh";
// }
// }
//
// //external spoke
// // external spoke
//
// Foam::point mirrorPt = pt + 2*d;
//
@ -769,17 +769,17 @@ Foam::label Foam::cellShapeControlMesh::estimateCellCount
scalar volume = CGAL::to_double(tet.volume());
scalar averagedPointCellSize = 0;
//scalar averagedPointCellSize = 1;
// scalar averagedPointCellSize = 1;
// Get an average volume by averaging the cell size of the vertices
for (label vI = 0; vI < 4; ++vI)
{
averagedPointCellSize += cit->vertex(vI)->targetCellSize();
//averagedPointCellSize *= cit->vertex(vI)->targetCellSize();
// averagedPointCellSize *= cit->vertex(vI)->targetCellSize();
}
averagedPointCellSize /= 4;
//averagedPointCellSize = ::sqrt(averagedPointCellSize);
// averagedPointCellSize = ::sqrt(averagedPointCellSize);
// if (averagedPointCellSize < small)
// {

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2012-2017 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2012-2018 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -122,7 +122,7 @@ Foam::fileControl::~fileControl()
// tensor alignment = Zero;
// forAll(bary, pI)
// {
// //alignment += bary[pI]*ch->vertex(pI)->alignment();
// // alignment += bary[pI]*ch->vertex(pI)->alignment();
//
// // Find nearest point
// if (bary[pI] > nearest)

View File

@ -429,7 +429,7 @@ void Foam::controlMeshRefinement::initialMeshPopulation
}
}
//mesh_.rangeInsertWithInfo(vertices.begin(), vertices.end());
// mesh_.rangeInsertWithInfo(vertices.begin(), vertices.end());
Info<< " Inserted "
<< returnReduce
@ -623,7 +623,7 @@ void Foam::controlMeshRefinement::initialMeshPopulation
}
}
//mesh_.rangeInsertWithInfo(vertices.begin(), vertices.end());
// mesh_.rangeInsertWithInfo(vertices.begin(), vertices.end());
Info<< " Inserted extra points "
<< returnReduce

View File

@ -272,7 +272,7 @@ Foam::tmp<Foam::triSurfacePointScalarField> Foam::automatic::load()
}
}
//smoothField(surfaceCellSize);
// smoothField(surfaceCellSize);
pointCellSize.write();

View File

@ -530,7 +530,7 @@ void Foam::conformalVoronoiMesh::buildCellSizeAndAlignmentMesh()
for (label i = 0; i < nMaxIter; ++i)
{
label nAdded = meshRefinement.refineMesh(decomposition_);
//cellShapeControl_.refineMesh(decomposition_);
// cellShapeControl_.refineMesh(decomposition_);
reduce(nAdded, sumOp<label>());
if (Pstream::parRun())
@ -572,7 +572,7 @@ void Foam::conformalVoronoiMesh::buildCellSizeAndAlignmentMesh()
if (foamyHexMeshControls().writeCellShapeControlMesh())
{
//cellSizeMesh.writeTriangulation();
// cellSizeMesh.writeTriangulation();
cellSizeMesh.write();
}

View File

@ -824,7 +824,7 @@ void Foam::conformalVoronoiMesh::checkCellSizing()
autoPtr<polyMesh> meshPtr = createPolyMeshFromPoints(ptsField);
const polyMesh& pMesh = meshPtr();
//pMesh.write();
// pMesh.write();
// Find cells with poor quality
DynamicList<label> checkFaces(identity(pMesh.nFaces()));
@ -921,7 +921,7 @@ void Foam::conformalVoronoiMesh::checkCellSizing()
Info<< " DISABLED: Automatically re-sizing " << cellsToResize.size()
<< " cells that are attached to the bad faces: " << endl;
//cellSizeControl_.setCellSizes(cellsToResize);
// cellSizeControl_.setCellSizes(cellsToResize);
}
timeCheck("End of Cell Sizing");
@ -1291,9 +1291,9 @@ void Foam::conformalVoronoiMesh::indexDualVertices
}
}
//OBJstream snapping1("snapToSurface1.obj");
//OBJstream snapping2("snapToSurface2.obj");
//OFstream tetToSnapTo("tetsToSnapTo.obj");
// OBJstream snapping1("snapToSurface1.obj");
// OBJstream snapping2("snapToSurface2.obj");
// OFstream tetToSnapTo("tetsToSnapTo.obj");
for
(
@ -1490,9 +1490,9 @@ void Foam::conformalVoronoiMesh::indexDualVertices
}
}
//pts.setSize(this->cellCount());
// pts.setSize(this->cellCount());
//boundaryPts.setSize(this->cellCount());
// boundaryPts.setSize(this->cellCount());
}

View File

@ -389,7 +389,7 @@ void Foam::conformalVoronoiMesh::buildSurfaceConformation()
// Re-index the point pairs
ptPairs_.reIndex(oldToNewIndices);
//writePointPairs("pointPairs_initial.obj");
// writePointPairs("pointPairs_initial.obj");
// Remove location from surface/edge tree
@ -630,7 +630,7 @@ void Foam::conformalVoronoiMesh::buildSurfaceConformation()
// Reindex the point pairs
ptPairs_.reIndex(oldToNewIndices);
//writePointPairs("pointPairs_" + name(iterationNo) + ".obj");
// writePointPairs("pointPairs_" + name(iterationNo) + ".obj");
if (Pstream::parRun())
{
@ -1955,8 +1955,8 @@ bool Foam::conformalVoronoiMesh::nearFeatureEdgeLocation
&& (mag(lineBetweenPoints) > pointPairDistance(pt))
)
{
//pt = edgeHit.hitPoint();
//pHit.setPoint(pt);
// pt = edgeHit.hitPoint();
// pHit.setPoint(pt);
closeToFeatureEdge = false;
}
else

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2012-2017 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2012-2018 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -432,8 +432,8 @@ Foam::autoPtr<Foam::fvMesh> Foam::conformalVoronoiMesh::createDummyMesh
{
patches[patchi] = new processorPolyPatch
(
0, //patchSizes[p],
0, //patchStarts[p],
0, // patchSizes[p],
0, // patchStarts[p],
patchi,
mesh.boundaryMesh(),
readLabel(patchDicts[patchi].lookup("myProcNo")),
@ -447,8 +447,8 @@ Foam::autoPtr<Foam::fvMesh> Foam::conformalVoronoiMesh::createDummyMesh
(
patchDicts[patchi].lookup("type"),
patchNames[patchi],
0, //patchSizes[p],
0, //patchStarts[p],
0, // patchSizes[p],
0, // patchStarts[p],
patchi,
mesh.boundaryMesh()
).ptr();

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2013-2016 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2013-2018 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -148,7 +148,7 @@ void Foam::featurePointConformer::addMasterAndSlavePoints
const label masterIndex = pts.last().index();
//meshTools::writeOBJ(strMasters, masterPt);
// meshTools::writeOBJ(strMasters, masterPt);
const planeDynList& masterPointPlanes = masterPointReflections[pI];
@ -186,7 +186,7 @@ void Foam::featurePointConformer::addMasterAndSlavePoints
pts.last().index()
);
//meshTools::writeOBJ(strSlaves, slavePt);
// meshTools::writeOBJ(strSlaves, slavePt);
}
}
}
@ -279,7 +279,7 @@ void Foam::featurePointConformer::createMasterAndSlavePoints
: Vb::vtInternalFeaturePoint // false
);
//Info<< " " << " " << firstPlane << endl;
// Info<< " " << " " << firstPlane << endl;
// const Foam::point reflectedPoint = reflectPointInPlane
// (
@ -500,7 +500,7 @@ void Foam::featurePointConformer::createFeaturePoints(DynamicList<Vb>& pts)
{
for
(
//label ptI = feMesh.convexStart();
// label ptI = feMesh.convexStart();
label ptI = feMesh.mixedStart();
ptI < feMesh.nonFeatureStart();
ptI++
@ -561,7 +561,7 @@ Foam::featurePointConformer::featurePointConformer
{
Vb& pt = pts[pI];
//if (pt.featureEdgePoint())
// if (pt.featureEdgePoint())
{
if (pt.internalBoundaryPoint())
{

View File

@ -394,7 +394,7 @@ bool Foam::featurePointConformer::createSpecialisedFeaturePoint
if (totalAngle > foamyHexMeshControls_.maxQuadAngle())
{
// Add additional mitreing points
//scalar angleSign = 1.0;
// scalar angleSign = 1.0;
vector convexEdgesPlaneNormal =
@ -828,7 +828,7 @@ bool Foam::featurePointConformer::createSpecialisedFeaturePoint
if (totalAngle > foamyHexMeshControls_.maxQuadAngle())
{
// Add additional mitreing points
//scalar angleSign = 1.0;
// scalar angleSign = 1.0;
vector convexEdgesPlaneNormal =

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2012-2016 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2012-2018 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -274,7 +274,7 @@ public:
{
return
(
//this->point() == rhs.point()
// this->point() == rhs.point()
this->type_ == rhs.type()
&& this->index_ == rhs.index()
&& this->processor_ == rhs.procIndex()

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2012-2015 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2012-2018 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -230,7 +230,7 @@ inline bool CGAL::indexedVertex<Gt, Vb>::referred() const
{
// Can't be zero as the first few points are far points which won't be
// referred
//return index_ < 0;
// return index_ < 0;
// processor_ will be take the value of the processor that this vertex is
// from, so it cannot be on this processor.

View File

@ -558,7 +558,7 @@ Foam::conformationSurfaces::conformationSurfaces
// Extend the global bounds to stop the bound box sitting on the surfaces
// to be conformed to
//globalBounds_ = globalBounds_.extend(rndGen_, 1e-4);
// globalBounds_ = globalBounds_.extend(rndGen_, 1e-4);
vector newSpan = 1e-4*globalBounds_.span();
@ -652,7 +652,7 @@ bool Foam::conformationSurfaces::outside
) const
{
return wellOutside(pointField(1, samplePt), scalarField(1, 0))[0];
//return !inside(samplePt);
// return !inside(samplePt);
}
@ -693,7 +693,7 @@ Foam::Field<bool> Foam::conformationSurfaces::wellInOutSide
// Assume that the point is wellInside until demonstrated otherwise.
Field<bool> insideOutsidePoint(samplePts.size(), testForInside);
//Check if the points are inside the surface by the given distance squared
// Check if the points are inside the surface by the given distance squared
labelList hitSurfaces;
List<pointIndexHit> hitInfo;
@ -1182,9 +1182,9 @@ void Foam::conformationSurfaces::findAllNearestEdges
) const
{
// Initialise
//featuresHit.setSize(features_.size());
//featuresHit = -1;
//edgeHitsByFeature.setSize(features_.size());
// featuresHit.setSize(features_.size());
// featuresHit = -1;
// edgeHitsByFeature.setSize(features_.size());
// Work arrays
List<pointIndexHit> hitInfo(extendedFeatureEdgeMesh::nEdgeTypes);

View File

@ -89,7 +89,7 @@ scalar rampHoldFall::relaxation()
}
else
{
//Hold
// Hold
return holdRelaxation_;
}

View File

@ -179,7 +179,7 @@ surfaceConformation
// Additional features.
additionalFeatures
{
//line
// line
//{
// featureMethod extendedFeatureEdgeMesh; // or none;
// extendedFeatureEdgeMesh "line.extendedFeatureEdgeMesh";
@ -309,7 +309,7 @@ motionControl
// and lowers to 0 (at simulation endTime) to converge points.
// adaptiveLinear is preferred choice.
// Points move by e.g. 10% of tet size.
relaxationModel adaptiveLinear; //rampHoldFall
relaxationModel adaptiveLinear; // rampHoldFall
adaptiveLinearCoeffs
{
@ -467,7 +467,7 @@ meshQualityControls
//- minVolRatio (0 -> 1)
minVolRatio 0.01;
//must be >0 for Fluent compatibility
// must be >0 for Fluent compatibility
minTriangleTwist -1;
}

View File

@ -562,8 +562,8 @@ int main(int argc, char *argv[])
autoPtr<mapDistributePolyMesh> map = distributor.distribute(decomp);
// Print some statistics
//Info<< "After distribution:" << endl;
//printMeshData(mesh);
// Info<< "After distribution:" << endl;
// printMeshData(mesh);
mesh.setInstance(runTime.constant());
Info<< "Writing redistributed mesh" << nl << endl;
@ -721,8 +721,8 @@ int main(int argc, char *argv[])
fvm,
cellDistance,
pointDistance,
0, //distance,
false //regularise
0, // distance,
false // regularise
);
isoFaces.setSize(iso.size());

View File

@ -199,14 +199,14 @@ public:
////- Surface intersects bb (but not using intersection test)
//scalar ccDist = signedDistance(bb.midpoint());
//scalar ccVal = ccDist - _iso_val;
//if (mag(ccVal) < small)
// scalar ccDist = signedDistance(bb.midpoint());
// scalar ccVal = ccDist - _iso_val;
// if (mag(ccVal) < small)
//{
// return true;
//}
//const pointField points(bb.points());
//forAll(points, pointi)
// const pointField points(bb.points());
// forAll(points, pointi)
//{
// scalar pointVal = signedDistance(points[pointi]) - _iso_val;
// if (ccVal*pointVal < 0)
@ -214,24 +214,24 @@ public:
// return true;
// }
//}
//return false;
// return false;
////- Refinement based on intersection with multiple planes.
//// Does not work well - too high a ratio between
//// neighbouring cubes.
//const pointField points(bb.points());
//const edgeList& edges = treeBoundBox::edges;
//pointField start(edges.size());
//pointField end(edges.size());
//forAll(edges, i)
// const pointField points(bb.points());
// const edgeList& edges = treeBoundBox::edges;
// pointField start(edges.size());
// pointField end(edges.size());
// forAll(edges, i)
//{
// start[i] = points[edges[i][0]];
// end[i] = points[edges[i][1]];
//}
//Foam::List<Foam::List<pointIndexHit>> hitInfo;
//labelListList hitSurfaces;
//searchableSurfacesQueries::findAllIntersections
// Foam::List<Foam::List<pointIndexHit>> hitInfo;
// labelListList hitSurfaces;
// searchableSurfacesQueries::findAllIntersections
//(
// geometry,
// surfaces,
@ -242,13 +242,13 @@ public:
//);
//
//// Count number of intersections
//label nInt = 0;
//forAll(hitSurfaces, edgeI)
// label nInt = 0;
// forAll(hitSurfaces, edgeI)
//{
// nInt += hitSurfaces[edgeI].size();
//}
//
//if (nInt == 0)
// if (nInt == 0)
//{
// // No surface intersected. See if there is one inside
// forAll(surfaces, i)
@ -262,8 +262,8 @@ public:
//}
//
//// Check multiple surfaces
//label baseSurfI = -1;
//forAll(hitSurfaces, edgeI)
// label baseSurfI = -1;
// forAll(hitSurfaces, edgeI)
//{
// const labelList& hSurfs = hitSurfaces[edgeI];
// forAll(hSurfs, i)
@ -281,8 +281,8 @@ public:
//}
//
//// Get normals
//DynamicList<pointIndexHit> baseInfo(nInt);
//forAll(hitInfo, edgeI)
// DynamicList<pointIndexHit> baseInfo(nInt);
// forAll(hitInfo, edgeI)
//{
// const Foam::List<pointIndexHit>& hits = hitInfo[edgeI];
// forAll(hits, i)
@ -291,62 +291,62 @@ public:
// baseInfo.append(hits[i]);
// }
//}
//vectorField normals;
//geometry[surfaces[baseSurfI]].getNormal(baseInfo, normals);
//for (label i = 1; i < normals.size(); ++i)
// vectorField normals;
// geometry[surfaces[baseSurfI]].getNormal(baseInfo, normals);
// for (label i = 1; i < normals.size(); ++i)
//{
// if ((normals[0] & normals[i]) < 0.9)
// {
// return true;
// }
//}
//labelList regions;
//geometry[surfaces[baseSurfI]].getRegion(baseInfo, regions);
//for (label i = 1; i < regions.size(); ++i)
// labelList regions;
// geometry[surfaces[baseSurfI]].getRegion(baseInfo, regions);
// for (label i = 1; i < regions.size(); ++i)
//{
// if (regions[0] != regions[i])
// {
// return true;
// }
//}
//return false;
// return false;
//samples[0] = point(c.xmin(), c.ymin(), c.zmin());
//samples[1] = point(c.xmax(), c.ymin(), c.zmin());
//samples[2] = point(c.xmax(), c.ymax(), c.zmin());
//samples[3] = point(c.xmin(), c.ymax(), c.zmin());
// samples[0] = point(c.xmin(), c.ymin(), c.zmin());
// samples[1] = point(c.xmax(), c.ymin(), c.zmin());
// samples[2] = point(c.xmax(), c.ymax(), c.zmin());
// samples[3] = point(c.xmin(), c.ymax(), c.zmin());
//
//samples[4] = point(c.xmin(), c.ymin(), c.zmax());
//samples[5] = point(c.xmax(), c.ymin(), c.zmax());
//samples[6] = point(c.xmax(), c.ymax(), c.zmax());
//samples[7] = point(c.xmin(), c.ymax(), c.zmax());
// samples[4] = point(c.xmin(), c.ymin(), c.zmax());
// samples[5] = point(c.xmax(), c.ymin(), c.zmax());
// samples[6] = point(c.xmax(), c.ymax(), c.zmax());
// samples[7] = point(c.xmin(), c.ymax(), c.zmax());
//scalarField nearestDistSqr(8, great);
// scalarField nearestDistSqr(8, great);
//
//Foam::List<pointIndexHit> nearestInfo;
//surf_.findNearest(samples, nearestDistSqr, nearestInfo);
//vectorField normals;
//surf_.getNormal(nearestInfo, normals);
// Foam::List<pointIndexHit> nearestInfo;
// surf_.findNearest(samples, nearestDistSqr, nearestInfo);
// vectorField normals;
// surf_.getNormal(nearestInfo, normals);
//
//for (label i = 1; i < normals.size(); ++i)
// for (label i = 1; i < normals.size(); ++i)
//{
// if ((normals[0] & normals[i]) < 0.5)
// {
// return true;
// }
//}
//return false;
// return false;
//// Check if surface octree same level
//const labelList elems(surf_.tree().findBox(bb));
// const labelList elems(surf_.tree().findBox(bb));
//
//if (elems.size() > 1)
// if (elems.size() > 1)
//{
// return true;
//}
//else
// else
//{
// return false;
//}
@ -470,9 +470,9 @@ int main(int argc, char *argv[])
distanceCalc ref
(
8, //maxLevel
0.0, //distance
minLevel, //minLevel
8, // maxLevel
0.0, // distance
minLevel, // minLevel
geometryToConformTo,
converter
);

View File

@ -52,7 +52,7 @@ int main(int argc, char *argv[])
(
"Re-sample surfaces used in foamyHexMesh operation"
);
//argList::validArgs.append("inputFile");
// argList::validArgs.append("inputFile");
argList::validArgs.append("(nx ny nz)");
argList::validArgs.append("outputName");

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2013-2016 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2013-2018 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -882,8 +882,8 @@ void Foam::CV2D::newPoints()
{
w = magSqr(deltai.x()*ei.y() - deltai.y()*ei.x());
// alternative weights
//w = mag(deltai.x()*ei.y() - deltai.y()*ei.x());
//w = magSqr(ei)*mag(deltai);
// w = mag(deltai.x()*ei.y() - deltai.y()*ei.x());
// w = magSqr(ei)*mag(deltai);
// Use the following for an ~square mesh
// Find the coordinate contributions for this edge delta

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2013-2016 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2013-2018 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -157,7 +157,7 @@ private:
mutable Random rndGen_;
//- The surface to mesh
//const querySurface& qSurf_;
// const querySurface& qSurf_;
//- All geometry of the meshing process, including surfaces to be
// conformed to and those to be used for refinement
searchableSurfaces allGeometry_;

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2013-2016 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2013-2018 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -195,8 +195,8 @@ inline void Foam::CV2D::movePoint(const Vertex_handle& vh, const Point& P)
// move(vh, P);
// vh->index() = i;
//vh->set_point(P);
//fast_restore_Delaunay(vh);
// vh->set_point(P);
// fast_restore_Delaunay(vh);
}

View File

@ -154,16 +154,16 @@ extrusion
extrude on;
extrudeModel linearDirection;
//extrudeModel wedge;
// extrudeModel wedge;
patchInfo
{
//type empty;
//startFace
// type empty;
// startFace
}
patchType empty;
//patchType wedge;
// patchType wedge;
nLayers 1;

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2013-2015 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2013-2018 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -227,7 +227,7 @@ void Foam::CV2D::insertFeaturePoints()
int(totalAngle/meshControls().maxQuadAngle()) + 1;
// The number of additional master points needed to
//obtain the required number of quadrants.
// obtain the required number of quadrants.
int nAddPoints = min(max(nQuads - 2, 0), 2);
// index of reflMaster

View File

@ -321,7 +321,7 @@ autoPtr<refinementSurfaces> createRefinementSurfaces
minLevel,
maxLevel,
gapLevel,
scalarField(nRegions, -great), //perpendicularAngle,
scalarField(nRegions, -great), // perpendicularAngle,
patchInfo
)
);
@ -872,7 +872,7 @@ int main(int argc, char *argv[])
(
"abc", // dummy name
mesh.time().constant(), // instance
//mesh.time().findInstance("triSurface", word::null),// instance
// mesh.time().findInstance("triSurface", word::null),// instance
"triSurface", // local
mesh.time(), // registry
IOobject::MUST_READ,
@ -922,9 +922,9 @@ int main(int argc, char *argv[])
const scalar initialCellSize = ::pow(meshPtr().V()[0], 1.0/3.0);
//Info<< "Wanted cell size = " << defaultCellSize << endl;
//Info<< "Current cell size = " << initialCellSize << endl;
//Info<< "Fraction = " << initialCellSize/defaultCellSize
// Info<< "Wanted cell size = " << defaultCellSize << endl;
// Info<< "Current cell size = " << initialCellSize << endl;
// Info<< "Fraction = " << initialCellSize/defaultCellSize
// << endl;
surfacesPtr =

View File

@ -51,8 +51,8 @@ geometry
type triSurfaceMesh;
file "sphere.stl"
//tolerance 1E-5; // optional:non-default tolerance on intersections
//maxTreeDepth 10; // optional:depth of octree. Decrease only in case
// tolerance 1E-5; // optional:non-default tolerance on intersections
// maxTreeDepth 10; // optional:depth of octree. Decrease only in case
// of memory limitations.
// Per region the patchname. If not provided will be <surface>_<region>.
@ -130,7 +130,7 @@ castellatedMeshControls
(
//{
// file "someLine.eMesh";
// //level 2;
// // level 2;
// levels ((0.0 2) (1.0 3));
//}
);
@ -171,13 +171,13 @@ castellatedMeshControls
//- Optional increment (on top of max level) in small gaps
//gapLevelIncrement 2;
// gapLevelIncrement 2;
//- Optional angle to detect small-large cell situation
// perpendicular to the surface. Is the angle of face w.r.t.
// the local surface normal. Use on flat(ish) surfaces only.
// Otherwise leave out or set to negative number.
//perpendicularAngle 10;
// perpendicularAngle 10;
//- Optional faceZone and (for closed surface) cellZone with
// how to select the cells that are in the cellZone
@ -186,9 +186,9 @@ castellatedMeshControls
// - if on cellZone(s) : point out of (maximum) cellZone
// - if freestanding : oriented according to surface
//faceZone sphere;
//cellZone sphere;
//cellZoneInside inside; //outside/insidePoint
// faceZone sphere;
// cellZone sphere;
// cellZoneInside inside; // outside/insidePoint
//- Optional specification of what to do with faceZone faces:
// internal : keep them as internal faces (default)
@ -196,7 +196,7 @@ castellatedMeshControls
// freedom in mesh motion
// boundary : create free-standing boundary faces (baffles
// but without the shared points)
//faceType baffle;
// faceType baffle;
}
}
@ -206,7 +206,7 @@ castellatedMeshControls
resolveFeatureAngle 30;
//- Optional increment (on top of max level) in small gaps
//gapLevelIncrement 2;
// gapLevelIncrement 2;
// Planar angle:
@ -243,7 +243,7 @@ castellatedMeshControls
mode inside;
levels ((1.0 4));
}
//sphere
// sphere
//{
// mode distance;
// levels ((1.0 5) (2.0 3));
@ -271,7 +271,7 @@ castellatedMeshControls
// Optional: switch off topological test for cells to-be-squashed
// and use geometric test instead
//useTopologicalSnapDetection false;
// useTopologicalSnapDetection false;
}
// Settings for the snapping.
@ -344,12 +344,12 @@ addLayersControls
// Wanted thickness of the layer next to the wall.
// If relativeSizes this is relative to undistorted size of cell
// outside layer.
//firstLayerThickness 0.3;
// firstLayerThickness 0.3;
// Wanted overall thickness of layers.
// If relativeSizes this is relative to undistorted size of cell
// outside layer.
//thickness 0.5
// thickness 0.5
// Minimum overall thickness of total layers. If for any reason layer
@ -433,15 +433,15 @@ addLayersControls
// Optional: limit the number of steps walking away from the surface.
// Default is unlimited.
//nMedialAxisIter 10;
// nMedialAxisIter 10;
// Optional: smooth displacement after medial axis determination.
// default is 0.
//nSmoothDisplacement 90;
// nSmoothDisplacement 90;
// (wip)Optional: do not extrude a point if none of the surrounding points is
// not extruded. Default is false.
//detectExtrusionIsland true;
// detectExtrusionIsland true;
// Mesh shrinking
@ -473,7 +473,7 @@ addLayersControls
// Additional reporting: if there are just a few faces where there
// are mesh errors (after adding the layers) print their face centres.
// This helps in tracking down problematic mesh areas.
//additionalReporting true;
// additionalReporting true;
}
// Generic mesh quality settings. At any undoable phase these determine

View File

@ -343,7 +343,7 @@ bool Foam::checkCoupledPoints
const polyBoundaryMesh& patches = mesh.boundaryMesh();
// Zero'th point on coupled faces
//pointField nbrZeroPoint(fcs.size()-mesh.nInternalFaces(), vector::max);
// pointField nbrZeroPoint(fcs.size()-mesh.nInternalFaces(), vector::max);
List<pointField> nbrPoints(fcs.size() - mesh.nInternalFaces());
// Exchange zero point
@ -395,7 +395,7 @@ bool Foam::checkCoupledPoints
(
cpp.calcFaceTol
(
//cpp.matchTolerance(),
// cpp.matchTolerance(),
cpp,
cpp.points(),
cpp.faceCentres()
@ -869,7 +869,7 @@ Foam::label Foam::checkGeometry
pointSet points(mesh, "shortEdges", mesh.nPoints()/1000 + 1);
if (mesh.checkEdgeLength(true, minDistSqr, &points))
{
//noFailedChecks++;
// noFailedChecks++;
label nPoints = returnReduce(points.size(), sumOp<label>());
@ -891,7 +891,7 @@ Foam::label Foam::checkGeometry
if (mesh.checkPointNearness(false, minDistSqr, &points))
{
//noFailedChecks++;
// noFailedChecks++;
label nPoints = returnReduce(points.size(), sumOp<label>());
@ -916,7 +916,7 @@ Foam::label Foam::checkGeometry
faceSet faces(mesh, "concaveFaces", mesh.nFaces()/100 + 1);
if (mesh.checkFaceAngles(true, 10, &faces))
{
//noFailedChecks++;
// noFailedChecks++;
label nFaces = returnReduce(faces.size(), sumOp<label>());
@ -940,7 +940,7 @@ Foam::label Foam::checkGeometry
faceSet faces(mesh, "warpedFaces", mesh.nFaces()/100 + 1);
if (mesh.checkFaceFlatness(true, 0.8, &faces))
{
//noFailedChecks++;
// noFailedChecks++;
label nFaces = returnReduce(faces.size(), sumOp<label>());

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2015-2017 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2015-2018 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -478,7 +478,7 @@ void Foam::mergeAndWrite
mkDir(outputDir);
fileName outputFile(outputDir/writer.getFileName(points, wordList()));
//fileName outputFile(outputDir/set.name());
// fileName outputFile(outputDir/set.name());
OFstream os(outputFile);

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -588,7 +588,7 @@ Foam::label Foam::checkTopology
points.write();
}
//Info.setf(ios_base::right);
// Info.setf(ios_base::right);
}
// Force creation of all addressing if requested.

View File

@ -661,7 +661,7 @@ int main(int argc, char *argv[])
// Pass 1: add patches
// ~~~~~~~~~~~~~~~~~~~
//HashSet<word> addedPatches;
// HashSet<word> addedPatches;
{
const polyBoundaryMesh& pbm = mesh.boundaryMesh();
forAll(selectors, selectorI)
@ -685,7 +685,7 @@ int main(int argc, char *argv[])
// Note: do not set coupleGroup if constructed from
// baffles so you have freedom specifying it
// yourself.
//patchDict.set("coupleGroup", groupName);
// patchDict.set("coupleGroup", groupName);
addPatch(mesh, patchName, groupName, patchDict);
}

View File

@ -62,7 +62,7 @@ baffles
surface triSurfaceMesh;
name baffle1D.stl;
//- Optional flip
//flip false;
// flip false;
// Generate patchGroup baffle1 with two patches:

View File

@ -461,7 +461,7 @@ void syncPoints
//- Note: hasTransformation is only used for warning messages so
// reduction not strictly necessary.
//reduce(hasTransformation, orOp<bool>());
// reduce(hasTransformation, orOp<bool>());
// Synchronize multiple shared points.
const globalMeshData& pd = mesh.globalData();

View File

@ -70,7 +70,7 @@ patches
// Optional non-default tolerance to be able to define cyclics
// on bad meshes
//matchTolerance 1E-2;
// matchTolerance 1E-2;
}
// How to construct: either from 'patches' or 'set'

View File

@ -92,33 +92,33 @@ int main(int argc, char *argv[])
mapPolyMesh map
(
mesh,
mesh.nPoints(), //nOldPoints,
mesh.nFaces(), //nOldFaces,
mesh.nCells(), //nOldCells,
mesh.pointMap(), //pointMap,
mesh.nPoints(), // nOldPoints,
mesh.nFaces(), // nOldFaces,
mesh.nCells(), // nOldCells,
mesh.pointMap(), // pointMap,
List<objectMap>(0), // pointsFromPoints,
labelList(0), //faceMap,
List<objectMap>(0), //facesFromPoints,
List<objectMap>(0), //facesFromEdges,
List<objectMap>(0), //facesFromFaces,
mesh.cellMap(), //cellMap,
List<objectMap>(0), //cellsFromPoints,
List<objectMap>(0), //cellsFromEdges,
List<objectMap>(0), //cellsFromFaces,
List<objectMap>(0), //cellsFromCells,
labelList(0), //reversePointMap,
labelList(0), //reverseFaceMap,
labelList(0), //reverseCellMap,
labelHashSet(0), //flipFaceFlux,
labelListList(0), //patchPointMap,
labelListList(0), //pointZoneMap,
labelListList(0), //faceZonePointMap,
labelListList(0), //faceZoneFaceMap,
labelListList(0), //cellZoneMap,
pointField(0), //preMotionPoints,
labelList(0), //oldPatchStarts,
labelList(0), //oldPatchNMeshPoints,
autoPtr<scalarField>() //oldCellVolumesPtr
labelList(0), // faceMap,
List<objectMap>(0), // facesFromPoints,
List<objectMap>(0), // facesFromEdges,
List<objectMap>(0), // facesFromFaces,
mesh.cellMap(), // cellMap,
List<objectMap>(0), // cellsFromPoints,
List<objectMap>(0), // cellsFromEdges,
List<objectMap>(0), // cellsFromFaces,
List<objectMap>(0), // cellsFromCells,
labelList(0), // reversePointMap,
labelList(0), // reverseFaceMap,
labelList(0), // reverseCellMap,
labelHashSet(0), // flipFaceFlux,
labelListList(0), // patchPointMap,
labelListList(0), // pointZoneMap,
labelListList(0), // faceZonePointMap,
labelListList(0), // faceZoneFaceMap,
labelListList(0), // cellZoneMap,
pointField(0), // preMotionPoints,
labelList(0), // oldPatchStarts,
labelList(0), // oldPatchNMeshPoints,
autoPtr<scalarField>() // oldCellVolumesPtr
);
refData.updateMesh(map);
refData.write();

View File

@ -270,10 +270,10 @@ Foam::label Foam::meshDualiser::addInternalFace
zoneFlip // zoneFlip
);
//pointField dualPoints(meshMod.points());
//vector n(newFace.normal(dualPoints));
//n /= mag(n);
//Pout<< "Generated internal dualFace:" << dualFacei
// pointField dualPoints(meshMod.points());
// vector n(newFace.normal(dualPoints));
// n /= mag(n);
// Pout<< "Generated internal dualFace:" << dualFacei
// << " verts:" << newFace
// << " points:" << UIndirectList<point>(meshMod.points(), newFace)()
// << " n:" << n
@ -297,10 +297,10 @@ Foam::label Foam::meshDualiser::addInternalFace
zoneFlip // zoneFlip
);
//pointField dualPoints(meshMod.points());
//vector n(newFace.normal(dualPoints));
//n /= mag(n);
//Pout<< "Generated internal dualFace:" << dualFacei
// pointField dualPoints(meshMod.points());
// vector n(newFace.normal(dualPoints));
// n /= mag(n);
// Pout<< "Generated internal dualFace:" << dualFacei
// << " verts:" << newFace
// << " points:" << UIndirectList<point>(meshMod.points(), newFace)()
// << " n:" << n
@ -354,10 +354,10 @@ Foam::label Foam::meshDualiser::addBoundaryFace
zoneFlip // zoneFlip
);
//pointField dualPoints(meshMod.points());
//vector n(newFace.normal(dualPoints));
//n /= mag(n);
//Pout<< "Generated boundary dualFace:" << dualFacei
// pointField dualPoints(meshMod.points());
// vector n(newFace.normal(dualPoints));
// n /= mag(n);
// Pout<< "Generated boundary dualFace:" << dualFacei
// << " verts:" << newFace
// << " points:" << UIndirectList<point>(meshMod.points(), newFace)()
// << " n:" << n
@ -404,7 +404,7 @@ void Foam::meshDualiser::createFacesAroundEdge
bool edgeOrder = ie.sameOrder(e[0], e[1]);
label startFaceLabel = ie.faceLabel();
//Pout<< "At edge:" << edgeI << " verts:" << e
// Pout<< "At edge:" << edgeI << " verts:" << e
// << " points:" << mesh_.points()[e[0]] << mesh_.points()[e[1]]
// << " started walking at face:" << ie.faceLabel()
// << " verts:" << mesh_.faces()[ie.faceLabel()]
@ -552,7 +552,7 @@ void Foam::meshDualiser::createFaceFromInternalFace
label own = mesh_.faceOwner()[facei];
label nei = mesh_.faceNeighbour()[facei];
//Pout<< "createFaceFromInternalFace : At face:" << facei
// Pout<< "createFaceFromInternalFace : At face:" << facei
// << " verts:" << f
// << " points:" << UIndirectList<point>(mesh_.points(), f)()
// << " started walking at edge:" << fEdges[fp]
@ -735,13 +735,13 @@ void Foam::meshDualiser::createFacesAroundBoundaryPoint
label dualCelli = findDualCell(own[facei], pointi);
//Bit dodgy: create dualface from the last face (instead of from
// Bit dodgy: create dualface from the last face (instead of from
// the central point). This will also use the original faceZone to
// put the new face (which might span multiple original faces) in.
addBoundaryFace
(
//pointi, // masterPointi
// pointi, // masterPointi
-1, // masterPointi
-1, // masterEdgeI
facei, // masterFacei
@ -1030,11 +1030,11 @@ void Foam::meshDualiser::setRefinement
pointToDualCells_[pointi].setSize(1);
pointToDualCells_[pointi][0] = meshMod.addCell
(
pointi, //masterPointID,
-1, //masterEdgeID,
-1, //masterFaceID,
-1, //masterCellID,
-1 //zoneID
pointi, // masterPointID,
-1, // masterEdgeID,
-1, // masterFaceID,
-1, // masterCellID,
-1 // zoneID
);
if (dualCcStr.valid())
{
@ -1074,11 +1074,11 @@ void Foam::meshDualiser::setRefinement
{
pointToDualCells_[pointi][pCelli] = meshMod.addCell
(
pointi, //masterPointID
-1, //masterEdgeID
-1, //masterFaceID
-1, //masterCellID
mesh_.cellZones().whichZone(pCells[pCelli]) //zoneID
pointi, // masterPointID
-1, // masterEdgeID
-1, // masterFaceID
-1, // masterCellID
mesh_.cellZones().whichZone(pCells[pCelli]) // zoneID
);
if (dualCcStr.valid())
{
@ -1098,11 +1098,11 @@ void Foam::meshDualiser::setRefinement
pointToDualCells_[pointi].setSize(1);
pointToDualCells_[pointi][0] = meshMod.addCell
(
pointi, //masterPointID,
-1, //masterEdgeID,
-1, //masterFaceID,
-1, //masterCellID,
-1 //zoneID
pointi, // masterPointID,
-1, // masterEdgeID,
-1, // masterFaceID,
-1, // masterCellID,
-1 // zoneID
);
if (dualCcStr.valid())
@ -1301,7 +1301,7 @@ void Foam::meshDualiser::setRefinement
label startFacei = eFaces[i];
//Pout<< "Walking edge:" << edgeI
// Pout<< "Walking edge:" << edgeI
// << " points:" << mesh_.points()[e[0]]
// << mesh_.points()[e[1]]
// << " startFace:" << startFacei
@ -1409,7 +1409,7 @@ void Foam::meshDualiser::setRefinement
// Starting face
label startFacei = pp.start()+pFaces[i];
//Pout<< "Walking around point:" << pointi
// Pout<< "Walking around point:" << pointi
// << " coord:" << mesh_.points()[pointi]
// << " on patch:" << patchi
// << " startFace:" << startFacei

View File

@ -156,7 +156,7 @@ void simpleMarkFeatures
{
const edge& e = allBoundary.edges()[edgeI];
//Info<< "Detected non-manifold boundary edge:" << edgeI
// Info<< "Detected non-manifold boundary edge:" << edgeI
// << " coords:"
// << allBoundary.points()[meshPoints[e[0]]]
// << allBoundary.points()[meshPoints[e[1]]] << endl;

View File

@ -93,8 +93,8 @@ springCoeffs
blockCoeffs
{
method scotch;
//method hierarchical;
//hierarchicalCoeffs
// method hierarchical;
// hierarchicalCoeffs
//{
// n (1 2 1);
// delta 0.001;

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2017 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -105,7 +105,7 @@ int main(int argc, char *argv[])
IOobjectList pointObjects(objects.lookupClass(pointSet::typeName));
//Pout<< "pointSets:" << pointObjects.names() << endl;
// Pout<< "pointSets:" << pointObjects.names() << endl;
forAllConstIter(IOobjectList, pointObjects, iter)
{
@ -124,10 +124,10 @@ int main(int argc, char *argv[])
sz,
new pointZone
(
set.name(), //name
pointLabels, //addressing
sz, //index
mesh.pointZones() //pointZoneMesh
set.name(), // name
pointLabels, // addressing
sz, // index
mesh.pointZones() // pointZoneMesh
)
);
mesh.pointZones().writeOpt() = IOobject::AUTO_WRITE;
@ -149,7 +149,7 @@ int main(int argc, char *argv[])
HashSet<word> slaveCellSets;
//Pout<< "faceSets:" << faceObjects.names() << endl;
// Pout<< "faceSets:" << faceObjects.names() << endl;
forAllConstIter(IOobjectList, faceObjects, iter)
{
@ -255,11 +255,11 @@ int main(int argc, char *argv[])
sz,
new faceZone
(
set.name(), //name
addressing.shrink(), //addressing
flipMap.shrink(), //flipmap
sz, //index
mesh.faceZones() //pointZoneMesh
set.name(), // name
addressing.shrink(), // addressing
flipMap.shrink(), // flipmap
sz, // index
mesh.faceZones() // pointZoneMesh
)
);
mesh.faceZones().writeOpt() = IOobject::AUTO_WRITE;
@ -283,7 +283,7 @@ int main(int argc, char *argv[])
IOobjectList cellObjects(objects.lookupClass(cellSet::typeName));
//Pout<< "cellSets:" << cellObjects.names() << endl;
// Pout<< "cellSets:" << cellObjects.names() << endl;
forAllConstIter(IOobjectList, cellObjects, iter)
{
@ -304,10 +304,10 @@ int main(int argc, char *argv[])
sz,
new cellZone
(
set.name(), //name
cellLabels, //addressing
sz, //index
mesh.cellZones() //pointZoneMesh
set.name(), // name
cellLabels, // addressing
sz, // index
mesh.cellZones() // pointZoneMesh
)
);
mesh.cellZones().writeOpt() = IOobject::AUTO_WRITE;

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -365,7 +365,7 @@ void Foam::regionSide::walkAllPointConnectedFaces
visitedPoint.insert(e.start());
//edgeI = otherEdge(mesh, otherFacei, edgeI, e.start());
// edgeI = otherEdge(mesh, otherFacei, edgeI, e.start());
walkPointConnectedFaces
(
@ -384,7 +384,7 @@ void Foam::regionSide::walkAllPointConnectedFaces
visitedPoint.insert(e.end());
//edgeI = otherEdge(mesh, otherFacei, edgeI, e.end());
// edgeI = otherEdge(mesh, otherFacei, edgeI, e.end());
walkPointConnectedFaces
(

View File

@ -631,7 +631,7 @@ autoPtr<mapPolyMesh> createRegionMesh
);
if (!io.typeHeaderOk<IOdictionary>(true))
//if (!exists(io.objectPath()))
// if (!exists(io.objectPath()))
{
Info<< "Writing dummy " << regionName/io.name() << endl;
dictionary dummyDict;
@ -926,7 +926,7 @@ void createAndWriteRegion
}
}
//reorderPatches(newMesh(), oldToNew, nNewPatches);
// reorderPatches(newMesh(), oldToNew, nNewPatches);
fvMeshTools::reorderPatches(newMesh(), oldToNew, nNewPatches, true);
// Rename shared patches with region name
@ -1075,7 +1075,7 @@ labelList addRegionPatches
const edge& e = interfaces[interI];
const Pair<word>& names = interfaceNames[interI];
//Info<< "For interface " << interI
// Info<< "For interface " << interI
// << " between regions " << e
// << " trying to add patches " << names << endl;
@ -1097,9 +1097,9 @@ labelList addRegionPatches
(
mesh,
patch1,
dictionary(), //optional per field value
dictionary(), // optional per field value
calculatedFvPatchField<scalar>::typeName,
true //validBoundary
true // validBoundary
);
mappedWallPolyPatch patch2
@ -1118,9 +1118,9 @@ labelList addRegionPatches
(
mesh,
patch2,
dictionary(), //optional per field value
dictionary(), // optional per field value
calculatedFvPatchField<scalar>::typeName,
true //validBoundary
true // validBoundary
);
Info<< "For interface between region " << regionNames[e[0]]
@ -1920,10 +1920,10 @@ int main(int argc, char *argv[])
zoneI,
new cellZone
(
zoneName, //name
regionCells, //addressing
zoneI, //index
cellZones //cellZoneMesh
zoneName, // name
regionCells, // addressing
zoneI, // index
cellZones // cellZoneMesh
)
);
}

View File

@ -446,15 +446,15 @@ int main(int argc, char *argv[])
ReadFields(mesh, objects, volTensorFields);
//- Uncomment if you want to interpolate surface fields (usually bad idea)
//Info<< "Reading all current surfaceFields" << endl;
//PtrList<surfaceScalarField> surfaceScalarFields;
//ReadFields(mesh, objects, surfaceScalarFields);
// Info<< "Reading all current surfaceFields" << endl;
// PtrList<surfaceScalarField> surfaceScalarFields;
// ReadFields(mesh, objects, surfaceScalarFields);
//
//PtrList<surfaceVectorField> surfaceVectorFields;
//ReadFields(mesh, objects, surfaceVectorFields);
// PtrList<surfaceVectorField> surfaceVectorFields;
// ReadFields(mesh, objects, surfaceVectorFields);
//
//PtrList<surfaceTensorField> surfaceTensorFields;
//ReadFields(mesh, objects, surfaceTensorFields);
// PtrList<surfaceTensorField> surfaceTensorFields;
// ReadFields(mesh, objects, surfaceTensorFields);
if (!overwrite)
{

View File

@ -73,10 +73,10 @@ FoamFile
// {
// set f0; // Name of faceSet
//
// //option neighbour; // cell with neighbour in faceSet
// //option owner; // ,, owner
// // option neighbour; // cell with neighbour in faceSet
// // option owner; // ,, owner
// option any; // cell with any face in faceSet
// //option all; // cell with all faces in faceSet
// // option all; // cell with all faces in faceSet
// }
//
// // Select based on pointSet
@ -85,7 +85,7 @@ FoamFile
// {
// set p0;
// option any; // cell with any point in pointSet
// //option edge; // cell with an edge with both points in pointSet
// // option edge; // cell with an edge with both points in pointSet
// }
//
// // Select based on cellShape
@ -100,7 +100,7 @@ FoamFile
// sourceInfo
// {
// box (0 0 0) (1 1 1);
// //boxes ((0 0 0) (1 1 1) (10 10 10)(11 11 11));
// // boxes ((0 0 0) (1 1 1) (10 10 10)(11 11 11));
// }
//
// // Cells with cell centre within box
@ -203,7 +203,7 @@ FoamFile
// {
// set c0;
// option all; // All faces of cells
// //option both; // Only faces whose owner&neighbour are in cellSet
// // option both; // Only faces whose owner&neighbour are in cellSet
// }
//
// // Select based on pointSet
@ -212,8 +212,8 @@ FoamFile
// {
// set p0;
// option any; // Faces using any point in pointSet
// //option all // Faces with all points in pointSet
// //option edge // Faces with two consecutive points in pointSet
// // option all // Faces with all points in pointSet
// // option edge // Faces with two consecutive points in pointSet
// }
//
// // Select by explicitly providing face labels
@ -249,7 +249,7 @@ FoamFile
// sourceInfo
// {
// box (0 0 0) (1 1 1);
// //boxes ((0 0 0) (1 1 1) (10 10 10)(11 11 11));
// // boxes ((0 0 0) (1 1 1) (10 10 10)(11 11 11));
// }
//
// // Faces with normal to within certain angle aligned with vector.
@ -322,7 +322,7 @@ FoamFile
// sourceInfo
// {
// box (0 0 0) (1 1 1);
// //boxes ((0 0 0) (1 1 1) (10 10 10)(11 11 11));
// // boxes ((0 0 0) (1 1 1) (10 10 10)(11 11 11));
// }
//
// // Select based on surface
@ -390,7 +390,7 @@ FoamFile
// surface searchableSphere;
// centre (0.05 0.05 0.005);
// radius 0.025;
// //name sphere.stl; // Optional name if surface triSurfaceMesh
// // name sphere.stl; // Optional name if surface triSurfaceMesh
// }
// }
//

View File

@ -110,8 +110,8 @@ multiLevelCoeffs
level0
{
numberOfSubdomains 64;
//method simple;
//simpleCoeffs
// method simple;
// simpleCoeffs
//{
// n (2 1 1);
// delta 0.001;
@ -155,15 +155,15 @@ metisCoeffs
scotchCoeffs
{
//processorWeights
// processorWeights
//(
// 1
// 1
// 1
// 1
//);
//writeGraph true;
//strategy "b";
// writeGraph true;
// strategy "b";
}
manualCoeffs

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2017 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -328,7 +328,7 @@ void Foam::domainDecomposition::decomposeMesh(const fileName& dict)
procProcessorPatchSubPatchIDs_[proci].setSize(nInterfaces);
procProcessorPatchSubPatchStarts_[proci].setSize(nInterfaces);
//Info<< "Processor " << proci << endl;
// Info<< "Processor " << proci << endl;
// Get sorted neighbour processors
const Map<label>& curNbrToInterPatch = procNbrToInterPatch[proci];
@ -365,15 +365,15 @@ void Foam::domainDecomposition::decomposeMesh(const fileName& dict)
subPatchStarts[proci][interPatch]
);
//Info<< " nbr:" << nbrProc << endl;
//Info<< " interpatch:" << interPatch << endl;
//Info<< " size:" << procProcessorPatchSize_[proci][i] << endl;
//Info<< " start:" << procProcessorPatchStartIndex_[proci][i]
// Info<< " nbr:" << nbrProc << endl;
// Info<< " interpatch:" << interPatch << endl;
// Info<< " size:" << procProcessorPatchSize_[proci][i] << endl;
// Info<< " start:" << procProcessorPatchStartIndex_[proci][i]
// << endl;
//Info<< " subPatches:"
// Info<< " subPatches:"
// << procProcessorPatchSubPatchIDs_[proci][i]
// << endl;
//Info<< " subStarts:"
// Info<< " subStarts:"
// << procProcessorPatchSubPatchStarts_[proci][i] << endl;
// And add all the face labels for interPatch

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2017 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -188,7 +188,7 @@ void Foam::lagrangianFieldDecomposer::decomposeFields
const PtrList<GeoField>& fields
) const
{
//if (particleIndices_.size())
// if (particleIndices_.size())
{
bool valid = particleIndices_.size() > 0;
forAll(fields, fieldi)
@ -206,7 +206,7 @@ void Foam::lagrangianFieldDecomposer::decomposeFieldFields
const PtrList<GeoField>& fields
) const
{
//if (particleIndices_.size())
// if (particleIndices_.size())
{
bool valid = particleIndices_.size() > 0;
forAll(fields, fieldi)

View File

@ -743,7 +743,7 @@ int main(int argc, char *argv[])
IOobjectList objects
(
procMesh,
databases[0].timeName(), //procMesh.facesInstance()
databases[0].timeName(), // procMesh.facesInstance()
polyMesh::meshSubDir/"sets"
);

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2012-2017 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2012-2018 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -209,14 +209,14 @@ Foam::autoPtr<Foam::fvMesh> Foam::loadOrCreateMesh
)
);
dummyMesh.addZones(pz, fz, cz);
//Pout<< "Writing dummy mesh to " << dummyMesh.polyMesh::objectPath()
// Pout<< "Writing dummy mesh to " << dummyMesh.polyMesh::objectPath()
// << endl;
dummyMesh.write();
Pstream::parRun() = oldParRun;
}
//Pout<< "Reading mesh from " << io.objectPath() << endl;
// Pout<< "Reading mesh from " << io.objectPath() << endl;
autoPtr<fvMesh> meshPtr(new fvMesh(io));
fvMesh& mesh = meshPtr();
@ -334,7 +334,7 @@ Foam::autoPtr<Foam::fvMesh> Foam::loadOrCreateMesh
{
// We created a dummy mesh file above. Delete it.
const fileName meshFiles = io.time().path()/io.instance()/meshSubDir;
//Pout<< "Removing dummy mesh " << meshFiles << endl;
// Pout<< "Removing dummy mesh " << meshFiles << endl;
mesh.removeFiles();
rmDir(meshFiles);
}

View File

@ -346,7 +346,7 @@ void readFields
);
//// Write it for next time round (since mesh gets written as well)
//fields[i].write();
// fields[i].write();
}
}
else
@ -725,7 +725,7 @@ int main(int argc, char *argv[])
// Debugging: Create additional volField that will be mapped.
// Used to test correctness of mapping
//volVectorField mapCc("mapCc", 1*mesh.C());
// volVectorField mapCc("mapCc", 1*mesh.C());
// Global matching tolerance
const scalar tolDim = getMergeDistance
@ -738,14 +738,14 @@ int main(int argc, char *argv[])
// Mesh distribution engine
fvMeshDistribute distributor(mesh, tolDim);
//Pout<< "Wanted distribution:"
// Pout<< "Wanted distribution:"
// << distributor.countCells(finalDecomp) << nl << endl;
// Do actual sending/receiving of mesh
autoPtr<mapDistributePolyMesh> map = distributor.distribute(finalDecomp);
//// Distribute any non-registered data accordingly
//map().distributeFaceData(faceCc);
// map().distributeFaceData(faceCc);
// Print some statistics
@ -766,7 +766,7 @@ int main(int argc, char *argv[])
// Debugging: test mapped cellcentre field.
//compareFields(tolDim, mesh.C(), mapCc);
// compareFields(tolDim, mesh.C(), mapCc);
// Print nice message
// ~~~~~~~~~~~~~~~~~~

View File

@ -123,7 +123,7 @@ void print(Ostream& os, const wordList& flds)
labelList getSelectedPatches
(
const polyBoundaryMesh& patches,
const List<wordRe>& excludePatches //HashSet<word>& excludePatches
const List<wordRe>& excludePatches // HashSet<word>& excludePatches
)
{
DynamicList<label> patchIDs(patches.size());
@ -316,7 +316,7 @@ int main(int argc, char *argv[])
Info<< "Time: " << runTime.timeName() << endl;
const word timeDesc = name(timeI); //name(runTime.timeIndex());
const word timeDesc = name(timeI); // name(runTime.timeIndex());
// Check for new polyMesh/ and update mesh, fvMeshSubset and cell
// decomposition.
@ -378,22 +378,22 @@ int main(int argc, char *argv[])
PtrList<pointScalarField> psf;
PtrList<pointVectorField> pvf;
//PtrList<pointSphericalTensorField> pSpheretf;
//PtrList<pointSymmTensorField> pSymmtf;
//PtrList<pointTensorField> ptf;
// PtrList<pointSphericalTensorField> pSpheretf;
// PtrList<pointSymmTensorField> pSymmtf;
// PtrList<pointTensorField> ptf;
if (!noPointValues)
{
//// Add interpolated volFields
//const volPointInterpolation& pInterp = volPointInterpolation::New
// const volPointInterpolation& pInterp = volPointInterpolation::New
//(
// mesh
//);
//
//label nPsf = psf.size();
//psf.setSize(nPsf+vsf.size());
//forAll(vsf, i)
// label nPsf = psf.size();
// psf.setSize(nPsf+vsf.size());
// forAll(vsf, i)
//{
// Info<< "Interpolating " << vsf[i].name() << endl;
// tmp<pointScalarField> tvsf(pInterp.interpolate(vsf[i]));
@ -402,9 +402,9 @@ int main(int argc, char *argv[])
// nPsf++;
//}
//
//label nPvf = pvf.size();
//pvf.setSize(vvf.size());
//forAll(vvf, i)
// label nPvf = pvf.size();
// pvf.setSize(vvf.size());
// forAll(vvf, i)
//{
// Info<< "Interpolating " << vvf[i].name() << endl;
// tmp<pointVectorField> tvvf(pInterp.interpolate(vvf[i]));
@ -433,7 +433,7 @@ int main(int argc, char *argv[])
);
print(" pointVectorFields :", Info, pvf);
//readFields
// readFields
//(
// vMesh,
// pointMesh::New(vMesh.baseMesh()),
@ -441,9 +441,9 @@ int main(int argc, char *argv[])
// selectedFields,
// pSpheretf
//);
//print(" pointSphericalTensorFields :", Info, pSpheretf);
// print(" pointSphericalTensorFields :", Info, pSpheretf);
//
//readFields
// readFields
//(
// vMesh,
// pointMesh::New(vMesh.baseMesh()),
@ -451,9 +451,9 @@ int main(int argc, char *argv[])
// selectedFields,
// pSymmtf
//);
//print(" pointSymmTensorFields :", Info, pSymmtf);
// print(" pointSymmTensorFields :", Info, pSymmtf);
//
//readFields
// readFields
//(
// vMesh,
// pointMesh::New(vMesh.baseMesh()),
@ -461,7 +461,7 @@ int main(int argc, char *argv[])
// selectedFields,
// ptf
//);
//print(" pointTensorFields :", Info, ptf);
// print(" pointTensorFields :", Info, ptf);
}
Info<< endl;
@ -938,7 +938,7 @@ int main(int argc, char *argv[])
{
label patchID = patchIDs[i];
const polyPatch& pp = patches[patchID];
//INTEGER4 strandID = 1 + i;
// INTEGER4 strandID = 1 + i;
if (pp.size() > 0)
{
@ -954,7 +954,7 @@ int main(int argc, char *argv[])
writer.writePolygonalZone
(
pp.name(),
strandID++, //strandID,
strandID++, // strandID,
ipp,
allVarLocation
);
@ -1120,7 +1120,7 @@ int main(int argc, char *argv[])
writer.writePolygonalZone
(
pp.name(),
strandID++, //1+patchIDs.size()+zoneI, //strandID,
strandID++, //1+patchIDs.size()+zoneI, // strandID,
ipp,
allVarLocation
);
@ -1252,32 +1252,32 @@ int main(int argc, char *argv[])
Info<< " vectors :";
print(Info, vectorNames);
//wordList sphereNames
// wordList sphereNames
//(
// sprayObjs.names
// (
// sphericalTensorIOField::typeName
// )
//);
//Info<< " spherical tensors :";
//print(Info, sphereNames);
// Info<< " spherical tensors :";
// print(Info, sphereNames);
//
//wordList symmNames
// wordList symmNames
//(
// sprayObjs.names
// (
// symmTensorIOField::typeName
// )
//);
//Info<< " symm tensors :";
//print(Info, symmNames);
// Info<< " symm tensors :";
// print(Info, symmNames);
//
//wordList tensorNames
// wordList tensorNames
//(
// sprayObjs.names(tensorIOField::typeName)
//);
//Info<< " tensors :";
//print(Info, tensorNames);
// Info<< " tensors :";
// print(Info, tensorNames);
// Load cloud positions
@ -1336,7 +1336,7 @@ int main(int argc, char *argv[])
writer.writeOrderedZone
(
cloudDirs[cloudI],
strandID++, //strandID,
strandID++, // strandID,
parcels.size(),
allVarLocation
);

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -53,8 +53,8 @@ Pout<< endl
<< " of type:" << tecplotFileType
<< endl;
INTEGER4 IsDouble = 0; //float
INTEGER4 Debug = 0; //nodebug
INTEGER4 IsDouble = 0; // float
INTEGER4 Debug = 0; // nodebug
if
(
!TECINI112

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -50,9 +50,9 @@ void Foam::tecplotWriter::writeField(const Field<Type>& fld) const
}
INTEGER4 size = INTEGER4(floats.size());
INTEGER4 IsDouble = 0; //float
INTEGER4 IsDouble = 0; // float
//Pout<< "Writing component:" << cmpt << " of size:" << size
// Pout<< "Writing component:" << cmpt << " of size:" << size
// << " floats." << endl;
if (!TECDAT112(&size, floats.begin(), &IsDouble))

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -117,7 +117,7 @@ void ReadAndMapFields
);
fld[pointi] = readField.boundaryField()[patchi][localFacei];
}
//else
// else
//{
// FatalErrorInFunction
// << "Face " << facei << " from index " << index
@ -125,7 +125,7 @@ void ReadAndMapFields
//}
}
//else
// else
//{
// WarningInFunction
// << "Point " << pointi << " at "

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2017 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -242,9 +242,9 @@ private:
//- Cached data for output port0 (experimental!)
vtkMultiBlockDataSet* output0_;
//BTX
// BTX
Foam::vtkPVFoam* foamData_;
//ETX
// ETX
};
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2017 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -160,9 +160,9 @@ private:
vtkDataArraySelection* CurvedEdgesSelection;
//BTX
// BTX
Foam::vtkPVblockMesh* foamData_;
//ETX
// ETX
};
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -18,8 +18,8 @@ int USERD_get_nsided_conn
}
else if (part_number < nPatches+2)
{
//const cellList& cells = meshPtr->cells();
//const faceList& faces = meshPtr->faces();
// const cellList& cells = meshPtr->cells();
// const faceList& faces = meshPtr->faces();
label patchi = part_number - 2;
const polyBoundaryMesh& bMesh = meshPtr->boundaryMesh();

View File

@ -38,7 +38,7 @@ const cellShapeList& cellShapes = meshPtr->cellShapes();
if (which_type == Z_HEX08)
{
const cellModel& hex = *(cellModeller::lookup("hex"));
//const cellModel& wedge = *(cellModeller::lookup("wedge"));
// const cellModel& wedge = *(cellModeller::lookup("wedge"));
label counter = 1;
for (label celli=0; celli<nCells; celli++)

View File

@ -38,7 +38,7 @@ const cellShapeList& cellShapes = meshPtr->cellShapes();
if (which_type == Z_HEX08)
{
const cellModel& hex = *(cellModeller::lookup("hex"));
//const cellModel& wedge = *(cellModeller::lookup("wedge"));
// const cellModel& wedge = *(cellModeller::lookup("wedge"));
label counter = 1;
for (label n=0; n<nCells; n++)

View File

@ -38,7 +38,7 @@ const cellShapeList& cellShapes = meshPtr->cellShapes();
if (which_type == Z_HEX08)
{
const cellModel& hex = *(cellModeller::lookup("hex"));
//const cellModel& wedge = *(cellModeller::lookup("wedge"));
// const cellModel& wedge = *(cellModeller::lookup("wedge"));
label counter = 1;
for (label n=0; n<nCells; n++)

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -215,7 +215,7 @@ int main(int argc, char *argv[])
setFormat
);
//OFstream vtkTracks(vtkPath/"particleTracks.vtk");
// OFstream vtkTracks(vtkPath/"particleTracks.vtk");
fileName vtkFile
(
scalarFormatterPtr().getFileName

View File

@ -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-2018 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -136,7 +136,7 @@ void fieldInterpolator::interpolate()
UIndirectList<word>(timeNames_, indices)()
);
//Info<< "For time " << runTime_.value()
// Info<< "For time " << runTime_.value()
// << " need times " << selectedTimeNames
// << " need weights " << weights << endl;

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2017 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -238,7 +238,7 @@ void rewriteBoundary
{
if (isTestRun)
{
//Info<< "-test option: no changes made" << nl << endl;
// Info<< "-test option: no changes made" << nl << endl;
}
else
{
@ -337,13 +337,13 @@ void rewriteField
}
}
//Info<< "New boundaryField:" << boundaryField << endl;
// Info<< "New boundaryField:" << boundaryField << endl;
if (returnReduce(nChanged, sumOp<label>()) > 0)
{
if (isTestRun)
{
//Info<< "-test option: no changes made" << endl;
// Info<< "-test option: no changes made" << endl;
}
else
{

View File

@ -330,8 +330,8 @@ int main(int argc, char *argv[])
// Calculate total number of fine and coarse faces
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
label nCoarseFaces = 0; //total number of coarse faces
label nFineFaces = 0; //total number of fine faces
label nCoarseFaces = 0; // total number of coarse faces
label nFineFaces = 0; // total number of fine faces
const polyBoundaryMesh& patches = mesh.boundaryMesh();
const polyBoundaryMesh& coarsePatches = coarseMesh.boundaryMesh();

View File

@ -321,7 +321,7 @@ int main(int argc, char *argv[])
if (f[0] == f[1] || f[0] == f[2] || f[1] == f[2])
{
//WarningIn(args.executable())
// WarningIn(args.executable())
// << "Illegal triangle " << facei << " vertices " << f
// << " coords " << f.points(surf.points()) << endl;
}
@ -754,13 +754,13 @@ int main(int argc, char *argv[])
<< endl;
}
//surfaceIntersection inter(querySurf);
// surfaceIntersection inter(querySurf);
//
//if (inter.cutEdges().empty() && inter.cutPoints().empty())
// if (inter.cutEdges().empty() && inter.cutPoints().empty())
//{
// Info<< "Surface is not self-intersecting" << endl;
//}
//else
// else
//{
// Info<< "Surface is self-intersecting" << endl;
// Info<< "Writing edges of intersection to selfInter.obj" << endl;

View File

@ -97,7 +97,7 @@ static void splitTri
DynamicList<labelledTri>& tris
)
{
//label oldNTris = tris.size();
// label oldNTris = tris.size();
label fp = findIndex(f, e[0]);
label fp1 = f.fcIndex(fp);
@ -183,10 +183,10 @@ static void splitTri
<< abort(FatalError);
}
//Pout<< "Split face " << f << " along edge " << e
// Pout<< "Split face " << f << " along edge " << e
// << " into triangles:" << endl;
//
//for (label i = oldNTris; i < tris.size(); i++)
// for (label i = oldNTris; i < tris.size(); i++)
//{
// Pout<< " " << tris[i] << nl;
//}
@ -309,7 +309,7 @@ bool isSliver
// Remove facei and split all other faces using this
// edge. This is done by 'replacing' the edgeI with the
// opposite0 vertex
//Pout<< "Splitting face " << facei << " since distance "
// Pout<< "Splitting face " << facei << " since distance "
// << pHit.distance()
// << " from vertex " << opposite0
// << " to edge " << edgeI
@ -450,7 +450,7 @@ static label markRegions
{
if (collapseRegion[facei] == -1 && faceToEdge[facei] != -1)
{
//Pout<< "markRegions : Marking region:" << regionI
// Pout<< "markRegions : Marking region:" << regionI
// << " starting from face " << facei << endl;
// Collapsed face. Mark connected region with current region number
@ -798,7 +798,7 @@ label collapseBase
label nRegions = markRegions(surf, faceToEdge, collapseRegion);
//Pout<< "Detected " << nRegions << " regions of faces to be collapsed"
// Pout<< "Detected " << nRegions << " regions of faces to be collapsed"
// << nl << endl;
// Pick up all vertices on outside of region
@ -816,7 +816,7 @@ label collapseBase
{
spanPoints[regionI] = getSpanPoints(surf, outsideVerts[regionI]);
//Pout<< "For region " << regionI << " found extrema at points "
// Pout<< "For region " << regionI << " found extrema at points "
// << surf.localPoints()[spanPoints[regionI][0]]
// << surf.localPoints()[spanPoints[regionI][1]]
// << endl;
@ -831,13 +831,13 @@ label collapseBase
orderedWeights[regionI]
);
//Pout<< "For region:" << regionI
// Pout<< "For region:" << regionI
// << " span:" << spanPoints[regionI]
// << " orderedVerts:" << orderedVertices[regionI]
// << " orderedWeights:" << orderedWeights[regionI]
// << endl;
//writeRegionOBJ
// writeRegionOBJ
//(
// surf,
// regionI,
@ -845,7 +845,7 @@ label collapseBase
// outsideVerts[regionI]
//);
//Pout<< endl;
// Pout<< endl;
}
@ -971,7 +971,7 @@ label collapseBase
// Pack the triangles
newTris.shrink();
//Pout<< "Resetting surface from " << surf.size() << " to "
// Pout<< "Resetting surface from " << surf.size() << " to "
// << newTris.size() << " triangles" << endl;
surf = triSurface(newTris, surf.patches(), surf.localPoints());

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -120,7 +120,7 @@ label collapseEdge(triSurface& surf, const scalar minLen)
pointMap[v1] = v;
newPoints[v] = 0.5*(localPoints[v1] + localPoints[v]);
//Pout<< "Collapsing triange " << facei
// Pout<< "Collapsing triange " << facei
// << " to edge mid " << newPoints[v] << endl;
nCollapsed++;

View File

@ -75,8 +75,8 @@ void List<Type>::Add(Type t){
if(num==array_size) {
allocate((array_size)?array_size *2:16);
}
//int i;
//for(i=0;i<num;i++) {
// int i;
// for(i=0;i<num;i++) {
// dissallow duplicates
// assert(element[i] != t);
//}

View File

@ -68,7 +68,7 @@ class Quaternion{
return Vector( 2*(x*z+r*y), 2*(y*z-r*x),1-2*(x*x+y*y));
}
matrix getmatrix(){return matrix(xdir(),ydir(),zdir());}
//operator matrix(){return getmatrix();}
// operator matrix(){return getmatrix();}
};
Quaternion operator-(Quaternion q);
Quaternion operator*(Quaternion a,Quaternion b);

View File

@ -87,7 +87,7 @@ surface2.nas
// Optionally flip features (invert all normals, making
// convex<->concave etc)
//flip false;
// flip false;
}
// Output the curvature of the surface

View File

@ -89,7 +89,7 @@ surface2
// Optionally flip features (invert all normals, making
// convex<->concave etc)
//flip false;
// flip false;
}
// Output the curvature of the surface

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2017 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -216,7 +216,7 @@ int main(int argc, char *argv[])
forAllConstIter(HashTable<label>, zoneSize, iter)
{
label sz = compactZoneID.size();
//Info<< "For faceZone " << iter.key() << " allocating zoneID "
// Info<< "For faceZone " << iter.key() << " allocating zoneID "
// << sz << endl;
compactZoneID.insert(iter.key(), sz);
}

View File

@ -164,7 +164,7 @@ int main(int argc, char *argv[])
IOobject io
(
surfFileName, // name
//runTime.findInstance("triSurface", surfFileName), // instance
// runTime.findInstance("triSurface", surfFileName), // instance
runTime.constant(), // instance
"triSurface", // local
runTime, // registry

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2017 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -61,7 +61,7 @@ int main(int argc, char *argv[])
triSurface surf2 = triSurfaceTools::redGreenRefine
(
surf1,
identity(surf1.size()) //Hack: refine all
identity(surf1.size()) // Hack: refine all
);
Info<< "Original surface:" << endl

View File

@ -44,9 +44,9 @@ plane
planeType embeddedPoints;
embeddedPointsDict
{
//point1 (-937.259845440205 160.865349115986 240.738791238078);
//point2 (-934.767379895778 9.63875523747379 14.412359671298);
//point3 (44.4744688899417 121.852927962709 182.352485273106);
// point1 (-937.259845440205 160.865349115986 240.738791238078);
// point2 (-934.767379895778 9.63875523747379 14.412359671298);
// point3 (44.4744688899417 121.852927962709 182.352485273106);
point1 (-957.895294591874 242.865936478961 162.286611511875);
point2 (-961.43140327772 4.53895551562943 3.04159982093444);
point3 (91.2414146173805 72.1504381996692 48.2181961945329);

View File

@ -21,7 +21,7 @@ T0 300;
reactants
3
(
//reactant volume fraction
// reactant volume fraction
H2 0.29577
O2 0.14788
N2 0.55635