Difference between revisions of "Contrib:Claws/Code Aster/comms"
From CAELinuxWiki
								
												
				| Line 43: | Line 43: | ||
|   LA VALEUR MINIMALE DE TRSIG    EST  0.00000E+00 EN **** NOEUD(S) : N1 |   LA VALEUR MINIMALE DE TRSIG    EST  0.00000E+00 EN **** NOEUD(S) : N1 | ||
| − | ==  | + | == Extracting node reactions and forces == | 
| − | + | Extracting the results | |
| + | |||
| + |  Table=POST_RELEVE_T(ACTION=(_F(OPERATION='EXTRACTION', | ||
| + |                                INTITULE='ReacXYZ', | ||
| + |                                RESULTAT=RESU, | ||
| + |                                NOM_CHAM='REAC_NODA', | ||
| + |                                PRECISION=0.0001, | ||
| + |                                GROUP_NO='load', | ||
| + |                                RESULTANTE=('DX','DY','DZ',), | ||
| + |                                MOYE_NOEUD='OUI',), | ||
| + |                             _F(OPERATION='EXTRACTION', | ||
| + |                                INTITULE='ForceXYZ', | ||
| + |                                RESULTAT=RESU, | ||
| + |                                NOM_CHAM='FORC_NODA', | ||
| + |                                TOUT_ORDRE='OUI', | ||
| + |                                GROUP_NO='load', | ||
| + |                                RESULTANTE=('DX','DY','DZ',),), | ||
| + | |||
| + | *INTITULE: Name of the table | ||
| + | *RESULTAT: Extract from the 'RESU' calculation | ||
| + | *NOM_CHAM: Name of field, here REAC_NODA and FORC_NODA | ||
| + | *Default precision | ||
| + | *GROUP_NO: the node group - this has to be a node group (I'll describe how to extract from a whole model further down) | ||
| + | *RESULTANTE: Vectorial components  | ||
| + | *MOYE_NOEUD: Average the result | ||
| + | |||
| + | |||
| + | |||
| + | Writing the table to a file: | ||
| + | |||
| + |  IMPR_TABLE(TABLE=Table, | ||
| + |            FORMAT='TABLEAU', | ||
| + |            UNITE=26, | ||
| + |            SEPARATEUR=' ,', | ||
| + |            TITRE='Claus Andersen',); | ||
| + | |||
| + | |||
| + | Explanation: | ||
Revision as of 12:01, 3 April 2009
Comm files
Contents
Extracting max/min principal stress of a model
IMPR_RESU(FORMAT='RESULTAT',
         RESU=_F(RESULTAT=RESU,
                 NOM_CHAM='EQUI_NOEU_SIGM',
                 FORM_TABL='OUI',
                 VALE_MAX='OUI',
                 VALE_MIN='OUI',
                 SOUS_TITRE='Principal_max_min',),);
Explanation:
- IMPR_RESU means 'write result', that can either be written to a 3d-model or printed to the .resu file (or other file)
- FORMAT = RESULTAT means that the result should be formatted for text as opposed to a 3d-model file format such as 'med', I-DEAS or other.
- RESULTAT=RESU: Use the calculated result 'RESU'
- NOM_CHAM: Name of field to write; we want the 'equivalent nodal stress'
- FORM_TABL: Format as a table
- VALE_MIN/MAX: Display min/max values of the field
- SOUS_TITRE: Sub-title in the .resu file
Applying this to your comm file should yield the following table:
======> ------> Principal_max_min LA VALEUR MAXIMALE DE VMIS EST 1.34509E+03 EN 1 NOEUD(S) : N2 LA VALEUR MAXIMALE DE TRESCA EST 1.46813E+03 EN 1 NOEUD(S) : N2 LA VALEUR MAXIMALE DE PRIN_1 EST 1.54083E+02 EN 1 NOEUD(S) : NS2689 LA VALEUR MAXIMALE DE PRIN_2 EST 2.19908E+02 EN 1 NOEUD(S) : NS2856 LA VALEUR MAXIMALE DE PRIN_3 EST 4.36280E+02 EN 1 NOEUD(S) : NS2856 LA VALEUR MAXIMALE DE VMIS_SG EST 7.11318E+02 EN 1 NOEUD(S) : NS2835 LA VALEUR MAXIMALE DE TRSIG EST 0.00000E+00 EN **** NOEUD(S) : N1 LA VALEUR MINIMALE DE VMIS EST -6.91240E+01 EN 1 NOEUD(S) : NS12279 LA VALEUR MINIMALE DE TRESCA EST -7.77194E+01 EN 1 NOEUD(S) : NS12279 LA VALEUR MINIMALE DE PRIN_1 EST -1.25101E+03 EN 1 NOEUD(S) : N2 LA VALEUR MINIMALE DE PRIN_2 EST -2.95197E+02 EN 1 NOEUD(S) : NS3361 LA VALEUR MINIMALE DE PRIN_3 EST -1.44362E+02 EN 1 NOEUD(S) : NS10331 LA VALEUR MINIMALE DE VMIS_SG EST -1.45302E+03 EN 1 NOEUD(S) : N2 LA VALEUR MINIMALE DE TRSIG EST 0.00000E+00 EN **** NOEUD(S) : N1
Extracting node reactions and forces
Extracting the results
Table=POST_RELEVE_T(ACTION=(_F(OPERATION='EXTRACTION',
                              INTITULE='ReacXYZ',
                              RESULTAT=RESU,
                              NOM_CHAM='REAC_NODA',
                              PRECISION=0.0001,
                              GROUP_NO='load',
                              RESULTANTE=('DX','DY','DZ',),
                              MOYE_NOEUD='OUI',),
                           _F(OPERATION='EXTRACTION',
                              INTITULE='ForceXYZ',
                              RESULTAT=RESU,
                              NOM_CHAM='FORC_NODA',
                              TOUT_ORDRE='OUI',
                              GROUP_NO='load',
                              RESULTANTE=('DX','DY','DZ',),),
- INTITULE: Name of the table
- RESULTAT: Extract from the 'RESU' calculation
- NOM_CHAM: Name of field, here REAC_NODA and FORC_NODA
- Default precision
- GROUP_NO: the node group - this has to be a node group (I'll describe how to extract from a whole model further down)
- RESULTANTE: Vectorial components
- MOYE_NOEUD: Average the result
Writing the table to a file:
IMPR_TABLE(TABLE=Table,
          FORMAT='TABLEAU',
          UNITE=26,
          SEPARATEUR=' ,',
          TITRE='Claus Andersen',);
Explanation:
