Text this: Flowfield-dependent variant method for moving-boundary problems