mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
CLEANUP: remove most references to (deprecated) .ftr file format
- use .obj files for debugging purposes instead.
This commit is contained in:
@ -17,7 +17,7 @@ FoamFile
|
|||||||
|
|
||||||
|
|
||||||
// Surface to keep to
|
// Surface to keep to
|
||||||
surface "plexi.ftr";
|
surface "plexi.obj";
|
||||||
|
|
||||||
// What is outside. These points have to be inside a cell (so not on a face!)
|
// What is outside. These points have to be inside a cell (so not on a face!)
|
||||||
outsidePoints ((-0.99001 -0.99001 -0.99001));
|
outsidePoints ((-0.99001 -0.99001 -0.99001));
|
||||||
|
|||||||
@ -21,7 +21,7 @@ FoamFile
|
|||||||
useSurface false;
|
useSurface false;
|
||||||
|
|
||||||
// Surface to keep to
|
// Surface to keep to
|
||||||
surface "plexi.ftr";
|
surface "plexi.obj";
|
||||||
|
|
||||||
// What is outside
|
// What is outside
|
||||||
outsidePoints ((-1 -1 -1));
|
outsidePoints ((-1 -1 -1));
|
||||||
|
|||||||
@ -616,7 +616,7 @@ int main(int argc, char *argv[])
|
|||||||
surfFileNameBase.lessExt()
|
surfFileNameBase.lessExt()
|
||||||
+ "_"
|
+ "_"
|
||||||
+ name(zone)
|
+ name(zone)
|
||||||
+ ".ftr"
|
+ ".obj"
|
||||||
);
|
);
|
||||||
|
|
||||||
Info<< "writing part " << zone << " size " << subSurf.size()
|
Info<< "writing part " << zone << " size " << subSurf.size()
|
||||||
|
|||||||
@ -142,7 +142,7 @@ int main(int argc, char *argv[])
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
// Write local surface
|
// Write local surface
|
||||||
fileName localPath = runTime.path()/runTime.caseName() + ".ftr";
|
fileName localPath = runTime.path()/runTime.caseName() + ".obj";
|
||||||
|
|
||||||
Pout<< "Writing local surface to " << localPath << endl;
|
Pout<< "Writing local surface to " << localPath << endl;
|
||||||
|
|
||||||
|
|||||||
@ -545,9 +545,9 @@ void calcPointVecs
|
|||||||
|
|
||||||
if (face0I == -1 && face1I == -1)
|
if (face0I == -1 && face1I == -1)
|
||||||
{
|
{
|
||||||
Info<< "Writing surface to errorSurf.ftr" << endl;
|
Info<< "Writing surface to errorSurf.obj" << endl;
|
||||||
|
|
||||||
surf.write("errorSurf.ftr");
|
surf.write("errorSurf.obj");
|
||||||
|
|
||||||
FatalErrorIn("calcPointVecs(..)")
|
FatalErrorIn("calcPointVecs(..)")
|
||||||
<< "Cannot find two faces using border edge " << edgeI
|
<< "Cannot find two faces using border edge " << edgeI
|
||||||
@ -557,7 +557,7 @@ void calcPointVecs
|
|||||||
<< " face1I:" << face1I << nl
|
<< " face1I:" << face1I << nl
|
||||||
<< "faceToEdge:" << faceToEdge << nl
|
<< "faceToEdge:" << faceToEdge << nl
|
||||||
<< "faceToPoint:" << faceToPoint
|
<< "faceToPoint:" << faceToPoint
|
||||||
<< "Written surface to errorSurf.ftr"
|
<< "Written surface to errorSurf.obj"
|
||||||
<< abort(FatalError);
|
<< abort(FatalError);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 1991-2009 OpenCFD Ltd.
|
\\ / A nd | Copyright (C) 1991-2010 OpenCFD Ltd.
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -411,9 +411,8 @@ Foam::booleanSurface::booleanSurface
|
|||||||
Pout<< "booleanSurface : Generated cutSurf1: " << endl;
|
Pout<< "booleanSurface : Generated cutSurf1: " << endl;
|
||||||
cutSurf1.writeStats(Pout);
|
cutSurf1.writeStats(Pout);
|
||||||
|
|
||||||
Pout<< "Writing to file cutSurf1.ftr" << endl;
|
Pout<< "Writing to file cutSurf1.obj" << endl;
|
||||||
OFstream cutSurf1Stream("cutSurf1.ftr");
|
cutSurf1.write("cutSurf1.obj");
|
||||||
cutSurf1.write(cutSurf1Stream);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (debug)
|
if (debug)
|
||||||
@ -430,9 +429,8 @@ Foam::booleanSurface::booleanSurface
|
|||||||
Pout<< "booleanSurface : Generated cutSurf2: " << endl;
|
Pout<< "booleanSurface : Generated cutSurf2: " << endl;
|
||||||
cutSurf2.writeStats(Pout);
|
cutSurf2.writeStats(Pout);
|
||||||
|
|
||||||
Pout<< "Writing to file cutSurf2.ftr" << endl;
|
Pout<< "Writing to file cutSurf2.obj" << endl;
|
||||||
OFstream cutSurf2Stream("cutSurf2.ftr");
|
cutSurf2.write("cutSurf2.obj");
|
||||||
cutSurf2.write(cutSurf2Stream);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -768,9 +766,8 @@ Foam::booleanSurface::booleanSurface
|
|||||||
Pout<< "booleanSurface : Generated cutSurf1: " << endl;
|
Pout<< "booleanSurface : Generated cutSurf1: " << endl;
|
||||||
cutSurf1.writeStats(Pout);
|
cutSurf1.writeStats(Pout);
|
||||||
|
|
||||||
Pout<< "Writing to file cutSurf1.ftr" << endl;
|
Pout<< "Writing to file cutSurf1.obj" << endl;
|
||||||
OFstream cutSurf1Stream("cutSurf1.ftr");
|
cutSurf1.write("cutSurf1.obj");
|
||||||
cutSurf1.write(cutSurf1Stream);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -792,9 +789,8 @@ Foam::booleanSurface::booleanSurface
|
|||||||
Pout<< "booleanSurface : Generated cutSurf2: " << endl;
|
Pout<< "booleanSurface : Generated cutSurf2: " << endl;
|
||||||
cutSurf2.writeStats(Pout);
|
cutSurf2.writeStats(Pout);
|
||||||
|
|
||||||
Pout<< "Writing to file cutSurf2.ftr" << endl;
|
Pout<< "Writing to file cutSurf2.obj" << endl;
|
||||||
OFstream cutSurf2Stream("cutSurf2.ftr");
|
cutSurf2.write("cutSurf2.obj");
|
||||||
cutSurf2.write(cutSurf2Stream);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -920,9 +916,8 @@ Foam::booleanSurface::booleanSurface
|
|||||||
Pout<< "booleanSurface : Generated combinedSurf: " << endl;
|
Pout<< "booleanSurface : Generated combinedSurf: " << endl;
|
||||||
combinedSurf.writeStats(Pout);
|
combinedSurf.writeStats(Pout);
|
||||||
|
|
||||||
Pout<< "Writing to file combinedSurf.ftr" << endl;
|
Pout<< "Writing to file combinedSurf.obj" << endl;
|
||||||
OFstream combinedSurfStream("combinedSurf.ftr");
|
combinedSurf.write("combinedSurf.obj");
|
||||||
combinedSurf.write(combinedSurfStream);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user