No child items are currently assigned. Use child items to break down this issue into smaller parts.
Link issues together to show that they're related. Learn more.
Activity
- Author Maintainer
To use groups, the following snippet (zoneMotion.C) should probably work:
labelList cellIDs; if (!cellZoneName.empty() && cellZoneName != "none") { Info<< "Applying solid body motion to cellZone " << cellZoneName << endl; // Also handles groups... labelList zoneIDs = mesh.cellZones().indices(cellZoneName); if (zoneIDs.empty()) { FatalErrorInFunction << "Unable to find cellZone " << cellZoneName << ". Valid cellZones are:" << mesh.cellZones().names() << exit(FatalError); } cellIDs = mesh.cellZones().selection(zoneIDs).sortedToc(); }
Edited by Mark OLESEN - Author Maintainer
Could be useful to accept a
wordRe
or even awordRes
for specifying the zones.Additional point raised by @Prashant - could be useful to specify 'inGroups' as an optional parameter for set-to-zone topo actions. Probably no future naming conflicts with that as a keyword, but open to other ideas (@andy @kuti @Mattijs @Sergio)
- Mark OLESEN mentioned in commit f0f893c4
mentioned in commit f0f893c4
- Mark OLESEN closed
closed
- Mark OLESEN assigned to @mark
assigned to @mark
- Prashant Sonakar mentioned in issue #2497
mentioned in issue #2497
Please register or sign in to reply