Versions Compared

Key

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

In this section, we are going to prepare the interface definition document, called cmas2d_customlib_default.spd.
This file is in XML format and contains all the definition of all the data necessary for the analysis.
First of all, let's see the final result:Image Removed

Image Added

Step by step. The first we see is Units. It's useful to set a global criteria, such as the geometry units, or the default units system.

...

Code Block
<condition n="Point_Weight" pn="Point Weight" ov="point" ovm="node" icon="darkorange-weight-18" groups_icon="constraintsyelowish-group" help="Concentrated mass">
    <value n="Weight" pn="Weight" v="0.0" unit_magnitude="M" units="kg" help="Specify the weight that you want to apply"/>
    <symbol proc="gid_groups_conds::draw_symbol_image weight-18.png" orientation="global"/>
</condition>

...


When we 'double click' on Point Weight, we can see this window, to assign a weight to a group, that can be created by clicking on the Select button. This will allow us to select some points in the geometry. The condition will be applied after selection the points and clicking the Ok button.


Image Removed Image Added

In the tree, below the 'Point Weight' entry, we find 'Properties', a folder or 'container', that contains 'Shells' and 'Materials'. It's code is:

...


There is a 'container', another 'condition' called Shells, and a special 'value' called material. In this section, we want to assign a material from the database to a surface (see 'ov' field on the condition).
By 'double clicking' on Shells, we get a window like this:Image Removed

Image Added

After selecting the surfaces you want to assign this condition, press the Ok button to confirm this assignment.

...