Creating a Project

_images/cmb2d-menu.png

Most menu interactions will be with the CMB2D project menu, which has standard features to open ModelBuilder projects, create projects, save projects, and close projects. It also includes features specific to this tutorial for creating and editing project resources and using them to run the analysis code. For persistent storage, project resource files are stored in a user-specified directory on the available filesystem.

1. Create a Project

Although each of the features described in the following sections can be carried out in a standalone fashion, ModelBuilder-2D includes a project feature to simplify the data management required by end users. To begin, go to the CMB2D menu and select the New Project… item. In response, modelbuilder displays a file system dialog for selecting a directory to use for storing project data. Use the “New Folder” icon to create a project directory in a convenient location, for example, <home-directory>/modelbuilder/projects/cmb2d-example. In practice, you also use an existing directory — if it contains any files or subdirectories, modelbuilder will prompt you to confirm that it is OK to delete the contents of that directory before proceeding.

Once you click the OK button, a second dialog will appear with a few options. For now, just click the Apply button. When that dialog closes, modelbuilder configures the project with an attribute resource for specifying the analysis problem (material properties, displacement constraints, and loads). The user interface for editing these properties is displayed in the Attributes Editor tab. The contents of the Attribute Editor – tabs and editing fields – are specified by XML (text) file read in my by modelbuilder when the project is created. The XML template file used in this tutorial can be found under the installed ModelBuilder-2D directory. Look for the filename MinimalFEM.sbt. More details on the file format can be found at this Template File Syntax link.

_images/new-project.png

2. Set RenderView to 2D mode

Be default, ModelBuilder applications display geometric models in three dimensions. Because we will be using two-dimensional geometry throughout this tutorial, make sure that the render view is set to its 2D interaction mode. To do this, look in the RenderView toolbar for a button labeled either 3D or 2D. If the label is 3D click it once to toggle it to 2D.

_images/interaction-mode.png