Fast Solvers And Simulation Data Compression Algorithms For Granular Media And Complex Fluid Flows