CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Meshing Format & General Technical (http://www.cfd-online.com/Forums/openfoam-meshing-technical/)
-   -   Backport meshes from OF 13 (http://www.cfd-online.com/Forums/openfoam-meshing-technical/61934-backport-meshes-13-a.html)

stefanke May 6, 2006 03:57

Is it possible to backport mes
 
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 16:27.