| 1568 | |
| 1569 | |
| 1570 | void Foam::boundaryMesh::addPatch(const word& patchName) |
| 1571 | { |
| 1572 | patches_.setSize(patches_.size() + 1); |
| 1573 | |
| 1574 | // Add empty patch at end of patch list. |
| 1575 | |
| 1576 | label patchi = patches_.size()-1; |
| 1577 | |
| 1578 | boundaryPatch* bpPtr = new boundaryPatch |
| 1579 | ( |
| 1580 | patchName, |
| 1581 | patchi, |
| 1582 | 0, |
| 1583 | mesh().size(), |
| 1584 | "empty" |
| 1585 | ); |
| 1586 | |
| 1587 | patches_.set(patchi, bpPtr); |
| 1588 | |
| 1589 | if (debug) |
| 1590 | { |
| 1591 | Pout<< "addPatch : patches now:" << endl; |
| 1592 | |
| 1593 | forAll(patches_, patchi) |
| 1594 | { |
| 1595 | const boundaryPatch& bp = patches_[patchi]; |
| 1596 | |
| 1597 | Pout<< " name : " << bp.name() << endl |
| 1598 | << " size : " << bp.size() << endl |
| 1599 | << " start : " << bp.start() << endl |
| 1600 | << " type : " << bp.physicalType() << endl |
| 1601 | << endl; |
| 1602 | } |
| 1603 | } |
| 1604 | } |
| 1605 | |
| 1606 | |
| 1607 | void Foam::boundaryMesh::deletePatch(const word& patchName) |