mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Merge commit 'origin/master' into splitCyclic
Conflicts: applications/utilities/mesh/manipulation/createBaffles/createBaffles.C applications/utilities/postProcessing/patch/patchIntegrate/patchIntegrate.C src/OpenFOAM/meshes/pointMesh/pointPatches/constraint/cyclic/cyclicPointPatch.C src/OpenFOAM/meshes/pointMesh/pointPatches/constraint/processor/processorPointPatch.C src/dynamicMesh/motionSmoother/motionSmoother.C src/dynamicMesh/motionSmoother/motionSmoother.H src/dynamicMesh/motionSmoother/motionSmootherTemplates.C
This commit is contained in:
@ -65,8 +65,8 @@ int main(int argc, char *argv[])
|
||||
{
|
||||
mesh.readUpdate();
|
||||
|
||||
label patchi = mesh.boundaryMesh().findPatchID(patchName);
|
||||
if (patchi < 0)
|
||||
const label patchI = mesh.boundaryMesh().findPatchID(patchName);
|
||||
if (patchI < 0)
|
||||
{
|
||||
FatalError
|
||||
<< "Unable to find patch " << patchName << nl
|
||||
@ -78,20 +78,20 @@ int main(int argc, char *argv[])
|
||||
Info<< " Reading volScalarField " << fieldName << endl;
|
||||
volScalarField field(fieldHeader, mesh);
|
||||
|
||||
scalar area = gSum(mesh.magSf().boundaryField()[patchi]);
|
||||
scalar area = gSum(mesh.magSf().boundaryField()[patchI]);
|
||||
scalar sumField = 0;
|
||||
|
||||
if (area > 0)
|
||||
{
|
||||
sumField = gSum
|
||||
(
|
||||
mesh.magSf().boundaryField()[patchi]
|
||||
* field.boundaryField()[patchi]
|
||||
mesh.magSf().boundaryField()[patchI]
|
||||
* field.boundaryField()[patchI]
|
||||
) / area;
|
||||
}
|
||||
|
||||
Info<< " Average of " << fieldName << " over patch "
|
||||
<< patchName << '[' << patchi << ']' << " = "
|
||||
<< patchName << '[' << patchI << ']' << " = "
|
||||
<< sumField << endl;
|
||||
}
|
||||
else
|
||||
|
||||
@ -66,8 +66,8 @@ int main(int argc, char *argv[])
|
||||
{
|
||||
mesh.readUpdate();
|
||||
|
||||
label patchi = mesh.boundaryMesh().findPatchID(patchName);
|
||||
if (patchi < 0)
|
||||
const label patchI = mesh.boundaryMesh().findPatchID(patchName);
|
||||
if (patchI < 0)
|
||||
{
|
||||
FatalError
|
||||
<< "Unable to find patch " << patchName << nl
|
||||
@ -76,11 +76,11 @@ int main(int argc, char *argv[])
|
||||
|
||||
// Give patch area
|
||||
Info<< " Area vector of patch "
|
||||
<< patchName << '[' << patchi << ']' << " = "
|
||||
<< gSum(mesh.Sf().boundaryField()[patchi]) << endl;
|
||||
<< patchName << '[' << patchI << ']' << " = "
|
||||
<< gSum(mesh.Sf().boundaryField()[patchI]) << endl;
|
||||
Info<< " Area magnitude of patch "
|
||||
<< patchName << '[' << patchi << ']' << " = "
|
||||
<< gSum(mesh.magSf().boundaryField()[patchi]) << endl;
|
||||
<< patchName << '[' << patchI << ']' << " = "
|
||||
<< gSum(mesh.magSf().boundaryField()[patchI]) << endl;
|
||||
|
||||
// Read field and calc integral
|
||||
if (fieldHeader.headerClassName() == volScalarField::typeName)
|
||||
@ -92,21 +92,21 @@ int main(int argc, char *argv[])
|
||||
|
||||
Info<< " Integral of " << fieldName
|
||||
<< " over vector area of patch "
|
||||
<< patchName << '[' << patchi << ']' << " = "
|
||||
<< patchName << '[' << patchI << ']' << " = "
|
||||
<< gSum
|
||||
(
|
||||
mesh.Sf().boundaryField()[patchi]
|
||||
*field.boundaryField()[patchi]
|
||||
mesh.Sf().boundaryField()[patchI]
|
||||
*field.boundaryField()[patchI]
|
||||
)
|
||||
<< nl;
|
||||
|
||||
Info<< " Integral of " << fieldName
|
||||
<< " over area magnitude of patch "
|
||||
<< patchName << '[' << patchi << ']' << " = "
|
||||
<< patchName << '[' << patchI << ']' << " = "
|
||||
<< gSum
|
||||
(
|
||||
mesh.magSf().boundaryField()[patchi]
|
||||
*field.boundaryField()[patchi]
|
||||
mesh.magSf().boundaryField()[patchI]
|
||||
*field.boundaryField()[patchI]
|
||||
)
|
||||
<< nl;
|
||||
}
|
||||
@ -119,10 +119,10 @@ int main(int argc, char *argv[])
|
||||
<< fieldName << endl;
|
||||
|
||||
surfaceScalarField field(fieldHeader, mesh);
|
||||
scalar sumField = gSum(field.boundaryField()[patchi]);
|
||||
scalar sumField = gSum(field.boundaryField()[patchI]);
|
||||
|
||||
Info<< " Integral of " << fieldName << " over patch "
|
||||
<< patchName << '[' << patchi << ']' << " = "
|
||||
<< patchName << '[' << patchI << ']' << " = "
|
||||
<< sumField << nl;
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user