CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Meshing & Mesh Conversion (https://www.cfd-online.com/Forums/openfoam-meshing/)
-   -   [Technical] Backport meshes from OF 13 (https://www.cfd-online.com/Forums/openfoam-meshing/61934-backport-meshes-13-a.html)

stefanke May 6, 2006 03:57

Backport meshes from OF 13
 
Is it possible to backport meshes from OF1.3 to OF1.2?

eugene May 8, 2006 08:01

Sure just compile and run this
 
Sure just compile and run this utility in OF1.3. It will write the cells file, which is the only thing that is not in 1.3 that is required by 1.2.

int main(int argc, char *argv[])
{

# include "setRootCase.H"
# include "createTime.H"
# include "createMesh.H"

cellIOList cells
(
IOobject
(
"cells",
runTime.timeName(),
mesh,
IOobject::NO_READ
),
mesh.nCells()
);

Pout << "Building cell list." << endl;

mesh.calcCells
(
cells,
mesh.faceOwner(),
mesh.faceNeighbour(),
mesh.nCells()
);

Pout << "Writing cells." << endl;

cells.write();

return(0);
}


All times are GMT -4. The time now is 22:34.