Skip to content

Fortran-based simulation code for predicting the equilibrium shape of a droplet on a structured substrate by solving the Young-Laplace equation of capillary hydrostatics

License

Notifications You must be signed in to change notification settings

nikoscham/DropS

Repository files navigation

DropS

DropS is a Fortran-based simulation code designed to predict the equilibrium shape of a droplet on a structured substrate. It solves the Young-Laplace equation of capillary hydrostatics augmented with a disjoining pressure term, which models the solid-liquid interactions. This approach treats the liquid-solid and liquid-vapor interfaces in a unified framework, making it particularly effective for modeling cases where the number of contact lines is a priori unknown.

Documentation

DropS has been used in several scientific papers:

How to Use

  1. Prepare the input files:

    • GlobalParameters.txt
    • AYLParameters.txt
    • EIParameters.txt
    • CYLParameters.txt
    • ELParameters.txt
  2. Compile the code:

    make
  3. Run the simulation:

    ./DropS
  4. The results are saved in the Results directory

Prerequisites

  • Fortran compiler: Install a Fortran compiler, such as GFortran
  • MUMPS Library: Ensure the MUMPS library is installed in the directory /usr/local/MUMPS
  • Linux Environment: The application requires a Linux operating system for compatibility

File Descriptions

Source Files:

  • DropS.f90: Main program file
  • cvar.f90: Common variables module
  • auxfunct.f90: Auxiliary functions
  • initsol.f90: Initialization and solution reading routines
  • nodnum.f90: Nodal numbering routines
  • coord.f90: Coordinate transformation routines
  • defpar.f90: Parameter definition routines
  • tsfun.f90: Basis function evaluation routines
  • eikon.solv.f90: Eikonal equation solver
  • printres.f90: Result printing routines
  • ew.solv.f90: Electrowetting solver
  • ew.paramsolv.f90: Electrowetting solver with parametric continuation
  • ayl.paramsolv.f90: Augmented Young-Laplace solver with parametric continuation
  • ayl.solv.f90: Augmented Young-Laplace solver
  • cyl.solv.f90: Conventional Young-Laplace solver

Input Files:

  • GlobalParameters.txt: Global parameters for the simulation
  • AYLParameters.txt: Parameters for the Augmented Young-Laplace equation
  • EIParameters.txt: Parameters for the Eikonal equation
  • CYLParameters.txt: Parameters for the Conventional Young-Laplace equation
  • ELParameters.txt: Parameters for the Electrowetting simulation

License

DropS is distributed under the terms of MIT License. © 2024 Nikolaos Chamakos.

About

Fortran-based simulation code for predicting the equilibrium shape of a droplet on a structured substrate by solving the Young-Laplace equation of capillary hydrostatics

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published