mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Merge branch 'master' into dsmc
This commit is contained in:
@ -127,8 +127,8 @@ Foam::fieldviewTopology::fieldviewTopology
|
||||
const polyPatch& currPatch = mesh.boundaryMesh()[patchI];
|
||||
if
|
||||
(
|
||||
isType<wallPolyPatch>(currPatch)
|
||||
|| isType<symmetryPolyPatch>(currPatch)
|
||||
isA<wallPolyPatch>(currPatch)
|
||||
|| isA<symmetryPolyPatch>(currPatch)
|
||||
)
|
||||
{
|
||||
forAll(currPatch, patchFaceI)
|
||||
|
||||
@ -205,8 +205,8 @@ labelList getSelectedPatches
|
||||
|
||||
if
|
||||
(
|
||||
isType<emptyPolyPatch>(pp)
|
||||
|| (Pstream::parRun() && isType<processorPolyPatch>(pp))
|
||||
isA<emptyPolyPatch>(pp)
|
||||
|| (Pstream::parRun() && isA<processorPolyPatch>(pp))
|
||||
)
|
||||
{
|
||||
Info<< " discarding empty/processor patch " << patchI
|
||||
@ -805,7 +805,7 @@ int main(int argc, char *argv[])
|
||||
labelList(1, patchI)
|
||||
);
|
||||
|
||||
if (!isType<emptyPolyPatch>(pp))
|
||||
if (!isA<emptyPolyPatch>(pp))
|
||||
{
|
||||
// VolFields + patchID
|
||||
writeFuns::writeCellDataHeader
|
||||
|
||||
@ -152,7 +152,7 @@ void Foam::patchWriter::writePatchIDs()
|
||||
|
||||
const polyPatch& pp = mesh.boundaryMesh()[patchI];
|
||||
|
||||
if (!isType<emptyPolyPatch>(pp))
|
||||
if (!isA<emptyPolyPatch>(pp))
|
||||
{
|
||||
writeFuns::insert(scalarField(pp.size(), patchI), fField);
|
||||
}
|
||||
|
||||
@ -191,7 +191,7 @@ void Foam::vtkPV3Foam::convertPointField
|
||||
pointData->SetNumberOfTuples(nPoints + addPointCellLabels.size());
|
||||
pointData->SetNumberOfComponents(nComp);
|
||||
pointData->Allocate(nComp*(nPoints + addPointCellLabels.size()));
|
||||
pointData->SetName(tf.name().c_str());
|
||||
pointData->SetName(ptf.name().c_str());
|
||||
|
||||
if (debug)
|
||||
{
|
||||
|
||||
@ -609,7 +609,7 @@ void user_query_file_function
|
||||
|
||||
strcpy(face_type_names[patchI], patch.name().c_str());
|
||||
|
||||
if (isType<wallPolyPatch>(patch))
|
||||
if (isA<wallPolyPatch>(patch))
|
||||
{
|
||||
wall_flags[patchI] = 1;
|
||||
}
|
||||
|
||||
@ -76,7 +76,7 @@ int main(int argc, char *argv[])
|
||||
}
|
||||
|
||||
// Give patch area
|
||||
if (isType<cyclicPolyPatch>(mesh.boundaryMesh()[patchi]))
|
||||
if (isA<cyclicPolyPatch>(mesh.boundaryMesh()[patchi]))
|
||||
{
|
||||
Info<< " Cyclic patch vector area: " << nl;
|
||||
label nFaces = mesh.boundaryMesh()[patchi].size();
|
||||
|
||||
@ -64,7 +64,7 @@ int main(int argc, char *argv[])
|
||||
Info<< "\nWall heat fluxes [W]" << endl;
|
||||
forAll(patchHeatFlux, patchi)
|
||||
{
|
||||
if (typeid(mesh.boundary()[patchi]) == typeid(wallFvPatch))
|
||||
if (isA<wallFvPatch>(mesh.boundary()[patchi]))
|
||||
{
|
||||
Info<< mesh.boundary()[patchi].name()
|
||||
<< " "
|
||||
|
||||
@ -109,7 +109,7 @@ int main(int argc, char *argv[])
|
||||
{
|
||||
const fvPatch& currPatch = patches[patchi];
|
||||
|
||||
if (typeid(currPatch) == typeid(wallFvPatch))
|
||||
if (isA<wallFvPatch>(currPatch))
|
||||
{
|
||||
yPlus.boundaryField()[patchi] =
|
||||
d[patchi]
|
||||
|
||||
Reference in New Issue
Block a user