Nanoemulsions with Automated DPD Parameterization
Tutorial Created with Software Release: 2026-1
Topics: Pharmaceutical Formulations
Methodology: Coarse-Grained Modeling
Products Used: Desmond , MS CG , MS Maestro
|
1.4 GB |
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 how to automatically build a coarse-grained force field for dissipative particle dynamics (DPD) from a nanoemulsions system with water and perform a molecular dynamics simulation.
Tutorial Content
1. Introduction to Automated DPD Parameterization for Complex Formulations
Nanoemulsions can be effective formulations for delivering hydrophobic/lipid soluble active pharmaceutical ingredients. Specifically, a nanoemulsion is an emulsion which typically contains two immiscible liquid phases, one or more surfactants and one or more co-surfactants in which the particles of the dispersed phase have diameters of tens of nm up to 1 µm (IUPAC). Coarse-grained techniques are commonly used for various complex formulations, like nanoemulsions, particularly when the system sizes or simulation times become too large to use atomistic models.
A coarse-grained model represents molecules or portions of molecules using particles (sometimes referred to as beads or sites), each of which corresponds to a number of atoms. The desired mapping of the all-atom system to the coarse-grained can be determined by evaluation of model goals and the underlying molecular system. To build coarse-grained models, the desired mapping must be known, as well as all associated parameters. With respect to defining the force-field parameters, there are many effective strategies, but in general, parameterizing can be a challenging task.
In this tutorial, we will learn to use the Coarse-Grained Force Field Builder panel in Materials Science Maestro to automatically build a coarse-grained force field for dissipative particle dynamics, DPD (see the References for general background on DPD). Then we will construct a hydrated system using the Disordered System Builder panel and perform a molecular dynamics (MD) simulation using the MD Multistage Workflow panel. Specifically, we will study a formulation of candesartan (API), kolliphor (a non-ionic emulsifier), capmul PG-8 (emulsifier) and transcutol (solvent), with water, to study aggregation and morphology in solution. This system models a droplet broken up from an emulsion diluted in the digestive tract, facilitating the solubilization of the drug and slowly releasing it for absorption.
In addition to the panel help documentation, we recommend visiting the overview of Coarse-Grained Modeling in the Materials Science Suite to read more about Schrödinger solutions for coarse-grained modeling.
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 saved, the project is automatically saved each time a change is made.
Structures can be built in MS Maestro or can be imported using File > Import Structures (or drag-and-dropped), 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 input and results files are included for running jobs or examining output. Download the zip file here: schrodinger.com/sites/default/files/s3/release/current/Tutorials/zip/cg_nanoemulsions.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 nanoemulsions_tutorial, click Save
- The project is now named
nanoemulsions_tutorial.prj
- The project is now named
- Go to File > Import Structures
- Navigate to where you downloaded the provided tutorial files, choose
input_molecules.maeand 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 five entries
Note: Kolliphor was prepared with the Polymer Builder and the rest of the entries were sketched using the 2D Sketcher.
3. Using the Coarse-Grained Force Field Builder
We will now use the Coarse-Grained Force Field Builder panel to build a coarse-grained force field for DPD and iteratively fit parameters for coarse-grained simulations to reproduce the behavior of the all-atom simulation.
- 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 entries in the entry list
- Go to Tasks > Materials > Classical Mechanics > Coarse Grain Models > Coarse-Grained Force Field Builder
- The Coarse-Grained Force Field Builder panel opens
- Click Load Selected Entries
- The five selected structures are loaded in the panel
- In the Simulation section, set the Simulation time to 40 ns and the Temperature to 310.15 K
- 310.15 K is the body temperature
- Set the Initial density to 0.1 g/cm3
- Set the Number of molecules to 4127
- Set the number of kolliphor_EL molecules to 15
- Set the number of candesartan molecules to 30
- Set the number of transcutol_P molecules to 50
- Set the number of capmul_PG-8 molecules to 30
- Set the number of water molecules to 4002
- Go to the Map Atoms tab
Note: the composition used here is typical for this type of formulation. The goal is to derive force field parameters on a relatively small system - here we will get a system of ~ 20K atoms - and scale to bigger systems when running DPD simulations. Nevertheless, system size and simulation length for the all-atom run should be set based on the type of system and property of interest, making sure there is enough sampling for the parametrization.
- Check Use automated CG mapping
- The automated mapping algorithm will define particles starting from the given all-atom structures given a target particle size (defined by the number of heavy atoms included in a particle) provided by the user. The algorithm penalizes particle definitions that split functional groups and rings as well as penalizes deviations from the target particle size.
- Manual particle definitions via SMARTS may be inserted in tandem with the automatic mapping.
- Set the Target particle size to 6
- Click Initial Auto Map
- Manually update the water particle to be mapped as 6 molecules to 1 particle
- Since we have a mixture of particle types and we may want to do a number of studies it is helpful to define a reference particle type, typically the solvent particle type, which is the most present in the system (in this case water).
- Set the particle volume to be 180.69 Å3/particle
- At 310.15 K (body temperature), the density of water is 0.99337 g/mL. The volume of a water molecule is given by (molecular weight x 1024 ) / (density * Avogadro’s Number) = 30.115 Å3. Our reference volume for particles for the DPD simulation is therefore 6 x 30.115 = 180.69 Å3 (the mapping scheme that we will use intends to keep particles within a volume range that works well for automatic fitting, ~60-160% of this volume).
- Click Show Mapped Molecules
- This opens a new dialog panel while placing the CG structure in the workspace
- Choose Mapping on all-atom system
- The overlapping atoms in the CG structure are displayed in CPK style
- Click Save Structure to close the panel
This option lets us view the CG mapping scheme to the all-atom structure. We can change the color of the beads, and the structure will update accordingly. Upon closing the dialog, the loaded structure is removed from the workspace and the original structure reappears.
Note: If you are not satisfied with the mapping suggested by the auto-mapping, you can manually modify the particle definitions and refine the mapping using your definitions as pre-defined mapping during the auto-mapping and the Redo Auto Map option.
- Go to the FF Parameters tab
The FF (Force Field) Parameters tab is used to specify the parameters that are to be included in the coarse-grained simulation, provide initial values, and fix the values of parameters that do not need to be adjusted.
- Click Populate Using Structure
- Parameter types are added based on the all-atom disordered system structure
- Go to the Nonbonded sub-tab
- Change the Cutoff distance to 8.1535
- The cutoff distance is the primary length scale in a DPD simulation. The value chosen should be influenced by the reduced density and the particle volumes, which are displayed on the Map Atoms tab. The cutoff distance should be close to the value of [(reduced density)*(particle volume)]⅓ for a chosen particle in the system. In this case the W volume was used, as water is our reference particle type.
Note: The reduced density is the number of particles within a volume unit of size (cutoff distance)3. The default value of the reduced density, 3.0, is sufficient for the system herein. Larger values of reduced density will increase the accuracy of a DPD model, in particular when fine-grained mapping schemes are used, but at the expense of increased computational intensity. Reduced values smaller than 3.0 are not recommended. Most studies employ values between 3.0 and 5.0.
The CG (Coarse-Grained) Simulation tab is used to specify the conditions for the coarse-grained production simulations used for fitting the force-field parameters. For each iteration, the CG system is relaxed using a Brownie minimization step, followed by simulations of 100 ps at 10 K and 100 ps at 300 K in the NVT ensemble. Subsequently, the production simulation is performed in the NVT ensemble with the conditions specified in this tab:
- Go to the CG Simulation tab
- Set the Simulation time to 40 ns
- Set the Temperature to 310.15 K
The Fitting tab is used to specify the parameters for fitting the force field from the coarse-grained simulation results.
- Go to the Fitting tab
- Change the Iterations to 80
- Note in more complex systems, the fitting will benefit from more iterations
- Change the Job name to cgff_builder_emulsion
- Close the Coarse-Grained Force Field Builder panel and let’s proceed with pre-generated files
4. Force Field Parameterization
In this section, we will first use the Coarse Grain Forcefield Builder Viewer panel to analyze the quality of the automated fitting procedure. Then we will save the obtained force field parameters in the software installation, for later use in DPD simulations.
If you ran the job, the output will automatically incorporate, producing an entry titled amorphous_cg. Otherwise:
- To import the results, go to File > Import Structures, navigate to the provided tutorial files and choose
Section_04 > cgff_builder_emulsion > cgff_builder_emulsion-out.cms- An entry is added to the entry list titled amorphous_cg
- The entry contains the final cell from the final coarse-grained simulation
We can assess the quality of the fit using the Coarse Grain Forcefield Builder viewer panel.
- Use the Workflow Action Menu (WAM) button (
) or go to Tasks > Materials > Classical Mechanics > Coarse Grain Models > Coarse-Grained Force Field Builder Results
- The Coarse Grain Forcefield Builder Viewer panel opens
- If the panel is not populated by default, click Load from Workspace
The Builder Data tab contains information about the input parameters.
- Go to the Fit Quality tab
The fit quality tab provides R-squared values for the quality of the fit as a function of iteration. It also contains a tab for viewing plots.
The nonbonds are displayed first. The data describe the pair distribution functions and their integrals for each non-bonded interaction in the CG system.
This data helps you understand how well the non-bonded parameters in the CG model reproduce the non-bonded interactions in the all-atom system. The coefficient of determination (R2), can be used to flag those interactions that might need a closer investigation and potentially an improvement.To understand if the fit is good enough, it is always best to check how the radial distribution functions (RDFs) and their integrals compare between atomistic and DPD runs.. They are available under the Plot Tab. Comparison between the RDFs is useful to understand if the frequency of interaction between the defined particles in the atomistic run is enough or if an improvement in the sampling is needed. Comparison between the integrals of the RDF at the cutoff value is more indicative of the quality of the fitting.
Note: Changing the Iterations to display and Number of profiles to display options at the bottom of the panel can change the granularity of the data output.
To learn more about analyzing the force field parameters see the Automated Dissipative Particle Dynamics (DPD) Parametrization tutorial.
- Set the Number of profiles to display to 4
- This will make the results more user friendly to view
- Click Save Forcefield Data…
- Name the new forcefield nanoemulsion
- You can also merge with a pre-existing force field if you are improving on a past effort
- Click OK to close the panel
- Close the Coarse Grain Forcefield Builder Viewer panel once finished
The cgff_builder_emulsion-out_cgff.json file contains the final force field parameters from the automated procedure. It can be accessed from the output directory.
The output directory also contains a file mapped_cg_structures.maegz with individual input structures for the separate system components. These can be used to construct new systems of various concentrations and we will import this file in the next section.
The parameterized force-field can now be used when performing MD simulations.
Alternatively, instead of saving the data from the panel, the .json file can be placed in $HOME/.schrodinger/matsci_templates/coarse_grain_force_field_parameters (Linux/MacOS) or $HOME/AppData/Local/Schrodinger/matsci_templates/coarse_grain_force_field_parameters (Windows) where it can be employed for other systems containing these coarse-grained monomers. The Disordered System Builder panel can be used to generate new systems, and then the Coarse-Grained Force Field Assignment panel can reference the .json file for assigning the parameters.
The system studied here is neutral, but very often drug molecules have pH-dependent behavior and one may want to simulate a protonated/deprotonated version of the drug that has a positive or negative charge. Formal charges are normally treated as implicit in DPD, which means that formal charges are present in the reference atomistic run, and used to derive some of the force field parameters, but electrostatic interactions are not explicitly included in the DPD simulation.
If you are setting up a Coarse Grained Force Field Builder job that includes drug molecules in the ionic state, make sure that the atomistic system is charge neutral by including the correct number of counter-ions. If you are using the Auto Map, the Treat small ions implicitly option will be checked by default. This option makes sure that small ions (i.e. with number of heavy atoms less or equal to the target mapping size divided by two) will not be included in any particle definition in the mapping phase. In the Particle tab under FF Parameters, you can assign implicit formal charges (only integer values are allowed) to those particles that carry the protonated/deprotonated charged group. These formal charges will be used in the fitting procedure, to assign the non-bonded self-interaction parameters.
There is the possibility to explicitly treat formal charges in DPD (i.e. assign formal charges to specific particles and have an electrostatic interaction term) by switching to the Explicit charge type in the Particle tab in the Coarse Grained Force Field Builder.
5. System Building and Force Field Assignment
Now that we have our force field parameterized, we can construct a hydrated system using the Disordered System Builder panel. Then we will assign our new force field to our constructed system.
Before constructing a hydrated system, we need coarse-grained entries of the individual components in the entry list.
- Go to File > Import Structures
- Navigate to where you downloaded the provided tutorial files, choose
Section_04 > cgff_builder_emulsion > mapped_cg_structures.maegzand 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 five entries
- The entry names correspond to the mapping nomenclature
- Rename the entries to better correspond to the components name for ease
- (A1)(B1)(C1)(D1)(E1) → candesartan_cg
- (A4)(B4) → capmul_PG-8_cg
- (A2)(B2) → transcutol_P_cg
- (W) → water_cg
- (A3)3(B3)3(C3)3(D3)18(E3) → kolliphor_el_cg
- Ensure that the entire mapped_cg_structures entry group is 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 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
- The selected components are by default loaded into the panel
- Click OK to any warnings about the force field
- We will apply the force field after constructing the system
- For Initial state, choose Tangled chain
- Change Number of molecules to 143045
- In the Components table, change the Molecules for each component to:
- candesartan_cg → 65
- capmul_PG-8_cg → 7823
- transcutol_P_cg → 212
- water_cg → 134533
- kolliphor_el_cg → 412
- Select Create new cubic PBC for the Periodic Boundary Conditions (PBC)
- Go to the Disorder tab
- Uncheck Color molecules by component
- Set the Initial density to 0.200
- Change the Job name to disordered_system_hydrated_emulsion
- Adjust the job settings (
) as needed
- This job requires a CPU host and can be completed in about 1 day
- If you would like to run the job yourself, click Run. Otherwise, we’ll proceed with pre-generated files.
- Close the Disordered System Builder panel
- To import the results, go to File > Import Structures, navigate to the provided tutorial files and choose
Section_05 > disordered_system_hydrated_emulsion > disordered_system_hydrated_emulsion_amorphous.maegz.
The Figure shows the output of the Disordered System builder with water particles hidden.
Remember that these coarse-grained systems have not yet been assigned a force field. We must do so now with the Coarse-Grained Force Field Assignment panel
- Go to Tasks > Materials > Classical Mechanics > Coarse Grain Models > Coarse-Grained Force Field Assignment
- The Coarse-Grained Force Field Assignment panel opens
Note: Please BE PATIENT when waiting for the panel to open. It must read all of the coarse-grained particles into the panel and can take several minutes.
- Select nanoemulsion for Import force field
- Set the Location to Local
- Click Import to apply the force field to the system
- Click OK to any questions, we will reconcile them next
Scan through the Site, Bond, Angle and Nonbond tabs. All of the parameters from our fitting procedure populate the panel.
- Go to the Nonbond tab
- Ensure that the Reduced Density is set to 3.000 (per our original decision) and the cutoff distance set to 8.1535
- Click Run
- Click continue if any messages appear
- Again, it can take up to a minute to apply the force field and then the panel will close automatically
- Feel free to rename the Desmond input file that will be created to something shorter
A new entry will appear in the entry list. This entry is ready for a MD simulation.
Note: The cell parameters have been automatically rescaled by the Coarse-Grained Force Field Assignment panel, to match the target Reduced Density of 3.
6. Running and Analyzing Molecular Dynamics Simulations
In this section, we will perform and analyze a molecular dynamics simulation on our hydrated nanoemulsion system using the MD Multistage Workflow panel.
- Use the WAM (workflow action menu) button (
) to open the MD Multistage Workflow panel
- Alternatively, access the panel via Tasks > Materials > Classical Mechanics > MD Simulations > MD Multistage Workflow
- The MD Multistage Workflow panel opens
- Check Relaxation protocol and choose Repulsive harmonic
- Change the next stage (Stage 4) to DPD Molecular Dynamics
- When running simulations with repulsive potentials like in DPD, the NVT ensemble ensures that the target Reduced Density is maintained.
- Set the Simulation time (ns) to 250
- Set the Trajectory Recording interval (ps) to 1000
- This will generate about 250 frames in the trajectory
- Set the Temperature to 310.15
- Set the Time step (fs) to 10
- Change the Job name to md_hydrated emulsion
- Adjust the job settings (
) as needed
- This job requires a GPU host and can be completed in about 10 hours
- If you would like to run the job yourself, click Run. Otherwise, we’ll proceed with pre-generated files.
- Close the MD Multistage Workflow panel
If you ran the job, the output will automatically incorporate, producing an entry. Otherwise:
- To import the results, go to File > Import Structures, navigate to the provided tutorial files and choose
Section_06 > md_hydrated_emulsion > md_hydrated_emulsion-out.cms
- Double click the blue T trajectory button
- Due to the size of the system the trajectory could take a moment to load
- Click the play button to view the trajectory
The trajectory shows that initially the system is a homogeneous mixture but then as the simulation progresses candesartan and kolliphor EL migrate together. Feel free to explore the trajectory and the system.
7. Conclusions and References
In this tutorial, we learned how to automatically build a coarse-grained force field for dissipative particle dynamics (DPD) from a nanoemulsions system with water and perform a molecular dynamics simulation.
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:
- Automated Dissipative Particle Dynamics (DPD) Parametrization
- Ibuprofen Cyclodextrin Inclusion Complexes with the Martini Coarse-Grained Force Field
- Disordered System Building and Molecular Dynamics Multistage Workflows
- Molecular Dynamics Simulations for Active Pharmaceutical Ingredient (API) Miscibility
- Cluster Analysis
- Glass Transition Temperatures for Active Pharmaceutical Ingredients (APIs)
- Crystal Morphology
- Building a Coarse-Grained Skin Model using Martini Force Field
- Building a Coarse-Grained Polymer Model using Dissipative Particle Dynamics
- Building a Coarse-Grained Surfactant Model with Martini Force Field
- Creating a Coarse-Grained Model for Protein Formulations
For further reading:
- Coarse-Grained Modeling in the Materials Science Suite
- Coarse-Grained Force Field Builder documentation
- Dissipative Particle Dynamics: Bridging the Gap Between Atomistic and Mesoscopic Simulation. DOI:10.1063/1.474784
8. 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