Merge branch 'master' of ssh://git.code.sf.net/p/foam-extend/foam-extend-3.2
[foam-extend-3.2.git] / applications / solvers / coupled / conjugateHeatFoam / createSolidMesh.H
blob7c1bcdb777f4ae3ab616c58109bb905b3f5eff30
1     fvMesh solidMesh
2     (
3         IOobject
4         (
5             "solid",
6             runTime.timeName(),
7             runTime,
8             IOobject::MUST_READ
9         )
10     );
13     const polyPatchList& patches = solidMesh.boundaryMesh();
15     forAll (patches, patchI)
16     {
17         if (isType<regionCouplePolyPatch>(patches[patchI]))
18         {
19             const regionCouplePolyPatch& rcp =
20                 refCast<const regionCouplePolyPatch>(patches[patchI]);
22             // Attach it here
23             rcp.attach();
24         }
25     }
27     // Force recalculation of weights
28     solidMesh.surfaceInterpolation::movePoints();