Skip to content

Instantly share code, notes, and snippets.

@mrklein
Created February 15, 2013 16:40
Show Gist options
  • Save mrklein/4961597 to your computer and use it in GitHub Desktop.
Save mrklein/4961597 to your computer and use it in GitHub Desktop.
const fvPatchList& patches = mesh.boundary();
forAll(patches, patchi)
{
const fvPatch& curPatch = patches[patchi];
if (isType<wallFvPatch>(curPatch))
{
forAll(curPatch, facei)
{
label faceCelli = curPatch.faceCells()[facei];
//your stuff
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment