Coder Social home page Coder Social logo

csdmp's Introduction

CSDmp: Conventional Stokesian Dynamics in mixed precision

This is a pedagogical code to demonstrate the Conventional Stokesian Dynamics algorithm, written in Fortran 90/95.

The algorithm is described in this paper: Durlofsky, L., Brady, J. F. & Bossis, G. Dynamic Simulation of Hydrodynamically Interacting Particles. Journal of Fluid Mechanics 180, 21โ€“49 (1987).

The program relies on standard BLAS and LAPACK routines. Modify the makefile according to your software environment.

Mixed precision means the velocity is calculated in single precision and the position is in double precision.

Two input files are read by SD.X: conf.in and particles.in

conf.in:

Set the timestep parameters and the background flow

particles.in:

Set the initial particle id, position, and (fixed) external forcing

Two output files are generated by SD.X: out.xyz and particles.out.data

out.xyz:

Standard xyz file recording the location of each particle. This file can be visualized by VMD, pyMol, Paraview, etc.

particles.out.data:

Human readable detailed data generated by SD.X

Note:

There was a version of this program performing BLAS/LAPACK operations on GPUs, based on the CULA library. However, since the CULA library is no longer maintained, the GPU functionality is removed. Matrix inversion (in single precision) on GPUs can be fast, but currently there is no plan to adapt this code to GPUs.

csdmp's People

Contributors

wenyan4work avatar

Stargazers

 avatar  avatar

Forkers

sherlockyzd

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.