Surface Tension
Tutorial Created with Software Release: 2026-1
Topics: Consumer Packaged Goods , Pharmaceutical Formulations , Polymeric Materials
Methodology: All-Atom Molecular Dynamics
Products Used: Desmond , MS Maestro
|
12 MB |
This tutorial is written for use with a 3-button mouse with a scroll wheel.
Words found in the Glossary of Terms are shown like this: Workspacethe 3D display area in the center of the main window, where molecular structures are displayed
Abstract:
In this tutorial, we will learn to calculate surface tension of single phase, single component systems using the surface tension calculation and results panels.
Tutorial Content
1. Introduction to Surface Tension
Surface tension, typically measured in dynes/cm (or other force per unit length, e.g. mN/m), is a measure of the energy or work required to increase the surface area of a liquid due to intermolecular forces. At a liquid-vapor interface, surface tension results from the greater attraction with other molecules on the surface due to cohesion. Surface tension can be calculated with molecular dynamics (MD) simulation utilizing the diagonal components of the pressure tensor and the length of the simulation cell.
A surface tension calculation can be performed in Materials Science Maestro by constructing an interfacial system and utilizing the Surface Tension Calculation and Surface Tension Results panels to set up and analyze the appropriate MD simulation.
In this tutorial, we will calculate the surface tension for three pure substances: dimethylether, acetonitrile and formamide (abbreviated throughout as DME, ACN and FA). Doing so entails a multi-step workflow: preparing several replicates of each system, equilibrating and expanding the cells, building appropriate slab models to represent the liquid-vacuum interfaces, running surface tension calculations, and analyzing results. The overall workflow performed in the tutorial can be summarized as follows:
Surface tension is a key observable property of interest with practical application in several areas, including consumer packaged goods, formulations and polymeric materials.
2. Creating Projects and Importing Structures
At the start of the session, change the file path to your chosen Working Directorythe location where files are saved in MS Maestro to make file navigation easier. Each session in MS Maestro begins with a default Scratch Projecta temporary project in which work is not saved, closing a scratch project removes all current work and begins a new scratch project, which is not saved. A MS Maestro project stores all your data and has a .prj extension. A project may contain numerous entries corresponding to imported structures, as well as the output of modeling-related tasks. Once a project is created, the project is automatically saved each time a change is made.
Structures can be imported directly or from your Working Directorythe location where files are saved using File > Import Structures, and are added to the Entry Lista simplified view of the Project Table that allows you to perform basic operations such as selection and inclusion and Project Tabledisplays the contents of a project and is also an interface for performing operations on selected entries, viewing properties, and organizing structures and data. The Entry Lista simplified view of the Project Table that allows you to perform basic operations such as selection and inclusion is located to the left of the Workspacethe 3D display area in the center of the main window, where molecular structures are displayed. The Project Tabledisplays the contents of a project and is also an interface for performing operations on selected entries, viewing properties, and organizing structures and data can be accessed by Ctrl+T (Cmd+T) or Window > Project Table if you would like to see an expanded view of your project data.
- Double-click the Materials Science icon
- (No icon? See Starting Maestro)
- Go to File > Change Working Directory
- Find your directory, and click Choose
- Pre-generated files are included for running jobs or examining output. Download the zip file here: schrodinger.com/sites/default/files/s3/release/current/Tutorials/zip/surface_tension.zip
- After downloading the zip file, unzip the contents in your Working Directorythe location where files are saved for ease of access throughout the tutorial
- Go to File > Save Project As
- Change the File name to surface_tension_tutorial, click Save
- The project is now named
surface_tension_tutorial.prj
- The project is now named
- Go to File > Import Structures
- Navigate to where you downloaded the tutorial files (presumably your working directory) and choose
input_molecules.maefrom the provided files - Click Open
- A new entry group is added to the entry lista simplified view of the Project Table that allows you to perform basic operations such as selection and inclusion containing three molecules
- If you would prefer to practice drawing these molecules on your own with the 2D Sketcher, feel free to do so (for practice using the 2D Sketcher, see the Introduction to Maestro for Materials Science tutorial)
3. Building and Equilibrating Systems
The surface tension workflow requires an input slab where a liquid is in equilibrium with its vapor. The cell should be reasonably close to an equilibrated structure, noting that the Surface Tension Calculation panel does also include an option to add a relaxation step. In this tutorial, we will prepare slabs using the Disordered System Builder panel, the MD Multistage Workflow panel, Extents Tools and the Build Slabs and Interfaces panel. Best practice is also to prepare several replicates for each system of interest, so we will prepare four slabs for each of our three components (12 slabs total).
If you are already comfortable with building and equilibrating a slab, feel free to import: largecells_all.mae. These twelve outputs (n = 1, 2, 3, 4) in the provided md_prep_all_slabs directory contain the final slab models, and can be used to proceed directly to Section 4 to learn how to run the surface tension jobs.
- Select(1) the atoms are chosen in the Workspace. These atoms are referred to as "the selection" or "the atom selection". Workspace operations are performed on the selected atoms. (2) The entry is chosen in the Entry List (and Project Table) and the row for the entry is highlighted. Project operations are performed on all selected entries all three entries from the entry lista simplified view of the Project Table that allows you to perform basic operations such as selection and inclusion
- Go to Tasks > Materials > Structure Builders > Disordered System
- The Disordered System Builder panel opens
Note: For general practice with the Disordered System Builder, see the Disordered System Building and MD Multistage Workflows tutorial
The Disordered System Builder is typically used to create an amorphous cell containing multiple components. Instead, here we wish to prepare homogeneous cells, four for each component. To do so:
- For Initial state, select Tangled chain
- Change the Number of molecules to 343
- This will be total number of molecules in each cell
- Change the DME number of Molecules to 115
- This is not actually relevant for our build, but the panel will not run unless the molecules sum to the expected total
- Otherwise, pay no attention to the Components table. We are going to obviate that momentarily
- Go to the Cells tab
- Uncheck All components
- This avoids the construction of the mixed cell
- Check Homogeneous cell of each component
- This instructs the builder to prepare the homogeneous cells instead
- Change Number of cells of each type to 4
- Change the Job name to disordered_system_DME_ACN_FA
- This job takes ~5-10 minutes on a CPU Host. If you would like to run the job yourself, adjust your Job settings (
) as needed and click Run.
If you would prefer to proceed with pre-generated structures, you can import the amorphous cells via File > Import Structures. Navigate to where you downloaded the tutorial files and choose the Section_03 > disordered_system_DME_ACN_FA > disordered_system_DME_ACN_FA_componentn_m_system-out.cms files.
- Close the Disordered System Builder panel
At this stage, we have specified the building of four cells for each individual component, each of which contains 343 molecules. These cells contain ~2,000-3,000 atoms. For the Surface Tension calculations, and in general for MD workflows, we may want larger cells. Here, we are building small cells intentionally, which we will later increase in size by leveraging the periodicity of the system.
We will proceed to run an MD protocol to densify the systems before proceeding to expand the cells and prepare the slabs.
- Select(1) the atoms are chosen in the Workspace. These atoms are referred to as "the selection" or "the atom selection". Workspace operations are performed on the selected atoms. (2) The entry is chosen in the Entry List (and Project Table) and the row for the entry is highlighted. Project operations are performed on all selected entries all twelve new entries from the entry lista simplified view of the Project Table that allows you to perform basic operations such as selection and inclusion (Shift + Click on all 12 rows)
- Go to Tasks > Materials > Classical Mechanics > MD Simulations > MD Multistage Workflow
- The MD Multistage Workflow panel opens
- Change the Job name to multistage_simulation_DME_ACN_FA
- This job takes several hours on a GPU Host. If you would like to run the job yourself, adjust your Job settings (
) as needed and click Run.
If you would prefer to proceed with pre-generated structures, you can import the amorphous cells via File > Import Structures. Navigate to where you downloaded the tutorial files and choose the twelve multistage_simulation_DME_ACN_FA_00n-out.cms files in the Section_03 > multistage_simulation_DME_ACN_FA > multistage_simulation_DME_ACN_FA_00ndirectory
Note: MD simulations have a number of files associated with the job, for a full description of each file type see the help documentation on Desmond Files
- Close the MD Multistage Workflow panel
When the job finishes or after importing, twelve new entries are added to the entry lista simplified view of the Project Table that allows you to perform basic operations such as selection and inclusion. The systems have been densified and we are now ready to expand to a larger cell and then generate a slab.
In some cases, we can save computational expense by building and densifying a smaller cell, and then leveraging periodicity to generate a larger cell. However, one should be cautious when using this approach. Specifically, before performing an analysis on the larger system, additional MD is recommended. In the case of Surface Tension, the calculations panel includes a relaxation stage, which will be sufficient (see Section 4).
- Includethe entry is represented in the Workspace, the circle in the In column is blue the first of the twelve compressed entries in the workspacethe 3D display area in the center of the main window, where molecular structures are displayed
- Click on the
button to open the Periodic Structure Tool Window
- Go to Build Cell
- Click Extents
- Insert 1 for the +A, +B and +C directions
- Click Apply
- Click Continue if prompted with a warning
- An extended view of the periodic cell is displayed in the workspacethe 3D display area in the center of the main window, where molecular structures are displayed
- Cell 2 x 2 x 2 is shown in green in the bottom right
If you are not familiar with Periodic Cells and their manipulation in MS Maestro, visit the Building and Manipulating Crystal Structures tutorial
The extended view of the cell is shown in the figure. This extent expansion is purely visual. In order to generate a new cell of this size, we will need to use the Make P1 Cell option.
- Repeat the above steps for the remaining eleven cells. Note that you can include all eleven simultaneously in the workspace and perform the periodic operations synchronously
- Alternatively, simply import
Section_03 > largecells_all.maefrom the provided files and proceed with these outputs
- Alternatively, simply import
- Rename the entries DME_largecell_n, ACN_largecell_n and FA_largecell_n where n = 1, 2, 3, etc.
Your entry list should match that which is shown in the Figure (in no particular order), and you should now have 12 cells, four for each component, each with ~15,000-25,000 atoms.
For surface tension, we need an interface which can either be one phase and vacuum or one and another non-vacuum phase (also known as the interfacial tension). Here, we are interested in a single phase surface tension, so we will need to introduce a vacuum layer above our cell. We can do so by generating a slab for each of the entries. We will detail the steps for one entry, and then it can be repeated for all, or you can import pregenerated slabs.
- Includethe entry is represented in the Workspace, the circle in the In column is blue DME_largecell_1in the workspacethe 3D display area in the center of the main window, where molecular structures are displayed
- Go to Tasks > Materials > Structure Builders > Slabs and Interfaces
- The Build Slabs and Interfaces panel opens
- Click Load
- DME_largecell_1 appears in the panel
- Check Define slab
We can maintain all of the defaults, which will generate a slab with a ~100 Å vacuum buffer. A cell size of ~75 Å x 75 Å x 75 Å with a ~100 Å buffer is a reasonable default for the upcoming surface tension jobs. If you are interested in learning more about this tool, visit the help documentation or see the Modeling Surfaces tutorial.
- Change the Job name to surfaces_interfaces_DME_largecell_1
This job takes several minutes on a CPU Host. If you would like to run the job yourself, adjust your Job settings (
) as needed and click Run. If running the job, you will have to click Continue to a warning about the cell size. Repeat these steps for the remaining eleven cells. Or, if you would prefer to proceed with pre-generated structures, you can import all twelve slabs via File > Import Structures. Navigate to where you downloaded the tutorial files and choose the Section_03 > slabs_all.mae file
- Close the Build Slabs and Interfaces panel
After running the jobs or importing, you should have twelve slabs in your entry list that are nearly ready for surface tension calculations.
As a final step, the slabs tool generates cells that are not ready for Desmond simulations. The Prepare for MD panel is used for cleaning up bond orders, selecting a force field, and creating a simulation box that is Desmond ready:
- Select(1) the atoms are chosen in the Workspace. These atoms are referred to as "the selection" or "the atom selection". Workspace operations are performed on the selected atoms. (2) The entry is chosen in the Entry List (and Project Table) and the row for the entry is highlighted. Project operations are performed on all selected entries all twelve slabs in the entry lista simplified view of the Project Table that allows you to perform basic operations such as selection and inclusion
- Go to Tasks > Materials > Classical Mechanics > MD Simulations > Prepare for Molecular Dynamics
- The Prepare for MD panel opens
- Change the Job name to md_prep_all_slabs
- This job takes several minutes on a CPU Host. If you would like to run the job yourself, adjust your Job settings (
) as needed and click Run. Or, if you would prefer to proceed with pre-generated structures, you can import the prepared slabs via File > Import Structures. Navigate to where you downloaded the tutorial files and choose the four files in the Section_03 > md_prep_all_slabs > ACN_largecell_n_001-surface_system-out.cmswhere n=1-4 directory. Repeat for DME and FA. There will be 12 files total.
After running the jobs or importing, you should have twelve slabs in your entry lista simplified view of the Project Table that allows you to perform basic operations such as selection and inclusion that are now completely ready for surface tension calculations.
4. Surface Tension Calculations and Results
Now that we have prepared the slabs containing the phase-vacuum interfaces, we are ready to proceed with using the Surface Tension Calculation and Results panels to compute and analyze the surface tensions for our three example molecules. In addition, we will use the Density Profile panel to analyze the final cells.
- Select(1) the atoms are chosen in the Workspace. These atoms are referred to as "the selection" or "the atom selection". Workspace operations are performed on the selected atoms. (2) The entry is chosen in the Entry List (and Project Table) and the row for the entry is highlighted. Project operations are performed on all selected entries all twelve slabs in the entry lista simplified view of the Project Table that allows you to perform basic operations such as selection and inclusion
- Go to Tasks > Materials > Classical Mechanics > Surface Tension > Surface Tension Calculations
- The Surface Tension Calculation panel opens
- In the Simulation protocols section, check Add relaxation step
- Increase the Simulation time to 1000 ps
- Increase the Trajectory recording interval to 20 ps
- Change the Job name to surface_tension_DME_ACN_FA
This job takes about 20 minutes per cell per GPU on a GPU Host. If you would like to run the job yourself, adjust your Job settings (
) as needed and click Run. Or, if you would prefer to proceed with pre-generated structures, you can import the twelve surface_tension_DME_ACN_FA-00n-out.cms files in the Section_04 directory from the provided tutorial files for the analysis steps. Note that the files are all in separate directories because there are file dependencies within each directory.
If you run the job, a warning will appear regarding running over 10 jobs with this panel. Click OK.
- Close the Surface Tension Calculation panel
Let’s learn a bit more about using the Surface Tension Calculation panel:
- The panel can be implemented on a single Desmond system or multiple simultaneously using the Use structures from dropdown and the entry list
- The Simulation protocols section is used to parameterize the MD:
- Add relaxation step should be used if your cell is not equilibrated before the job. In the tutorial example, we equilibrated our smaller cell, not the full cell, so this step ensures that our system is relaxed
- The Fixed plane option is used to define the plane in your input cell which separates the phases (in our case, liquid and vacuum). Our slab had vacuum in the z-direction, so the default xy-plane is used.
- The Simulation time and other MD settings are standard for small molecule examples. The default time of 100 ps is likely sufficient, but in this example, we increase to 1000 ps due to computational resources available
- Use the Save intermediate data option to see the trajectory from the job as opposed to just the final frame of the output
- Read more in the help documentation
After running the jobs or importing, you should have twelve new entries in your entry lista simplified view of the Project Table that allows you to perform basic operations such as selection and inclusion corresponding with each cell.
Note that some drifting may occur relative to the unit cell in the workspace, but this is purely visual. If you like, you can use the
button to open the Periodic Structure Tool Window and Translate to First Unit Cell.
We can analyze the outputs in two ways, with the Density Profile Viewer as well as with the Surface Tension Results panel. Let’s begin with the latter:
Here we are looking at an output from an acetonitrile run. You can use the blue sliders or the Time range input in the panel to adjust the range for extracting the surface tension.
The Average property reports the surface tension in dyne/cm. Note that an individual run has a large standard deviation for surface tension as a function of time. We recommend running multiple cells of each component so that we can average their means.
You can use the Property dropdown to look at any of the individual pressure tensors.
Feel free to explore the Viewer for any of the twelve entries.
We can also analyze the Density Profile for ACN. We expect the more volatile DME to have a significantly different density profile than the less volatile formamide:
- Includethe entry is represented in the Workspace, the circle in the In column is blue any of the twelve outputs in the workspacethe 3D display area in the center of the main window, where molecular structures are displayed
- In the Figure, we include a formamide system
- Go to Tasks > Materials > Tools > Density Profile
- The Density Profile panel opens
- Click Analyze Workspace
- Change the Axis to Z-axis
The density as a function of the Z-Axis Depth in the cell is shown.
Feel free to explore the Density Profiles for any of the runs.
Here we will summarize the results:
Dimethoxyethane (DME)
|
One Output Cell |
One Density Profile |
|
One Surface Tension vs Time Plot Average Surface Tension: 5.91 dyne/cm Experimental Surface Tension: 11.80 dyne/cm |
|
Acetonitrile (ACN)
|
One Output Cell |
One Density Profile |
|
One Surface Tension vs Time Plot Average Surface Tension: 13.39 dyne/cm Experimental Surface Tension: 28.66 dyne/cm |
|
Formamide (FA)
|
One Output Cell |
One Density Profile |
|
One Surface Tension vs Time Plot Average Surface Tension: 44.93 dyne/cm Experimental Surface Tension: 57.03 dyne/cm |
|
Overall, there is good general agreement between the simulated and experimentally determined surface tension values for the molecules studied. The graph below includes data for the three sample molecules as well as 57 additional small molecules analyzed with an analogous workflow to that which we have employed in the tutorial. In general, the simulation underestimates the surface tension, but does so rather consistently, resulting in a reasonably good trendline for experimental versus computed. In practice, additional replicates, longer equilibration and larger system sizes can benefit the results of the simulation.
5. Conclusion and References
In this tutorial, we learned how to prepare single component systems for surface tension calculations. A similar procedure can be used to explore other systems of interest.
For further learning:
For introductory content, focused on navigating the Schrödinger Materials Science interface, an Introduction to Materials Science Maestro tutorial is available. Please visit the materials science training website for access to 100+ tutorials. For scientific inquiries or technical troubleshooting, submit a ticket to our Technical Support Scientists at help@schrodinger.com.
For self-paced, asynchronous, online courses in Materials Science modeling, including access to Schrödinger software, please visit the Schrödinger Online Learning portal on our website.
For some related practice, proceed to explore other relevant tutorials:
- Disordered System Building and Molecular Dynamics Multistage Workflows
- Modeling Surfaces
- Building, Equilibrating and Analyzing Amorphous Polymers
- Building Solvated Systems
- Building a Semicrystalline Polymer
- Thermal Conductivity
- Crosslinking Polymers
- Polymer Property Prediction
- Penetrant Loading
- Diffusion
- Evaporation
- Molecular Dynamics Simulations for Active Pharmaceutical Ingredient Miscibility
- Cluster Analysis
- Calculating Surfactant Tilt and Electrostatic Potential of a Bilayer System
- Applying Barrier Potentials for Molecular Dynamics Simulations
- Building a Polymer-Polymer Interface
- Building a Carbohydrate Polymer
- Glass Transition Temperatures for Active Pharmaceutical Ingredients
- Viscosity
- Meta Workflow
- Droplet Contact Analysis
- Building a Coarse-Grained Surfactant Model with Martini Force Field
- Ibuprofen Cyclodextrin Inclusion Complexes with the Martini Coarse-Grained Force Field
- Adsorption of Panthenol on Skin with All-Atom Molecular Dynamics
For further reading:
- Surface Tension Calculation and Surface Tension Results help documentation
- A complete introduction to Desmond in the help documentation
- Understanding Molecular Simulation, 2nd Edition
- Computer Simulation of Liquids, 2nd Edition
- Best Practices for Foundations in Molecular Simulations
6. Glossary of Terms
Entry List - a simplified view of the Project Table that allows you to perform basic operations such as selection and inclusion
Included - the entry is represented in the Workspace, the circle in the In column is blue
Project Table - displays the contents of a project and is also an interface for performing operations on selected entries, viewing properties, and organizing structures and data
Recent actions - This is a list of your recent actions, which you can use to reopen a panel, displayed below the Browse row. (Right-click to delete.)
Scratch Project - a temporary project in which work is not saved, closing a scratch project removes all current work and begins a new scratch project
Selected - (1) the atoms are chosen in the Workspace. These atoms are referred to as "the selection" or "the atom selection". Workspace operations are performed on the selected atoms. (2) The entry is chosen in the Entry List (and Project Table) and the row for the entry is highlighted. Project operations are performed on all selected entries
Working Directory - the location where files are saved
Workspace - the 3D display area in the center of the main window, where molecular structures are displayed