Code style: Updated line comments to start with a space
//This is a comment -> // This is a comment
This commit is contained in:
@ -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:
|
||||
|
||||
@ -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
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@ -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]
|
||||
|
||||
@ -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);
|
||||
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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_;
|
||||
|
||||
@ -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;
|
||||
|
||||
|
||||
@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user