Modeling Simulation and Optimization of Fluid Dynamic Applications