Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
%3\cmas2d.exe %2%1


This executing execute the cmas2d.exe and provide the .dat as input file file.Appendix>'Classic' problemtype implementation>Using the problemtype with an example
In order to understand the way the calculating module works, simple problems with limited practical use have been chosen. Although these problems do not exemplify the full potential of the GiD program, the user may intuit their answers and, therefore, compare the predicted results with those obtained in the simulations.

  1. . Create a surface, for example from the menu Geometry->Create->Object->Polygon
  2. . Create a polygon with 5 sides, centered in the (0,0,0) and located in the XY plane (normal = 0,0,1) and whit radius=1.0

...

  1. . Load the problemtype: menu Data->Problem type->cmas2d.
  2. . Choose Data->Materials.
  3. . The materials window is opened. From the Materials menu in this window, choose the option Air.

...

  1. . Click Assign->Surfaces and select the surface. Press <Esc> when this step is finished.
  2. . Choose the Data->Conditions option. A window is opened in which the conditions of the problem should be entered.

...

  1. . Enter the value 1e3 in the Weight box. Click Assign and select the upper corner point. Press <Esc> when this step is finished.
  2. . Choose the Mesh->Generate option.
  3. . A window appears in which to enter the maximum element size for the mesh to be generated. Accept the default value and click OK. The mesh shown will be obtained.

Image Removed
The mesh of the object

  1. . Now the calculation may be initiated, but first the model must be saved (Files->Save), use 'example_cmas2d' as name for the model.
  2. . Choose the Calculate option from the Calculate menu to start the calculation module.
  3. . Wait until a box appears indicating the calculation has finished.

...

  1. . Select the option Files->Postprocess.
  2. . Select Window->View results.
  3. . A window appears from which to visualize the results. By default when changing to postprocesses mode no results is visualized.
  4. . From the View combo box in the View Results window, choose the Contour Fill option. A set of available results (only one for this case) are displayed. Image Removed
  5. . Now choose the MC-DISTANCE result and click Apply. A graphic representation of the calculation is obtained.

Image Removed
Visualizing the distance from the weighted center of mass to each point
The results shown on the screen reproduce those we anticipated at the outset of the problem: the center of mass of an object is not in its geometric center because a concentrated mass on the top. The .log file will provide the exact coordinates of the calculated mass center.