Difference between revisions of "Getting Started with Simmodeler"

From PHASTA Wiki
Jump to: navigation, search
(Moving on - Preping for Chef)
(Next Steps - Preping for Chef)
Line 37: Line 37:
  
 
==Next Steps  -  Preping for Chef==
 
==Next Steps  -  Preping for Chef==
Once the BCs are successfully implemented, you have saved out a model file with these BCs (<code>.smd</code>), and have generated your grid (<code>.sms</code> file), your are ready to prepare the grid for Chef. To get started on this step, head over to [[Prepping the Grid for Chef]].
+
Once the BCs are successfully implemented, you have saved out a model file with these BCs (<code>.smd</code>), and have generated and saved your mesh grid (<code>.sms</code> file), your are ready to prepare the grid for Chef. To get started on this step, head over to [[Prepping the Grid for Chef]].

Revision as of 10:58, 1 June 2021

Goal of using SimModeler

In this section you will learn how to create a mesh and apply boundary and initial conditions to your translated-model.smd model file from the previous step. You will save both the model and mesh containing the boundary/initial conditions under new file names, which we will later prepare to be passed into Chef.

Launching the Software

First, tunnel to viz002 or viz003 using vglconnect -s viz00x.

Then, set your environment as shown in the convert step video.

Finally, run vglrun simmodeler in your terminal to launch simmodeler.

Accessing the User Manual

When launching simmodeler, there is a blue question mark at the top right of the GUI. Click it and then click "launch manual" to open the user manual associated with the version of simmodeler you are using. This gives detailed descriptions of the various attributes and how they are defined to generate the desired mesh.

Surface Meshing

2D and 1D Boundary Layers

To generate a proper surface mesh, it is important that both 2D and 1D boundary layers are implemented. Note that a 2D Boundary layer is defined on a surface and a 1D Boundary layer is defined on a line. The linked video shows both 2D and 1D boundary layers being applied to an airfoil and the mesh that results from these applied attributes.

Mesh Size and Face Extrusions

Two more useful attributes when generating proper surface meshes are defining Mesh Sizes and Face Extrusions on your desired surfaces. Face Extrusions are useful when adding refinement over curved surfaces. This process is well covered in this video.

Volume Meshing

3D Boundary Layers

One of the most important aspects of volume mesh development is generating proper 3D boundary layers. This process is well outlined here from around 8:30 to 16:00. Note that all mesh attributes are set up under the "Meshing" tab.

Mesh Refinement Zones

Mesh refinement zones are useful for increasing the grid density within certain volumes of your simulation domain. The linked mesh refinement tutorial will briefly walk you through how these are implemented.

Applying Boundary and Initial Conditions

A nice description of each of the common BCs used in both the Compressible and Incompressible builds of PHASTA is provided here. The same video as the volume meshing step shows how to apply boundary conditions for an incompressible case starting at around 16:20. This linked video also shows how the BCs are applied for an incompressible case. Note that the case needs to be called geom as is done and explained in the tutorial video. Once you are done applying the BC's, it is very important that you save out the model .smd file with these applied boundary conditions.

Saving Out the Mesh

Once you are satisfied with your mesh refinement and have applied boundary/initial conditions to your model, you are ready to generate and save out the final mesh. In the meshing tab, you will want to click Generate Mesh. The default settings will suffice for proper mesh generation. If your grid is large, this step can take some time. Once the grid is finished generating, you will want to save out the generated .sms file as you will need it for the next step in the process.

Next Steps - Preping for Chef

Once the BCs are successfully implemented, you have saved out a model file with these BCs (.smd), and have generated and saved your mesh grid (.sms file), your are ready to prepare the grid for Chef. To get started on this step, head over to Prepping the Grid for Chef.