mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: 80 char lines.
This commit is contained in:
@ -76,7 +76,10 @@
|
|||||||
const bool pressureImplicitPorosity =
|
const bool pressureImplicitPorosity =
|
||||||
(
|
(
|
||||||
pZones.size()
|
pZones.size()
|
||||||
&& mesh.solutionDict().subDict("SIMPLE").readIfPresent("nUCorrectors", nUCorr)
|
&& mesh.solutionDict().subDict("SIMPLE").readIfPresent
|
||||||
|
(
|
||||||
|
"nUCorrectors",
|
||||||
|
nUCorr
|
||||||
|
)
|
||||||
&& (nUCorr > 0)
|
&& (nUCorr > 0)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@ -49,7 +49,10 @@
|
|||||||
const bool pressureImplicitPorosity =
|
const bool pressureImplicitPorosity =
|
||||||
(
|
(
|
||||||
pZones.size()
|
pZones.size()
|
||||||
&& mesh.solutionDict().subDict("SIMPLE").readIfPresent("nUCorrectors", nUCorr)
|
&& mesh.solutionDict().subDict("SIMPLE").readIfPresent
|
||||||
|
(
|
||||||
|
"nUCorrectors",
|
||||||
|
nUCorr
|
||||||
|
)
|
||||||
&& (nUCorr > 0)
|
&& (nUCorr > 0)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@ -347,7 +347,8 @@ void ReadProblem
|
|||||||
char* name = new char[size + 1];
|
char* name = new char[size + 1];
|
||||||
CCMIOReadOptstr(NULL, boundary, "BoundaryName", &size, name);
|
CCMIOReadOptstr(NULL, boundary, "BoundaryName", &size, name);
|
||||||
name[size] = '\0';
|
name[size] = '\0';
|
||||||
foamPatchNames[foamPatchI] = string::validate<word>(string(name));
|
foamPatchNames[foamPatchI] =
|
||||||
|
string::validate<word>(string(name));
|
||||||
delete [] name;
|
delete [] name;
|
||||||
}
|
}
|
||||||
else if
|
else if
|
||||||
@ -359,7 +360,8 @@ void ReadProblem
|
|||||||
char* name = new char[size + 1];
|
char* name = new char[size + 1];
|
||||||
CCMIOReadOptstr(NULL, boundary, "Label", &size, name);
|
CCMIOReadOptstr(NULL, boundary, "Label", &size, name);
|
||||||
name[size] = '\0';
|
name[size] = '\0';
|
||||||
foamPatchNames[foamPatchI] = string::validate<word>(string(name));
|
foamPatchNames[foamPatchI] =
|
||||||
|
string::validate<word>(string(name));
|
||||||
delete [] name;
|
delete [] name;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -641,7 +643,13 @@ int main(int argc, char *argv[])
|
|||||||
// in NULL (which always means kCCMIONoErr) and then assign the return
|
// in NULL (which always means kCCMIONoErr) and then assign the return
|
||||||
// value to 'err'.).
|
// value to 'err'.).
|
||||||
CCMIOID root;
|
CCMIOID root;
|
||||||
CCMIOError err = CCMIOOpenFile(NULL, ccmFile.c_str(), kCCMIORead, &root);
|
CCMIOError err = CCMIOOpenFile
|
||||||
|
(
|
||||||
|
NULL,
|
||||||
|
ccmFile.c_str(),
|
||||||
|
kCCMIORead,
|
||||||
|
&root
|
||||||
|
);
|
||||||
|
|
||||||
// We are going to assume that we have a state with a known name.
|
// We are going to assume that we have a state with a known name.
|
||||||
// We could instead use CCMIONextEntity() to walk through all the
|
// We could instead use CCMIONextEntity() to walk through all the
|
||||||
|
|||||||
@ -236,7 +236,9 @@ void storeCellInZone
|
|||||||
// Reads mesh format
|
// Reads mesh format
|
||||||
scalar readMeshFormat(IFstream& inFile)
|
scalar readMeshFormat(IFstream& inFile)
|
||||||
{
|
{
|
||||||
Info<< "Starting to read mesh format at line " << inFile.lineNumber() << endl;
|
Info<< "Starting to read mesh format at line "
|
||||||
|
<< inFile.lineNumber()
|
||||||
|
<< endl;
|
||||||
|
|
||||||
string line;
|
string line;
|
||||||
inFile.getLine(line);
|
inFile.getLine(line);
|
||||||
@ -1086,4 +1088,3 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|
||||||
|
|||||||
@ -33,7 +33,8 @@ namespace Foam
|
|||||||
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
template<class Type>
|
template<class Type>
|
||||||
nonuniformTransformCyclicFvPatchField<Type>::nonuniformTransformCyclicFvPatchField
|
nonuniformTransformCyclicFvPatchField<Type>::
|
||||||
|
nonuniformTransformCyclicFvPatchField
|
||||||
(
|
(
|
||||||
const fvPatch& p,
|
const fvPatch& p,
|
||||||
const DimensionedField<Type, volMesh>& iF
|
const DimensionedField<Type, volMesh>& iF
|
||||||
@ -44,7 +45,8 @@ nonuniformTransformCyclicFvPatchField<Type>::nonuniformTransformCyclicFvPatchFie
|
|||||||
|
|
||||||
|
|
||||||
template<class Type>
|
template<class Type>
|
||||||
nonuniformTransformCyclicFvPatchField<Type>::nonuniformTransformCyclicFvPatchField
|
nonuniformTransformCyclicFvPatchField<Type>::
|
||||||
|
nonuniformTransformCyclicFvPatchField
|
||||||
(
|
(
|
||||||
const nonuniformTransformCyclicFvPatchField<Type>& ptf,
|
const nonuniformTransformCyclicFvPatchField<Type>& ptf,
|
||||||
const fvPatch& p,
|
const fvPatch& p,
|
||||||
@ -57,7 +59,8 @@ nonuniformTransformCyclicFvPatchField<Type>::nonuniformTransformCyclicFvPatchFie
|
|||||||
|
|
||||||
|
|
||||||
template<class Type>
|
template<class Type>
|
||||||
nonuniformTransformCyclicFvPatchField<Type>::nonuniformTransformCyclicFvPatchField
|
nonuniformTransformCyclicFvPatchField<Type>::
|
||||||
|
nonuniformTransformCyclicFvPatchField
|
||||||
(
|
(
|
||||||
const fvPatch& p,
|
const fvPatch& p,
|
||||||
const DimensionedField<Type, volMesh>& iF,
|
const DimensionedField<Type, volMesh>& iF,
|
||||||
@ -69,7 +72,8 @@ nonuniformTransformCyclicFvPatchField<Type>::nonuniformTransformCyclicFvPatchFie
|
|||||||
|
|
||||||
|
|
||||||
template<class Type>
|
template<class Type>
|
||||||
nonuniformTransformCyclicFvPatchField<Type>::nonuniformTransformCyclicFvPatchField
|
nonuniformTransformCyclicFvPatchField<Type>::
|
||||||
|
nonuniformTransformCyclicFvPatchField
|
||||||
(
|
(
|
||||||
const nonuniformTransformCyclicFvPatchField<Type>& ptf
|
const nonuniformTransformCyclicFvPatchField<Type>& ptf
|
||||||
)
|
)
|
||||||
@ -79,7 +83,8 @@ nonuniformTransformCyclicFvPatchField<Type>::nonuniformTransformCyclicFvPatchFie
|
|||||||
|
|
||||||
|
|
||||||
template<class Type>
|
template<class Type>
|
||||||
nonuniformTransformCyclicFvPatchField<Type>::nonuniformTransformCyclicFvPatchField
|
nonuniformTransformCyclicFvPatchField<Type>::
|
||||||
|
nonuniformTransformCyclicFvPatchField
|
||||||
(
|
(
|
||||||
const nonuniformTransformCyclicFvPatchField<Type>& ptf,
|
const nonuniformTransformCyclicFvPatchField<Type>& ptf,
|
||||||
const DimensionedField<Type, volMesh>& iF
|
const DimensionedField<Type, volMesh>& iF
|
||||||
|
|||||||
@ -44,7 +44,7 @@ namespace Foam
|
|||||||
{
|
{
|
||||||
|
|
||||||
/*---------------------------------------------------------------------------*\
|
/*---------------------------------------------------------------------------*\
|
||||||
Class nonuniformTransformCyclicFvPatch Declaration
|
Class nonuniformTransformCyclicFvPatch Declaration
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
template<class Type>
|
template<class Type>
|
||||||
@ -77,7 +77,8 @@ public:
|
|||||||
const dictionary&
|
const dictionary&
|
||||||
);
|
);
|
||||||
|
|
||||||
//- Construct by mapping given nonuniformTransformCyclicFvPatchField onto a new patch
|
//- Construct by mapping given
|
||||||
|
// nonuniformTransformCyclicFvPatchField onto a new patch
|
||||||
nonuniformTransformCyclicFvPatchField
|
nonuniformTransformCyclicFvPatchField
|
||||||
(
|
(
|
||||||
const nonuniformTransformCyclicFvPatchField<Type>&,
|
const nonuniformTransformCyclicFvPatchField<Type>&,
|
||||||
|
|||||||
@ -34,7 +34,12 @@ namespace Foam
|
|||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
defineTypeNameAndDebug(nonuniformTransformCyclicFvPatch, 0);
|
defineTypeNameAndDebug(nonuniformTransformCyclicFvPatch, 0);
|
||||||
addToRunTimeSelectionTable(fvPatch, nonuniformTransformCyclicFvPatch, polyPatch);
|
addToRunTimeSelectionTable
|
||||||
|
(
|
||||||
|
fvPatch,
|
||||||
|
nonuniformTransformCyclicFvPatch,
|
||||||
|
polyPatch
|
||||||
|
);
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|||||||
@ -44,7 +44,7 @@ namespace Foam
|
|||||||
{
|
{
|
||||||
|
|
||||||
/*---------------------------------------------------------------------------*\
|
/*---------------------------------------------------------------------------*\
|
||||||
Class nonuniformTransformCyclicFvPatch Declaration
|
Class nonuniformTransformCyclicFvPatch Declaration
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
class nonuniformTransformCyclicFvPatch
|
class nonuniformTransformCyclicFvPatch
|
||||||
@ -61,7 +61,11 @@ public:
|
|||||||
// Constructors
|
// Constructors
|
||||||
|
|
||||||
//- Construct from polyPatch
|
//- Construct from polyPatch
|
||||||
nonuniformTransformCyclicFvPatch(const polyPatch& patch, const fvBoundaryMesh& bm)
|
nonuniformTransformCyclicFvPatch
|
||||||
|
(
|
||||||
|
const polyPatch& patch,
|
||||||
|
const fvBoundaryMesh& bm
|
||||||
|
)
|
||||||
:
|
:
|
||||||
cyclicFvPatch(patch, bm)
|
cyclicFvPatch(patch, bm)
|
||||||
{}
|
{}
|
||||||
|
|||||||
@ -33,7 +33,8 @@ namespace Foam
|
|||||||
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
template<class Type>
|
template<class Type>
|
||||||
nonuniformTransformCyclicFvsPatchField<Type>::nonuniformTransformCyclicFvsPatchField
|
nonuniformTransformCyclicFvsPatchField<Type>::
|
||||||
|
nonuniformTransformCyclicFvsPatchField
|
||||||
(
|
(
|
||||||
const fvPatch& p,
|
const fvPatch& p,
|
||||||
const DimensionedField<Type, surfaceMesh>& iF
|
const DimensionedField<Type, surfaceMesh>& iF
|
||||||
@ -44,7 +45,8 @@ nonuniformTransformCyclicFvsPatchField<Type>::nonuniformTransformCyclicFvsPatchF
|
|||||||
|
|
||||||
|
|
||||||
template<class Type>
|
template<class Type>
|
||||||
nonuniformTransformCyclicFvsPatchField<Type>::nonuniformTransformCyclicFvsPatchField
|
nonuniformTransformCyclicFvsPatchField<Type>::
|
||||||
|
nonuniformTransformCyclicFvsPatchField
|
||||||
(
|
(
|
||||||
const nonuniformTransformCyclicFvsPatchField<Type>& ptf,
|
const nonuniformTransformCyclicFvsPatchField<Type>& ptf,
|
||||||
const fvPatch& p,
|
const fvPatch& p,
|
||||||
@ -57,7 +59,8 @@ nonuniformTransformCyclicFvsPatchField<Type>::nonuniformTransformCyclicFvsPatchF
|
|||||||
|
|
||||||
|
|
||||||
template<class Type>
|
template<class Type>
|
||||||
nonuniformTransformCyclicFvsPatchField<Type>::nonuniformTransformCyclicFvsPatchField
|
nonuniformTransformCyclicFvsPatchField<Type>::
|
||||||
|
nonuniformTransformCyclicFvsPatchField
|
||||||
(
|
(
|
||||||
const fvPatch& p,
|
const fvPatch& p,
|
||||||
const DimensionedField<Type, surfaceMesh>& iF,
|
const DimensionedField<Type, surfaceMesh>& iF,
|
||||||
@ -69,7 +72,8 @@ nonuniformTransformCyclicFvsPatchField<Type>::nonuniformTransformCyclicFvsPatchF
|
|||||||
|
|
||||||
|
|
||||||
template<class Type>
|
template<class Type>
|
||||||
nonuniformTransformCyclicFvsPatchField<Type>::nonuniformTransformCyclicFvsPatchField
|
nonuniformTransformCyclicFvsPatchField<Type>::
|
||||||
|
nonuniformTransformCyclicFvsPatchField
|
||||||
(
|
(
|
||||||
const nonuniformTransformCyclicFvsPatchField<Type>& ptf
|
const nonuniformTransformCyclicFvsPatchField<Type>& ptf
|
||||||
)
|
)
|
||||||
@ -79,7 +83,8 @@ nonuniformTransformCyclicFvsPatchField<Type>::nonuniformTransformCyclicFvsPatchF
|
|||||||
|
|
||||||
|
|
||||||
template<class Type>
|
template<class Type>
|
||||||
nonuniformTransformCyclicFvsPatchField<Type>::nonuniformTransformCyclicFvsPatchField
|
nonuniformTransformCyclicFvsPatchField<Type>::
|
||||||
|
nonuniformTransformCyclicFvsPatchField
|
||||||
(
|
(
|
||||||
const nonuniformTransformCyclicFvsPatchField<Type>& ptf,
|
const nonuniformTransformCyclicFvsPatchField<Type>& ptf,
|
||||||
const DimensionedField<Type, surfaceMesh>& iF
|
const DimensionedField<Type, surfaceMesh>& iF
|
||||||
|
|||||||
@ -44,7 +44,7 @@ namespace Foam
|
|||||||
{
|
{
|
||||||
|
|
||||||
/*---------------------------------------------------------------------------*\
|
/*---------------------------------------------------------------------------*\
|
||||||
Class nonuniformTransformCyclicFvsPatch Declaration
|
Class nonuniformTransformCyclicFvsPatch Declaration
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
template<class Type>
|
template<class Type>
|
||||||
@ -76,7 +76,8 @@ public:
|
|||||||
const dictionary&
|
const dictionary&
|
||||||
);
|
);
|
||||||
|
|
||||||
//- Construct by mapping given nonuniformTransformCyclicFvsPatchField onto a new patch
|
//- Construct by mapping given
|
||||||
|
// nonuniformTransformCyclicFvsPatchField onto a new patch
|
||||||
nonuniformTransformCyclicFvsPatchField
|
nonuniformTransformCyclicFvsPatchField
|
||||||
(
|
(
|
||||||
const nonuniformTransformCyclicFvsPatchField<Type>&,
|
const nonuniformTransformCyclicFvsPatchField<Type>&,
|
||||||
|
|||||||
@ -35,7 +35,8 @@ namespace Foam
|
|||||||
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
template<class Type>
|
template<class Type>
|
||||||
nonuniformTransformCyclicPointPatchField<Type>::nonuniformTransformCyclicPointPatchField
|
nonuniformTransformCyclicPointPatchField<Type>::
|
||||||
|
nonuniformTransformCyclicPointPatchField
|
||||||
(
|
(
|
||||||
const pointPatch& p,
|
const pointPatch& p,
|
||||||
const DimensionedField<Type, pointMesh>& iF
|
const DimensionedField<Type, pointMesh>& iF
|
||||||
@ -46,7 +47,8 @@ nonuniformTransformCyclicPointPatchField<Type>::nonuniformTransformCyclicPointPa
|
|||||||
|
|
||||||
|
|
||||||
template<class Type>
|
template<class Type>
|
||||||
nonuniformTransformCyclicPointPatchField<Type>::nonuniformTransformCyclicPointPatchField
|
nonuniformTransformCyclicPointPatchField<Type>::
|
||||||
|
nonuniformTransformCyclicPointPatchField
|
||||||
(
|
(
|
||||||
const pointPatch& p,
|
const pointPatch& p,
|
||||||
const DimensionedField<Type, pointMesh>& iF,
|
const DimensionedField<Type, pointMesh>& iF,
|
||||||
@ -58,7 +60,8 @@ nonuniformTransformCyclicPointPatchField<Type>::nonuniformTransformCyclicPointPa
|
|||||||
|
|
||||||
|
|
||||||
template<class Type>
|
template<class Type>
|
||||||
nonuniformTransformCyclicPointPatchField<Type>::nonuniformTransformCyclicPointPatchField
|
nonuniformTransformCyclicPointPatchField<Type>::
|
||||||
|
nonuniformTransformCyclicPointPatchField
|
||||||
(
|
(
|
||||||
const nonuniformTransformCyclicPointPatchField<Type>& ptf,
|
const nonuniformTransformCyclicPointPatchField<Type>& ptf,
|
||||||
const pointPatch& p,
|
const pointPatch& p,
|
||||||
@ -71,7 +74,8 @@ nonuniformTransformCyclicPointPatchField<Type>::nonuniformTransformCyclicPointPa
|
|||||||
|
|
||||||
|
|
||||||
template<class Type>
|
template<class Type>
|
||||||
nonuniformTransformCyclicPointPatchField<Type>::nonuniformTransformCyclicPointPatchField
|
nonuniformTransformCyclicPointPatchField<Type>::
|
||||||
|
nonuniformTransformCyclicPointPatchField
|
||||||
(
|
(
|
||||||
const nonuniformTransformCyclicPointPatchField<Type>& ptf,
|
const nonuniformTransformCyclicPointPatchField<Type>& ptf,
|
||||||
const DimensionedField<Type, pointMesh>& iF
|
const DimensionedField<Type, pointMesh>& iF
|
||||||
@ -84,7 +88,10 @@ nonuniformTransformCyclicPointPatchField<Type>::nonuniformTransformCyclicPointPa
|
|||||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||||
|
|
||||||
template<class Type>
|
template<class Type>
|
||||||
void nonuniformTransformCyclicPointPatchField<Type>::evaluate(const Pstream::commsTypes)
|
void nonuniformTransformCyclicPointPatchField<Type>::evaluate
|
||||||
|
(
|
||||||
|
const Pstream::commsTypes
|
||||||
|
)
|
||||||
{
|
{
|
||||||
const vectorField& nHat = this->patch().pointNormals();
|
const vectorField& nHat = this->patch().pointNormals();
|
||||||
|
|
||||||
|
|||||||
@ -32,8 +32,18 @@ namespace Foam
|
|||||||
{
|
{
|
||||||
defineTypeNameAndDebug(nonuniformTransformCyclicPolyPatch, 0);
|
defineTypeNameAndDebug(nonuniformTransformCyclicPolyPatch, 0);
|
||||||
|
|
||||||
addToRunTimeSelectionTable(polyPatch, nonuniformTransformCyclicPolyPatch, word);
|
addToRunTimeSelectionTable
|
||||||
addToRunTimeSelectionTable(polyPatch, nonuniformTransformCyclicPolyPatch, dictionary);
|
(
|
||||||
|
polyPatch,
|
||||||
|
nonuniformTransformCyclicPolyPatch,
|
||||||
|
word
|
||||||
|
);
|
||||||
|
addToRunTimeSelectionTable
|
||||||
|
(
|
||||||
|
polyPatch,
|
||||||
|
nonuniformTransformCyclicPolyPatch,
|
||||||
|
dictionary
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -1245,15 +1245,19 @@ label findCorrespondingRegion
|
|||||||
// {
|
// {
|
||||||
// forAll(cellRegion, cellI)
|
// forAll(cellRegion, cellI)
|
||||||
// {
|
// {
|
||||||
// if (cellRegion[cellI] == regionI && existingZoneID[cellI] != zoneI)
|
// if
|
||||||
|
// (
|
||||||
|
// cellRegion[cellI] == regionI
|
||||||
|
// && existingZoneID[cellI] != zoneI
|
||||||
|
// )
|
||||||
// {
|
// {
|
||||||
// // cellI in regionI but not in zoneI
|
// // cellI in regionI but not in zoneI
|
||||||
// regionI = -1;
|
// regionI = -1;
|
||||||
// break;
|
// break;
|
||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
// // If one in error, all should be in error. Note that branch gets taken
|
// // If one in error, all should be in error. Note that branch
|
||||||
// // on all procs.
|
// // gets taken on all procs.
|
||||||
// reduce(regionI, minOp<label>());
|
// reduce(regionI, minOp<label>());
|
||||||
// }
|
// }
|
||||||
//
|
//
|
||||||
|
|||||||
@ -59,7 +59,12 @@ volVectorField U
|
|||||||
|
|
||||||
vector zT = swirlAxis;
|
vector zT = swirlAxis;
|
||||||
vector yT = vector(0, zT.z(), -zT.y());
|
vector yT = vector(0, zT.z(), -zT.y());
|
||||||
vector xT = vector(zT.y()*zT.y() + zT.z()*zT.z(), -zT.x()*zT.y(), -zT.x()*zT.z());
|
vector xT = vector
|
||||||
|
(
|
||||||
|
zT.y()*zT.y() + zT.z()*zT.z(),
|
||||||
|
-zT.x()*zT.y(),
|
||||||
|
-zT.x()*zT.z()
|
||||||
|
);
|
||||||
|
|
||||||
// if swirl is around (1, 0, 0) we have to find another transformation
|
// if swirl is around (1, 0, 0) we have to find another transformation
|
||||||
if (mag(yT) < SMALL)
|
if (mag(yT) < SMALL)
|
||||||
|
|||||||
@ -43,7 +43,7 @@ namespace Foam
|
|||||||
{
|
{
|
||||||
|
|
||||||
/*---------------------------------------------------------------------------*\
|
/*---------------------------------------------------------------------------*\
|
||||||
Class processorCyclicGAMGInterfaceField Declaration
|
Class processorCyclicGAMGInterfaceField Declaration
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
class processorCyclicGAMGInterfaceField
|
class processorCyclicGAMGInterfaceField
|
||||||
@ -65,7 +65,10 @@ class processorCyclicGAMGInterfaceField
|
|||||||
// Private Member Functions
|
// Private Member Functions
|
||||||
|
|
||||||
//- Disallow default bitwise copy construct
|
//- Disallow default bitwise copy construct
|
||||||
processorCyclicGAMGInterfaceField(const processorCyclicGAMGInterfaceField&);
|
processorCyclicGAMGInterfaceField
|
||||||
|
(
|
||||||
|
const processorCyclicGAMGInterfaceField&
|
||||||
|
);
|
||||||
|
|
||||||
//- Disallow default bitwise assignment
|
//- Disallow default bitwise assignment
|
||||||
void operator=(const processorCyclicGAMGInterfaceField&);
|
void operator=(const processorCyclicGAMGInterfaceField&);
|
||||||
|
|||||||
@ -54,8 +54,9 @@ addToRunTimeSelectionTable
|
|||||||
//void Foam::processorCyclicPointPatch::initGeometry(PstreamBuffers& pBufs)
|
//void Foam::processorCyclicPointPatch::initGeometry(PstreamBuffers& pBufs)
|
||||||
//{
|
//{
|
||||||
// // Algorithm:
|
// // Algorithm:
|
||||||
// // Depending on whether the patch is a master or a slave, get the primitive
|
// // Depending on whether the patch is a master or a slave, get the
|
||||||
// // patch points and filter away the points from the global patch.
|
// // primitive patch points and filter away the points from the
|
||||||
|
// // global patch.
|
||||||
//
|
//
|
||||||
// if (isMaster())
|
// if (isMaster())
|
||||||
// {
|
// {
|
||||||
@ -152,7 +153,8 @@ addToRunTimeSelectionTable
|
|||||||
//{
|
//{
|
||||||
// if (debug)
|
// if (debug)
|
||||||
// {
|
// {
|
||||||
// Info<< "processorCyclicPointPatch::initPatchPatchPoints(PstreamBuffers&) : "
|
// Info<< "processorCyclicPointPatch::"
|
||||||
|
// << "initPatchPatchPoints(PstreamBuffers&) : "
|
||||||
// << "constructing patch-patch points"
|
// << "constructing patch-patch points"
|
||||||
// << endl;
|
// << endl;
|
||||||
// }
|
// }
|
||||||
@ -204,8 +206,8 @@ addToRunTimeSelectionTable
|
|||||||
//
|
//
|
||||||
// if (iter != patchPointSet.end())
|
// if (iter != patchPointSet.end())
|
||||||
// {
|
// {
|
||||||
// // If it is shared initialise the patchPatchPoints for this
|
// // If it is shared initialise the patchPatchPoints for
|
||||||
// // patch
|
// // this patch
|
||||||
// if (!patchPatchPoints[patchi].size())
|
// if (!patchPatchPoints[patchi].size())
|
||||||
// {
|
// {
|
||||||
// patchPatchPoints[patchi].setSize(ppmp.size());
|
// patchPatchPoints[patchi].setSize(ppmp.size());
|
||||||
@ -244,7 +246,10 @@ addToRunTimeSelectionTable
|
|||||||
//}
|
//}
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
//void Foam::processorCyclicPointPatch::calcPatchPatchPoints(PstreamBuffers& pBufs)
|
//void Foam::processorCyclicPointPatch::calcPatchPatchPoints
|
||||||
|
//(
|
||||||
|
// PstreamBuffers& pBufs
|
||||||
|
//)
|
||||||
//{
|
//{
|
||||||
// // Get the patchPatchPoints from the neighbouring processor
|
// // Get the patchPatchPoints from the neighbouring processor
|
||||||
// UIPstream fromNeighbProc(neighbProcNo(), pBufs);
|
// UIPstream fromNeighbProc(neighbProcNo(), pBufs);
|
||||||
@ -264,7 +269,10 @@ addToRunTimeSelectionTable
|
|||||||
// // separate.
|
// // separate.
|
||||||
// if (nbrNPoints != ppmp.size())
|
// if (nbrNPoints != ppmp.size())
|
||||||
// {
|
// {
|
||||||
// WarningIn("processorCyclicPointPatch::calcPatchPatchPoints(PstreamBuffers&)")
|
// WarningIn
|
||||||
|
// (
|
||||||
|
// "processorCyclicPointPatch::calcPatchPatchPoints(PstreamBuffers&)"
|
||||||
|
// )
|
||||||
// << "Processor patch " << name()
|
// << "Processor patch " << name()
|
||||||
// << " has " << ppmp.size() << " points; coupled patch has "
|
// << " has " << ppmp.size() << " points; coupled patch has "
|
||||||
// << nbrNPoints << " points." << endl
|
// << nbrNPoints << " points." << endl
|
||||||
@ -280,9 +288,11 @@ addToRunTimeSelectionTable
|
|||||||
// forAll(patchPatchPoints, patchi)
|
// forAll(patchPatchPoints, patchi)
|
||||||
// {
|
// {
|
||||||
// const labelList& patchPoints = patchPatchPoints[patchi];
|
// const labelList& patchPoints = patchPatchPoints[patchi];
|
||||||
// const List<vector>& patchPointNormals = patchPatchPointNormals[patchi];
|
// const List<vector>& patchPointNormals =
|
||||||
|
// patchPatchPointNormals[patchi];
|
||||||
//
|
//
|
||||||
// // If there are potentially shared points for the patch being considered
|
// // If there are potentially shared points for the patch being
|
||||||
|
// // considered
|
||||||
// if (patchPoints.size())
|
// if (patchPoints.size())
|
||||||
// {
|
// {
|
||||||
// // Get the current meshPoints list for the patch
|
// // Get the current meshPoints list for the patch
|
||||||
@ -351,7 +361,11 @@ addToRunTimeSelectionTable
|
|||||||
//}
|
//}
|
||||||
|
|
||||||
|
|
||||||
//void processorCyclicPointPatch::initMovePoints(PstreamBuffers&, const pointField&)
|
//void processorCyclicPointPatch::initMovePoints
|
||||||
|
//(
|
||||||
|
// PstreamBuffers&,
|
||||||
|
// const pointField&
|
||||||
|
//)
|
||||||
//{}
|
//{}
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
|
|||||||
@ -56,7 +56,10 @@ bool Foam::explicitSource::read(const dictionary& dict)
|
|||||||
if (basicSource::read(dict))
|
if (basicSource::read(dict))
|
||||||
{
|
{
|
||||||
const dictionary& sourceDict = dict.subDict(name());
|
const dictionary& sourceDict = dict.subDict(name());
|
||||||
const dictionary& subDictCoeffs = sourceDict.subDict(typeName + "Coeffs");
|
const dictionary& subDictCoeffs = sourceDict.subDict
|
||||||
|
(
|
||||||
|
typeName + "Coeffs"
|
||||||
|
);
|
||||||
setFieldData(subDictCoeffs.subDict("fieldData"));
|
setFieldData(subDictCoeffs.subDict("fieldData"));
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -179,9 +179,10 @@ processorCyclicFvPatchField<Type>::~processorCyclicFvPatchField()
|
|||||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||||
|
|
||||||
//template<class Type>
|
//template<class Type>
|
||||||
//tmp<Field<Type> > processorCyclicFvPatchField<Type>::patchNeighbourField() const
|
//tmp<Field<Type> >
|
||||||
|
//processorCyclicFvPatchField<Type>::patchNeighbourField() const
|
||||||
//{
|
//{
|
||||||
// return *this;
|
// return *this;
|
||||||
//}
|
//}
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
|
|||||||
@ -46,7 +46,7 @@ namespace Foam
|
|||||||
{
|
{
|
||||||
|
|
||||||
/*---------------------------------------------------------------------------*\
|
/*---------------------------------------------------------------------------*\
|
||||||
Class processorCyclicFvPatch Declaration
|
Class processorCyclicFvPatch Declaration
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
template<class Type>
|
template<class Type>
|
||||||
@ -63,8 +63,12 @@ class processorCyclicFvPatchField
|
|||||||
|
|
||||||
// Private Member Functions
|
// Private Member Functions
|
||||||
|
|
||||||
// //- Get other patchfield
|
// //- Get other patchfield
|
||||||
// const coupledFvPatchField<Type>& patchField(const label patchID) const;
|
// const coupledFvPatchField<Type>& patchField
|
||||||
|
// (
|
||||||
|
// const label patchID
|
||||||
|
// ) const;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
//- Runtime type information
|
//- Runtime type information
|
||||||
@ -261,7 +265,10 @@ public:
|
|||||||
// const label start
|
// const label start
|
||||||
// ) const
|
// ) const
|
||||||
// {
|
// {
|
||||||
// notImplemented("processorCyclicFvPatchField::initEvaluate(..)");
|
// notImplemented
|
||||||
|
// (
|
||||||
|
// "processorCyclicFvPatchField::initEvaluate(..)"
|
||||||
|
// );
|
||||||
// }
|
// }
|
||||||
//
|
//
|
||||||
// //- Evaluate the patch field.
|
// //- Evaluate the patch field.
|
||||||
@ -292,7 +299,8 @@ public:
|
|||||||
// {
|
// {
|
||||||
// notImplemented
|
// notImplemented
|
||||||
// (
|
// (
|
||||||
// "processorCyclicFvPatchField::initInterfaceMatrixUpdate(..)"
|
// "processorCyclicFvPatchField::"
|
||||||
|
// "initInterfaceMatrixUpdate(..)"
|
||||||
// );
|
// );
|
||||||
// }
|
// }
|
||||||
//
|
//
|
||||||
|
|||||||
@ -92,7 +92,8 @@ Foam::scalar Foam::LarsenBorgnakkeVariableHardSphere<CloudType>::energyRatio
|
|||||||
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
template <class CloudType>
|
template <class CloudType>
|
||||||
Foam::LarsenBorgnakkeVariableHardSphere<CloudType>::LarsenBorgnakkeVariableHardSphere
|
Foam::LarsenBorgnakkeVariableHardSphere<CloudType>::
|
||||||
|
LarsenBorgnakkeVariableHardSphere
|
||||||
(
|
(
|
||||||
const dictionary& dict,
|
const dictionary& dict,
|
||||||
CloudType& cloud
|
CloudType& cloud
|
||||||
|
|||||||
@ -258,7 +258,8 @@ Foam::tmp<Foam::volScalarField> Foam::interpolatedSolidThermo::Hf() const
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
Foam::tmp<Foam::volScalarField> Foam::interpolatedSolidThermo::emissivity() const
|
Foam::tmp<Foam::volScalarField>
|
||||||
|
Foam::interpolatedSolidThermo::emissivity() const
|
||||||
{
|
{
|
||||||
tmp<volScalarField> temissivity
|
tmp<volScalarField> temissivity
|
||||||
(
|
(
|
||||||
|
|||||||
@ -379,8 +379,11 @@ void LRR::correct()
|
|||||||
forAll(curPatch, facei)
|
forAll(curPatch, facei)
|
||||||
{
|
{
|
||||||
label faceCelli = curPatch.faceCells()[facei];
|
label faceCelli = curPatch.faceCells()[facei];
|
||||||
P[faceCelli]
|
P[faceCelli] *= min
|
||||||
*= min(G[faceCelli]/(0.5*mag(tr(P[faceCelli])) + SMALL), 100.0);
|
(
|
||||||
|
G[faceCelli]/(0.5*mag(tr(P[faceCelli])) + SMALL),
|
||||||
|
100.0
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -417,8 +417,11 @@ void LaunderGibsonRSTM::correct()
|
|||||||
forAll(curPatch, facei)
|
forAll(curPatch, facei)
|
||||||
{
|
{
|
||||||
label faceCelli = curPatch.faceCells()[facei];
|
label faceCelli = curPatch.faceCells()[facei];
|
||||||
P[faceCelli] *=
|
P[faceCelli] *= min
|
||||||
min(G[faceCelli]/(0.5*mag(tr(P[faceCelli])) + SMALL), 100.0);
|
(
|
||||||
|
G[faceCelli]/(0.5*mag(tr(P[faceCelli])) + SMALL),
|
||||||
|
100.0
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -340,8 +340,11 @@ void LRR::correct()
|
|||||||
forAll(curPatch, facei)
|
forAll(curPatch, facei)
|
||||||
{
|
{
|
||||||
label faceCelli = curPatch.faceCells()[facei];
|
label faceCelli = curPatch.faceCells()[facei];
|
||||||
P[faceCelli]
|
P[faceCelli] *= min
|
||||||
*= min(G[faceCelli]/(0.5*mag(tr(P[faceCelli])) + SMALL), 1.0);
|
(
|
||||||
|
G[faceCelli]/(0.5*mag(tr(P[faceCelli])) + SMALL),
|
||||||
|
1.0
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user