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:
@ -347,7 +347,8 @@ void ReadProblem
|
||||
char* name = new char[size + 1];
|
||||
CCMIOReadOptstr(NULL, boundary, "BoundaryName", &size, name);
|
||||
name[size] = '\0';
|
||||
foamPatchNames[foamPatchI] = string::validate<word>(string(name));
|
||||
foamPatchNames[foamPatchI] =
|
||||
string::validate<word>(string(name));
|
||||
delete [] name;
|
||||
}
|
||||
else if
|
||||
@ -359,7 +360,8 @@ void ReadProblem
|
||||
char* name = new char[size + 1];
|
||||
CCMIOReadOptstr(NULL, boundary, "Label", &size, name);
|
||||
name[size] = '\0';
|
||||
foamPatchNames[foamPatchI] = string::validate<word>(string(name));
|
||||
foamPatchNames[foamPatchI] =
|
||||
string::validate<word>(string(name));
|
||||
delete [] name;
|
||||
}
|
||||
else
|
||||
@ -641,7 +643,13 @@ int main(int argc, char *argv[])
|
||||
// in NULL (which always means kCCMIONoErr) and then assign the return
|
||||
// value to 'err'.).
|
||||
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 could instead use CCMIONextEntity() to walk through all the
|
||||
|
||||
@ -236,7 +236,9 @@ void storeCellInZone
|
||||
// Reads mesh format
|
||||
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;
|
||||
inFile.getLine(line);
|
||||
@ -1086,4 +1088,3 @@ int main(int argc, char *argv[])
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
|
||||
@ -33,7 +33,8 @@ namespace Foam
|
||||
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
||||
|
||||
template<class Type>
|
||||
nonuniformTransformCyclicFvPatchField<Type>::nonuniformTransformCyclicFvPatchField
|
||||
nonuniformTransformCyclicFvPatchField<Type>::
|
||||
nonuniformTransformCyclicFvPatchField
|
||||
(
|
||||
const fvPatch& p,
|
||||
const DimensionedField<Type, volMesh>& iF
|
||||
@ -44,7 +45,8 @@ nonuniformTransformCyclicFvPatchField<Type>::nonuniformTransformCyclicFvPatchFie
|
||||
|
||||
|
||||
template<class Type>
|
||||
nonuniformTransformCyclicFvPatchField<Type>::nonuniformTransformCyclicFvPatchField
|
||||
nonuniformTransformCyclicFvPatchField<Type>::
|
||||
nonuniformTransformCyclicFvPatchField
|
||||
(
|
||||
const nonuniformTransformCyclicFvPatchField<Type>& ptf,
|
||||
const fvPatch& p,
|
||||
@ -57,7 +59,8 @@ nonuniformTransformCyclicFvPatchField<Type>::nonuniformTransformCyclicFvPatchFie
|
||||
|
||||
|
||||
template<class Type>
|
||||
nonuniformTransformCyclicFvPatchField<Type>::nonuniformTransformCyclicFvPatchField
|
||||
nonuniformTransformCyclicFvPatchField<Type>::
|
||||
nonuniformTransformCyclicFvPatchField
|
||||
(
|
||||
const fvPatch& p,
|
||||
const DimensionedField<Type, volMesh>& iF,
|
||||
@ -69,7 +72,8 @@ nonuniformTransformCyclicFvPatchField<Type>::nonuniformTransformCyclicFvPatchFie
|
||||
|
||||
|
||||
template<class Type>
|
||||
nonuniformTransformCyclicFvPatchField<Type>::nonuniformTransformCyclicFvPatchField
|
||||
nonuniformTransformCyclicFvPatchField<Type>::
|
||||
nonuniformTransformCyclicFvPatchField
|
||||
(
|
||||
const nonuniformTransformCyclicFvPatchField<Type>& ptf
|
||||
)
|
||||
@ -79,7 +83,8 @@ nonuniformTransformCyclicFvPatchField<Type>::nonuniformTransformCyclicFvPatchFie
|
||||
|
||||
|
||||
template<class Type>
|
||||
nonuniformTransformCyclicFvPatchField<Type>::nonuniformTransformCyclicFvPatchField
|
||||
nonuniformTransformCyclicFvPatchField<Type>::
|
||||
nonuniformTransformCyclicFvPatchField
|
||||
(
|
||||
const nonuniformTransformCyclicFvPatchField<Type>& ptf,
|
||||
const DimensionedField<Type, volMesh>& iF
|
||||
|
||||
@ -44,7 +44,7 @@ namespace Foam
|
||||
{
|
||||
|
||||
/*---------------------------------------------------------------------------*\
|
||||
Class nonuniformTransformCyclicFvPatch Declaration
|
||||
Class nonuniformTransformCyclicFvPatch Declaration
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
template<class Type>
|
||||
@ -77,7 +77,8 @@ public:
|
||||
const dictionary&
|
||||
);
|
||||
|
||||
//- Construct by mapping given nonuniformTransformCyclicFvPatchField onto a new patch
|
||||
//- Construct by mapping given
|
||||
// nonuniformTransformCyclicFvPatchField onto a new patch
|
||||
nonuniformTransformCyclicFvPatchField
|
||||
(
|
||||
const nonuniformTransformCyclicFvPatchField<Type>&,
|
||||
|
||||
@ -34,7 +34,12 @@ namespace Foam
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
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
|
||||
@ -61,7 +61,11 @@ public:
|
||||
// Constructors
|
||||
|
||||
//- Construct from polyPatch
|
||||
nonuniformTransformCyclicFvPatch(const polyPatch& patch, const fvBoundaryMesh& bm)
|
||||
nonuniformTransformCyclicFvPatch
|
||||
(
|
||||
const polyPatch& patch,
|
||||
const fvBoundaryMesh& bm
|
||||
)
|
||||
:
|
||||
cyclicFvPatch(patch, bm)
|
||||
{}
|
||||
|
||||
@ -33,7 +33,8 @@ namespace Foam
|
||||
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
||||
|
||||
template<class Type>
|
||||
nonuniformTransformCyclicFvsPatchField<Type>::nonuniformTransformCyclicFvsPatchField
|
||||
nonuniformTransformCyclicFvsPatchField<Type>::
|
||||
nonuniformTransformCyclicFvsPatchField
|
||||
(
|
||||
const fvPatch& p,
|
||||
const DimensionedField<Type, surfaceMesh>& iF
|
||||
@ -44,7 +45,8 @@ nonuniformTransformCyclicFvsPatchField<Type>::nonuniformTransformCyclicFvsPatchF
|
||||
|
||||
|
||||
template<class Type>
|
||||
nonuniformTransformCyclicFvsPatchField<Type>::nonuniformTransformCyclicFvsPatchField
|
||||
nonuniformTransformCyclicFvsPatchField<Type>::
|
||||
nonuniformTransformCyclicFvsPatchField
|
||||
(
|
||||
const nonuniformTransformCyclicFvsPatchField<Type>& ptf,
|
||||
const fvPatch& p,
|
||||
@ -57,7 +59,8 @@ nonuniformTransformCyclicFvsPatchField<Type>::nonuniformTransformCyclicFvsPatchF
|
||||
|
||||
|
||||
template<class Type>
|
||||
nonuniformTransformCyclicFvsPatchField<Type>::nonuniformTransformCyclicFvsPatchField
|
||||
nonuniformTransformCyclicFvsPatchField<Type>::
|
||||
nonuniformTransformCyclicFvsPatchField
|
||||
(
|
||||
const fvPatch& p,
|
||||
const DimensionedField<Type, surfaceMesh>& iF,
|
||||
@ -69,7 +72,8 @@ nonuniformTransformCyclicFvsPatchField<Type>::nonuniformTransformCyclicFvsPatchF
|
||||
|
||||
|
||||
template<class Type>
|
||||
nonuniformTransformCyclicFvsPatchField<Type>::nonuniformTransformCyclicFvsPatchField
|
||||
nonuniformTransformCyclicFvsPatchField<Type>::
|
||||
nonuniformTransformCyclicFvsPatchField
|
||||
(
|
||||
const nonuniformTransformCyclicFvsPatchField<Type>& ptf
|
||||
)
|
||||
@ -79,7 +83,8 @@ nonuniformTransformCyclicFvsPatchField<Type>::nonuniformTransformCyclicFvsPatchF
|
||||
|
||||
|
||||
template<class Type>
|
||||
nonuniformTransformCyclicFvsPatchField<Type>::nonuniformTransformCyclicFvsPatchField
|
||||
nonuniformTransformCyclicFvsPatchField<Type>::
|
||||
nonuniformTransformCyclicFvsPatchField
|
||||
(
|
||||
const nonuniformTransformCyclicFvsPatchField<Type>& ptf,
|
||||
const DimensionedField<Type, surfaceMesh>& iF
|
||||
|
||||
@ -44,7 +44,7 @@ namespace Foam
|
||||
{
|
||||
|
||||
/*---------------------------------------------------------------------------*\
|
||||
Class nonuniformTransformCyclicFvsPatch Declaration
|
||||
Class nonuniformTransformCyclicFvsPatch Declaration
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
template<class Type>
|
||||
@ -76,7 +76,8 @@ public:
|
||||
const dictionary&
|
||||
);
|
||||
|
||||
//- Construct by mapping given nonuniformTransformCyclicFvsPatchField onto a new patch
|
||||
//- Construct by mapping given
|
||||
// nonuniformTransformCyclicFvsPatchField onto a new patch
|
||||
nonuniformTransformCyclicFvsPatchField
|
||||
(
|
||||
const nonuniformTransformCyclicFvsPatchField<Type>&,
|
||||
|
||||
@ -35,7 +35,8 @@ namespace Foam
|
||||
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
||||
|
||||
template<class Type>
|
||||
nonuniformTransformCyclicPointPatchField<Type>::nonuniformTransformCyclicPointPatchField
|
||||
nonuniformTransformCyclicPointPatchField<Type>::
|
||||
nonuniformTransformCyclicPointPatchField
|
||||
(
|
||||
const pointPatch& p,
|
||||
const DimensionedField<Type, pointMesh>& iF
|
||||
@ -46,7 +47,8 @@ nonuniformTransformCyclicPointPatchField<Type>::nonuniformTransformCyclicPointPa
|
||||
|
||||
|
||||
template<class Type>
|
||||
nonuniformTransformCyclicPointPatchField<Type>::nonuniformTransformCyclicPointPatchField
|
||||
nonuniformTransformCyclicPointPatchField<Type>::
|
||||
nonuniformTransformCyclicPointPatchField
|
||||
(
|
||||
const pointPatch& p,
|
||||
const DimensionedField<Type, pointMesh>& iF,
|
||||
@ -58,7 +60,8 @@ nonuniformTransformCyclicPointPatchField<Type>::nonuniformTransformCyclicPointPa
|
||||
|
||||
|
||||
template<class Type>
|
||||
nonuniformTransformCyclicPointPatchField<Type>::nonuniformTransformCyclicPointPatchField
|
||||
nonuniformTransformCyclicPointPatchField<Type>::
|
||||
nonuniformTransformCyclicPointPatchField
|
||||
(
|
||||
const nonuniformTransformCyclicPointPatchField<Type>& ptf,
|
||||
const pointPatch& p,
|
||||
@ -71,7 +74,8 @@ nonuniformTransformCyclicPointPatchField<Type>::nonuniformTransformCyclicPointPa
|
||||
|
||||
|
||||
template<class Type>
|
||||
nonuniformTransformCyclicPointPatchField<Type>::nonuniformTransformCyclicPointPatchField
|
||||
nonuniformTransformCyclicPointPatchField<Type>::
|
||||
nonuniformTransformCyclicPointPatchField
|
||||
(
|
||||
const nonuniformTransformCyclicPointPatchField<Type>& ptf,
|
||||
const DimensionedField<Type, pointMesh>& iF
|
||||
@ -84,7 +88,10 @@ nonuniformTransformCyclicPointPatchField<Type>::nonuniformTransformCyclicPointPa
|
||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||
|
||||
template<class Type>
|
||||
void nonuniformTransformCyclicPointPatchField<Type>::evaluate(const Pstream::commsTypes)
|
||||
void nonuniformTransformCyclicPointPatchField<Type>::evaluate
|
||||
(
|
||||
const Pstream::commsTypes
|
||||
)
|
||||
{
|
||||
const vectorField& nHat = this->patch().pointNormals();
|
||||
|
||||
|
||||
@ -32,8 +32,18 @@ namespace Foam
|
||||
{
|
||||
defineTypeNameAndDebug(nonuniformTransformCyclicPolyPatch, 0);
|
||||
|
||||
addToRunTimeSelectionTable(polyPatch, nonuniformTransformCyclicPolyPatch, word);
|
||||
addToRunTimeSelectionTable(polyPatch, nonuniformTransformCyclicPolyPatch, dictionary);
|
||||
addToRunTimeSelectionTable
|
||||
(
|
||||
polyPatch,
|
||||
nonuniformTransformCyclicPolyPatch,
|
||||
word
|
||||
);
|
||||
addToRunTimeSelectionTable
|
||||
(
|
||||
polyPatch,
|
||||
nonuniformTransformCyclicPolyPatch,
|
||||
dictionary
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -1245,15 +1245,19 @@ label findCorrespondingRegion
|
||||
// {
|
||||
// forAll(cellRegion, cellI)
|
||||
// {
|
||||
// if (cellRegion[cellI] == regionI && existingZoneID[cellI] != zoneI)
|
||||
// if
|
||||
// (
|
||||
// cellRegion[cellI] == regionI
|
||||
// && existingZoneID[cellI] != zoneI
|
||||
// )
|
||||
// {
|
||||
// // cellI in regionI but not in zoneI
|
||||
// regionI = -1;
|
||||
// break;
|
||||
// }
|
||||
// }
|
||||
// // If one in error, all should be in error. Note that branch gets taken
|
||||
// // on all procs.
|
||||
// // If one in error, all should be in error. Note that branch
|
||||
// // gets taken on all procs.
|
||||
// reduce(regionI, minOp<label>());
|
||||
// }
|
||||
//
|
||||
|
||||
@ -59,7 +59,12 @@ volVectorField U
|
||||
|
||||
vector zT = swirlAxis;
|
||||
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 (mag(yT) < SMALL)
|
||||
|
||||
Reference in New Issue
Block a user