Assignment of values ==== Two methods can be used to assign characteristic values: • the classical method: operand whose name evokes the characteristic treated followed by a value or a list of values. Examples: COQUE = _F (EPAIS = 1.E-2, GROUP_MA = 'G1'), COQUE = _F (ANGL_REP = (0., 90.), GROUP_MA = 'G2'), • for assignments concerning BARRE, POUTRE, and DISCRET, as well as ORIENTATION for beam elements and discrete elements, the large number of characteristics that could be affected led to a better adapted syntax: CARA = (...) # list of feature names VALE = (...) # list of values corresponding to the characteristics An example is given below to illustrate this case. .. image:: images/10000000000003E60000014128FCCC32B527F58C.png :width: 6.328in :height: 2.0189in .. _RefImage_10000000000003E60000014128FCCC32B527F58C.png: **Knitwear description:** SEG2 M1 N1 N2 M2 N2 N3 M3 N3 N4 M4 N5 N4 M5 N5 N6 M6 N6 N7 FINSF **Command file:** Cara = AFFE_CARA_ELEM ( POUTRE = ( _F (SECTION =' CERCLE ', CARA =(' R ',' EP '), VALE =( 0.1,0.02), GROUP_MA =(' M1 ',' M5 ')), _F (SECTION =' CERCLE ', CARA =(' R ',' EP '), VALE =( 0.2,0.05), GROUP_MA =' M3 '), _F (SECTION =' CERCLE ', CARA =(' R ',' EP '), VALE =( 0.09,0.01), GROUP_MA =' M6 '), _F (SECTION =' CERCLE ', CARA =(' R1 ',' R2 '), VALE =( 0.1,0.2), GROUP_MA =(' M2 ',' M4 ')), _F (SECTION =' CERCLE ', CARA =(' EP1 ',' EP2 '), VALE =( 0.02,0.05), GROUP_MA =(' M2 ',' M4 ')), ), )))) It is possible to use the functionalities of the Python language. The example below retrieves quantities calculated by the MACR_CARA_POUTRE command and then assigns them. Using python requires putting PAR_LOT =' NON 'in the DEBUT command. PRE_GIBI () SECTION = MACR_CARA_POUTRE (NOEUD = 'N1', GROUP_MA_BORD = 'BORD') ii = 2 alpha0 = SECTION ['ALPHA', ii] cdgx0 = SECTION ['CDG_X', ii] cdgy0 = SECTION ['CDG_Y', ii] AIRE0 = SECTION ['AIRE', ii] IY0 = SECTION ['IY_PRIN_G', ii] IZ0 = SECTION ['IZ_PRIN_G', ii] EY0 = SECTION ['EY', ii] EZ0 = SECTION ['EZ', ii] JX0 = SECTION ['CT', ii] JG0 = SECTION ['JG', ii] AY0 = SECTION ['AY', ii] AZ0 = SECTION ['AZ', ii] IYR20 = SECTION ['IYR2_PRIN_G', ii] IZR20 = SECTION ['IZR2_PRIN_G', ii] carelem= AFFE_CARA_ELEM (MODELE =mod, POUTRE = ( _F (GROUP_MA =( 'POUT1', 'POUT2'), SECTION =' GENERALE ', CARA = ('A', 'Y', 'IZ', 'IZ', 'IZ', 'AY', 'AZ', 'EY', 'EZ', 'JX', 'JG', 'JG', 'IYR2', '', '', 'IZR2'), VALE = (AIRE0, IY0, IZ0, AY0,, AZ0,, EY0, EZ0,, JX0, 1889,,,,,,,,,,,, JG0,,,, IYR20 IZR20 )))) )))) If the mesh section contains a surface mesh group named 'square', it is possible to use the table from macr_cara_beam directly in the following way: SECTION = MACR_CARA_POUTRE (MAILLAGE =mail, NOEUD = 'N1', GROUP_MA_BORD = 'BORD') carelem= AFFE_CARA_ELEM (MODELE =mod, POUTRE = ( _F (GROUP_MA =( 'POUT1', 'POUT2'), SECTION =' GENERALE ', TABLE_CARA = SECTION, NOM_SEC =' CARRE ', )))) )))) .. _RefHeading__31224206: