feos.dft.PlanarInterface.from_tanh¶
- static PlanarInterface.from_tanh(vle, n_grid, l_grid, critical_temperature, fix_equimolar_surface=None)¶
Initialize a planar interface with a hyperbolic tangent.
- Parameters:
vle (PhaseEquilibrium) – The bulk phase equilibrium.
n_grid (int) – The number of grid points.
l_grid (SINumber) – The width of the calculation domain.
critical_temperature (SINumber) – An estimate for the critical temperature of the system. Used to guess the width of the interface.
fix_equimolar_surface (bool, optional) – If True use additional constraints to fix the equimolar surface of the system. Defaults to False.
- Return type: