Merge branch 'master' of /home/dm4/OpenFOAM/OpenFOAM-dev

This commit is contained in:
laurence
2012-02-03 14:44:19 +00:00
41 changed files with 260 additions and 127 deletions

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -46,6 +46,8 @@ Description
#include "snapParameters.H" #include "snapParameters.H"
#include "layerParameters.H" #include "layerParameters.H"
#include "faceSet.H"
#include "motionSmoother.H"
using namespace Foam; using namespace Foam;
@ -122,6 +124,13 @@ int main(int argc, char *argv[])
{ {
# include "addOverwriteOption.H" # include "addOverwriteOption.H"
Foam::argList::addBoolOption
(
"checkOnly",
"check existing mesh against snappyHexMeshDict settings"
);
# include "setRootCase.H" # include "setRootCase.H"
# include "createTime.H" # include "createTime.H"
runTime.functionObjects().off(); runTime.functionObjects().off();
@ -132,24 +141,13 @@ int main(int argc, char *argv[])
const bool overwrite = args.optionFound("overwrite"); const bool overwrite = args.optionFound("overwrite");
const bool checkOnly = args.optionFound("checkOnly");
// Check patches and faceZones are synchronised // Check patches and faceZones are synchronised
mesh.boundaryMesh().checkParallelSync(true); mesh.boundaryMesh().checkParallelSync(true);
meshRefinement::checkCoupledFaceZones(mesh); meshRefinement::checkCoupledFaceZones(mesh);
// Read decomposePar dictionary
IOdictionary decomposeDict
(
IOobject
(
"decomposeParDict",
runTime.system(),
mesh,
IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE
)
);
// Read meshing dictionary // Read meshing dictionary
IOdictionary meshDict IOdictionary meshDict
( (
@ -186,6 +184,51 @@ int main(int argc, char *argv[])
); );
if (checkOnly)
{
Info<< "Checking initial mesh ..." << endl;
faceSet wrongFaces(mesh, "wrongFaces", mesh.nFaces()/100);
motionSmoother::checkMesh(false, mesh, motionDict, wrongFaces);
const label nInitErrors = returnReduce
(
wrongFaces.size(),
sumOp<label>()
);
Info<< "Detected " << nInitErrors << " illegal faces"
<< " (concave, zero area or negative cell pyramid volume)"
<< endl;
if (nInitErrors > 0)
{
Info<< "Writing " << nInitErrors
<< " faces in error to set "
<< wrongFaces.name() << endl;
wrongFaces.instance() = mesh.pointsInstance();
wrongFaces.write();
}
Info<< "End\n" << endl;
return 0;
}
// Read decomposePar dictionary
IOdictionary decomposeDict
(
IOobject
(
"decomposeParDict",
runTime.system(),
mesh,
IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE
)
);
// Debug // Debug
// ~~~~~ // ~~~~~

View File

@ -286,7 +286,8 @@ int main(int argc, char *argv[])
) )
{ {
currentSet = topoSet::New(setType, mesh, setName, 10000); currentSet = topoSet::New(setType, mesh, setName, 10000);
Info<< "Created set " << setName << endl; Info<< "Created " << currentSet().type() << " "
<< setName << endl;
} }
else if (action == topoSetSource::REMOVE) else if (action == topoSetSource::REMOVE)
{ {
@ -301,7 +302,8 @@ int main(int argc, char *argv[])
setName, setName,
IOobject::MUST_READ IOobject::MUST_READ
); );
Info<< "Read set " << setName << " with size " Info<< "Read set " << currentSet().type() << " "
<< setName << " with size "
<< returnReduce(currentSet().size(), sumOp<label>()) << returnReduce(currentSet().size(), sumOp<label>())
<< endl; << endl;
} }
@ -367,19 +369,19 @@ int main(int argc, char *argv[])
break; break;
case topoSetSource::CLEAR: case topoSetSource::CLEAR:
Info<< " Clearing set" << endl; Info<< " Clearing " << currentSet().type() << endl;
currentSet().clear(); currentSet().clear();
currentSet().write(); currentSet().write();
break; break;
case topoSetSource::INVERT: case topoSetSource::INVERT:
Info<< " Inverting set" << endl; Info<< " Inverting " << currentSet().type() << endl;
currentSet().invert(currentSet().maxSize(mesh)); currentSet().invert(currentSet().maxSize(mesh));
currentSet().write(); currentSet().write();
break; break;
case topoSetSource::REMOVE: case topoSetSource::REMOVE:
Info<< " Removing set" << endl; Info<< " Removing " << currentSet().type() << endl;
removeSet(mesh, setType, setName); removeSet(mesh, setType, setName);
break; break;
@ -392,7 +394,8 @@ int main(int argc, char *argv[])
if (currentSet.valid()) if (currentSet.valid())
{ {
Info<< " Set " << currentSet().name() Info<< " " << currentSet().type() << " "
<< currentSet().name()
<< " now size " << " now size "
<< returnReduce(currentSet().size(), sumOp<label>()) << returnReduce(currentSet().size(), sumOp<label>())
<< endl; << endl;

View File

@ -3,7 +3,7 @@
# ========= | # ========= |
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox # \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
# \\ / O peration | # \\ / O peration |
# \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation # \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
# \\/ M anipulation | # \\/ M anipulation |
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# License # License
@ -268,7 +268,7 @@ checkLineLengthNonDirective()
# #
# check that OpenFOAM Foundation copyright is currents # check that OpenFOAM Foundation copyright is current
# #
checkCopyright() checkCopyright()
{ {
@ -277,12 +277,28 @@ checkCopyright()
for f in $fileList for f in $fileList
do do
sYear=`grep "Copyright.*OpenFOAM" $f | sed 's/[^0-9]//g'` startYear=`grep "Copyright.*OpenFOAM" $f | sed 's/[^0-9]*\([0-9]*\).*/\1/g'`
if [ "$sYear" != "" ] && [ "$year" != "$sYear" ]; then endYear=`grep "Copyright.*-.*OpenFOAM" $f | sed 's/[^-]*-\([0-9]*\).*/\1/g'`
echo "Updated copyright for: $f" #echo "startYear=$startYear endYear=$endYear"
sed -i "s/$sYear OpenFOAM/$year OpenFOAM/g" $f if [ "$startYear" != "" ]
then
if [ "$endYear" != "" ]
then
# Date is of type 2011-2012 OpenFOAM Foundation
if [ "$year" != "$endYear" ]
then
echo "Updated copyright for: $f"
sed -i "s/$startYear-$endYear OpenFOAM/$startYear-$year OpenFOAM/g" $f
fi
else
# Date is of type 2011 OpenFOAM Foundation
if [ "$year" != "$startYear" ]
then
echo "Updated copyright for: $f"
sed -i "s/$startYear OpenFOAM/$startYear-$year OpenFOAM/g" $f
fi
fi
fi fi
done done
} }

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2012 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -74,7 +74,15 @@ namespace Foam
template<class Type> template<class Type>
void Foam::CSV<Type>::read() void Foam::CSV<Type>::read()
{ {
IFstream is(fName_.expand()); fileName expandedFile(fName_);
IFstream is(expandedFile.expand());
if (!is.good())
{
FatalIOErrorIn("CSV<Type>::read()", is)
<< "Cannot open CSV file for reading."
<< exit(FatalIOError);
}
DynamicList<Tuple2<scalar, Type> > values; DynamicList<Tuple2<scalar, Type> > values;

View File

@ -29,13 +29,14 @@ Description
e.g. time e.g. time
\verbatim \verbatim
<entryName> csvFile <entryName> csvFile;
csvFileCoeffs
{ {
hasHeaderLine true; hasHeaderLine true;
refColumn 0; // reference column index refColumn 0; // reference column index
componentColumns (0 1 2); // component column indices componentColumns (1 2 3); // component column indices
separator ","; // optional (defaults to ",") separator ","; // optional (defaults to ",")
fileName fileXYZ; // name of csv data file fileName "fileXYZ"; // name of csv data file
outOfBounds clamp; // optional out-of-bounds handling outOfBounds clamp; // optional out-of-bounds handling
} }
\endverbatim \endverbatim

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2012 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -62,11 +62,16 @@ template<class Type>
void Foam::CSV<Type>::writeData(Ostream& os) const void Foam::CSV<Type>::writeData(Ostream& os) const
{ {
DataEntry<Type>::writeData(os); DataEntry<Type>::writeData(os);
os << token::END_STATEMENT << nl; os << token::END_STATEMENT << nl;
os << indent << word(type() + "Coeffs") << nl; os << indent << word(type() + "Coeffs") << nl;
os << indent << token::BEGIN_BLOCK << incrIndent << nl; os << indent << token::BEGIN_BLOCK << incrIndent << nl;
os.writeKeyword("headerLine") << headerLine_ << token::END_STATEMENT << nl;
// Note: for TableBase write the dictionary entries it needs but not
// the values themselves
TableBase<Type>::writeEntries(os);
os.writeKeyword("hasHeaderLine") << headerLine_ << token::END_STATEMENT
<< nl;
os.writeKeyword("refColumn") << refColumn_ << token::END_STATEMENT << nl; os.writeKeyword("refColumn") << refColumn_ << token::END_STATEMENT << nl;
os.writeKeyword("componentColumns") << componentColumns_ os.writeKeyword("componentColumns") << componentColumns_
<< token::END_STATEMENT << nl; << token::END_STATEMENT << nl;

View File

@ -76,6 +76,23 @@ Type Foam::DataEntry<Type>::value(const scalar x) const
} }
template<class Type>
Foam::tmp<Foam::Field<Type> > Foam::DataEntry<Type>::value
(
const scalarField& x
) const
{
tmp<Field<Type> > tfld(new Field<Type>(x.size()));
Field<Type>& fld = tfld();
forAll(x, i)
{
fld[i] = this->value(x[i]);
}
return tfld;
}
template<class Type> template<class Type>
Type Foam::DataEntry<Type>::integrate(const scalar x1, const scalar x2) const Type Foam::DataEntry<Type>::integrate(const scalar x1, const scalar x2) const
{ {
@ -92,6 +109,24 @@ Type Foam::DataEntry<Type>::integrate(const scalar x1, const scalar x2) const
} }
template<class Type>
Foam::tmp<Foam::Field<Type> > Foam::DataEntry<Type>::integrate
(
const scalarField& x1,
const scalarField& x2
) const
{
tmp<Field<Type> > tfld(new Field<Type>(x1.size()));
Field<Type>& fld = tfld();
forAll(x1, i)
{
fld[i] = this->integrate(x1[i], x2[i]);
}
return tfld;
}
// * * * * * * * * * * * * * * IOStream operators * * * * * * * * * * * * * // // * * * * * * * * * * * * * * IOStream operators * * * * * * * * * * * * * //
#include "DataEntryIO.C" #include "DataEntryIO.C"

View File

@ -40,6 +40,7 @@ SourceFiles
#define DataEntry_H #define DataEntry_H
#include "dictionary.H" #include "dictionary.H"
#include "Field.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -145,9 +146,19 @@ public:
//- Return value as a function of (scalar) independent variable //- Return value as a function of (scalar) independent variable
virtual Type value(const scalar x) const; virtual Type value(const scalar x) const;
//- Return value as a function of (scalar) independent variable
virtual tmp<Field<Type> > value(const scalarField& x) const;
//- Integrate between two (scalar) values //- Integrate between two (scalar) values
virtual Type integrate(const scalar x1, const scalar x2) const; virtual Type integrate(const scalar x1, const scalar x2) const;
//- Integrate between two (scalar) values
virtual tmp<Field<Type> > integrate
(
const scalarField& x1,
const scalarField& x2
) const;
// I/O // I/O

View File

@ -148,8 +148,12 @@ public:
const TableBase<Type>& tbl const TableBase<Type>& tbl
); );
//- Write in dictionary format //- Write all table data in dictionary format
virtual void writeData(Ostream& os) const; virtual void writeData(Ostream& os) const;
//- Write keywords only in dictionary format. Used for non-inline
// table types
virtual void writeEntries(Ostream& os) const;
}; };

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2012 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -61,6 +61,18 @@ template<class Type>
void Foam::TableBase<Type>::writeData(Ostream& os) const void Foam::TableBase<Type>::writeData(Ostream& os) const
{ {
os << nl << indent << table_ << token::END_STATEMENT << nl; os << nl << indent << table_ << token::END_STATEMENT << nl;
writeEntries(os);
}
template<class Type>
void Foam::TableBase<Type>::writeEntries(Ostream& os) const
{
if (boundsHandling_ != CLAMP)
{
os.writeKeyword("outOfBounds") << boundsHandlingToWord(boundsHandling_)
<< token::END_STATEMENT << nl;
}
} }

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2012 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -37,7 +37,8 @@ Foam::TableFile<Type>::TableFile(const word& entryName, const dictionary& dict)
const dictionary coeffs(dict.subDict(type() + "Coeffs")); const dictionary coeffs(dict.subDict(type() + "Coeffs"));
coeffs.lookup("fileName") >> fName_; coeffs.lookup("fileName") >> fName_;
IFstream is(fName_.expand()); fileName expandedFile(fName_);
IFstream is(expandedFile.expand());
is >> this->table_; is >> this->table_;

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2012 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -55,6 +55,11 @@ void Foam::TableFile<Type>::writeData(Ostream& os) const
os << token::END_STATEMENT << nl os << token::END_STATEMENT << nl
<< indent << word(type() + "Coeffs") << nl << indent << word(type() + "Coeffs") << nl
<< indent << token::BEGIN_BLOCK << nl << incrIndent; << indent << token::BEGIN_BLOCK << nl << incrIndent;
// Note: for TableBase write the dictionary entries it needs but not
// the values themselves
TableBase<Type>::writeEntries(os);
os.writeKeyword("fileName")<< fName_ << token::END_STATEMENT << nl; os.writeKeyword("fileName")<< fName_ << token::END_STATEMENT << nl;
os << decrIndent << indent << token::END_BLOCK << endl; os << decrIndent << indent << token::END_BLOCK << endl;
} }

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -175,7 +175,7 @@ Foam::circleSet::circleSet
( (
const word& name, const word& name,
const polyMesh& mesh, const polyMesh& mesh,
meshSearch& searchEngine, const meshSearch& searchEngine,
const word& axis, const word& axis,
const point& origin, const point& origin,
const vector& circleAxis, const vector& circleAxis,
@ -202,7 +202,7 @@ Foam::circleSet::circleSet
( (
const word& name, const word& name,
const polyMesh& mesh, const polyMesh& mesh,
meshSearch& searchEngine, const meshSearch& searchEngine,
const dictionary& dict const dictionary& dict
) )
: :

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -104,7 +104,7 @@ public:
( (
const word& name, const word& name,
const polyMesh& mesh, const polyMesh& mesh,
meshSearch& searchEngine, const meshSearch& searchEngine,
const word& axis, const word& axis,
const point& origin, const point& origin,
const vector& circleAxis, const vector& circleAxis,
@ -117,7 +117,7 @@ public:
( (
const word& name, const word& name,
const polyMesh& mesh, const polyMesh& mesh,
meshSearch& searchEngine, const meshSearch& searchEngine,
const dictionary& dict const dictionary& dict
); );

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -108,7 +108,7 @@ Foam::cloudSet::cloudSet
( (
const word& name, const word& name,
const polyMesh& mesh, const polyMesh& mesh,
meshSearch& searchEngine, const meshSearch& searchEngine,
const word& axis, const word& axis,
const List<point>& sampleCoords const List<point>& sampleCoords
) )
@ -129,7 +129,7 @@ Foam::cloudSet::cloudSet
( (
const word& name, const word& name,
const polyMesh& mesh, const polyMesh& mesh,
meshSearch& searchEngine, const meshSearch& searchEngine,
const dictionary& dict const dictionary& dict
) )
: :

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -89,7 +89,7 @@ public:
( (
const word& name, const word& name,
const polyMesh& mesh, const polyMesh& mesh,
meshSearch& searchEngine, const meshSearch& searchEngine,
const word& axis, const word& axis,
const List<point>& sampleCoords const List<point>& sampleCoords
); );
@ -99,7 +99,7 @@ public:
( (
const word& name, const word& name,
const polyMesh& mesh, const polyMesh& mesh,
meshSearch& searchEngine, const meshSearch& searchEngine,
const dictionary& dict const dictionary& dict
); );

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -331,7 +331,7 @@ Foam::faceOnlySet::faceOnlySet
( (
const word& name, const word& name,
const polyMesh& mesh, const polyMesh& mesh,
meshSearch& searchEngine, const meshSearch& searchEngine,
const word& axis, const word& axis,
const point& start, const point& start,
const point& end const point& end
@ -354,7 +354,7 @@ Foam::faceOnlySet::faceOnlySet
( (
const word& name, const word& name,
const polyMesh& mesh, const polyMesh& mesh,
meshSearch& searchEngine, const meshSearch& searchEngine,
const dictionary& dict const dictionary& dict
) )
: :

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -102,7 +102,7 @@ public:
( (
const word& name, const word& name,
const polyMesh& mesh, const polyMesh& mesh,
meshSearch& searchEngine, const meshSearch& searchEngine,
const word& axis, const word& axis,
const point& start, const point& start,
const point& end const point& end
@ -113,7 +113,7 @@ public:
( (
const word& name, const word& name,
const polyMesh& mesh, const polyMesh& mesh,
meshSearch& searchEngine, const meshSearch& searchEngine,
const dictionary& dict const dictionary& dict
); );

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -117,7 +117,7 @@ Foam::midPointSet::midPointSet
( (
const word& name, const word& name,
const polyMesh& mesh, const polyMesh& mesh,
meshSearch& searchEngine, const meshSearch& searchEngine,
const word& axis, const word& axis,
const point& start, const point& start,
const point& end const point& end
@ -138,7 +138,7 @@ Foam::midPointSet::midPointSet
( (
const word& name, const word& name,
const polyMesh& mesh, const polyMesh& mesh,
meshSearch& searchEngine, const meshSearch& searchEngine,
const dictionary& dict const dictionary& dict
) )
: :

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -70,7 +70,7 @@ public:
( (
const word& name, const word& name,
const polyMesh& mesh, const polyMesh& mesh,
meshSearch& searchEngine, const meshSearch& searchEngine,
const word& axis, const word& axis,
const point& start, const point& start,
const point& end const point& end
@ -81,7 +81,7 @@ public:
( (
const word& name, const word& name,
const polyMesh& mesh, const polyMesh& mesh,
meshSearch& searchEngine, const meshSearch& searchEngine,
const dictionary& dict const dictionary& dict
); );

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -144,7 +144,7 @@ Foam::midPointAndFaceSet::midPointAndFaceSet
( (
const word& name, const word& name,
const polyMesh& mesh, const polyMesh& mesh,
meshSearch& searchEngine, const meshSearch& searchEngine,
const word& axis, const word& axis,
const point& start, const point& start,
const point& end const point& end
@ -165,7 +165,7 @@ Foam::midPointAndFaceSet::midPointAndFaceSet
( (
const word& name, const word& name,
const polyMesh& mesh, const polyMesh& mesh,
meshSearch& searchEngine, const meshSearch& searchEngine,
const dictionary& dict const dictionary& dict
) )
: :

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -71,7 +71,7 @@ public:
( (
const word& name, const word& name,
const polyMesh& mesh, const polyMesh& mesh,
meshSearch& searchEngine, const meshSearch& searchEngine,
const word& axis, const word& axis,
const point& start, const point& start,
const point& end const point& end
@ -82,7 +82,7 @@ public:
( (
const word& name, const word& name,
const polyMesh& mesh, const polyMesh& mesh,
meshSearch& searchEngine, const meshSearch& searchEngine,
const dictionary& dict const dictionary& dict
); );

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -266,7 +266,7 @@ Foam::patchCloudSet::patchCloudSet
( (
const word& name, const word& name,
const polyMesh& mesh, const polyMesh& mesh,
meshSearch& searchEngine, const meshSearch& searchEngine,
const word& axis, const word& axis,
const List<point>& sampleCoords, const List<point>& sampleCoords,
const labelHashSet& patchSet, const labelHashSet& patchSet,
@ -291,7 +291,7 @@ Foam::patchCloudSet::patchCloudSet
( (
const word& name, const word& name,
const polyMesh& mesh, const polyMesh& mesh,
meshSearch& searchEngine, const meshSearch& searchEngine,
const dictionary& dict const dictionary& dict
) )
: :

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -94,7 +94,7 @@ public:
( (
const word& name, const word& name,
const polyMesh& mesh, const polyMesh& mesh,
meshSearch& searchEngine, const meshSearch& searchEngine,
const word& axis, const word& axis,
const List<point>& sampleCoords, const List<point>& sampleCoords,
const labelHashSet& patchSet, const labelHashSet& patchSet,
@ -106,7 +106,7 @@ public:
( (
const word& name, const word& name,
const polyMesh& mesh, const polyMesh& mesh,
meshSearch& searchEngine, const meshSearch& searchEngine,
const dictionary& dict const dictionary& dict
); );

View File

@ -205,7 +205,7 @@ Foam::patchSeedSet::patchSeedSet
( (
const word& name, const word& name,
const polyMesh& mesh, const polyMesh& mesh,
meshSearch& searchEngine, const meshSearch& searchEngine,
const dictionary& dict const dictionary& dict
) )
: :

View File

@ -95,24 +95,12 @@ public:
// Constructors // Constructors
// //- Construct from components
// patchSeedSet
// (
// const word& name,
// const polyMesh& mesh,
// meshSearch& searchEngine,
// const word& axis,
// const List<point>& sampleCoords,
// const labelHashSet& patchSet,
// const scalar searchDist
// );
//- Construct from dictionary //- Construct from dictionary
patchSeedSet patchSeedSet
( (
const word& name, const word& name,
const polyMesh& mesh, const polyMesh& mesh,
meshSearch& searchEngine, const meshSearch& searchEngine,
const dictionary& dict const dictionary& dict
); );

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -350,7 +350,7 @@ Foam::polyLineSet::polyLineSet
( (
const word& name, const word& name,
const polyMesh& mesh, const polyMesh& mesh,
meshSearch& searchEngine, const meshSearch& searchEngine,
const word& axis, const word& axis,
const List<point>& sampleCoords const List<point>& sampleCoords
) )
@ -371,7 +371,7 @@ Foam::polyLineSet::polyLineSet
( (
const word& name, const word& name,
const polyMesh& mesh, const polyMesh& mesh,
meshSearch& searchEngine, const meshSearch& searchEngine,
const dictionary& dict const dictionary& dict
) )
: :

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -101,7 +101,7 @@ public:
( (
const word& name, const word& name,
const polyMesh& mesh, const polyMesh& mesh,
meshSearch& searchEngine, const meshSearch& searchEngine,
const word& axis, const word& axis,
const List<point>& samplePoints const List<point>& samplePoints
); );
@ -111,7 +111,7 @@ public:
( (
const word& name, const word& name,
const polyMesh& mesh, const polyMesh& mesh,
meshSearch& searchEngine, const meshSearch& searchEngine,
const dictionary& dict const dictionary& dict
); );

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -406,7 +406,7 @@ Foam::sampledSet::sampledSet
( (
const word& name, const word& name,
const polyMesh& mesh, const polyMesh& mesh,
meshSearch& searchEngine, const meshSearch& searchEngine,
const word& axis const word& axis
) )
: :
@ -423,7 +423,7 @@ Foam::sampledSet::sampledSet
( (
const word& name, const word& name,
const polyMesh& mesh, const polyMesh& mesh,
meshSearch& searchEngine, const meshSearch& searchEngine,
const dictionary& dict const dictionary& dict
) )
: :
@ -448,7 +448,7 @@ Foam::autoPtr<Foam::sampledSet> Foam::sampledSet::New
( (
const word& name, const word& name,
const polyMesh& mesh, const polyMesh& mesh,
meshSearch& searchEngine, const meshSearch& searchEngine,
const dictionary& dict const dictionary& dict
) )
{ {
@ -462,7 +462,8 @@ Foam::autoPtr<Foam::sampledSet> Foam::sampledSet::New
FatalErrorIn FatalErrorIn
( (
"sampledSet::New" "sampledSet::New"
"(const word&, const polyMesh&, meshSearch&, const dictionary&)" "(const word&, const polyMesh&, const meshSearch&"
", const dictionary&)"
) << "Unknown sample type " ) << "Unknown sample type "
<< sampleType << nl << nl << sampleType << nl << nl
<< "Valid sample types : " << endl << "Valid sample types : " << endl

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -69,7 +69,7 @@ class sampledSet
const polyMesh& mesh_; const polyMesh& mesh_;
//- Reference to mesh searching class //- Reference to mesh searching class
meshSearch& searchEngine_; const meshSearch& searchEngine_;
protected: protected:
@ -159,7 +159,7 @@ public:
( (
const word& name, const word& name,
const polyMesh& mesh, const polyMesh& mesh,
meshSearch& searchEngine, const meshSearch& searchEngine,
const dictionary& dict const dictionary& dict
), ),
(name, mesh, searchEngine, dict) (name, mesh, searchEngine, dict)
@ -171,11 +171,11 @@ public:
class iNew class iNew
{ {
const polyMesh& mesh_; const polyMesh& mesh_;
meshSearch& searchEngine_; const meshSearch& searchEngine_;
public: public:
iNew(const polyMesh& mesh, meshSearch& searchEngine) iNew(const polyMesh& mesh, const meshSearch& searchEngine)
: :
mesh_(mesh), mesh_(mesh),
searchEngine_(searchEngine) searchEngine_(searchEngine)
@ -204,7 +204,7 @@ public:
( (
const word& name, const word& name,
const polyMesh& mesh, const polyMesh& mesh,
meshSearch& searchEngine, const meshSearch& searchEngine,
const word& axis const word& axis
); );
@ -213,7 +213,7 @@ public:
( (
const word& name, const word& name,
const polyMesh& mesh, const polyMesh& mesh,
meshSearch& searchEngine, const meshSearch& searchEngine,
const dictionary& dict const dictionary& dict
); );
@ -232,7 +232,7 @@ public:
( (
const word& name, const word& name,
const polyMesh& mesh, const polyMesh& mesh,
meshSearch& searchEngine, const meshSearch& searchEngine,
const dictionary& dict const dictionary& dict
); );
@ -248,7 +248,7 @@ public:
return mesh_; return mesh_;
} }
meshSearch& searchEngine() const const meshSearch& searchEngine() const
{ {
return searchEngine_; return searchEngine_;
} }

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -108,7 +108,7 @@ Foam::triSurfaceMeshPointSet::triSurfaceMeshPointSet
( (
const word& name, const word& name,
const polyMesh& mesh, const polyMesh& mesh,
meshSearch& searchEngine, const meshSearch& searchEngine,
const dictionary& dict const dictionary& dict
) )
: :

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -90,7 +90,7 @@ public:
( (
const word& name, const word& name,
const polyMesh& mesh, const polyMesh& mesh,
meshSearch& searchEngine, const meshSearch& searchEngine,
const dictionary& dict const dictionary& dict
); );

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -425,7 +425,7 @@ Foam::uniformSet::uniformSet
( (
const word& name, const word& name,
const polyMesh& mesh, const polyMesh& mesh,
meshSearch& searchEngine, const meshSearch& searchEngine,
const word& axis, const word& axis,
const point& start, const point& start,
const point& end, const point& end,
@ -450,7 +450,7 @@ Foam::uniformSet::uniformSet
( (
const word& name, const word& name,
const polyMesh& mesh, const polyMesh& mesh,
meshSearch& searchEngine, const meshSearch& searchEngine,
const dictionary& dict const dictionary& dict
) )
: :

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -118,7 +118,7 @@ public:
( (
const word& name, const word& name,
const polyMesh& mesh, const polyMesh& mesh,
meshSearch& searchEngine, const meshSearch& searchEngine,
const word& axis, const word& axis,
const point& start, const point& start,
const point& end, const point& end,
@ -130,7 +130,7 @@ public:
( (
const word& name, const word& name,
const polyMesh& mesh, const polyMesh& mesh,
meshSearch& searchEngine, const meshSearch& searchEngine,
const dictionary& dict const dictionary& dict
); );

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License