{'fraction_non_alphanumeric': 0.010582010582010581, 'fraction_numerical': 0.0, 'mean_word_length': 5.391891891891892, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Interactive Simulation of Contrast Fluid using Smoothed Particle Hydrodynamics

In a collaboration project between Ume̊a University and Stanford University a medical training simulator examining the gastro-intestinal tract is being developed. A real-time simulation of a viscous fluid known as contrast fluid is needed as well as the interaction between the contrast fluid and the colon wall. In this thesis we examine existing methods for simulating fluids and deformable materials. We also implement a prototype and evaluate the possibilities of such a medical simulator. The prototype implements a variant of smoothed particle hydrodynamics together with a triangle mesh as a boundary condition. The solution simulates viscous fluid inside a complex triangle mesh and performs surface extraction based on screen space meshes. A illumination model is implemented on the GPU to perform shading effects such as fresnel reflection and refraction.