()
| 222 | |
| 223 | |
| 224 | void Foam::attachDetach::clearAddressing() const |
| 225 | { |
| 226 | deleteDemandDrivenData(pointMatchMapPtr_); |
| 227 | } |
| 228 | |
| 229 | |
| 230 | // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // |
| 231 | |
| 232 | // Construct from components |
| 233 | Foam::attachDetach::attachDetach |
| 234 | ( |
| 235 | const word& name, |
| 236 | const label index, |
| 237 | const polyTopoChanger& mme, |
| 238 | const word& faceZoneName, |
| 239 | const word& masterPatchName, |
| 240 | const word& slavePatchName, |
| 241 | const scalarField& triggerTimes, |
| 242 | const bool manualTrigger |
| 243 | ) |
| 244 | : |
| 245 | polyMeshModifier(name, index, mme, true), |
| 246 | faceZoneID_(faceZoneName, mme.mesh().faceZones()), |
| 247 | masterPatchID_(masterPatchName, mme.mesh().boundaryMesh()), |
| 248 | slavePatchID_(slavePatchName, mme.mesh().boundaryMesh()), |
| 249 | triggerTimes_(triggerTimes), |
| 250 | manualTrigger_(manualTrigger), |
| 251 | triggerIndex_(0), |
| 252 | state_(UNKNOWN), |
| 253 | trigger_(false), |
| 254 | pointMatchMapPtr_(nullptr) |
| 255 | { |
| 256 | checkDefinition(); |
| 257 | } |
| 258 | |
| 259 | |
| 260 | // Construct from components |
| 261 | Foam::attachDetach::attachDetach |
| 262 | ( |
| 263 | const word& name, |
| 264 | const dictionary& dict, |
| 265 | const label index, |
| 266 | const polyTopoChanger& mme |
| 267 | ) |
| 268 | : |
| 269 | polyMeshModifier(name, index, mme, Switch(dict.lookup("active"))), |
| 270 | faceZoneID_ |
| 271 | ( |
| 272 | dict.lookup("faceZoneName"), |
| 273 | mme.mesh().faceZones() |
| 274 | ), |
| 275 | masterPatchID_ |
| 276 | ( |
| 277 | dict.lookup("masterPatchName"), |
| 278 | mme.mesh().boundaryMesh() |
| 279 | ), |
| 280 | slavePatchID_ |
| 281 | ( |
no test coverage detected