Simulation Setup

Prerequesits

  • Nanoscope Installation: Ensure that Nanoscope is installed on your system. If not, follow the Installation to set it up.

Input for Molecules

1. Input File Formats

The following file formats are supported as input for the first module of the nanoscope workflow, MolPrep:

  • .mol (e.g. as downloaded by MolView, see step 2)

  • .pbd

  • .mol2

  • .cml

Note

To ensure that existing files are properly formatted, or in case MolPrep crashes due to incorrect input format, we recommend to convert the input using openbabel:

obabel -i<your_input_format> -I<your_input_molecule> -oxyz -OMyMol.xyz

<your_input_format> can be any format accepted by openbabel, such as mol2, pdb, xyz, or simply a smiles-code or InChI, with <your_input_molecule> being the filename of the input file or simply the string for smiles or InChI. Check the Open Babel User Guide for reference.

Note

If you generated an initial 3D-structure from smiles or InChI, double check that the initial conformation is reasonable, e. g. by visualization with jmol.

2. Drawing Molecules from Scratch

If you don’t have any input for your molecule yet, a good starting point are drawing tools such as MolView. In the following we use MolView as an example.

  1. Open MolView in your web browser.

  2. Design a molecule of your choice, e.g. a biphenyl molecule.

  3. Use the clean and the 2D to 3D buttons to generate a 3D structure of the molecule.

  4. In MolView, download the 3D molecule file with Tools -> MOL file

    Design a molecule with MolView

    Design a molecule with MolView

Workflow setup and submission

1. SimStack

Open SimStack on your local PC using

micromamba activate simstack
simstack

2. Design your workflow

Drag&Drop the modules MolPrep, Deposit and ESAnalysis from the top left panel into the middle workflow panel into a linear workflow and arrange as depicted below. Double click on each module to adapt settings and allocate resources for each simulation step.

Construct the workflow with drag&drop

Note

If you are unfamiliar with the setup of workflows, the Quick Start Guide may be a good starting point.

Workflow options

Click the link below to navigate to the workflow of your choice:

a. Simulation of a Pristine Layer

To simulate a pristine layer we construct a linear worklfow in SimStack comprising MolPrep, Deposit3 and ESAnalysis, as depicted in the above figure.

MolPrep Icon

MolPrep:

Load an input file from your hard drive using the button right next to the input field Input Molecule File.

Deposit Icon

Deposit:

  1. Adjust settings in the Simulation Parameters Tab as described in Settings and Options, specifically box size or number of molecules, depending on your purpose.

  2. Switch to the Molecules Tab. Use the rightmost buttons next to the Molecule and Forcefield input fields to load MolPrep/outputs/molecule.pdb and MolPrep/outputs/molecule_forcefield.spf, respectively.

ESAnalysis Icon

ESAnalysis:

  1. Use the rightmost button next to the Morphology input field to load Deposit3/outputs/structurePBC.cml.

  2. Depending on the required output, adjust the Compute X options in the General Settings panel

  3. Depending on the settings of 2., adapt Core Shell definition and Shell for Disorder and Couplings

  4. Switch to the Engines Tab and set Memory per CPU (MB).

b. Simulation of a Guest-Host System

To simulate a guest-host systems, we need to combine two molecules in a single deposition:

  1. Use a Parallel control from the Controls panel (bottom left) and click Add additional parallel pane.

  2. Add one MolPrep module to each of the panes.

  3. Add Deposit3 and ESAnalysis after the Parallel control.

Your workflow should look like this:

Construct the workflow with drag&drop
MolPrep Icon

MolPrep:

Load the input (mol2) for the two molecules you would like to combine in the thin film into the two MolPrep modules.

Deposit Icon

Deposit:

  1. Adjust settings in the Simulation Parameters Tab as described in Settings and Options, specifically box size or number of molecules, depending on your purpose.

  2. Switch to the Molecules Tab.

    1. Press the + button to add the input for a second molecule.

    2. First molecule: use the rightmost buttons next to the Molecule and Forcefield input fields to load Parallel/0/MolPrep/outputs/molecule.pdb and Parallel/0/MolPrep/outputs/molecule_forcefield.spf, respectively.

    3. Second molecule: use the rightmost buttons next to the Molecule and Forcefield input fields to load Parallel/1/MolPrep/outputs/molecule.pdb and Parallel/1/MolPrep/outputs/molecule_forcefield.spf, respectively. Note the `1` in contrast to `0` in step b.

    4. Adjust concentrations for your purpose.

ESAnalysis Icon

ESAnalysis:

  1. Use the rightmost button next to the Morphology input field to load Deposit3/outputs/structurePBC.cml.

  2. Depending on the required output, adjust the Compute X options in the General Settings panel

  3. Depending on the settings of 2., adapt the following:

    Core Shell:

    To compute absolute IP and EA in a mixed morphology for all species with sufficient accuracy, we recommend to set

    • Shell size defined by: Number of Molecules of each Type

    • Number of molecules: >= 2

    Alternatively, if you are interested in the IP or EA of a few specific guest molecules in a host matrix, you can provide the list of molecule IDs. Note that for this purpose, you need to design the workflow up to Deposit, identify the respecitve IDs in the resulting structurePBC.cml and subsequently run ESAnalysis in a separate workflow with structurePBC.cml loaded from the hard drive.

    Shell for Disorder and Couplings:

    Accuracy of computed disorder depends heavily on the sample size. Keep in mind that for low concentrations, a large total number of molecules may be required in the disorder shell.

  4. Switch to the Engines Tab and set Memory per CPU (MB).

c. Simulation of a Multi-Layer Films and Interfaces

For an interface, we use the Parallel control to compute input for all molecules, but use multiple Deposit modules in sequence to deposit materials layer by layer:

  1. Use a Parallel control from the Controls panel (bottom left) and click Add additional parallel pane. Add as many materials as you need in your multi-layer stack.

  2. Add one MolPrep module to each of the panes.

  3. Add multiple Deposit3 modules after the Parallel control in linear sequence.

  4. Add ESAnalysis after the last Deposit3 module.

Your workflow should look like this:

Construct the workflow with drag&drop
MolPrep Icon

MolPrep:

Load the input (mol2) for the two molecules you would like to combine in the thin film into the two MolPrep modules.

Deposit Icon

Deposit modules:

  1. Adjust settings in the Simulation Parameters Tab as described in Settings and Options. Specifically, set the same total box height for all deposition steps.

    Warning

    All Deposit modules must have the same box dimensions. Make sure that, for all deposition steps:

    • X [A] and Y [A] are the same value

    • Set total box height for multilayer is enabled

    • Total Z [A] is the same value

  2. Switch to the Molecules Tab. Use the rightmost buttons next to the Molecule and Forcefield input fields to load Parallel/X/MolPrep/outputs/molecule.pdb and Parallel/X/MolPrep/outputs/molecule_forcefield.spf, respectively. Adjust X depending on which material you would like to have in your layer.

  3. For all Deposit modules except the first:

    1. Enable Restart from existing morphology.

    2. Use the button rightmost of the Restartfile input field to load the restartfile from the preceeding Deposit module, e. g. Deposit3/outputs/restartfile.zip. See the above figure for reference.

ESAnalysis Icon

ESAnalysis:

  1. Use the rightmost button next to the Morphology input field to load Deposit3_1/outputs/structurePBC.cml. If you have more than two layers, substitute Deposit3_1 with the last Deposit3 module in line.

  2. Depending on the required output, adjust the Compute X options in the General Settings panel

  3. Depending on the settings of 2., adapt the following:

    Core Shell:

    To compute absolute IP and EA in a mixed morphology for all species with sufficient accuracy, we recommend to set

    • Shell size defined by: Number of Molecules of each Type

    • Number of molecules: >= 2

    Alternatively, if you are interested in the IP or EA of a few specific molecules, e.g. near an interface, you can provide the list of molecule IDs. Note that for this purpose, you need to design the workflow up to Deposit, identify the respecitve IDs in the resulting structurePBC.cml and subsequently run ESAnalysis in a separate workflow with structurePBC.cml loaded from the hard drive.

    Shell for Disorder and Couplings:

    The disorder shell is defined as N molecules closest to the center of the morphology. Depending on your layer setup, not all species may be well represented. We recommend to compute disorder in separate morphologies layer by layer.

  4. Switch to the Engines Tab and set Memory per CPU (MB)

d. SOP/GSP analysis

To compute the spontaneous orientation potential (SOP), also called giant surface potential (GSP) of a deposited thin film, add the GSPAnalysis module as depicted in the figure below. An example study is available in the publications: Built-In Potentials Induced by Molecular Order in Amorphous Organic Thin Films

Workflow for GSP analysis

In the GSPAnalysis WaNo adapt the following settings:

  • Morphology: load Deposit3/outputs/structure.cml (note: not structurePBC.cml from the preceding Deposit module

  • Forcefield: load MolPrep/outputs/molecule_forcefield.spf from the preceding MolPrep module

  • BoxSize: set the box size of your morphology in x- and y-direction, i.e. two times the settings Lx or Ly set in Deposit.

Note

GSPAnalysis only works for morphologies with Lx=Ly

Note

You can run the GSPAnalysis not only on pristine morphologies, but also on mixed systems. In this case, provide the merged.spf file from the Deposit module as input for Forcefield.

Note

In the above setup, vacuum ESP charges from MolPrep are used to compute GSP. You can also compute GSP based on charges equilibrated for the full morphology. A tutorial on how to do this will be supplied shortly.

3. Save and submit the workflow

  1. Save the workflow with Ctrl+S or by clicking File -> Save or File -> Save As...

  2. Connect to your resource using the Connect button in the top right of SimStack. Wait for the button to become green.

  3. Submit the workflow wiht Ctrl+R or by clicking Run -> Run.

Monitor progress and view results

You can monitor the progress of your workflow with the Jobs & Workflows tab in the right panel of SimStack:

  1. Navigate to the Jobs & Workflows tab on the right panel.

  2. Expand Workflows (double click) and locate your submitted workflow (identified by timestamp if necessary).

  3. Monitor the status of the workflow and the contained modules:

    • Green: Completed successfully

    • Yellow: Currently running

    • Red: Encountered an error

  4. Double-click on a module to view logs, output files, and detailed status.

Note

Modules are only listed in this view once they have been started, i.e. when the predecessing module was finished successfully.

progress_monitoring

Once modules have completed successfully, you can download and view results by double-clicking on the modules and then the respective files in the Jobs & Workflows tab. Refer to Computed Properties for reference.