Smart algorithms and adaptive methods in computational fluid dynamics