MoDeNa  1.0 Software framework facilitating sequential multi-scale modelling
Surface Tension MoDeNa Module

Integrates Surface Tension model into the MoDeNa software framework. More...

## Modules

Example Workflow
Integrates Surface Tension model into the MoDeNa software framework.

Fortran Source Code
Source Code Documentation.

## Namespaces

SurfaceTension
MoDeNa Module definition of the Surface Tension Model.

SurfaceTension.SurfaceTension
Surrogate Function, Surrogate Model templates and Model Recipe.

## Detailed Description

Integrates Surface Tension model into the MoDeNa software framework.

SurfaceTension.SurfaceTension.m Surrogate Model SurfaceTension.SurfaceTension.m2 Surrogate Model Dependencies of Surface tension model

Remarks
Attention
Precondition
Note
Warning

# Surface Tension

## Scope of this module

The surface tension module returns the surface tension of a fluid system in equilibrium with coexisting liquid and vapor phases. The module consists of two main components:
• The detailed model
• The surrogate model
A PC-SAFT based density functional theory is used as the detailed model, the details of which are outlined in [2] . However, here we use a modification which is computationally less demanding and can be applied to systems of more than two components. The detailed model takes temperature as input. Pressure is set to one bar in all calculations. The output of the model is the surface tension of the system.Since surface tension shows an almost perfectly linear temperature dependence, the surrogate model is a simple linear equation in temperature: $\gamma(T) = A + BT$ where A and B are adjustable parameters.A nonlinear least-squares algorithm is used to determine the optimal values of these parameters in order to correlate the results of the detailed model as closely as possible.In order to compile and run the module a fortran compiler, preferably gfortran, as well as Portable, Extensible Toolkit for Scientific Computation (PETSc) 3.4.5 need to be installed. PETSc 3.4.5 requires specific versions of MPI, BLAS, Lapack and Scalapack. In order to ensure compatibility, PETSc should be configured to automatically download and install the correct versions, see section Installing PETSc.As there is no backward compatibility of different versions of PETSc, older as well as newer version of PETSc will most likely not work.PETSc should be configured with the following options: