RPRISMregular prism volume
7.2. Setting Element Attributes
Before you generate a mesh of nodes and elements, you must first define the appropriate element at-tributes. That is, you must specify the following:
• The element type
• Real constant set (usually comprising the element's geometric properties, such as thickness or cross-sectional area)
• Material properties set (such as Young's modulus, thermal conductivity, etc.)
• Element coordinate system
• Section ID (current-technology beam elements only--see Generating a Beam Mesh With Orientation Nodes (p. 137))
For beam meshing only, you may also specify orientation keypoints as attributes of a line.Generating a Beam Mesh With Orientation Nodes (p. 137) describes beam meshing in detail.
7.2.1. Creating Tables of Element Attributes
To assign attributes to your elements, you must first build tables of element attributes. Typical models include element types (ET command or menu path Main Menu> Preprocessor> Element Type>
Add/Edit/Delete), real constants (R command or menu path Main Menu> Preprocessor> Real Con-stants), and material properties (MP and TB family of commands, menu path Main Menu> Prepro-cessor> Material Props> material option).
A table of coordinate systems can also be assembled using commands such as LOCAL,CLOCAL, etc.
(Utility Menu> WorkPlane> Local Coordinate Systems> Create Local CS> option). This table can be used to assign element coordinate systems to elements. (Not all element types can be assigned a coordinate system in this manner. See Element Coordinate Systems (p. 23) of this manual for information about element coordinate systems. For element descriptions, see the Element Reference.)
For beam meshing with BEAM188 or BEAM189 elements, you can build a table of sections using the SECTYPE and SECDATA commands (Main Menu> Preprocessor> Sections).
Orientation keypoints are attributes of a line; they are not element attributes. You cannot create tables of orientation keypoints. See Assigning Element Attributes Before Meshing (p. 95) for more information.
The element attribute tables described above can be visualized as shown in Figure 7.2: Element Attribute Tables (p. 95). (For more information on creating your element attribute tables, see Getting Started in the Basic Analysis Guide.)
Figure 7.2: Element Attribute Tables
You can review the contents of the element type, real constant, and material tables by issuing the ET-LIST (TYPE table),RLIST (REAL table), or MPLIST (MAT table) commands (or by choosing the equivalent menu path Utility Menu> List> Properties> property type). You can review the coordinate system table by issuing CSLIST (Utility Menu> List> Other> Local Coord Sys). You can review the section table by issuing SLIST (Main Menu> Preprocessor> Sections> List Sections).
7.2.2. Assigning Element Attributes Before Meshing
Once the attribute tables are assembled, you can assign element attributes to different parts of your model by "pointing" to the appropriate entries in the tables. The pointers are simply a set of reference numbers that include a material number (MAT), a real constant set number (REAL), an element type number (TYPE), a coordinate system number (ESYS) and, for beam meshing with BEAM188, or BEAM189, a section ID number (SECNUM). You can either assign the attributes directly to selected solid model entities, or define a default set of attributes that will be used for elements created in subsequent meshing operations.
Note
As stated earlier, although you can assign orientation keypoints as attributes of a line for beam meshing, you cannot build tables of orientation keypoints. Therefore, to assign orient-ation keypoints as attributes, you must assign them directly to selected lines; you cannot define a default set of orientation keypoints to be used in subsequent meshing operations.
See Generating a Beam Mesh With Orientation Nodes (p. 137) for details about assigning orientation keypoints.
7.2.2.1. Assigning Attributes Directly to the Solid Model Entities
Assigning the element attributes to the solid model entities allows you to preassign attributes for each region of your model. By using this method, you can avoid having to reset attributes in the middle of meshing operations. (Clearing a solid model entity of its nodes and elements will not delete attributes assigned directly to the entity.)
Use the commands and GUI paths listed below to assign attributes directly to solid model entities.
• To assign attributes to keypoints:
Command(s):KATT
GUI: Main Menu> Preprocessor> Meshing> Mesh Attributes> All Keypoints Main Menu> Preprocessor> Meshing> Mesh Attributes> Picked KPs
• To assign attributes to lines:
Command(s):LATT
GUI: Main Menu> Preprocessor> Meshing> Mesh Attributes> All Lines Main Menu> Preprocessor> Meshing> Mesh Attributes> Picked Lines
• To assign attributes to areas:
Command(s):AATT
GUI: Main Menu> Preprocessor> Meshing> Mesh Attributes> All Areas Main Menu> Preprocessor> Meshing> Mesh Attributes> Picked Areas
• To assign attributes to volumes:
Command(s):VATT
GUI: Main Menu> Preprocessor> Meshing> Mesh Attributes> All Volumes Main Menu> Preprocessor> Meshing> Mesh Attributes> Picked Volumes
7.2.2.2. Assigning Default Attributes
You can assign a set of default attributes by simply pointing to various entries in the attribute tables.
The pointers that are in effect at the time you create your elements (that is, when you initiate meshing) are used by the program to assign attributes from the tables to the solid model and to the elements.
Attributes assigned directly to the solid model entities (as described above) will override the default attributes. Also, if you clear a solid model entity of its nodes and elements, any attributes that were assigned through default attributes will be deleted.
To assign a set of default attributes:
Command(s):TYPE,REAL,MAT,ESYS,SECNUM
GUI: Main Menu> Preprocessor> Meshing> Mesh Attributes> Default Attribs Main Menu> Preprocessor> Modeling> Create> Elements> Elem Attributes
7.2.2.3. Automatic Selection of the Dimensionally Correct Element Type
In certain cases, the program can choose the correct element type for a meshing or extrusion operation, eliminating the need for you to manually switch between element types when the correct choice is obvious.
Specifically, if you fail to assign an element type directly to a solid model entity [xATT] and the default element type [TYPE] is not dimensionally correct for the operation that you want to perform, but there is only one dimensionally correct element type in the currently defined element attribute tables, ANSYS will automatically use that element type to proceed with the operation.
The meshing and extrusion operations affected by this feature are KMESH,LMESH,AMESH,VMESH, FVMESH,VOFFST,VEXT,VDRAG,VROTAT, and VSWEEP.
7.2.2.4. Defining a Variable Thickness at Nodes
You can define a thickness at nodes for shell elements.
To define the variable thickness, use either of these methods:
GUI: Main Menu> Preprocessor> Real Constants> Thickness Func
Shell elements are capable of modeling complex distributions of thickness.SHELL181, for example, permits different thicknesses to be assigned at each of its four corner nodes. Each individual element assumes a smooth variation between the given corner values.
Defining a complicated thickness variation on a group of elements can be a challenge. In the worst case, every element needs its own unique set of real constant thicknesses. For some of these situations, using RTHICK can simplify the model definition.
This procedure is illustrated by the sample input listing and figure that appears below, which show the creation of a 10 x 10 rectangle filled with 0.5 x 0.5 square SHELL181 elements.
/TITLE, RTHICK Example /PREP7
ET,1,181,,,2 RECT,,10,,10 ESHAPE,2 ESIZE,,20 AMESH,1 EPLO
Figure 7.3: Original Elements
The thickness should vary according to the formula: thickness = 0.5 + 0.2x + 0.02y2.
To accomplish this variation, you can create an array parameter that maps thickness to node number.
(In other words, the Nth member of the array is the desired thickness at node N.)
*GET,MXNODE,NODE,,NUM,MAXD
*DIM,THICK,,MXNODE
*DO,NODE,1,MXNODE
*IF,NSEL(NODE),EQ,1,THEN
THICK(node) = 0.5 + 0.2*NX(NODE) + 0.02*NY(NODE)**2 *ENDIF
*ENDDO
NODE = $ MXNODE =
Finally, assign the thickness in the array parameter to the elements using the RTHICK function.
RTHICK,THICK(1),1,2,3,4
/ESHAPE,1.0 $ /USER,1 $ /DIST,1,7 /VIEW,1,-0.75,-0.28,0.6 $ /ANG,1,-1 /FOC,1,5.3,5.3,0.27 $ EPLO
Figure 7.4: Shell Elements with Thickness Shown