You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 17 Next »

Step 3: Mesh

Choose Number of Subdivisions

After the geometry has been set, we need to divide the geometry into several subdivisions, called elements.

First, we need to enter the number of divisions for each side. This specifies the number of elements that will be created along each side. Opposite sides need to have an equal number of divisions. So, in the above schematic of vertex positions, sides 1 and 3 should have an equal number of divisions as should sides 2 and 4. (Notice that sides are numbered in the same counterclockwise order as vertices, starting at the first vertex.)

It is important to note that the number of subdivisions can greatly affect the solution. If too few subdivisions are used the program's output might not represent the true state of stress well; if too many subdivisions are used, the program may run for hours or fail. Because of the simplicity of this problem, we do not need to use a very fine mesh: we'll use 6 divisions for each side. So enter 6 for Side 1-3 divs as well as Side 2-4 divs (see figure below).

Click on Save SD to create the subdomain. Since we have only one subdomain, select No in reponse to "Do you want to add another subdomain?". A dialog box pops up asking "Do you want to review the mesh coordinates"? This is the point at which you can review and correct any mistakes in creating the subdomain. Select Yes. Make sure the vertex positions have been entered correctly and click on Accept SD.

You will get a message saying that there are "0 internal boundaries". This is so because we have only one subdomain. In the Mesh Base Name window, enter rect as the Filename and click OK. Check that the file rect_mesh.dat has been saved in your working folder. The finite-element mesh is displayed in the MappingMeshTool GUI.

This completes mesh creation. Click on Mesh Complete. This puts us back in the main redAnTS GUI. We see under Current Settings that rect_mesh.dat is the mesh file we are working with. To plot the mesh in this GUI, click on the drop-down menu under Plotting and select Mesh.

Let's keep the fun going by moving on to Step 4 where we will specify inputs such as material properties and boundary conditions.

Go to Step 4: Setup (Physics)

See and rate the complete Learning Module

Go to all MATLAB Learning Modules

  • No labels