Skip to content
  • Will Bainbridge's avatar
    lagrangian: Optimised reduced-dimension constraints · f1780abe
    Will Bainbridge authored and Andrew Heather's avatar Andrew Heather committed
    The 4.x tracking enforces reduced dimensionality on the parcels by
    moving them to the centre of the mesh at the start of each track,
    without considering the topology. This can leave the parcel outside it's
    associated tetrahedron.
    
    The barycentric algorithm isn't tolerant to incorrect topology, so
    instead of changing position, it was written to track to the mesh
    centre. This worked, but effectively doubled the number of tracking
    calls. This additional cost has now been removed by absorbing the
    constraint displacement into the existing motion track, so that the same
    number of tracking steps are performed as before.
    
    Partially resolves bug report https://bugs.openfoam.org/view.php?id=2688
    f1780abe