Skip to content

This code solves the thin film (or long wave) approximation of thin viscoelastic films on a solid, flat substrate subject to the van der Waals interaction force, in two spatial dimensions. The governing equations are obtained within a long-wave (lubrication) approximation of the Navier–Stokes equations with Jeffreys model for viscoelastic stress…

License

Notifications You must be signed in to change notification settings

valeriabarra/ThinViscoelasticFilms

Repository files navigation

Code for Thin Viscoelastic Film simulations on flat substrates

This repository contains a Fortran 90 code for the numerical simulations of thin viscoelastic films and drops on solid, flat substrates. The nomenclature used in the code, reflects the reference paper Barra et al., Interfacial dynamics of thin viscoelastic films and drops, JNNFM (2016). All terms and nomenclature in the code refer to that publication. Please ask the author if you cannot access the reference paper.

This code is based on the finite difference discretization, on a staggered grid. It uses a fixed spatial grid size Delta x and an adaptive time step Delta t.

This code solves the thin film (or long wave) approximation of thin viscoelastic films on a solid, flat substrate subject to the van der Waals interaction force, in two spatial dimensions. The governing equations are obtained within a long-wave (lubrication) approximation of the Navier–Stokes equations with Jeffreys model for viscoelastic stresses. This version of the code does not include any gravitational effects.

The implementation provided is suitable for CPUs in serial mode.

Build

To build the prject, move into the build folder by running

cd build

and then either run the provided compile script, by running

bash CompileScript

or simply build with

make all

To execute the program, run with the name of the executable created

./ThinVEFilm

or launch in a scheduling system.

Output

The output files are intended to be placed in an Output folder, on the same level of the Debug folder. This needs to specified in the folder variable in the file paras.f90. The status.dat file summarizes the parameters used for the simulation and monitors the adaptive time stepping and Newton's convergence in time. The state variable of the thin film equation is the thickness of the film relative to the solid substrate, printed in the file thickness.dat, for all contiguous grid points, for all consecutive time steps. The file thickness.dat gets printed at each selected output in append mode (i.e., never overwritten). On the other hand, there exist another output file for the solution, called resLastOut.dat that at every step gets overwritten to store the solution at the last output, with more significant digits of precision. This has been implemented so that we can checkpoint the solution and continue the simulation later with an existing solution. In the case of the consitnuation of an existing simulation, use init_switch=1 in the paras.f90 file and make sure that the file resLastOut.dat is present in your current working directory.

Contributors

Different contributors during the years have worked on different parts of this code. We acknowledge:

all supervised or co-supervised by Prof. Lou Kondic, from the Department of Mathematical Sciences, at the New Jersey Institute of Technology.

Users and contributors are always welcome.

Citing this project

If you use any component of this code, please cite the following

About

This code solves the thin film (or long wave) approximation of thin viscoelastic films on a solid, flat substrate subject to the van der Waals interaction force, in two spatial dimensions. The governing equations are obtained within a long-wave (lubrication) approximation of the Navier–Stokes equations with Jeffreys model for viscoelastic stress…

Resources

License

Stars

Watchers

Forks

Packages

No packages published