This can only happen if the presence of the marker points actually changes the flow — which can only happen if you are using AMR and if the marker points are in part of the domain that would not otherwise be refined, so that there is additional regions of refinement beyond what would happen without markers. If you are not using AMR, or if the markers are restricted to a part of the domain that is already highly refined, then adding markers will not change the regridding frequency.
The basic criterion that is used to determine when to regrid the computational domain is based on the maximum flow velocity in the domain and is independent of the structure motion. There is a non-dimensional parameter called the “regrid CFL interval” — let’s call it C_regrid — that controls the regridding frequency.
The idea is that we can bound the distance that any particle can possibly move during a time step using the maximum flow velocity and the time step size.
(max displacement) <= (maximum velocity) * dt
It is actually more convenient to use a non dimensional displacement that is expressed as a fraction of the Cartesian grid spacing:
(max non dimensional displacement) <= (maximum velocity) * dt / h
Notice that the right-hand side is just the CFL number of the flow.
The default implementation just adds up the CFL number in each time step since the most recent regridding operation — which is the maximum number of fractional mesh widths that any particle could move since that regridding operation — and, once that sum exceeds C_regrid, regridding is triggered. In the examples, we usually set C_regrid = 0.5, which means that regridding is triggered once any material point could have possibly moved half a mesh width. Again, notice that this criterion does not depend on the actual motion of the structure, just the flow velocity magnitude on the Cartesian grid.
By the way, this is the same kind of criterion that you would want to use to ensure that flow features are captured by the AMR grid — if a flow feature can move too far between regridding operations, then it can escape its targeted level of spatial resolution.
This is probably overly conservative for structural motion, and, in fact, IBFEMethod actually has a second option that is based on the actual displacement since the most recent regridding operation. I don’t think this true displacement-based criterion is currently implemented for any other IB method implementation.
Of course, if you are using AMR, it may be reasonable to want the markers to be assigned to the finest available level of the AMR grid at their current location. (I.e., to avoid having the markers themselves induce local mesh refinement.) I set up LMarker and LMarkerUtilities to facilitate this kind of stuff a long time ago, but I don’t know how recently it has been used. Perhaps you could try it out . . . I think all you need to do is to specify a marker file name in the IBHierarchyIntegrator input database: