mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Merge branch 'master' of ssh://noisy/home/noisy3/OpenFOAM/OpenFOAM-dev
This commit is contained in:
@ -359,4 +359,5 @@ vtkUnstructuredGrid* Foam::vtkPV3Foam::volumeVTKMesh
|
|||||||
return vtkmesh;
|
return vtkmesh;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -38,7 +38,6 @@ Description
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
|
||||||
vtkPolyData* Foam::vtkPV3Foam::faceZoneVTKMesh
|
vtkPolyData* Foam::vtkPV3Foam::faceZoneVTKMesh
|
||||||
(
|
(
|
||||||
const fvMesh& mesh,
|
const fvMesh& mesh,
|
||||||
@ -111,7 +110,6 @@ vtkPolyData* Foam::vtkPV3Foam::faceZoneVTKMesh
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
vtkPolyData* Foam::vtkPV3Foam::pointZoneVTKMesh
|
vtkPolyData* Foam::vtkPV3Foam::pointZoneVTKMesh
|
||||||
(
|
(
|
||||||
const fvMesh& mesh,
|
const fvMesh& mesh,
|
||||||
@ -148,4 +146,5 @@ vtkPolyData* Foam::vtkPV3Foam::pointZoneVTKMesh
|
|||||||
return vtkmesh;
|
return vtkmesh;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -519,6 +519,5 @@ void Foam::vtkPV3Foam::updateInfoLagrangianFields()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -338,4 +338,5 @@ void Foam::vtkPV3Foam::printMemory()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -0,0 +1,25 @@
|
|||||||
|
/*--------------------------------*- C++ -*----------------------------------*\
|
||||||
|
| ========= | |
|
||||||
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
|
| \\ / O peration | Version: 1.5.x |
|
||||||
|
| \\ / A nd | Web: www.OpenFOAM.org |
|
||||||
|
| \\/ M anipulation | |
|
||||||
|
\*---------------------------------------------------------------------------*/
|
||||||
|
FoamFile
|
||||||
|
{
|
||||||
|
version 2.0;
|
||||||
|
format ascii;
|
||||||
|
class dictionary;
|
||||||
|
location "constant";
|
||||||
|
object particleTrackProperties;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
cloudName reactingCloud1;
|
||||||
|
|
||||||
|
sampleFrequency 1;
|
||||||
|
|
||||||
|
maxPositions 1000000;
|
||||||
|
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
@ -31,7 +31,13 @@ License
|
|||||||
const dataType Foam::className::staticData();
|
const dataType Foam::className::staticData();
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * Static Member Functions * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * Static Member Functions * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
|
||||||
|
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
|
||||||
|
|
||||||
|
|
||||||
|
// * * * * * * * * * * * * Protected Member Functions * * * * * * * * * * * //
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
||||||
@ -71,12 +77,6 @@ Foam::className::~className()
|
|||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * Protected Member Functions * * * * * * * * * * * //
|
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
0
bin/foamTemplates/source/newSource
Normal file → Executable file
0
bin/foamTemplates/source/newSource
Normal file → Executable file
@ -97,7 +97,7 @@ public:
|
|||||||
//- Construct given SphericalTensor
|
//- Construct given SphericalTensor
|
||||||
inline SymmTensor(const SphericalTensor<Cmpt>&);
|
inline SymmTensor(const SphericalTensor<Cmpt>&);
|
||||||
|
|
||||||
//- Construct given the nine components
|
//- Construct given the six components
|
||||||
inline SymmTensor
|
inline SymmTensor
|
||||||
(
|
(
|
||||||
const Cmpt txx, const Cmpt txy, const Cmpt txz,
|
const Cmpt txx, const Cmpt txy, const Cmpt txz,
|
||||||
|
|||||||
@ -1,9 +1,9 @@
|
|||||||
/*--------------------------------*- C++ -*----------------------------------*\
|
/*--------------------------------*- C++ -*----------------------------------*\
|
||||||
| ========= | |
|
| ========= | |
|
||||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
| \\ / O peration | Version: dev |
|
| \\ / O peration | Version: 1.5.x |
|
||||||
| \\ / A nd | |
|
| \\ / A nd | Web: www.OpenFOAM.org |
|
||||||
| \\/ M anipulation | www.OpenFOAM.org |
|
| \\/ M anipulation | |
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
FoamFile
|
FoamFile
|
||||||
{
|
{
|
||||||
|
|||||||
@ -1640,16 +1640,4 @@ Foam::polyDualMesh::~polyDualMesh()
|
|||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * Friend Functions * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * Friend Operators * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -249,10 +249,10 @@ template<class ParcelType>
|
|||||||
void Foam::KinematicCloud<ParcelType>::info() const
|
void Foam::KinematicCloud<ParcelType>::info() const
|
||||||
{
|
{
|
||||||
Info<< "Cloud: " << this->name() << nl
|
Info<< "Cloud: " << this->name() << nl
|
||||||
<< " Parcels added during this run = "
|
<< " Total number of parcels added = "
|
||||||
<< returnReduce(this->injection().parcelsAddedTotal(), sumOp<label>())
|
<< returnReduce(this->injection().parcelsAddedTotal(), sumOp<label>())
|
||||||
<< nl
|
<< nl
|
||||||
<< " Mass introduced during this run = "
|
<< " Total mass introduced = "
|
||||||
<< returnReduce(this->injection().massInjected(), sumOp<scalar>())
|
<< returnReduce(this->injection().massInjected(), sumOp<scalar>())
|
||||||
<< nl
|
<< nl
|
||||||
<< " Current number of parcels = "
|
<< " Current number of parcels = "
|
||||||
|
|||||||
@ -298,7 +298,7 @@ void Foam::ReactingParcel<ParcelType>::calcPhaseChange
|
|||||||
dt,
|
dt,
|
||||||
cellI,
|
cellI,
|
||||||
d,
|
d,
|
||||||
T,
|
min(T, td.constProps().Tbp()), // Limit to boiling temperature
|
||||||
pc_,
|
pc_,
|
||||||
this->Tc_,
|
this->Tc_,
|
||||||
this->muc_/(this->rhoc_ + ROOTVSMALL),
|
this->muc_/(this->rhoc_ + ROOTVSMALL),
|
||||||
|
|||||||
@ -91,6 +91,9 @@ public:
|
|||||||
//- Vaporisation temperature [K]
|
//- Vaporisation temperature [K]
|
||||||
const scalar Tvap_;
|
const scalar Tvap_;
|
||||||
|
|
||||||
|
//- Boiling point [K]
|
||||||
|
const scalar Tbp_;
|
||||||
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
@ -107,7 +110,10 @@ public:
|
|||||||
|
|
||||||
//- Return const access to the vaporisation temperature
|
//- Return const access to the vaporisation temperature
|
||||||
inline scalar Tvap() const;
|
inline scalar Tvap() const;
|
||||||
};
|
|
||||||
|
//- Return const access to the boiling point
|
||||||
|
inline scalar Tbp() const;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
//- Class used to pass reacting tracking data to the trackToFace function
|
//- Class used to pass reacting tracking data to the trackToFace function
|
||||||
|
|||||||
@ -35,7 +35,8 @@ inline Foam::ReactingParcel<ParcelType>::constantProperties::constantProperties
|
|||||||
ThermoParcel<ParcelType>::constantProperties(parentDict),
|
ThermoParcel<ParcelType>::constantProperties(parentDict),
|
||||||
pMin_(dimensionedScalar(this->dict().lookup("pMin")).value()),
|
pMin_(dimensionedScalar(this->dict().lookup("pMin")).value()),
|
||||||
constantVolume_(this->dict().lookup("constantVolume")),
|
constantVolume_(this->dict().lookup("constantVolume")),
|
||||||
Tvap_(dimensionedScalar(this->dict().lookup("Tvap")).value())
|
Tvap_(dimensionedScalar(this->dict().lookup("Tvap")).value()),
|
||||||
|
Tbp_(dimensionedScalar(this->dict().lookup("Tbp")).value())
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
@ -145,6 +146,14 @@ Foam::ReactingParcel<ParcelType>::constantProperties::Tvap() const
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
template<class ParcelType>
|
||||||
|
inline Foam::scalar
|
||||||
|
Foam::ReactingParcel<ParcelType>::constantProperties::Tbp() const
|
||||||
|
{
|
||||||
|
return Tbp_;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * trackData Member Functions * * * * * * * * * * * * //
|
// * * * * * * * * * * * trackData Member Functions * * * * * * * * * * * * //
|
||||||
|
|
||||||
template<class ParcelType>
|
template<class ParcelType>
|
||||||
|
|||||||
@ -186,7 +186,6 @@ Foam::scalar Foam::InjectionModel<CloudType>::setNumberOfParticles
|
|||||||
(
|
(
|
||||||
const label parcels,
|
const label parcels,
|
||||||
const scalar volume,
|
const scalar volume,
|
||||||
const scalar volumeFraction,
|
|
||||||
const scalar diameter,
|
const scalar diameter,
|
||||||
const scalar rho
|
const scalar rho
|
||||||
)
|
)
|
||||||
@ -196,13 +195,14 @@ Foam::scalar Foam::InjectionModel<CloudType>::setNumberOfParticles
|
|||||||
{
|
{
|
||||||
case pbMass:
|
case pbMass:
|
||||||
{
|
{
|
||||||
nP = volumeFraction*massTotal_/parcels
|
nP = volume/volumeTotal_
|
||||||
/(rho*mathematicalConstant::pi/6.0*pow3(diameter));
|
*massTotal_/rho
|
||||||
|
/(parcels*mathematicalConstant::pi/6.0*pow3(diameter));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case pbNumber:
|
case pbNumber:
|
||||||
{
|
{
|
||||||
nP = volumeFraction*massTotal_/(rho*volume);
|
nP = massTotal_/(rho*volumeTotal_*parcels);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
@ -363,9 +363,6 @@ void Foam::InjectionModel<CloudType>::inject(TrackData& td)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Volume fraction to introduce during this timestep
|
|
||||||
const scalar volFraction = volumeFraction(newVolume);
|
|
||||||
|
|
||||||
// Duration of injection period during this timestep
|
// Duration of injection period during this timestep
|
||||||
const scalar deltaT =
|
const scalar deltaT =
|
||||||
max(0.0, min(carrierDt, min(time - SOI_, timeEnd() - time0_)));
|
max(0.0, min(carrierDt, min(time - SOI_, timeEnd() - time0_)));
|
||||||
@ -418,7 +415,6 @@ void Foam::InjectionModel<CloudType>::inject(TrackData& td)
|
|||||||
(
|
(
|
||||||
newParcels,
|
newParcels,
|
||||||
newVolume,
|
newVolume,
|
||||||
volFraction,
|
|
||||||
pPtr->d(),
|
pPtr->d(),
|
||||||
pPtr->rho()
|
pPtr->rho()
|
||||||
);
|
);
|
||||||
|
|||||||
@ -113,8 +113,8 @@ protected:
|
|||||||
//- Start of injection [s]
|
//- Start of injection [s]
|
||||||
const scalar SOI_;
|
const scalar SOI_;
|
||||||
|
|
||||||
//- Total volume of parcels to introduce [m^3]
|
//- Total volume of particles introduced by this injector [m^3]
|
||||||
// Initialised in the individual injection models
|
// - scaled to ensure massTotal is achieved
|
||||||
scalar volumeTotal_;
|
scalar volumeTotal_;
|
||||||
|
|
||||||
//- Total mass to inject [kg]
|
//- Total mass to inject [kg]
|
||||||
@ -183,7 +183,6 @@ protected:
|
|||||||
(
|
(
|
||||||
const label parcels,
|
const label parcels,
|
||||||
const scalar volume,
|
const scalar volume,
|
||||||
const scalar volumeFraction,
|
|
||||||
const scalar diameter,
|
const scalar diameter,
|
||||||
const scalar rho
|
const scalar rho
|
||||||
);
|
);
|
||||||
@ -290,9 +289,6 @@ public:
|
|||||||
template<class TrackData>
|
template<class TrackData>
|
||||||
void inject(TrackData& td);
|
void inject(TrackData& td);
|
||||||
|
|
||||||
//- Return the volume fraction to introduce
|
|
||||||
inline scalar volumeFraction(const scalar volume) const;
|
|
||||||
|
|
||||||
|
|
||||||
// Injection geometry
|
// Injection geometry
|
||||||
|
|
||||||
|
|||||||
@ -96,14 +96,4 @@ Foam::label Foam::InjectionModel<CloudType>::parcelsAddedTotal() const
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
template<class CloudType>
|
|
||||||
Foam::scalar Foam::InjectionModel<CloudType>::volumeFraction
|
|
||||||
(
|
|
||||||
const scalar volume
|
|
||||||
) const
|
|
||||||
{
|
|
||||||
return volume/volumeTotal_;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -26,13 +26,9 @@ License
|
|||||||
|
|
||||||
#include "MeshedSurfaceIOAllocator.H"
|
#include "MeshedSurfaceIOAllocator.H"
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
|
||||||
Foam::MeshedSurfaceIOAllocator::MeshedSurfaceIOAllocator
|
Foam::MeshedSurfaceIOAllocator::MeshedSurfaceIOAllocator
|
||||||
(
|
(
|
||||||
const IOobject& ioPoints,
|
const IOobject& ioPoints,
|
||||||
|
|||||||
@ -63,6 +63,7 @@ class MeshedSurfaceIOAllocator
|
|||||||
//- Surface zones
|
//- Surface zones
|
||||||
surfZoneIOList zones_;
|
surfZoneIOList zones_;
|
||||||
|
|
||||||
|
|
||||||
// Private Member Functions
|
// Private Member Functions
|
||||||
|
|
||||||
//- Disallow default bitwise copy construct
|
//- Disallow default bitwise copy construct
|
||||||
@ -71,6 +72,7 @@ class MeshedSurfaceIOAllocator
|
|||||||
//- Disallow default bitwise assignment
|
//- Disallow default bitwise assignment
|
||||||
void operator=(const MeshedSurfaceIOAllocator&);
|
void operator=(const MeshedSurfaceIOAllocator&);
|
||||||
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
// Constructors
|
// Constructors
|
||||||
@ -179,7 +181,6 @@ public:
|
|||||||
const Xfer< faceList >& faces,
|
const Xfer< faceList >& faces,
|
||||||
const Xfer< surfZoneList >& zones
|
const Xfer< surfZoneList >& zones
|
||||||
);
|
);
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -216,7 +216,6 @@ void Foam::MeshedSurfaceProxy<Face>::write
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
template<class Face>
|
template<class Face>
|
||||||
@ -242,20 +241,4 @@ Foam::MeshedSurfaceProxy<Face>::~MeshedSurfaceProxy()
|
|||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
|
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * Protected Member Functions * * * * * * * * * * * //
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * Friend Functions * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * IOstream Operators * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -76,13 +76,14 @@ class MeshedSurfaceProxy
|
|||||||
|
|
||||||
const List<label>& faceMap_;
|
const List<label>& faceMap_;
|
||||||
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
|
// Static
|
||||||
|
|
||||||
//- Runtime type information
|
//- Runtime type information
|
||||||
ClassName("MeshedSurfaceProxy");
|
ClassName("MeshedSurfaceProxy");
|
||||||
|
|
||||||
// Static
|
|
||||||
|
|
||||||
//- The file format types that can be written via MeshedSurfaceProxy
|
//- The file format types that can be written via MeshedSurfaceProxy
|
||||||
static wordHashSet writeTypes();
|
static wordHashSet writeTypes();
|
||||||
|
|
||||||
@ -101,6 +102,7 @@ public:
|
|||||||
const List<label>& faceMap = List<label>()
|
const List<label>& faceMap = List<label>()
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
// Destructor
|
// Destructor
|
||||||
|
|
||||||
virtual ~MeshedSurfaceProxy();
|
virtual ~MeshedSurfaceProxy();
|
||||||
@ -127,53 +129,50 @@ public:
|
|||||||
|
|
||||||
// Member Functions
|
// Member Functions
|
||||||
|
|
||||||
// Access
|
// Access
|
||||||
|
|
||||||
//- Return const access to the points
|
//- Return const access to the points
|
||||||
inline const pointField& points() const
|
inline const pointField& points() const
|
||||||
{
|
{
|
||||||
return points_;
|
return points_;
|
||||||
}
|
}
|
||||||
|
|
||||||
//- Return const access to the faces
|
//- Return const access to the faces
|
||||||
inline const List<Face>& faces() const
|
inline const List<Face>& faces() const
|
||||||
{
|
{
|
||||||
return faces_;
|
return faces_;
|
||||||
}
|
}
|
||||||
|
|
||||||
//- Const access to the surface zones.
|
//- Const access to the surface zones.
|
||||||
// If zones are defined, they must be contiguous and cover the entire
|
// If zones are defined, they must be contiguous and cover the
|
||||||
// surface.
|
// entire surface
|
||||||
inline const List<surfZone>& surfZones() const
|
inline const List<surfZone>& surfZones() const
|
||||||
{
|
{
|
||||||
return zones_;
|
return zones_;
|
||||||
}
|
}
|
||||||
|
|
||||||
//- Const access to the faceMap, zero-sized when unused
|
//- Const access to the faceMap, zero-sized when unused
|
||||||
inline const List<label>& faceMap() const
|
inline const List<label>& faceMap() const
|
||||||
{
|
{
|
||||||
return faceMap_;
|
return faceMap_;
|
||||||
}
|
}
|
||||||
|
|
||||||
//- Use faceMap?
|
//- Use faceMap?
|
||||||
inline bool useFaceMap() const
|
inline bool useFaceMap() const
|
||||||
{
|
{
|
||||||
return faceMap_.size() == faces_.size();
|
return faceMap_.size() == faces_.size();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Write
|
// Write
|
||||||
|
|
||||||
//- Generic write routine. Chooses writer based on extension.
|
//- Generic write routine. Chooses writer based on extension.
|
||||||
virtual void write(const fileName& name) const
|
virtual void write(const fileName& name) const
|
||||||
{
|
{
|
||||||
write(name, *this);
|
write(name, *this);
|
||||||
}
|
}
|
||||||
|
|
||||||
//- Write to database
|
|
||||||
virtual void write(const Time&, const word& surfName = "") const;
|
|
||||||
|
|
||||||
//?? void writeStats(Ostream& os) const;
|
|
||||||
|
|
||||||
|
//- Write to database
|
||||||
|
virtual void write(const Time&, const word& surfName = "") const;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -33,8 +33,6 @@ License
|
|||||||
#include "polyBoundaryMesh.H"
|
#include "polyBoundaryMesh.H"
|
||||||
#include "polyMesh.H"
|
#include "polyMesh.H"
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * Static Member Functions * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * Static Member Functions * * * * * * * * * * * * //
|
||||||
|
|
||||||
template<class Face>
|
template<class Face>
|
||||||
@ -301,10 +299,6 @@ Foam::UnsortedMeshedSurface<Face>::~UnsortedMeshedSurface()
|
|||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * Protected Member Functions * * * * * * * * * * * //
|
// * * * * * * * * * * * * Protected Member Functions * * * * * * * * * * * //
|
||||||
|
|
||||||
template<class Face>
|
template<class Face>
|
||||||
@ -694,7 +688,6 @@ Foam::UnsortedMeshedSurface<Face>::xfer()
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// Read from file, determine format from extension
|
// Read from file, determine format from extension
|
||||||
template<class Face>
|
template<class Face>
|
||||||
bool Foam::UnsortedMeshedSurface<Face>::read(const fileName& name)
|
bool Foam::UnsortedMeshedSurface<Face>::read(const fileName& name)
|
||||||
@ -773,11 +766,6 @@ Foam::MeshedSurfaceProxy<Face>() const
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * Friend Functions * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * IOstream Operators * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
#include "UnsortedMeshedSurfaceNew.C"
|
#include "UnsortedMeshedSurfaceNew.C"
|
||||||
|
|||||||
@ -91,6 +91,7 @@ private:
|
|||||||
typedef MeshedSurface<Face> FriendType;
|
typedef MeshedSurface<Face> FriendType;
|
||||||
typedef MeshedSurfaceProxy<Face> ProxyType;
|
typedef MeshedSurfaceProxy<Face> ProxyType;
|
||||||
|
|
||||||
|
|
||||||
// Private Member Data
|
// Private Member Data
|
||||||
|
|
||||||
//- The zone Id associated with each face
|
//- The zone Id associated with each face
|
||||||
@ -100,6 +101,7 @@ private:
|
|||||||
// during reading and writing)
|
// during reading and writing)
|
||||||
List<surfZoneIdentifier> zoneToc_;
|
List<surfZoneIdentifier> zoneToc_;
|
||||||
|
|
||||||
|
|
||||||
// Private member functions
|
// Private member functions
|
||||||
|
|
||||||
//- Disable resize with value
|
//- Disable resize with value
|
||||||
@ -111,6 +113,7 @@ private:
|
|||||||
//- Read OpenFOAM Surface format
|
//- Read OpenFOAM Surface format
|
||||||
bool read(Istream&);
|
bool read(Istream&);
|
||||||
|
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
// Protected Member functions
|
// Protected Member functions
|
||||||
@ -130,11 +133,13 @@ protected:
|
|||||||
//- Set new zones from faceMap
|
//- Set new zones from faceMap
|
||||||
virtual void remapFaces(const UList<label>& faceMap);
|
virtual void remapFaces(const UList<label>& faceMap);
|
||||||
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
//- Runtime type information
|
//- Runtime type information
|
||||||
TypeName("UnsortedMeshedSurface");
|
TypeName("UnsortedMeshedSurface");
|
||||||
|
|
||||||
|
|
||||||
// Static
|
// Static
|
||||||
|
|
||||||
//- Can we read this file format?
|
//- Can we read this file format?
|
||||||
@ -149,6 +154,7 @@ public:
|
|||||||
static wordHashSet readTypes();
|
static wordHashSet readTypes();
|
||||||
static wordHashSet writeTypes();
|
static wordHashSet writeTypes();
|
||||||
|
|
||||||
|
|
||||||
// Constructors
|
// Constructors
|
||||||
|
|
||||||
//- Construct null
|
//- Construct null
|
||||||
@ -198,6 +204,7 @@ public:
|
|||||||
//- Construct from objectRegistry and a named surface
|
//- Construct from objectRegistry and a named surface
|
||||||
UnsortedMeshedSurface(const Time&, const word& surfName="");
|
UnsortedMeshedSurface(const Time&, const word& surfName="");
|
||||||
|
|
||||||
|
|
||||||
// Declare run-time constructor selection table
|
// Declare run-time constructor selection table
|
||||||
|
|
||||||
declareRunTimeSelectionTable
|
declareRunTimeSelectionTable
|
||||||
@ -211,6 +218,7 @@ public:
|
|||||||
(name)
|
(name)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
// Selectors
|
// Selectors
|
||||||
|
|
||||||
//- Select constructed from filename (explicit extension)
|
//- Select constructed from filename (explicit extension)
|
||||||
@ -223,6 +231,7 @@ public:
|
|||||||
//- Select constructed from filename (implicit extension)
|
//- Select constructed from filename (implicit extension)
|
||||||
static autoPtr<UnsortedMeshedSurface> New(const fileName&);
|
static autoPtr<UnsortedMeshedSurface> New(const fileName&);
|
||||||
|
|
||||||
|
|
||||||
// Destructor
|
// Destructor
|
||||||
|
|
||||||
virtual ~UnsortedMeshedSurface();
|
virtual ~UnsortedMeshedSurface();
|
||||||
@ -249,120 +258,119 @@ public:
|
|||||||
|
|
||||||
// Member Functions
|
// Member Functions
|
||||||
|
|
||||||
// Access
|
// Access
|
||||||
|
|
||||||
//- The surface size is the number of faces
|
//- The surface size is the number of faces
|
||||||
label size() const
|
label size() const
|
||||||
{
|
{
|
||||||
return ParentType::size();
|
return ParentType::size();
|
||||||
}
|
}
|
||||||
|
|
||||||
//- Reset size of face and zone list
|
//- Reset size of face and zone list
|
||||||
void setSize(const label);
|
void setSize(const label);
|
||||||
|
|
||||||
//- Return const access to the zone ids
|
//- Return const access to the zone ids
|
||||||
const List<label>& zoneIds() const
|
const List<label>& zoneIds() const
|
||||||
{
|
{
|
||||||
return zoneIds_;
|
return zoneIds_;
|
||||||
}
|
}
|
||||||
|
|
||||||
//- Return const access to the zone table-of-contents
|
//- Return const access to the zone table-of-contents
|
||||||
const List<surfZoneIdentifier>& zoneToc() const
|
const List<surfZoneIdentifier>& zoneToc() const
|
||||||
{
|
{
|
||||||
return zoneToc_;
|
return zoneToc_;
|
||||||
}
|
}
|
||||||
|
|
||||||
//- Sort faces according to zoneIds
|
//- Sort faces according to zoneIds
|
||||||
// Returns a surfZoneList and sets faceMap to index within faces()
|
// Returns a surfZoneList and sets faceMap to index within faces()
|
||||||
surfZoneList sortedZones(labelList& faceMap) const;
|
surfZoneList sortedZones(labelList& faceMap) const;
|
||||||
|
|
||||||
//- Set zones to 0 and set a single zone
|
//- Set zones to 0 and set a single zone
|
||||||
void setOneZone();
|
void setOneZone();
|
||||||
|
|
||||||
//- Set zone ids and zones
|
//- Set zone ids and zones
|
||||||
void setZones(const surfZoneList&);
|
void setZones(const surfZoneList&);
|
||||||
|
|
||||||
//- Set zone ids and zones
|
//- Set zone ids and zones
|
||||||
void setZones(const UList<label>& sizes, const UList<word>& names);
|
void setZones(const UList<label>& sizes, const UList<word>& names);
|
||||||
|
|
||||||
//- Set zone ids and zones with default names
|
//- Set zone ids and zones with default names
|
||||||
void setZones(const UList<label>& sizes);
|
void setZones(const UList<label>& sizes);
|
||||||
|
|
||||||
|
|
||||||
// Edit
|
// Edit
|
||||||
|
|
||||||
//- Clear all storage
|
//- Clear all storage
|
||||||
virtual void clear();
|
virtual void clear();
|
||||||
|
|
||||||
//- Return new surface.
|
//- Return new surface.
|
||||||
// Returns return pointMap, faceMap from subsetMeshMap
|
// Returns return pointMap, faceMap from subsetMeshMap
|
||||||
UnsortedMeshedSurface subsetMesh
|
UnsortedMeshedSurface subsetMesh
|
||||||
(
|
(
|
||||||
const labelHashSet& include,
|
const labelHashSet& include,
|
||||||
labelList& pointMap,
|
labelList& pointMap,
|
||||||
labelList& faceMap
|
labelList& faceMap
|
||||||
) const;
|
) const;
|
||||||
|
|
||||||
//- Return new surface.
|
//- Return new surface.
|
||||||
UnsortedMeshedSurface subsetMesh
|
UnsortedMeshedSurface subsetMesh
|
||||||
(
|
(
|
||||||
const labelHashSet& include
|
const labelHashSet& include
|
||||||
) const;
|
) const;
|
||||||
|
|
||||||
//- Transfer components (points, faces, zone ids).
|
//- Transfer components (points, faces, zone ids).
|
||||||
virtual void reset
|
virtual void reset
|
||||||
(
|
(
|
||||||
const Xfer< pointField >&,
|
const Xfer< pointField >&,
|
||||||
const Xfer< List<Face> >&,
|
const Xfer< List<Face> >&,
|
||||||
const Xfer< List<label> >& zoneIds
|
const Xfer< List<label> >& zoneIds
|
||||||
);
|
);
|
||||||
|
|
||||||
//- Transfer components (points, faces, zone ids).
|
//- Transfer components (points, faces, zone ids).
|
||||||
virtual void reset
|
virtual void reset
|
||||||
(
|
(
|
||||||
const Xfer< List<point> >&,
|
const Xfer< List<point> >&,
|
||||||
const Xfer< List<Face> >&,
|
const Xfer< List<Face> >&,
|
||||||
const Xfer< List<label> >& zoneIds
|
const Xfer< List<label> >& zoneIds
|
||||||
);
|
);
|
||||||
|
|
||||||
//- Transfer the contents of the argument and annull the argument
|
//- Transfer the contents of the argument and annull the argument
|
||||||
void transfer(UnsortedMeshedSurface<Face>&);
|
void transfer(UnsortedMeshedSurface<Face>&);
|
||||||
|
|
||||||
//- Transfer the contents of the argument and annull the argument
|
//- Transfer the contents of the argument and annull the argument
|
||||||
void transfer(MeshedSurface<Face>&);
|
void transfer(MeshedSurface<Face>&);
|
||||||
|
|
||||||
//- Transfer contents to the Xfer container
|
//- Transfer contents to the Xfer container
|
||||||
Xfer< UnsortedMeshedSurface<Face> > xfer();
|
Xfer< UnsortedMeshedSurface<Face> > xfer();
|
||||||
|
|
||||||
|
|
||||||
// Read
|
// Read
|
||||||
|
|
||||||
//- Read from file. Chooses reader based on explicit extension
|
//- Read from file. Chooses reader based on explicit extension
|
||||||
bool read(const fileName&, const word& ext);
|
bool read(const fileName&, const word& ext);
|
||||||
|
|
||||||
//- Read from file. Chooses reader based on detected extension
|
//- Read from file. Chooses reader based on detected extension
|
||||||
virtual bool read(const fileName&);
|
virtual bool read(const fileName&);
|
||||||
|
|
||||||
|
|
||||||
// Write
|
// Write
|
||||||
|
|
||||||
//- Generic write routine. Chooses writer based on extension.
|
//- Generic write routine. Chooses writer based on extension.
|
||||||
virtual void write(const fileName& name) const
|
virtual void write(const fileName& name) const
|
||||||
{
|
{
|
||||||
write(name, *this);
|
write(name, *this);
|
||||||
}
|
}
|
||||||
|
|
||||||
//- Write to database
|
//- Write to database
|
||||||
void write(const Time&, const word& surfName="") const;
|
void write(const Time&, const word& surfName="") const;
|
||||||
|
|
||||||
|
|
||||||
// Member operators
|
// Member operators
|
||||||
|
|
||||||
void operator=(const UnsortedMeshedSurface<Face>&);
|
void operator=(const UnsortedMeshedSurface<Face>&);
|
||||||
|
|
||||||
//- Conversion operator to MeshedSurfaceProxy
|
|
||||||
operator MeshedSurfaceProxy<Face>() const;
|
|
||||||
|
|
||||||
|
//- Conversion operator to MeshedSurfaceProxy
|
||||||
|
operator MeshedSurfaceProxy<Face>() const;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -28,7 +28,6 @@ License
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
|
||||||
template<class Face>
|
template<class Face>
|
||||||
Foam::autoPtr< Foam::UnsortedMeshedSurface<Face> >
|
Foam::autoPtr< Foam::UnsortedMeshedSurface<Face> >
|
||||||
Foam::UnsortedMeshedSurface<Face>::New(const fileName& name, const word& ext)
|
Foam::UnsortedMeshedSurface<Face>::New(const fileName& name, const word& ext)
|
||||||
@ -68,7 +67,7 @@ Foam::UnsortedMeshedSurface<Face>::New(const fileName& name, const word& ext)
|
|||||||
"(const fileName&, const word&) : "
|
"(const fileName&, const word&) : "
|
||||||
"constructing UnsortedMeshedSurface"
|
"constructing UnsortedMeshedSurface"
|
||||||
) << "Unknown file extension " << ext << nl << nl
|
) << "Unknown file extension " << ext << nl << nl
|
||||||
<< "Valid types are :" << nl
|
<< "Valid types are:" << nl
|
||||||
<< supported
|
<< supported
|
||||||
<< exit(FatalError);
|
<< exit(FatalError);
|
||||||
}
|
}
|
||||||
@ -90,4 +89,5 @@ Foam::UnsortedMeshedSurface<Face>::New(const fileName& name)
|
|||||||
return New(name, ext);
|
return New(name, ext);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -31,6 +31,8 @@ License
|
|||||||
|
|
||||||
namespace Foam
|
namespace Foam
|
||||||
{
|
{
|
||||||
|
|
||||||
|
// Forward declaration of classes
|
||||||
class face;
|
class face;
|
||||||
class triFace;
|
class triFace;
|
||||||
|
|
||||||
|
|||||||
@ -76,7 +76,6 @@ public:
|
|||||||
{
|
{
|
||||||
return size(mesh_);
|
return size(mesh_);
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -76,7 +76,6 @@ public:
|
|||||||
{
|
{
|
||||||
return size(mesh_);
|
return size(mesh_);
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -70,7 +70,6 @@ Foam::word Foam::surfMesh::meshSubDir = "surfMesh";
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
|
||||||
Foam::surfMesh::surfMesh(const IOobject& io, const word& surfName)
|
Foam::surfMesh::surfMesh(const IOobject& io, const word& surfName)
|
||||||
:
|
:
|
||||||
surfaceRegistry(io.db(), (surfName.size() ? surfName : io.name())),
|
surfaceRegistry(io.db(), (surfName.size() ? surfName : io.name())),
|
||||||
@ -215,6 +214,7 @@ Foam::surfMesh::surfMesh
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
Foam::surfMesh::~surfMesh()
|
Foam::surfMesh::~surfMesh()
|
||||||
@ -271,7 +271,6 @@ void Foam::surfMesh::resetPrimitives
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
void Foam::surfMesh::transfer
|
void Foam::surfMesh::transfer
|
||||||
(
|
(
|
||||||
MeshedSurface<face>& surf
|
MeshedSurface<face>& surf
|
||||||
@ -330,21 +329,25 @@ Foam::label Foam::surfMesh::nPoints() const
|
|||||||
return this->points().size();
|
return this->points().size();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
Foam::label Foam::surfMesh::nFaces() const
|
Foam::label Foam::surfMesh::nFaces() const
|
||||||
{
|
{
|
||||||
return this->faces().size();
|
return this->faces().size();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
const Foam::pointField& Foam::surfMesh::points() const
|
const Foam::pointField& Foam::surfMesh::points() const
|
||||||
{
|
{
|
||||||
return this->storedIOPoints();
|
return this->storedIOPoints();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
const Foam::faceList& Foam::surfMesh::faces() const
|
const Foam::faceList& Foam::surfMesh::faces() const
|
||||||
{
|
{
|
||||||
return this->storedIOFaces();
|
return this->storedIOFaces();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void Foam::surfMesh::checkZones()
|
void Foam::surfMesh::checkZones()
|
||||||
{
|
{
|
||||||
// extra safety, ensure we have at some zones
|
// extra safety, ensure we have at some zones
|
||||||
|
|||||||
@ -96,9 +96,6 @@ private:
|
|||||||
MeshReference;
|
MeshReference;
|
||||||
|
|
||||||
|
|
||||||
// Permanent data
|
|
||||||
|
|
||||||
|
|
||||||
// Private member functions
|
// Private member functions
|
||||||
|
|
||||||
//- Disallow construct as copy
|
//- Disallow construct as copy
|
||||||
@ -107,6 +104,7 @@ private:
|
|||||||
//- Disallow default bitwise assignment
|
//- Disallow default bitwise assignment
|
||||||
void operator=(const surfMesh&);
|
void operator=(const surfMesh&);
|
||||||
|
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
// Protected Member Functions
|
// Protected Member Functions
|
||||||
@ -129,7 +127,6 @@ protected:
|
|||||||
return Allocator::storedIOZones();
|
return Allocator::storedIOZones();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//- Update references to storedFaces
|
//- Update references to storedFaces
|
||||||
virtual void updateFacesRef();
|
virtual void updateFacesRef();
|
||||||
|
|
||||||
@ -139,6 +136,7 @@ protected:
|
|||||||
//- Update references to storedPoints/storedFaces
|
//- Update references to storedPoints/storedFaces
|
||||||
virtual void updateRefs();
|
virtual void updateRefs();
|
||||||
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
// Public typedefs
|
// Public typedefs
|
||||||
@ -178,6 +176,7 @@ public:
|
|||||||
const word& surfName=""
|
const word& surfName=""
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
// Destructor
|
// Destructor
|
||||||
|
|
||||||
virtual ~surfMesh();
|
virtual ~surfMesh();
|
||||||
|
|||||||
@ -203,6 +203,4 @@ Foam::surfMesh::readUpdateState Foam::surfMesh::readUpdate()
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -45,7 +45,6 @@ Foam::surfZone::surfZone()
|
|||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Foam::surfZone::surfZone
|
Foam::surfZone::surfZone
|
||||||
(
|
(
|
||||||
const word& name,
|
const word& name,
|
||||||
|
|||||||
@ -73,6 +73,7 @@ class surfZone
|
|||||||
//- Start label of this group in the face list
|
//- Start label of this group in the face list
|
||||||
label start_;
|
label start_;
|
||||||
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
//- Runtime type information
|
//- Runtime type information
|
||||||
@ -167,6 +168,7 @@ public:
|
|||||||
//- compare.
|
//- compare.
|
||||||
bool operator==(const surfZone&) const;
|
bool operator==(const surfZone&) const;
|
||||||
|
|
||||||
|
|
||||||
// IOstream Operators
|
// IOstream Operators
|
||||||
|
|
||||||
friend Istream& operator>>(Istream&, surfZone&);
|
friend Istream& operator>>(Istream&, surfZone&);
|
||||||
|
|||||||
@ -153,9 +153,4 @@ Foam::Ostream& Foam::operator<<(Ostream& os, const surfZoneIOList& L)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * Friend Functions * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -57,9 +57,6 @@ class surfZoneIOList
|
|||||||
public surfZoneList,
|
public surfZoneList,
|
||||||
public regIOobject
|
public regIOobject
|
||||||
{
|
{
|
||||||
// Private data
|
|
||||||
|
|
||||||
|
|
||||||
// Private Member Functions
|
// Private Member Functions
|
||||||
|
|
||||||
//- Disallow default bitwise copy construct
|
//- Disallow default bitwise copy construct
|
||||||
@ -86,6 +83,7 @@ public:
|
|||||||
//- Construct from IOobject and surfZoneList
|
//- Construct from IOobject and surfZoneList
|
||||||
surfZoneIOList(const IOobject&, const Xfer<surfZoneList>&);
|
surfZoneIOList(const IOobject&, const Xfer<surfZoneList>&);
|
||||||
|
|
||||||
|
|
||||||
// Destructor
|
// Destructor
|
||||||
|
|
||||||
~surfZoneIOList();
|
~surfZoneIOList();
|
||||||
@ -97,12 +95,6 @@ public:
|
|||||||
bool writeData(Ostream&) const;
|
bool writeData(Ostream&) const;
|
||||||
|
|
||||||
|
|
||||||
// Member Operators
|
|
||||||
|
|
||||||
// Friend Functions
|
|
||||||
|
|
||||||
// Friend Operators
|
|
||||||
|
|
||||||
// IOstream Operators
|
// IOstream Operators
|
||||||
|
|
||||||
friend Ostream& operator<<(Ostream&, const surfZoneIOList&);
|
friend Ostream& operator<<(Ostream&, const surfZoneIOList&);
|
||||||
|
|||||||
@ -27,8 +27,6 @@ License
|
|||||||
#include "surfZoneIdentifier.H"
|
#include "surfZoneIdentifier.H"
|
||||||
#include "dictionary.H"
|
#include "dictionary.H"
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
Foam::surfZoneIdentifier::surfZoneIdentifier()
|
Foam::surfZoneIdentifier::surfZoneIdentifier()
|
||||||
@ -77,6 +75,7 @@ Foam::surfZoneIdentifier::surfZoneIdentifier
|
|||||||
geometricType_(p.geometricType())
|
geometricType_(p.geometricType())
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
Foam::surfZoneIdentifier::~surfZoneIdentifier()
|
Foam::surfZoneIdentifier::~surfZoneIdentifier()
|
||||||
@ -136,4 +135,5 @@ Foam::Ostream& Foam::operator<<(Ostream& os, const surfZoneIdentifier& p)
|
|||||||
return os;
|
return os;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -72,6 +72,7 @@ class surfZoneIdentifier
|
|||||||
//- Type name of zone
|
//- Type name of zone
|
||||||
mutable word geometricType_;
|
mutable word geometricType_;
|
||||||
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
// Constructors
|
// Constructors
|
||||||
|
|||||||
@ -30,11 +30,6 @@ License
|
|||||||
#include "tensor.H"
|
#include "tensor.H"
|
||||||
#include "primitivePatch.H"
|
#include "primitivePatch.H"
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
|
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
template<class Face>
|
template<class Face>
|
||||||
@ -46,6 +41,7 @@ Foam::fileFormats::AC3DsurfaceFormat<Face>::AC3DsurfaceFormat
|
|||||||
read(filename);
|
read(filename);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||||
|
|
||||||
template<class Face>
|
template<class Face>
|
||||||
|
|||||||
@ -73,6 +73,7 @@ class AC3DsurfaceFormat
|
|||||||
//- Disallow default bitwise assignment
|
//- Disallow default bitwise assignment
|
||||||
void operator=(const AC3DsurfaceFormat<Face>&);
|
void operator=(const AC3DsurfaceFormat<Face>&);
|
||||||
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
// Constructors
|
// Constructors
|
||||||
@ -80,6 +81,7 @@ public:
|
|||||||
//- Construct from file name
|
//- Construct from file name
|
||||||
AC3DsurfaceFormat(const fileName&);
|
AC3DsurfaceFormat(const fileName&);
|
||||||
|
|
||||||
|
|
||||||
// Selectors
|
// Selectors
|
||||||
|
|
||||||
//- Read file and return surface
|
//- Read file and return surface
|
||||||
@ -91,6 +93,7 @@ public:
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Destructor
|
// Destructor
|
||||||
|
|
||||||
virtual ~AC3DsurfaceFormat()
|
virtual ~AC3DsurfaceFormat()
|
||||||
@ -105,7 +108,6 @@ public:
|
|||||||
//- Write UnsortedMeshedSurface, the output is always sorted by zones.
|
//- Write UnsortedMeshedSurface, the output is always sorted by zones.
|
||||||
static void write(const fileName&, const UnsortedMeshedSurface<Face>&);
|
static void write(const fileName&, const UnsortedMeshedSurface<Face>&);
|
||||||
|
|
||||||
|
|
||||||
//- Read from file
|
//- Read from file
|
||||||
virtual bool read(const fileName&);
|
virtual bool read(const fileName&);
|
||||||
|
|
||||||
@ -114,7 +116,6 @@ public:
|
|||||||
{
|
{
|
||||||
write(name, MeshedSurfaceProxy<Face>(*this));
|
write(name, MeshedSurfaceProxy<Face>(*this));
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -29,8 +29,6 @@ License
|
|||||||
#include "IFstream.H"
|
#include "IFstream.H"
|
||||||
#include "IStringStream.H"
|
#include "IStringStream.H"
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
|
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
|
||||||
|
|
||||||
bool Foam::fileFormats::AC3DsurfaceFormatCore::readCmd
|
bool Foam::fileFormats::AC3DsurfaceFormatCore::readCmd
|
||||||
@ -156,6 +154,5 @@ void Foam::fileFormats::AC3DsurfaceFormatCore::writeHeader
|
|||||||
<< "kids " << zoneLst.size() << endl;
|
<< "kids " << zoneLst.size() << endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -55,30 +55,30 @@ namespace fileFormats
|
|||||||
class AC3DsurfaceFormatCore
|
class AC3DsurfaceFormatCore
|
||||||
{
|
{
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
// Protected Member Functions
|
// Protected Member Functions
|
||||||
|
|
||||||
//- Read a type via IStringStream
|
//- Read a type via IStringStream
|
||||||
template<class Type>
|
template<class Type>
|
||||||
static Type parse(const string&);
|
static Type parse(const string&);
|
||||||
|
|
||||||
//- Read cmd, args from IFstream
|
//- Read cmd, args from IFstream
|
||||||
static bool readCmd(IFstream&, string& cmd, string& args);
|
static bool readCmd(IFstream&, string& cmd, string& args);
|
||||||
|
|
||||||
//- Cue up to cmd, reading args
|
//- Cue up to cmd, reading args
|
||||||
static bool cueTo(IFstream&, const string& cmd, string& args);
|
static bool cueTo(IFstream&, const string& cmd, string& args);
|
||||||
|
|
||||||
//- Cue up to cmd, reading args or exit with a FatalError
|
//- Cue up to cmd, reading args or exit with a FatalError
|
||||||
// returns the command args
|
// returns the command args
|
||||||
static string cueToOrDie
|
static string cueToOrDie
|
||||||
(
|
(
|
||||||
IFstream&,
|
IFstream&,
|
||||||
const string& cmd,
|
const string& cmd,
|
||||||
const string& errorMsg=string::null
|
const string& errorMsg=string::null
|
||||||
);
|
);
|
||||||
|
|
||||||
//- Write header with materials
|
|
||||||
static void writeHeader(Ostream&, const UList<surfZone>&);
|
|
||||||
|
|
||||||
|
//- Write header with materials
|
||||||
|
static void writeHeader(Ostream&, const UList<surfZone>&);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -39,6 +39,5 @@ Type Foam::fileFormats::AC3DsurfaceFormatCore::parse(const string& s)
|
|||||||
return t;
|
return t;
|
||||||
}
|
}
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -30,6 +30,7 @@ License
|
|||||||
#include "addToMemberFunctionSelectionTable.H"
|
#include "addToMemberFunctionSelectionTable.H"
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
||||||
|
|
||||||
namespace Foam
|
namespace Foam
|
||||||
{
|
{
|
||||||
namespace fileFormats
|
namespace fileFormats
|
||||||
|
|||||||
@ -28,8 +28,6 @@ License
|
|||||||
#include "Keyed.H"
|
#include "Keyed.H"
|
||||||
#include "IFstream.H"
|
#include "IFstream.H"
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
template<class Face>
|
template<class Face>
|
||||||
@ -101,4 +99,5 @@ bool Foam::fileFormats::FTRsurfaceFormat<Face>::read
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -82,6 +82,7 @@ class FTRsurfaceFormat
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
// Private Member Functions
|
// Private Member Functions
|
||||||
|
|
||||||
//- Disallow default bitwise copy construct
|
//- Disallow default bitwise copy construct
|
||||||
@ -90,6 +91,7 @@ class FTRsurfaceFormat
|
|||||||
//- Disallow default bitwise assignment
|
//- Disallow default bitwise assignment
|
||||||
void operator=(const FTRsurfaceFormat<Face>&);
|
void operator=(const FTRsurfaceFormat<Face>&);
|
||||||
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
// Constructors
|
// Constructors
|
||||||
@ -97,6 +99,7 @@ public:
|
|||||||
//- Construct from file name
|
//- Construct from file name
|
||||||
FTRsurfaceFormat(const fileName&);
|
FTRsurfaceFormat(const fileName&);
|
||||||
|
|
||||||
|
|
||||||
// Selectors
|
// Selectors
|
||||||
|
|
||||||
//- Read file and return surface
|
//- Read file and return surface
|
||||||
@ -119,7 +122,6 @@ public:
|
|||||||
|
|
||||||
//- Read from file
|
//- Read from file
|
||||||
virtual bool read(const fileName&);
|
virtual bool read(const fileName&);
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -30,6 +30,7 @@ License
|
|||||||
#include "addToMemberFunctionSelectionTable.H"
|
#include "addToMemberFunctionSelectionTable.H"
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
||||||
|
|
||||||
namespace Foam
|
namespace Foam
|
||||||
{
|
{
|
||||||
namespace fileFormats
|
namespace fileFormats
|
||||||
|
|||||||
@ -32,10 +32,6 @@ License
|
|||||||
#include "Ostream.H"
|
#include "Ostream.H"
|
||||||
#include "OFstream.H"
|
#include "OFstream.H"
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
template<class Face>
|
template<class Face>
|
||||||
|
|||||||
@ -66,6 +66,7 @@ class GTSsurfaceFormat
|
|||||||
//- Disallow default bitwise assignment
|
//- Disallow default bitwise assignment
|
||||||
void operator=(const GTSsurfaceFormat<Face>&);
|
void operator=(const GTSsurfaceFormat<Face>&);
|
||||||
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
// Constructors
|
// Constructors
|
||||||
@ -73,6 +74,7 @@ public:
|
|||||||
//- Construct from file name
|
//- Construct from file name
|
||||||
GTSsurfaceFormat(const fileName&);
|
GTSsurfaceFormat(const fileName&);
|
||||||
|
|
||||||
|
|
||||||
// Selectors
|
// Selectors
|
||||||
|
|
||||||
//- Read file and return surface
|
//- Read file and return surface
|
||||||
@ -84,9 +86,11 @@ public:
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Destructor
|
|
||||||
virtual ~GTSsurfaceFormat()
|
//- Destructor
|
||||||
{}
|
virtual ~GTSsurfaceFormat()
|
||||||
|
{}
|
||||||
|
|
||||||
|
|
||||||
// Member Functions
|
// Member Functions
|
||||||
|
|
||||||
@ -96,7 +100,6 @@ public:
|
|||||||
//- Write UnsortedMeshedSurface, the output remains unsorted
|
//- Write UnsortedMeshedSurface, the output remains unsorted
|
||||||
static void write(const fileName&, const UnsortedMeshedSurface<Face>&);
|
static void write(const fileName&, const UnsortedMeshedSurface<Face>&);
|
||||||
|
|
||||||
|
|
||||||
//- Read from file
|
//- Read from file
|
||||||
virtual bool read(const fileName&);
|
virtual bool read(const fileName&);
|
||||||
|
|
||||||
@ -105,7 +108,6 @@ public:
|
|||||||
{
|
{
|
||||||
write(name, *this);
|
write(name, *this);
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -30,6 +30,7 @@ License
|
|||||||
#include "addToMemberFunctionSelectionTable.H"
|
#include "addToMemberFunctionSelectionTable.H"
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
||||||
|
|
||||||
namespace Foam
|
namespace Foam
|
||||||
{
|
{
|
||||||
namespace fileFormats
|
namespace fileFormats
|
||||||
|
|||||||
@ -28,11 +28,6 @@ License
|
|||||||
#include "IFstream.H"
|
#include "IFstream.H"
|
||||||
#include "IStringStream.H"
|
#include "IStringStream.H"
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
|
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
template<class Face>
|
template<class Face>
|
||||||
@ -393,4 +388,5 @@ bool Foam::fileFormats::NASsurfaceFormat<Face>::read
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -74,6 +74,7 @@ class NASsurfaceFormat
|
|||||||
//- Disallow default bitwise assignment
|
//- Disallow default bitwise assignment
|
||||||
void operator=(const NASsurfaceFormat<Face>&);
|
void operator=(const NASsurfaceFormat<Face>&);
|
||||||
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
// Constructors
|
// Constructors
|
||||||
@ -81,6 +82,7 @@ public:
|
|||||||
//- Construct from file name
|
//- Construct from file name
|
||||||
NASsurfaceFormat(const fileName&);
|
NASsurfaceFormat(const fileName&);
|
||||||
|
|
||||||
|
|
||||||
// Selectors
|
// Selectors
|
||||||
|
|
||||||
//- Read file and return surface
|
//- Read file and return surface
|
||||||
@ -92,16 +94,17 @@ public:
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Destructor
|
// Destructor
|
||||||
|
|
||||||
virtual ~NASsurfaceFormat()
|
virtual ~NASsurfaceFormat()
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
// Member Functions
|
// Member Functions
|
||||||
|
|
||||||
//- Read from a file
|
//- Read from a file
|
||||||
virtual bool read(const fileName&);
|
virtual bool read(const fileName&);
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -27,8 +27,6 @@ License
|
|||||||
#include "NASsurfaceFormatCore.H"
|
#include "NASsurfaceFormatCore.H"
|
||||||
#include "IStringStream.H"
|
#include "IStringStream.H"
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
|
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
|
||||||
|
|
||||||
// Do weird things to extract a floating point number
|
// Do weird things to extract a floating point number
|
||||||
@ -56,7 +54,5 @@ Foam::scalar Foam::fileFormats::NASsurfaceFormatCore::parseNASCoord
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -53,11 +53,11 @@ namespace fileFormats
|
|||||||
class NASsurfaceFormatCore
|
class NASsurfaceFormatCore
|
||||||
{
|
{
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
// Protected Member Functions
|
// Protected Member Functions
|
||||||
|
|
||||||
//- Do weird things to extract number
|
//- Do weird things to extract number
|
||||||
static scalar parseNASCoord(const string&);
|
static scalar parseNASCoord(const string&);
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -68,8 +68,6 @@ protected:
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -30,6 +30,7 @@ License
|
|||||||
#include "addToMemberFunctionSelectionTable.H"
|
#include "addToMemberFunctionSelectionTable.H"
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
||||||
|
|
||||||
namespace Foam
|
namespace Foam
|
||||||
{
|
{
|
||||||
namespace fileFormats
|
namespace fileFormats
|
||||||
|
|||||||
@ -32,8 +32,6 @@ License
|
|||||||
#include "OFstream.H"
|
#include "OFstream.H"
|
||||||
#include "ListOps.H"
|
#include "ListOps.H"
|
||||||
|
|
||||||
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
template<class Face>
|
template<class Face>
|
||||||
|
|||||||
@ -66,6 +66,7 @@ class OBJsurfaceFormat
|
|||||||
//- Disallow default bitwise assignment
|
//- Disallow default bitwise assignment
|
||||||
void operator=(const OBJsurfaceFormat<Face>&);
|
void operator=(const OBJsurfaceFormat<Face>&);
|
||||||
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
// Constructors
|
// Constructors
|
||||||
@ -73,6 +74,7 @@ public:
|
|||||||
//- Construct from file name
|
//- Construct from file name
|
||||||
OBJsurfaceFormat(const fileName&);
|
OBJsurfaceFormat(const fileName&);
|
||||||
|
|
||||||
|
|
||||||
// Selectors
|
// Selectors
|
||||||
|
|
||||||
//- Read file and return surface
|
//- Read file and return surface
|
||||||
@ -84,6 +86,7 @@ public:
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Destructor
|
// Destructor
|
||||||
|
|
||||||
virtual ~OBJsurfaceFormat()
|
virtual ~OBJsurfaceFormat()
|
||||||
@ -103,7 +106,6 @@ public:
|
|||||||
{
|
{
|
||||||
write(name, MeshedSurfaceProxy<Face>(*this));
|
write(name, MeshedSurfaceProxy<Face>(*this));
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -30,6 +30,7 @@ License
|
|||||||
#include "addToMemberFunctionSelectionTable.H"
|
#include "addToMemberFunctionSelectionTable.H"
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
||||||
|
|
||||||
namespace Foam
|
namespace Foam
|
||||||
{
|
{
|
||||||
namespace fileFormats
|
namespace fileFormats
|
||||||
|
|||||||
@ -31,10 +31,6 @@ License
|
|||||||
#include "Ostream.H"
|
#include "Ostream.H"
|
||||||
#include "OFstream.H"
|
#include "OFstream.H"
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
template<class Face>
|
template<class Face>
|
||||||
@ -214,7 +210,7 @@ void Foam::fileFormats::OFFsurfaceFormat<Face>::write
|
|||||||
{
|
{
|
||||||
os << "# <zone name=\"" << zoneLst[zoneI].name() << "\">" << endl;
|
os << "# <zone name=\"" << zoneLst[zoneI].name() << "\">" << endl;
|
||||||
|
|
||||||
if (surf.useFaceMap())
|
if (surf.useFaceMap())
|
||||||
{
|
{
|
||||||
forAll(zoneLst[zoneI], localFaceI)
|
forAll(zoneLst[zoneI], localFaceI)
|
||||||
{
|
{
|
||||||
@ -245,7 +241,7 @@ void Foam::fileFormats::OFFsurfaceFormat<Face>::write
|
|||||||
// add optional zone information
|
// add optional zone information
|
||||||
os << ' ' << zoneI << endl;
|
os << ' ' << zoneI << endl;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
os << "# </zone>" << endl;
|
os << "# </zone>" << endl;
|
||||||
}
|
}
|
||||||
os << "# </faces>" << endl;
|
os << "# </faces>" << endl;
|
||||||
|
|||||||
@ -74,6 +74,7 @@ class OFFsurfaceFormat
|
|||||||
//- Disallow default bitwise assignment
|
//- Disallow default bitwise assignment
|
||||||
void operator=(const OFFsurfaceFormat&);
|
void operator=(const OFFsurfaceFormat&);
|
||||||
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
// Constructors
|
// Constructors
|
||||||
@ -81,6 +82,7 @@ public:
|
|||||||
//- Construct from file name
|
//- Construct from file name
|
||||||
OFFsurfaceFormat(const fileName&);
|
OFFsurfaceFormat(const fileName&);
|
||||||
|
|
||||||
|
|
||||||
// Selectors
|
// Selectors
|
||||||
|
|
||||||
//- Read file and return surface
|
//- Read file and return surface
|
||||||
@ -92,16 +94,17 @@ public:
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Destructor
|
|
||||||
virtual ~OFFsurfaceFormat()
|
//- Destructor
|
||||||
{}
|
virtual ~OFFsurfaceFormat()
|
||||||
|
{}
|
||||||
|
|
||||||
|
|
||||||
// Member Functions
|
// Member Functions
|
||||||
|
|
||||||
//- Write surface mesh components by proxy
|
//- Write surface mesh components by proxy
|
||||||
static void write(const fileName&, const MeshedSurfaceProxy<Face>&);
|
static void write(const fileName&, const MeshedSurfaceProxy<Face>&);
|
||||||
|
|
||||||
|
|
||||||
//- Read from file
|
//- Read from file
|
||||||
virtual bool read(const fileName&);
|
virtual bool read(const fileName&);
|
||||||
|
|
||||||
@ -110,7 +113,6 @@ public:
|
|||||||
{
|
{
|
||||||
write(name, MeshedSurfaceProxy<Face>(*this));
|
write(name, MeshedSurfaceProxy<Face>(*this));
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -30,6 +30,7 @@ License
|
|||||||
#include "addToMemberFunctionSelectionTable.H"
|
#include "addToMemberFunctionSelectionTable.H"
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
||||||
|
|
||||||
namespace Foam
|
namespace Foam
|
||||||
{
|
{
|
||||||
namespace fileFormats
|
namespace fileFormats
|
||||||
|
|||||||
@ -29,8 +29,6 @@ License
|
|||||||
#include "IStringStream.H"
|
#include "IStringStream.H"
|
||||||
#include "ListOps.H"
|
#include "ListOps.H"
|
||||||
|
|
||||||
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
template<class Face>
|
template<class Face>
|
||||||
@ -257,4 +255,5 @@ void Foam::fileFormats::OFSsurfaceFormat<Face>::write
|
|||||||
os.check("OFSsurfaceFormat<Face>::write(Ostream&)");
|
os.check("OFSsurfaceFormat<Face>::write(Ostream&)");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -71,6 +71,7 @@ class OFSsurfaceFormat
|
|||||||
//- Disallow default bitwise assignment
|
//- Disallow default bitwise assignment
|
||||||
void operator=(const OFSsurfaceFormat<Face>&);
|
void operator=(const OFSsurfaceFormat<Face>&);
|
||||||
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
// Constructors
|
// Constructors
|
||||||
@ -78,6 +79,7 @@ public:
|
|||||||
//- Construct from file name
|
//- Construct from file name
|
||||||
OFSsurfaceFormat(const fileName&);
|
OFSsurfaceFormat(const fileName&);
|
||||||
|
|
||||||
|
|
||||||
// Selectors
|
// Selectors
|
||||||
|
|
||||||
//- Read file and return surface
|
//- Read file and return surface
|
||||||
@ -89,12 +91,14 @@ public:
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Destructor
|
// Destructor
|
||||||
|
|
||||||
virtual ~OFSsurfaceFormat()
|
virtual ~OFSsurfaceFormat()
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// Member Functions
|
// Member Functions
|
||||||
|
|
||||||
//- Read surface mesh components
|
//- Read surface mesh components
|
||||||
@ -124,7 +128,6 @@ public:
|
|||||||
//- Write surface mesh components by proxy
|
//- Write surface mesh components by proxy
|
||||||
static void write(const fileName&, const MeshedSurfaceProxy<Face>&);
|
static void write(const fileName&, const MeshedSurfaceProxy<Face>&);
|
||||||
|
|
||||||
|
|
||||||
//- Read from file
|
//- Read from file
|
||||||
virtual bool read(const fileName&);
|
virtual bool read(const fileName&);
|
||||||
|
|
||||||
@ -133,7 +136,6 @@ public:
|
|||||||
{
|
{
|
||||||
write(name, MeshedSurfaceProxy<Face>(*this));
|
write(name, MeshedSurfaceProxy<Face>(*this));
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -27,8 +27,6 @@ License
|
|||||||
#include "OFSsurfaceFormatCore.H"
|
#include "OFSsurfaceFormatCore.H"
|
||||||
#include "clock.H"
|
#include "clock.H"
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
|
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
|
||||||
|
|
||||||
void Foam::fileFormats::OFSsurfaceFormatCore::writeHeader
|
void Foam::fileFormats::OFSsurfaceFormatCore::writeHeader
|
||||||
@ -71,6 +69,4 @@ void Foam::fileFormats::OFSsurfaceFormatCore::writeHeader
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -55,16 +55,16 @@ namespace fileFormats
|
|||||||
class OFSsurfaceFormatCore
|
class OFSsurfaceFormatCore
|
||||||
{
|
{
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
// Protected Member Functions
|
// Protected Member Functions
|
||||||
|
|
||||||
//- Write header information and surfZoneList
|
//- Write header information and surfZoneList
|
||||||
static void writeHeader
|
static void writeHeader
|
||||||
(
|
(
|
||||||
Ostream&,
|
Ostream&,
|
||||||
const pointField&,
|
const pointField&,
|
||||||
const UList<surfZone>&
|
const UList<surfZone>&
|
||||||
);
|
);
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -30,6 +30,7 @@ License
|
|||||||
#include "addToMemberFunctionSelectionTable.H"
|
#include "addToMemberFunctionSelectionTable.H"
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
||||||
|
|
||||||
namespace Foam
|
namespace Foam
|
||||||
{
|
{
|
||||||
namespace fileFormats
|
namespace fileFormats
|
||||||
|
|||||||
@ -30,16 +30,13 @@ License
|
|||||||
#include "OFstream.H"
|
#include "OFstream.H"
|
||||||
#include "Ostream.H"
|
#include "Ostream.H"
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
template<class Face>
|
template<class Face>
|
||||||
Foam::fileFormats::SMESHsurfaceFormat<Face>::SMESHsurfaceFormat()
|
Foam::fileFormats::SMESHsurfaceFormat<Face>::SMESHsurfaceFormat()
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||||
|
|
||||||
template<class Face>
|
template<class Face>
|
||||||
|
|||||||
@ -70,6 +70,7 @@ class SMESHsurfaceFormat
|
|||||||
//- Disallow default bitwise assignment
|
//- Disallow default bitwise assignment
|
||||||
void operator=(const SMESHsurfaceFormat<Face>&);
|
void operator=(const SMESHsurfaceFormat<Face>&);
|
||||||
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
// Constructors
|
// Constructors
|
||||||
@ -77,7 +78,6 @@ public:
|
|||||||
//- Construct null
|
//- Construct null
|
||||||
SMESHsurfaceFormat();
|
SMESHsurfaceFormat();
|
||||||
|
|
||||||
// Selectors
|
|
||||||
|
|
||||||
// Destructor
|
// Destructor
|
||||||
|
|
||||||
@ -90,13 +90,11 @@ public:
|
|||||||
//- Write surface mesh components by proxy
|
//- Write surface mesh components by proxy
|
||||||
static void write(const fileName&, const MeshedSurfaceProxy<Face>&);
|
static void write(const fileName&, const MeshedSurfaceProxy<Face>&);
|
||||||
|
|
||||||
|
|
||||||
//- Write object
|
//- Write object
|
||||||
virtual void write(const fileName& name) const
|
virtual void write(const fileName& name) const
|
||||||
{
|
{
|
||||||
write(name, MeshedSurfaceProxy<Face>(*this));
|
write(name, MeshedSurfaceProxy<Face>(*this));
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -30,6 +30,7 @@ License
|
|||||||
#include "addToMemberFunctionSelectionTable.H"
|
#include "addToMemberFunctionSelectionTable.H"
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
||||||
|
|
||||||
namespace Foam
|
namespace Foam
|
||||||
{
|
{
|
||||||
namespace fileFormats
|
namespace fileFormats
|
||||||
|
|||||||
@ -27,8 +27,6 @@ License
|
|||||||
#include "STARCDsurfaceFormat.H"
|
#include "STARCDsurfaceFormat.H"
|
||||||
#include "ListOps.H"
|
#include "ListOps.H"
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
|
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
|
||||||
|
|
||||||
template<class Face>
|
template<class Face>
|
||||||
@ -73,6 +71,7 @@ Foam::fileFormats::STARCDsurfaceFormat<Face>::STARCDsurfaceFormat
|
|||||||
read(filename);
|
read(filename);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||||
|
|
||||||
template<class Face>
|
template<class Face>
|
||||||
|
|||||||
@ -72,6 +72,7 @@ class STARCDsurfaceFormat
|
|||||||
//- STAR-CD identifier for shell type (shells vs. baffles)
|
//- STAR-CD identifier for shell type (shells vs. baffles)
|
||||||
static const int starcdShellType_ = 4;
|
static const int starcdShellType_ = 4;
|
||||||
|
|
||||||
|
|
||||||
// Private Member Functions
|
// Private Member Functions
|
||||||
|
|
||||||
static inline void writeShell
|
static inline void writeShell
|
||||||
@ -88,6 +89,7 @@ class STARCDsurfaceFormat
|
|||||||
//- Disallow default bitwise assignment
|
//- Disallow default bitwise assignment
|
||||||
void operator=(const STARCDsurfaceFormat<Face>&);
|
void operator=(const STARCDsurfaceFormat<Face>&);
|
||||||
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
// Constructors
|
// Constructors
|
||||||
@ -95,6 +97,7 @@ public:
|
|||||||
//- Construct from file name
|
//- Construct from file name
|
||||||
STARCDsurfaceFormat(const fileName&);
|
STARCDsurfaceFormat(const fileName&);
|
||||||
|
|
||||||
|
|
||||||
// Selectors
|
// Selectors
|
||||||
|
|
||||||
//- Read file and return surface
|
//- Read file and return surface
|
||||||
@ -106,9 +109,10 @@ public:
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Destructor
|
|
||||||
virtual ~STARCDsurfaceFormat()
|
//- Destructor
|
||||||
{}
|
virtual ~STARCDsurfaceFormat()
|
||||||
|
{}
|
||||||
|
|
||||||
|
|
||||||
// Member Functions
|
// Member Functions
|
||||||
@ -116,7 +120,6 @@ public:
|
|||||||
//- Write surface mesh components by proxy
|
//- Write surface mesh components by proxy
|
||||||
static void write(const fileName&, const MeshedSurfaceProxy<Face>&);
|
static void write(const fileName&, const MeshedSurfaceProxy<Face>&);
|
||||||
|
|
||||||
|
|
||||||
//- Read from file
|
//- Read from file
|
||||||
virtual bool read(const fileName&);
|
virtual bool read(const fileName&);
|
||||||
|
|
||||||
@ -125,7 +128,6 @@ public:
|
|||||||
{
|
{
|
||||||
write(name, MeshedSurfaceProxy<Face>(*this));
|
write(name, MeshedSurfaceProxy<Face>(*this));
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -28,8 +28,6 @@ License
|
|||||||
#include "clock.H"
|
#include "clock.H"
|
||||||
#include "IStringStream.H"
|
#include "IStringStream.H"
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
|
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
|
||||||
|
|
||||||
bool Foam::fileFormats::STARCDsurfaceFormatCore::readHeader
|
bool Foam::fileFormats::STARCDsurfaceFormatCore::readHeader
|
||||||
@ -193,7 +191,6 @@ void Foam::fileFormats::STARCDsurfaceFormatCore::writeCase
|
|||||||
os.flush();
|
os.flush();
|
||||||
}
|
}
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|
||||||
|
|||||||
@ -55,6 +55,7 @@ namespace fileFormats
|
|||||||
class STARCDsurfaceFormatCore
|
class STARCDsurfaceFormatCore
|
||||||
{
|
{
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
// Protected Member Functions
|
// Protected Member Functions
|
||||||
|
|
||||||
static bool readHeader(IFstream&, const word&);
|
static bool readHeader(IFstream&, const word&);
|
||||||
@ -72,7 +73,6 @@ protected:
|
|||||||
const label nFaces,
|
const label nFaces,
|
||||||
const UList<surfZone>&
|
const UList<surfZone>&
|
||||||
);
|
);
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -83,8 +83,6 @@ protected:
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -30,6 +30,7 @@ License
|
|||||||
#include "addToMemberFunctionSelectionTable.H"
|
#include "addToMemberFunctionSelectionTable.H"
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
||||||
|
|
||||||
namespace Foam
|
namespace Foam
|
||||||
{
|
{
|
||||||
namespace fileFormats
|
namespace fileFormats
|
||||||
|
|||||||
@ -87,7 +87,6 @@ public:
|
|||||||
{
|
{
|
||||||
return point(x(), y(), z());
|
return point(x(), y(), z());
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -28,8 +28,6 @@ License
|
|||||||
#include "ListOps.H"
|
#include "ListOps.H"
|
||||||
#include "triPointRef.H"
|
#include "triPointRef.H"
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
|
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
|
||||||
|
|
||||||
template<class Face>
|
template<class Face>
|
||||||
@ -441,6 +439,7 @@ void Foam::fileFormats::STLsurfaceFormat<Face>::writeBinary
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
template<class Face>
|
template<class Face>
|
||||||
void Foam::fileFormats::STLsurfaceFormat<Face>::write
|
void Foam::fileFormats::STLsurfaceFormat<Face>::write
|
||||||
(
|
(
|
||||||
|
|||||||
@ -86,6 +86,8 @@ class STLsurfaceFormat
|
|||||||
|
|
||||||
//- Disallow default bitwise assignment
|
//- Disallow default bitwise assignment
|
||||||
void operator=(const STLsurfaceFormat<Face>&);
|
void operator=(const STLsurfaceFormat<Face>&);
|
||||||
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
// Constructors
|
// Constructors
|
||||||
@ -93,6 +95,7 @@ public:
|
|||||||
//- Construct from file name
|
//- Construct from file name
|
||||||
STLsurfaceFormat(const fileName&);
|
STLsurfaceFormat(const fileName&);
|
||||||
|
|
||||||
|
|
||||||
// Selectors
|
// Selectors
|
||||||
|
|
||||||
//- Read file and return surface
|
//- Read file and return surface
|
||||||
@ -104,9 +107,11 @@ public:
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Destructor
|
|
||||||
virtual ~STLsurfaceFormat()
|
//- Destructor
|
||||||
{}
|
virtual ~STLsurfaceFormat()
|
||||||
|
{}
|
||||||
|
|
||||||
|
|
||||||
// Member Functions
|
// Member Functions
|
||||||
|
|
||||||
@ -146,7 +151,6 @@ public:
|
|||||||
// as ASCII or BINARY, depending on the extension
|
// as ASCII or BINARY, depending on the extension
|
||||||
static void write(const fileName&, const UnsortedMeshedSurface<Face>&);
|
static void write(const fileName&, const UnsortedMeshedSurface<Face>&);
|
||||||
|
|
||||||
|
|
||||||
//- Read from file
|
//- Read from file
|
||||||
virtual bool read(const fileName&);
|
virtual bool read(const fileName&);
|
||||||
|
|
||||||
@ -155,7 +159,6 @@ public:
|
|||||||
{
|
{
|
||||||
write(name, MeshedSurfaceProxy<Face>(*this));
|
write(name, MeshedSurfaceProxy<Face>(*this));
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -33,8 +33,6 @@ License
|
|||||||
|
|
||||||
#undef DEBUG_STLBINARY
|
#undef DEBUG_STLBINARY
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
|
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
|
||||||
|
|
||||||
// check binary by getting the header and number of facets
|
// check binary by getting the header and number of facets
|
||||||
@ -276,4 +274,5 @@ void Foam::fileFormats::STLsurfaceFormatCore::writeHeaderBINARY
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -71,6 +71,7 @@ class STLsurfaceFormatCore
|
|||||||
//- The solid count, in the order of their first appearance
|
//- The solid count, in the order of their first appearance
|
||||||
List<label> sizes_;
|
List<label> sizes_;
|
||||||
|
|
||||||
|
|
||||||
// Private Member Functions
|
// Private Member Functions
|
||||||
|
|
||||||
//- Disallow default bitwise copy construct
|
//- Disallow default bitwise copy construct
|
||||||
@ -88,6 +89,7 @@ class STLsurfaceFormatCore
|
|||||||
//- Read BINARY
|
//- Read BINARY
|
||||||
bool readBINARY(istream&, const off_t);
|
bool readBINARY(istream&, const off_t);
|
||||||
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
// Static Data
|
// Static Data
|
||||||
@ -95,20 +97,24 @@ public:
|
|||||||
//- The number of bytes in the STL binary header
|
//- The number of bytes in the STL binary header
|
||||||
static const unsigned int headerSize = 80;
|
static const unsigned int headerSize = 80;
|
||||||
|
|
||||||
|
|
||||||
// Static Member Functions
|
// Static Member Functions
|
||||||
|
|
||||||
//- Write "STL binary file" and number of triangles to stream
|
//- Write "STL binary file" and number of triangles to stream
|
||||||
static void writeHeaderBINARY(ostream&, unsigned int);
|
static void writeHeaderBINARY(ostream&, unsigned int);
|
||||||
|
|
||||||
|
|
||||||
// Constructors
|
// Constructors
|
||||||
|
|
||||||
//- Read from file, filling in the information
|
//- Read from file, filling in the information
|
||||||
STLsurfaceFormatCore(const fileName&);
|
STLsurfaceFormatCore(const fileName&);
|
||||||
|
|
||||||
|
|
||||||
// Destructor
|
// Destructor
|
||||||
|
|
||||||
~STLsurfaceFormatCore();
|
~STLsurfaceFormatCore();
|
||||||
|
|
||||||
|
|
||||||
// Member Functions
|
// Member Functions
|
||||||
|
|
||||||
//- File read was already sorted
|
//- File read was already sorted
|
||||||
@ -150,7 +156,6 @@ public:
|
|||||||
{
|
{
|
||||||
return sizes_;
|
return sizes_;
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -161,8 +166,6 @@ public:
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -30,6 +30,7 @@ License
|
|||||||
#include "addToMemberFunctionSelectionTable.H"
|
#include "addToMemberFunctionSelectionTable.H"
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
||||||
|
|
||||||
namespace Foam
|
namespace Foam
|
||||||
{
|
{
|
||||||
namespace fileFormats
|
namespace fileFormats
|
||||||
|
|||||||
@ -65,6 +65,7 @@ class STLtriangle
|
|||||||
//- The attribute information could for colour or solid id, etc
|
//- The attribute information could for colour or solid id, etc
|
||||||
STLattrib attrib_;
|
STLattrib attrib_;
|
||||||
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
// Constructors
|
// Constructors
|
||||||
@ -96,11 +97,13 @@ public:
|
|||||||
inline const STLpoint& c() const;
|
inline const STLpoint& c() const;
|
||||||
inline unsigned short attrib() const;
|
inline unsigned short attrib() const;
|
||||||
|
|
||||||
|
|
||||||
// Read
|
// Read
|
||||||
|
|
||||||
//- Read from istream (binary)
|
//- Read from istream (binary)
|
||||||
inline void read(istream&);
|
inline void read(istream&);
|
||||||
|
|
||||||
|
|
||||||
// Write
|
// Write
|
||||||
|
|
||||||
//- Write to ostream (binary)
|
//- Write to ostream (binary)
|
||||||
|
|||||||
@ -24,8 +24,6 @@ License
|
|||||||
|
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
inline Foam::STLtriangle::STLtriangle()
|
inline Foam::STLtriangle::STLtriangle()
|
||||||
@ -62,21 +60,25 @@ inline const Foam::STLpoint& Foam::STLtriangle::normal() const
|
|||||||
return normal_;
|
return normal_;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
inline const Foam::STLpoint& Foam::STLtriangle::a() const
|
inline const Foam::STLpoint& Foam::STLtriangle::a() const
|
||||||
{
|
{
|
||||||
return a_;
|
return a_;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
inline const Foam::STLpoint& Foam::STLtriangle::b() const
|
inline const Foam::STLpoint& Foam::STLtriangle::b() const
|
||||||
{
|
{
|
||||||
return b_;
|
return b_;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
inline const Foam::STLpoint& Foam::STLtriangle::c() const
|
inline const Foam::STLpoint& Foam::STLtriangle::c() const
|
||||||
{
|
{
|
||||||
return c_;
|
return c_;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
inline unsigned short Foam::STLtriangle::attrib() const
|
inline unsigned short Foam::STLtriangle::attrib() const
|
||||||
{
|
{
|
||||||
return attrib_;
|
return attrib_;
|
||||||
@ -96,6 +98,7 @@ inline void Foam::STLtriangle::write(ostream& os)
|
|||||||
os.write(reinterpret_cast<char*>(&attrib_), sizeof(STLattrib));
|
os.write(reinterpret_cast<char*>(&attrib_), sizeof(STLattrib));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * Ostream Operator * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * Ostream Operator * * * * * * * * * * * * * //
|
||||||
|
|
||||||
inline Foam::Ostream& Foam::operator<<(Ostream& os, const STLtriangle& t)
|
inline Foam::Ostream& Foam::operator<<(Ostream& os, const STLtriangle& t)
|
||||||
@ -110,6 +113,4 @@ inline Foam::Ostream& Foam::operator<<(Ostream& os, const STLtriangle& t)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -38,8 +38,7 @@ Foam::word Foam::fileFormats::surfaceFormatsCore::nativeExt("ofs");
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * Static Member Functions * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * Static Member Functions * * * * * * * * * * * * //
|
||||||
|
|
||||||
Foam::string
|
Foam::string Foam::fileFormats::surfaceFormatsCore::getLineNoComment
|
||||||
Foam::fileFormats::surfaceFormatsCore::getLineNoComment
|
|
||||||
(
|
(
|
||||||
IFstream& is
|
IFstream& is
|
||||||
)
|
)
|
||||||
@ -54,9 +53,12 @@ Foam::fileFormats::surfaceFormatsCore::getLineNoComment
|
|||||||
return line;
|
return line;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
Foam::fileName
|
Foam::fileName Foam::fileFormats::surfaceFormatsCore::localMeshFileName
|
||||||
Foam::fileFormats::surfaceFormatsCore::localMeshFileName(const word& surfName)
|
(
|
||||||
|
const word& surfName
|
||||||
|
)
|
||||||
{
|
{
|
||||||
const word name(surfName.size() ? surfName : surfaceRegistry::defaultName);
|
const word name(surfName.size() ? surfName : surfaceRegistry::defaultName);
|
||||||
|
|
||||||
@ -68,8 +70,7 @@ Foam::fileFormats::surfaceFormatsCore::localMeshFileName(const word& surfName)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
Foam::fileName
|
Foam::fileName Foam::fileFormats::surfaceFormatsCore::findMeshInstance
|
||||||
Foam::fileFormats::surfaceFormatsCore::findMeshInstance
|
|
||||||
(
|
(
|
||||||
const Time& t,
|
const Time& t,
|
||||||
const word& surfName
|
const word& surfName
|
||||||
@ -109,8 +110,7 @@ Foam::fileFormats::surfaceFormatsCore::findMeshInstance
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
Foam::fileName
|
Foam::fileName Foam::fileFormats::surfaceFormatsCore::findMeshFile
|
||||||
Foam::fileFormats::surfaceFormatsCore::findMeshFile
|
|
||||||
(
|
(
|
||||||
const Time& t,
|
const Time& t,
|
||||||
const word& surfName
|
const word& surfName
|
||||||
@ -154,8 +154,7 @@ Foam::fileFormats::surfaceFormatsCore::findMeshFile
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
bool
|
bool Foam::fileFormats::surfaceFormatsCore::checkSupport
|
||||||
Foam::fileFormats::surfaceFormatsCore::checkSupport
|
|
||||||
(
|
(
|
||||||
const wordHashSet& available,
|
const wordHashSet& available,
|
||||||
const word& ext,
|
const word& ext,
|
||||||
@ -199,18 +198,4 @@ Foam::fileFormats::surfaceFormatsCore::~surfaceFormatsCore()
|
|||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * Protected Member Functions * * * * * * * * * * * //
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * Friend Functions * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * IOstream Operators * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -78,6 +78,7 @@ protected:
|
|||||||
//- Read non-comment line
|
//- Read non-comment line
|
||||||
static string getLineNoComment(IFstream&);
|
static string getLineNoComment(IFstream&);
|
||||||
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
// Static Data
|
// Static Data
|
||||||
@ -86,6 +87,7 @@ public:
|
|||||||
// Normally "ofs" (mnemonic: OF = OpenFOAM, S = Surface)
|
// Normally "ofs" (mnemonic: OF = OpenFOAM, S = Surface)
|
||||||
static word nativeExt;
|
static word nativeExt;
|
||||||
|
|
||||||
|
|
||||||
// Static Member Functions
|
// Static Member Functions
|
||||||
|
|
||||||
static bool checkSupport
|
static bool checkSupport
|
||||||
@ -96,7 +98,6 @@ public:
|
|||||||
const word& functionName
|
const word& functionName
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
//- Return the local file name (within time directory)
|
//- Return the local file name (within time directory)
|
||||||
// NEEDS FIXING
|
// NEEDS FIXING
|
||||||
static fileName localMeshFileName(const word& surfName="");
|
static fileName localMeshFileName(const word& surfName="");
|
||||||
@ -109,28 +110,16 @@ public:
|
|||||||
// NEEDS FIXING
|
// NEEDS FIXING
|
||||||
static fileName findMeshFile(const Time&, const word& surfName="");
|
static fileName findMeshFile(const Time&, const word& surfName="");
|
||||||
|
|
||||||
|
|
||||||
// Constructors
|
// Constructors
|
||||||
|
|
||||||
//- Construct null
|
//- Construct null
|
||||||
surfaceFormatsCore();
|
surfaceFormatsCore();
|
||||||
|
|
||||||
|
|
||||||
// Destructor
|
// Destructor
|
||||||
|
|
||||||
virtual ~surfaceFormatsCore();
|
virtual ~surfaceFormatsCore();
|
||||||
|
|
||||||
// Member Functions
|
|
||||||
|
|
||||||
// Access
|
|
||||||
|
|
||||||
// Edit
|
|
||||||
|
|
||||||
// Read
|
|
||||||
|
|
||||||
// Write
|
|
||||||
|
|
||||||
// Member operators
|
|
||||||
|
|
||||||
// Ostream Operator
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -27,8 +27,6 @@ License
|
|||||||
#include "TRIsurfaceFormat.H"
|
#include "TRIsurfaceFormat.H"
|
||||||
#include "ListOps.H"
|
#include "ListOps.H"
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
|
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
|
||||||
|
|
||||||
template<class Face>
|
template<class Face>
|
||||||
@ -235,4 +233,5 @@ void Foam::fileFormats::TRIsurfaceFormat<Face>::write
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -77,6 +77,7 @@ class TRIsurfaceFormat
|
|||||||
//- Disallow default bitwise assignment
|
//- Disallow default bitwise assignment
|
||||||
void operator=(const TRIsurfaceFormat<Face>&);
|
void operator=(const TRIsurfaceFormat<Face>&);
|
||||||
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
// Constructors
|
// Constructors
|
||||||
@ -84,6 +85,7 @@ public:
|
|||||||
//- Construct from file name
|
//- Construct from file name
|
||||||
TRIsurfaceFormat(const fileName&);
|
TRIsurfaceFormat(const fileName&);
|
||||||
|
|
||||||
|
|
||||||
// Selectors
|
// Selectors
|
||||||
|
|
||||||
//- Read file and return surface
|
//- Read file and return surface
|
||||||
@ -95,9 +97,11 @@ public:
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Destructor
|
|
||||||
virtual ~TRIsurfaceFormat()
|
//- Destructor
|
||||||
{}
|
virtual ~TRIsurfaceFormat()
|
||||||
|
{}
|
||||||
|
|
||||||
|
|
||||||
// Member Functions
|
// Member Functions
|
||||||
|
|
||||||
@ -108,7 +112,6 @@ public:
|
|||||||
// by default the output is not sorted by zones
|
// by default the output is not sorted by zones
|
||||||
static void write(const fileName&, const UnsortedMeshedSurface<Face>&);
|
static void write(const fileName&, const UnsortedMeshedSurface<Face>&);
|
||||||
|
|
||||||
|
|
||||||
//- Read from file
|
//- Read from file
|
||||||
virtual bool read(const fileName&);
|
virtual bool read(const fileName&);
|
||||||
|
|
||||||
@ -117,7 +120,6 @@ public:
|
|||||||
{
|
{
|
||||||
write(name, MeshedSurfaceProxy<Face>(*this));
|
write(name, MeshedSurfaceProxy<Face>(*this));
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -30,10 +30,6 @@ License
|
|||||||
#include "IStringStream.H"
|
#include "IStringStream.H"
|
||||||
#include "Map.H"
|
#include "Map.H"
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
Foam::fileFormats::TRIsurfaceFormatCore::TRIsurfaceFormatCore
|
Foam::fileFormats::TRIsurfaceFormatCore::TRIsurfaceFormatCore
|
||||||
@ -49,6 +45,7 @@ Foam::fileFormats::TRIsurfaceFormatCore::TRIsurfaceFormatCore
|
|||||||
read(filename);
|
read(filename);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * Destructors * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * Destructors * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
Foam::fileFormats::TRIsurfaceFormatCore::~TRIsurfaceFormatCore()
|
Foam::fileFormats::TRIsurfaceFormatCore::~TRIsurfaceFormatCore()
|
||||||
|
|||||||
@ -71,6 +71,7 @@ class TRIsurfaceFormatCore
|
|||||||
//- The solid count, in the order of their first appearance
|
//- The solid count, in the order of their first appearance
|
||||||
List<label> sizes_;
|
List<label> sizes_;
|
||||||
|
|
||||||
|
|
||||||
// Private Member Functions
|
// Private Member Functions
|
||||||
|
|
||||||
//- Disallow default bitwise copy construct
|
//- Disallow default bitwise copy construct
|
||||||
@ -81,6 +82,7 @@ class TRIsurfaceFormatCore
|
|||||||
|
|
||||||
bool read(const fileName&);
|
bool read(const fileName&);
|
||||||
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
// Constructors
|
// Constructors
|
||||||
@ -88,10 +90,12 @@ public:
|
|||||||
//- Read from file, filling in the information
|
//- Read from file, filling in the information
|
||||||
TRIsurfaceFormatCore(const fileName&);
|
TRIsurfaceFormatCore(const fileName&);
|
||||||
|
|
||||||
|
|
||||||
// Destructor
|
// Destructor
|
||||||
|
|
||||||
~TRIsurfaceFormatCore();
|
~TRIsurfaceFormatCore();
|
||||||
|
|
||||||
|
|
||||||
// Member Functions
|
// Member Functions
|
||||||
|
|
||||||
//- File read was already sorted
|
//- File read was already sorted
|
||||||
@ -126,7 +130,6 @@ public:
|
|||||||
{
|
{
|
||||||
return sizes_;
|
return sizes_;
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -137,8 +140,6 @@ public:
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -30,6 +30,7 @@ License
|
|||||||
#include "addToMemberFunctionSelectionTable.H"
|
#include "addToMemberFunctionSelectionTable.H"
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
||||||
|
|
||||||
namespace Foam
|
namespace Foam
|
||||||
{
|
{
|
||||||
namespace fileFormats
|
namespace fileFormats
|
||||||
|
|||||||
@ -26,9 +26,8 @@ License
|
|||||||
|
|
||||||
#include "VTKsurfaceFormat.H"
|
#include "VTKsurfaceFormat.H"
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
|
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
|
||||||
|
|
||||||
template<class Face>
|
template<class Face>
|
||||||
void Foam::fileFormats::VTKsurfaceFormat<Face>::writeHeaderPolygons
|
void Foam::fileFormats::VTKsurfaceFormat<Face>::writeHeaderPolygons
|
||||||
(
|
(
|
||||||
|
|||||||
@ -70,6 +70,7 @@ class VTKsurfaceFormat
|
|||||||
//- Disallow default bitwise assignment
|
//- Disallow default bitwise assignment
|
||||||
void operator=(const VTKsurfaceFormat<Face>&);
|
void operator=(const VTKsurfaceFormat<Face>&);
|
||||||
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
// Constructors
|
// Constructors
|
||||||
@ -77,30 +78,35 @@ public:
|
|||||||
//- Construct null
|
//- Construct null
|
||||||
VTKsurfaceFormat();
|
VTKsurfaceFormat();
|
||||||
|
|
||||||
// Selectors
|
|
||||||
|
|
||||||
// Destructor
|
// Destructor
|
||||||
|
|
||||||
virtual ~VTKsurfaceFormat()
|
virtual ~VTKsurfaceFormat()
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
// Member Functions
|
// Member Functions
|
||||||
|
|
||||||
// Write
|
// Write
|
||||||
|
|
||||||
//- Write surface mesh components by proxy
|
//- Write surface mesh components by proxy
|
||||||
static void write(const fileName&, const MeshedSurfaceProxy<Face>&);
|
static void write
|
||||||
|
(
|
||||||
|
const fileName&, const MeshedSurfaceProxy<Face>&
|
||||||
|
);
|
||||||
|
|
||||||
//- Write UnsortedMeshedSurface, the output remains unsorted
|
//- Write UnsortedMeshedSurface, the output remains unsorted
|
||||||
static void write(const fileName&, const UnsortedMeshedSurface<Face>&);
|
static void write
|
||||||
|
(
|
||||||
|
const fileName&, const UnsortedMeshedSurface<Face>&
|
||||||
|
);
|
||||||
|
|
||||||
|
|
||||||
//- Write object
|
//- Write object
|
||||||
virtual void write(Ostream& os) const
|
virtual void write(Ostream& os) const
|
||||||
{
|
{
|
||||||
write(os, MeshedSurfaceProxy<Face>(*this));
|
write(os, MeshedSurfaceProxy<Face>(*this));
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -27,8 +27,6 @@ License
|
|||||||
#include "VTKsurfaceFormatCore.H"
|
#include "VTKsurfaceFormatCore.H"
|
||||||
#include "clock.H"
|
#include "clock.H"
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
|
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
|
||||||
|
|
||||||
void Foam::fileFormats::VTKsurfaceFormatCore::writeHeader
|
void Foam::fileFormats::VTKsurfaceFormatCore::writeHeader
|
||||||
@ -127,6 +125,4 @@ void Foam::fileFormats::VTKsurfaceFormatCore::writeTail
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -54,21 +54,21 @@ namespace fileFormats
|
|||||||
class VTKsurfaceFormatCore
|
class VTKsurfaceFormatCore
|
||||||
{
|
{
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
// Protected Member Functions
|
// Protected Member Functions
|
||||||
|
|
||||||
//- Write header information with points
|
//- Write header information with points
|
||||||
static void writeHeader
|
static void writeHeader
|
||||||
(
|
(
|
||||||
Ostream&,
|
Ostream&,
|
||||||
const pointField&
|
const pointField&
|
||||||
);
|
);
|
||||||
|
|
||||||
//- Write trailing information with zone information
|
//- Write trailing information with zone information
|
||||||
static void writeTail(Ostream&, const UList<surfZone>&);
|
static void writeTail(Ostream&, const UList<surfZone>&);
|
||||||
|
|
||||||
//- Write trailing information with zone Ids
|
|
||||||
static void writeTail(Ostream&, const UList<label>& zoneIds);
|
|
||||||
|
|
||||||
|
//- Write trailing information with zone Ids
|
||||||
|
static void writeTail(Ostream&, const UList<label>& zoneIds);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -30,6 +30,7 @@ License
|
|||||||
#include "addToMemberFunctionSelectionTable.H"
|
#include "addToMemberFunctionSelectionTable.H"
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
||||||
|
|
||||||
namespace Foam
|
namespace Foam
|
||||||
{
|
{
|
||||||
namespace fileFormats
|
namespace fileFormats
|
||||||
|
|||||||
@ -30,8 +30,6 @@ License
|
|||||||
#include "OFstream.H"
|
#include "OFstream.H"
|
||||||
#include "ListOps.H"
|
#include "ListOps.H"
|
||||||
|
|
||||||
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
template<class Face>
|
template<class Face>
|
||||||
@ -140,7 +138,6 @@ void Foam::fileFormats::WRLsurfaceFormat<Face>::write
|
|||||||
" }\n" // end Shape
|
" }\n" // end Shape
|
||||||
" ]\n" // end children
|
" ]\n" // end children
|
||||||
"}\n"; // end Group
|
"}\n"; // end Group
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -74,8 +74,6 @@ public:
|
|||||||
//- Construct null
|
//- Construct null
|
||||||
WRLsurfaceFormat();
|
WRLsurfaceFormat();
|
||||||
|
|
||||||
// Selectors
|
|
||||||
|
|
||||||
|
|
||||||
// Destructor
|
// Destructor
|
||||||
|
|
||||||
|
|||||||
@ -27,8 +27,6 @@ License
|
|||||||
#include "WRLsurfaceFormatCore.H"
|
#include "WRLsurfaceFormatCore.H"
|
||||||
#include "clock.H"
|
#include "clock.H"
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
|
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
|
||||||
|
|
||||||
void Foam::fileFormats::WRLsurfaceFormatCore::writeHeader
|
void Foam::fileFormats::WRLsurfaceFormatCore::writeHeader
|
||||||
@ -36,7 +34,7 @@ void Foam::fileFormats::WRLsurfaceFormatCore::writeHeader
|
|||||||
Ostream& os,
|
Ostream& os,
|
||||||
const pointField& pointLst,
|
const pointField& pointLst,
|
||||||
const label nFaces,
|
const label nFaces,
|
||||||
const UList<surfZone>& zoneLst
|
const UList<surfZone>& zoneLst
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
os << "#VRML V2.0 utf8" << nl
|
os << "#VRML V2.0 utf8" << nl
|
||||||
@ -52,8 +50,6 @@ void Foam::fileFormats::WRLsurfaceFormatCore::writeHeader
|
|||||||
os << "# " << zoneI << " " << zoneLst[zoneI].name()
|
os << "# " << zoneI << " " << zoneLst[zoneI].name()
|
||||||
<< " (nFaces: " << zoneLst[zoneI].size() << ")" << nl;
|
<< " (nFaces: " << zoneLst[zoneI].size() << ")" << nl;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -75,6 +71,4 @@ void Foam::fileFormats::WRLsurfaceFormatCore::writeAppearance
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -30,6 +30,7 @@ License
|
|||||||
#include "addToMemberFunctionSelectionTable.H"
|
#include "addToMemberFunctionSelectionTable.H"
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
||||||
|
|
||||||
namespace Foam
|
namespace Foam
|
||||||
{
|
{
|
||||||
namespace fileFormats
|
namespace fileFormats
|
||||||
|
|||||||
@ -32,8 +32,6 @@ License
|
|||||||
#include "OFstream.H"
|
#include "OFstream.H"
|
||||||
#include "ListOps.H"
|
#include "ListOps.H"
|
||||||
|
|
||||||
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
template<class Face>
|
template<class Face>
|
||||||
|
|||||||
@ -73,8 +73,6 @@ public:
|
|||||||
//- Construct null
|
//- Construct null
|
||||||
X3DsurfaceFormat();
|
X3DsurfaceFormat();
|
||||||
|
|
||||||
// Selectors
|
|
||||||
|
|
||||||
|
|
||||||
// Destructor
|
// Destructor
|
||||||
|
|
||||||
|
|||||||
@ -27,8 +27,6 @@ License
|
|||||||
#include "X3DsurfaceFormatCore.H"
|
#include "X3DsurfaceFormatCore.H"
|
||||||
#include "clock.H"
|
#include "clock.H"
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
|
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
|
||||||
|
|
||||||
void Foam::fileFormats::X3DsurfaceFormatCore::writeHeader
|
void Foam::fileFormats::X3DsurfaceFormatCore::writeHeader
|
||||||
@ -65,6 +63,4 @@ void Foam::fileFormats::X3DsurfaceFormatCore::writeAppearance
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -62,7 +62,5 @@ Foam::surfaceRegistry::surfaceRegistry
|
|||||||
Foam::surfaceRegistry::~surfaceRegistry()
|
Foam::surfaceRegistry::~surfaceRegistry()
|
||||||
{}
|
{}
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user