Inglis, T.Eckert, M.‐L.Gregson, J.Thuerey, N.Chen, Min and Zhang, Hao (Richard)2018-01-102018-01-1020171467-8659https://doi.org/10.1111/cgf.13084https://diglib.eg.org:443/handle/10.1111/cgf13084We apply a novel optimization scheme from the image processing and machine learning areas, a fast Primal‐Dual method, to achieve controllable and realistic fluid simulations. While our method is generally applicable to many problems in fluid simulations, we focus on the two topics of fluid guiding and separating solid‐wall boundary conditions. Each problem is posed as an optimization problem and solved using our method, which contains acceleration schemes tailored to each problem. In fluid guiding, we are interested in partially guiding fluid motion to exert control while preserving fluid characteristics. With our method, we achieve explicit control over both large‐scale motions and small‐scale details which is valuable for many applications, such as level‐of‐detail adjustment (after running the coarse simulation), spatially varying guiding strength, domain modification, and resimulation with different fluid parameters. For the separating solid‐wall boundary conditions problem, our method effectively eliminates unrealistic artefacts of fluid crawling up solid walls and sticking to ceilings, requiring few changes to existing implementations. We demonstrate the fast convergence of our Primal‐Dual method with a variety of test cases for both model problems.We apply a novel optimization scheme from the image processing and machine learning areas, a fast Primal‐Dual method, to achieve controllable and realistic fluid simulations. While our method is generally applicable to many problems in fluid simulations, we focus on the two topics of fluid guiding and separating solid‐wall boundary conditions. Each problem is posed as an optimization problem and solved using our method, which contains acceleration schemes tailored to each problem.physically‐based animationfluid simulationconvex optimizationfluid guidingflexible boundary conditionsComputer graphics, Physical simulation, Convex optimizationPrimal‐Dual Optimization for Fluids10.1111/cgf.13084354-368