mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
64 lines
1.5 KiB
C
64 lines
1.5 KiB
C
//
|
|
// createAllMesh.H
|
|
// ~~~~~~~~~~~~~~~
|
|
|
|
autoPtr<fvMesh> allMesh;
|
|
autoPtr<fvFieldReconstructor> procToAllMapper;
|
|
PtrList<fvFieldDecomposer> allToProcMappers;
|
|
|
|
if (temperatureCoupled)
|
|
{
|
|
Foam::Info
|
|
<< "Create mesh for time = "
|
|
<< runTime.timeName() << Foam::nl << Foam::endl;
|
|
|
|
allMesh.reset
|
|
(
|
|
new Foam::fvMesh
|
|
(
|
|
Foam::IOobject
|
|
(
|
|
Foam::fvMesh::defaultRegion,
|
|
runTime.timeName(),
|
|
runTime,
|
|
Foam::IOobject::MUST_READ
|
|
)
|
|
)
|
|
);
|
|
|
|
procToAllMapper.reset
|
|
(
|
|
new fvFieldReconstructor
|
|
(
|
|
allMesh(),
|
|
procMeshes,
|
|
faceProcAddressing,
|
|
cellProcAddressing,
|
|
boundaryProcAddressing
|
|
)
|
|
);
|
|
|
|
|
|
allToProcMappers.setSize
|
|
(
|
|
rp.fluidRegionNames().size()
|
|
+ rp.solidRegionNames().size()
|
|
);
|
|
|
|
forAll(allToProcMappers, i)
|
|
{
|
|
allToProcMappers.set
|
|
(
|
|
i,
|
|
new fvFieldDecomposer
|
|
(
|
|
allMesh(),
|
|
procMeshes[i],
|
|
faceProcAddressing[i],
|
|
cellProcAddressing[i],
|
|
boundaryProcAddressing[i]
|
|
)
|
|
);
|
|
}
|
|
}
|