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

Tutorial files

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

 

Tip: You can hover over a glossary term to display its definition. You can click on an image to expand it in the page.
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

  1. Creating Projects and Importing Structures

  1. Building and Equilibrating Systems

  1. Surface Tension Calculations and Results

  1. Conclusion and References

  1. Glossary of Terms

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.

  1. Double-click the Materials Science icon

Figure 2-1. Change Working Directory option.

  1. Go to File > Change Working Directory
  2. Find your directory, and click Choose
  3. 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
  4. After downloading the zip file, unzip the contents in your Working Directorythe location where files are saved for ease of access throughout the tutorial

Figure 2-2. Save Project panel.

  1. Go to File > Save Project As
  2. Change the File name to surface_tension_tutorial, click Save
    • The project is now named surface_tension_tutorial.prj

Figure 2-3. Importing the starting molecules.

  1. Go to File > Import Structures
  2. Navigate to where you downloaded the tutorial files (presumably your working directory) and choose input_molecules.mae from the provided files
  3. 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.

Figure 3-1. Selecting all three entries and opening the Disordered System Builder.

  1. 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
  2. Go to Tasks > Materials > Structure Builders > Disordered System

 

Note: For general practice with the Disordered System Builder, see the Disordered System Building and MD Multistage Workflows tutorial

Figure 3-2. Setting the Components parameters.

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:

  1. For Initial state, select Tangled chain
  2. Change the Number of molecules to 343
    • This will be total number of molecules in each cell
  3. 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
  4. Go to the Cells tab

Figure 3-3. Setting the Cells parameters.

  1. Uncheck All components
    • This avoids the construction of the mixed cell
  2. Check Homogeneous cell of each component
    • This instructs the builder to prepare the homogeneous cells instead
  3. Change Number of cells of each type to 4

Figure 3-4. Setting the Disorder parameters and running the job.

  1. Change the Job name to disordered_system_DME_ACN_FA
  2. 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.

 

  1. 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.

Figure 3-5. Visualizing the output.

Feel free to visualize or stylize any of the output cells.

Figure 3-6. Selecting the entries and opening the MD Multistage Workflow panel.

We will proceed to run an MD protocol to densify the systems before proceeding to expand the cells and prepare the slabs.

  1. 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)
  2. Go to Tasks > Materials > Classical Mechanics > MD Simulations > MD Multistage Workflow

Figure 3-7. Setting up the MD Multistage Workflow panel.

  1. Ensure that Use structures from directs to the 12 entries from above
  2. Check the box for Relaxation protocol and choose Compressive from the dropdown menu
  3. Click the button to remove the 8th stage

Figure 3-8. Naming and running the job.

  1. Change the Job name to multistage_simulation_DME_ACN_FA
  2. 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

  1. Close the MD Multistage Workflow panel

Figure 3-9. Output of the equilibration.

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).

Figure 3-10. Using the Extents tool.

  1. 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
  2. Click on the button to open the Periodic Structure Tool Window
  3. Go to Build Cell
  4. Click Extents
  5. Insert 1 for the +A, +B and +C directions
  6. 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

Figure 3-11. Extended view of the cell.

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.

Figure 3-12. The new, renamed cell.

  1. Click on the button to open the Periodic Structure Tool Window
  2. Choose Make P1 Cell
    • A new entry is added to the entry lista simplified view of the Project Table that allows you to perform basic operations such as selection and inclusion
  3. Rename the entry DME_largecell_1

Figure 3-13. The twelve new, renamed cells.

  1. 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.mae from the provided files and proceed with these outputs
  2. 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. 

Figure 3-14. Including a cell, opening the panel and loading in the structure.

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.

  1. 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
  2. Go to Tasks > Materials > Structure Builders > Slabs and Interfaces
  3. Click Load
    • DME_largecell_1 appears in the panel
  4. Check Define slab

Figure 3-15. Naming and running the job.

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.

  1. 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

 

  1. Close the Build Slabs and Interfaces panel

Figure 3-16. The twelve slabs.

After running the jobs or importing, you should have twelve slabs in your entry list that are nearly ready for surface tension calculations.

Figure 3-17. Prepare for MD. 

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:

  1. 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
  2. Go to Tasks > Materials > Classical Mechanics > MD Simulations > Prepare for Molecular Dynamics
  3. Change the Job name to md_prep_all_slabs
  4. 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.cms where n=1-4 directory. Repeat for DME and FA. There will be 12 files total.

Figure 3-18. The twelve slabs after prep for MD.

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.

Figure 4-1. Selecting the entries and opening the Surface Tension Calculation panel

  1. 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
  2. Go to Tasks > Materials > Classical Mechanics > Surface Tension > Surface Tension Calculations

Figure 4-2. Setting up the Surface Tension Calculation.

  1. In the Simulation protocols section, check Add relaxation step
  2. Increase the Simulation time to 1000 ps
  3. Increase the Trajectory recording interval to 20 ps
  4. 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.

  1. 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

Figure 4-3. The outputs in the entry list.

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.

Figure 4-4. Accessing the Surface Tension Results panel via the WAM button.

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:

  1. Use the WAM (workflow action menu) button () to open the Surface Tension Viewer panel for any of the twelve outputs
    • Alternatively, access the panel via Tasks > Materials > Classical Mechanics > Surface Tension > Surface Tension Results

Figure 4-5. Surface Tension Viewer panel.

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.

Figure 4-6. The Density Profile for one of the formamide runs.

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:

  1. 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
  2. Go to Tasks > Materials > Tools > Density Profile
  3. Click Analyze Workspace
  4. 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:

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