MCPcopy Create free account
hub / github.com/OpenFOAM/OpenFOAM-dev / setRefinement

Function setRefinement

src/dynamicMesh/attachDetach/attachDetach.C:404–437  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

402
403
404void Foam::attachDetach::setRefinement(polyTopoChange& ref) const
405{
406 // Insert the attach/detach instructions into the topological change
407
408 if (trigger_)
409 {
410 // Clear point addressing from previous attach/detach event
411 clearAddressing();
412
413 if (state_ == ATTACHED)
414 {
415 detachInterface(ref);
416
417 // Set the state to detached
418 state_ = DETACHED;
419 }
420 else if (state_ == DETACHED)
421 {
422 attachInterface(ref);
423
424 // Set the state to attached
425 state_ = ATTACHED;
426 }
427 else
428 {
429 FatalErrorInFunction
430 << "Requested attach/detach event and currect state "
431 << "is not known."
432 << abort(FatalError);
433 }
434
435 trigger_ = false;
436 }
437}
438
439
440void Foam::attachDetach::updateMesh(const mapPolyMesh&)

Callers

nothing calls this directly

Calls 4

detachInterfaceFunction · 0.85
attachInterfaceFunction · 0.85
clearAddressingFunction · 0.70
abortFunction · 0.50

Tested by

no test coverage detected