Skip to content

Latest commit

 

History

History
106 lines (69 loc) · 3.27 KB

add_meshgeom.rst

File metadata and controls

106 lines (69 loc) · 3.27 KB

Add Simple Mesh Geometry

Tutorial Overview

In this tutorial, a sphere will be added to the simulation around the diffusing molecules.

Initial Configuration

This tutorial builds upon what was done in :ref:`single_molecule_diffusion`. Either complete that tutorial yourself or use the single_molecule.blend file to get started.

Save the File with a New Name in Your Working Directory

  • Select File > Save As...
  • Change unimol_reactions.blend to add_meshgeom.blend
  • Click Save As Blender File button

Add a Sphere

  • Click the Model Objects button to open the Model Objects panel

./images/add_meshgeom/add_icosphere_model_object1.png

When you create new objects, Blender will place them at the location of the 3D cursor (cursor3d). To create a new sphere object at the origin, be sure to center the 3D cursor in all 3 dimensions. The Model Objects panel includes a convenient button for that purpose:

./images/add_meshgeom/add_icosphere_model_object2.png

  • With the cursor centered, click the icosphere button to create a new icosphere at the 3D cursor location

./images/add_meshgeom/add_icosphere_model_object3.png

  • The Add Ico Sphere options panel will appear in the lower left corner
  • Change Subdivisions to 3
  • Change Size to 0.5
  • Change each Location (X, Y, and Z) to 0.0 if it isn't set already.

./images/add_meshgeom/add_icosphere2.png

Add the new Sphere to the Model Objects

  • Click the "plus" sign (+) to the right of the Model Objects box
  • Expand the Icosphere Object Options panel
  • Select Wire from the drop-down menu (may originally show "Solid").

./images/add_meshgeom/model_objects.png

Release Molecules inside Sphere

  • Click the Molecule Placement button
  • Select Release_Site_1 (should already be selected)
  • Change Release Shape to Object/Region
  • Type "Icosphere" in the Object/Region field
  • Change Quantity to Release to 100

./images/add_meshgeom/sphere_release.png

Simulate the Model

  • Click the Run Simulation button

./images/shared/button_panels/run_panel_h.png

  • Click the Export & Run button

./images/single_molecule/run_sim.png

  • Wait for the simulation to complete
  • Press the "Reload Visualization Data" button to load the results of the simulation.

./images/shared/button_panels/reload_viz_h.png

View the Results

  • Press the "Play" (play) button below the time line

./images/add_meshgeom/diffuse_in_sphere.png

Save Your File

  • File > Save