Welcome to the forums. Please post in English or French.

You are not logged in.

#1 2020-02-13 11:44:23

vortexe313
Member
Registered: 2020-02-13
Posts: 13

Erreur a la verification syntaxique-interruption

Hello to everybody,
I was just starting to use Core_Aster. Tried to do a simple guided example, the following error appears:
ERREUR A LA VERIFICATION SYNTAXIQUE - INTERRUPTION
>> JDC.py : DEBUT RAPPORT
DEBUT CR validation : fort.1
   !!!!
   !  !
   !!!!
FIN CR validation :fort.1
>> JDC.py : FIN RAPPORT
EXECUTION_CODE_ASTER_EXIT_15893-gspasov=1
<I>_EXIT_CODE = 1
Do you have any idea where it may come from?
Thank you

Offline

#2 2020-02-13 12:51:21

GPSalachs
Member
Registered: 2018-03-10
Posts: 181

Re: Erreur a la verification syntaxique-interruption

Could you share the .comm file or the study?

Offline

#3 2020-02-13 14:42:42

vortexe313
Member
Registered: 2020-02-13
Posts: 13

Re: Erreur a la verification syntaxique-interruption

DEBUT=();

#------------------------------
#(1) Defining the mesh
#-------------------------------
mesh=LIRE_MAILLAGE(
    INFO=1 ,
    #INFO_MED=2,
    UNITE=20 ,
    FORMAT='MED',
);

#------------------------
#(2) Defines a group of nodes for every group of element, each one of these groups
#contains all the nodes belonging to the parent element, and bears the same name.
#-----------------------

mesh=DEFI_GROUP(
    reuse =mesh ,
    MAILLAGE=mesh ,
    CREA_GROUP_MA=_F( NOM='TOUT' , TOUT='OUI' , ) ,
    CREA_GROUP_NO=_F( TOUT_GROUP_MA='OUI' , ) ,
);
#------------------------------
#(3) This saves the results in a way that can be checked by Gmsh
#-------------------------------------------
IMPR_RESU(
    FORMAT='MED' ,
    UNITE=71 ,
    RESU=_F( MAILLAGE=mesh , ) ,
);
#-----------------------------------------
#(4)This defines the model and the properties of the model.
#U4.41.01
#----------------------------------------
model=AFFE_MODELE(
    MAILLAGE=mesh ,
    AFFE=(
        _F(
            GROUP_MA=( 'topbeam' , 'mast' , ) ,
            PHENOMENE='MECANIQUE' ,
            MODELISATION='POU_D_T' ,
        ),
        _F(
            GROUP_MA=( 'massN' , ) ,
            PHENOMENE='MECANIQUE' ,
            MODELISATION='DIS_T' ,
        ),
    ),
);

#------------------------
#(5) Define material
#U4.43.01
#-------------------------
steel=DEFI_MATERIAU(ELAS=_F( E = 210000. , NU = 0.3 , RHO=8E-9 ),);

#---------------------
#(6) Assigning material
#U4.43.01
#---------------------
material=AFFE_MATERIAU(
MAILLAGE=mesh ,
AFFE=_F(GROUP_MA=( 'topbeam' , 'mast' ,),MATER=steel,),
);

#--------------------------------
#(7)Giving properties to elements
#U4.42.01
#--------------------------------
#(7.1) Beam properties

elemcar=AFFE_CARA_ELEM(
    MODEL=model,
    #POUTRE it's "trave" in francese
    POUTRE=(
        #The vertical memebers are rectangular section
        #(40x20 mm) with a thickness of 1.5mm
        _F(
            GROUP_MA=('mast',),
            SECTION='RECTANGLE',
            CARA=('HY','HZ','EPY','EPZ',),
            VALE=(40,20,1.5,1.5,),
        ),
        #SAME WITH THE HORIZONTALE BAR
        _F(
            GROUP_MA=('topbeam',),
            SECTION='RECTANGLE',
            CARA=('HY','HZ','EPY','EPZ',),
            VALE=(40,20,1.5,1.5,),
        ),
    ),

#(7.2) we would give the 'mast' group the same orientation as the top beam
ORIENTATION=_F(
        GROUP_MA=('mast',),
        CARA='VECT_Y',
        VALE=(1.0, 0.0, 0.0,),
        ),
#and in the next ones we can rotate
#to the 'topbeam' along its axis,
#ORIENTATION=_F(
#        GROUP_MA=('topbeam',),
#        CARA='ANGL_VRIL',
#        VALE=90.0,
#        ),


#(7.3) We give to the discrete element the property of a point mass
#(CARA='M_T_D_N'), and give it
#the value of 0.01 tonnes e.g. 10 kg
DISCRET=(
    _F( GROUP_MA='massN' , CARA='M_T_D_N' , VALE = ( 0.01 ),),
    #following block set stiffness of point element 'massN'
    #to null stiffness
    #although this is not necessary,
    _F(
        GROUP_MA=( 'massN' , ) ,
        CARA='K_T_D_N',
        VALE=( 0 , 0 , 0 , ) ,
        REPERE='GLOBAL' ,
        ),
    ),
);
           

#---------------------------------------
#(8) Setting boundary conditions
#U4.44.01
#---------------------------------------
ground=AFFE_CHAR_MECA(
    MODELE=model,
    DDL_IMPO=_F(
        GROUP_NO=('groundS','groundN',),
        DX=0 ,DY=0 ,DZ=0 ,DRX=0 ,DRY=0 ,DRZ=0 ,
    ),
);

#!!!!!!!!! DO NOT MIX BOUNDARY AND LOADS

#----------------------------------------
#(9) SETTING LOADINGS
#---------------------------------------
selfwght=AFFE_CHAR_MECA(
    MODELE=model,
    PESANTEUR=_F(
        GRAVITE=10000,
        DIRECTION=(0,0,-1),
        GROUP_MA=('topbeam','mast','massN',),
    ),
);

#PUTTING A VERTICAL LOAD OF 135N
cc=AFFE_CHAR_MECA(
    MODELE=model ,
    FORCE_NODALE=_F( GROUP_NO = ( 'loadS' , ) , FZ=-135 ,) ,
);

#And in the fourth set we apply a distributed vertical force of 0.1 N per
#unit length (here mm) to the top bar.
cr=AFFE_CHAR_MECA(
    MODELE=model ,
#FORCE_POUTRE=_F(GROUP_MA=('topbeam',),FZ=-0.1,),
    FORCE_NODALE=_F( GROUP_NO = ( 'topbeam' , ) , FZ = -0.1*2000/17, ) ,
#17 is the number of nodes in the group 'topbeam'
);

#----------------------------
#Stepping for the load case
#U4.31.02
#--------------------------------
selfw_m=DEFI_FONCTION(
    NOM_PARA='INST' ,
    VALE=( 2 , 0 , 3 , 1.35,5,1.35 , 6 , 0 ) ,
    PROL_GAUCHE='CONSTANT' , PROL_DROITE='CONSTANT' ,
);
cc_m=DEFI_FONCTION (
    NOM_PARA='INST' ,
    VALE=( 3 , 0 , 4 , 1 , 5 , 1 , 6 , 0 ) ,
    PROL_GAUCHE='CONSTANT' , PROL_DROITE='CONSTANT' ,
);
cr_m=DEFI_FONCTION(
    NOM_PARA='INST' ,
    VALE=( 4 , 0 , 5 , 1.5 ,6 ,1 ,) ,
    PROL_GAUCHE='CONSTANT' , PROL_DROITE='CONSTANT' ,
);

#----------------------
#STEPPING FOR THE SOLUTION
#U4.34.01
#------------------------
liste=DEFI_LIST_REEL(
    DEBUT = 2.0,
    INTERVALLE=_F( JUSQU_A=6 ,PAS = 1.0 , ) ,
);


#-----------
#ANALYSING
#U4.51.01
#--------------
stat=MECA_STATIQUE(
    MODELE=model ,
    CHAM_MATER=material ,
    CARA_ELEM=elemcar ,
    #with the load, or boundary condition defined in EXCIT
    #with the applied step function where needed
    EXCIT=(
        _F( CHARGE=ground , ) ,
        _F( CHARGE=selfwght , FONC_MULT=selfw_m , ) ,
        _F( CHARGE=cc , TYPE_CHARGE='FIXE_CSTE' , FONC_MULT=cc_m , ) ,
        _F( CHARGE=cr , TYPE_CHARGE='FIXE_CSTE' , FONC_MULT=cr_m , ) ,
    ),
#the calculation is made for all instant in this list
    LIST_INST=liste ,
#we can give a title to this study
#TITRE='my_title'
);

#-----------------
#CALCULATING RESULTS
#U4.80.01
#------------------
stat=CALC_CHAMP(
    reuse =stat , RESULTAT=stat ,
    CONTRAINTE=(
        'SIEF_ELNO' , 'SIPO_ELNO' , 'SIPM_ELNO' ,
    ),
    FORCE=('REAC_NODA' , ) ,
);


#-------------------------------------------------------
#CALCULATING AND PRINTING THE MASS OF THE MODEL
#U4.81.22
#-------------------------------------------------------
masse=POST_ELEM(
    RESULTAT =stat ,
    MODELE=model ,
    MASS_INER=_F( GROUP_MA = ( 'topbeam' , 'mast' , 'massN' , ) , ) ,
    TITRE='masse'
);
#U4.91.03
IMPR_TABLE(
    TABLE=masse ,
    FORMAT_R='1PE12.3' ,
)

#------------------------------------------------------
#PRINT THE REACTIONS
#U4.81.21
#-----------------------------------------------------
sum_reac=POST_RELEVE_T(
    ACTION=_F(
        INTITULE='sum reactions' ,
        GROUP_NO=( 'groundS' , 'groundN' , ) ,
        RESULTAT=stat ,
        NOM_CHAM='REAC_NODA' ,
        TOUT_ORDRE='OUI' ,
        RESULTANTE=( 'DX' , 'DY' , 'DZ' , ) ,
        MOMENT=( 'DRX' , 'DRY' , 'DRZ' , ) ,
        POINT=( 0 , 0 , 0 , ) ,
        OPERATION='EXTRACTION' ,
    ),
);
#U4.91.03
IMPR_TABLE( TABLE=sum_reac , FORMAT_R='1PE12.3' , )

#then in tabular format per group of node
reac1=POST_RELEVE_T(
    ACTION=_F(
        INTITULE='reactionsS' ,
        GROUP_NO=( 'groundS' , ) ,
        RESULTAT=stat ,
        NOM_CHAM='REAC_NODA' ,
        TOUT_ORDRE='OUI' ,
        RESULTANTE=( 'DX' , 'DY' , 'DZ' ) ,
        OPERATION='EXTRACTION' ,
    ),
);
#very simple form
#IMPR_TABLE(TABLE=reac1,)
#or more detailed with field separator
IMPR_TABLE(
    TABLE=reac1 ,
    FORMAT='TABLEAU' ,
    UNITE=8 , #this is also the default value
    #whichever separator that suits the needs
    SEPARATEUR=' * ' ,
    FORMAT_R='1PE12.3' ,
    TITRE='reaction_1' ,
    INFO=2 ,
);

reac2=POST_RELEVE_T(
    ACTION=_F(
    INTITULE='reactionsN' ,
    GROUP_NO=( 'groundN' , ) ,
    RESULTAT=stat ,
    NOM_CHAM='REAC_NODA' ,
    TOUT_ORDRE='OUI' ,
    RESULTANTE=( 'DX' , 'DY' , 'DZ' ) ,
    OPERATION='EXTRACTION' ,
    ),
);
IMPR_TABLE(TABLE=reac2 , FORMAT_R='1PE12.3' , )
#now we print the individual reactions
#in the .resu file in RESULTAT format
#U4.91.01
IMPR_RESU(
    MODELE=model ,
    FORMAT='RESULTAT' ,
    RESU=_F(
        NOM_CHAM='REAC_NODA' ,
        GROUP_NO=( 'groundS' , 'groundN' , ) ,
        RESULTAT=stat ,
        FORMAT_R='1PE12.3' ,
    ),
);

#------------------------------------------------------------
#Printing some key values
#------------------------------------------------------------
IMPR_RESU(
    MODELE=model ,
    FORMAT='RESULTAT' ,
    RESU=(
        _F(
            RESULTAT=stat ,
            NOM_CHAM='DEPL' ,
            NOM_CMP='DZ' ,
            GROUP_MA=( 'topbeam' , ) ,
            FORMAT_R='1PE12.3' ,
            VALE_MAX='OUI' , VALE_MIN='OUI' ,
        ),
        _F(
            RESULTAT=stat ,
            NOM_CHAM='SIEF_ELNO' ,
            NOM_CMP='N' ,
            GROUP_MA=( 'mast' , ) ,
            FORMAT_R='1PE12.3' ,
            VALE_MAX='OUI' , VALE_MIN='OUI' ,
        ),
        _F(
            RESULTAT=stat ,
            NOM_CHAM='SIEF_ELNO' ,
            NOM_CMP=( 'MFY' , 'MFZ' , ) ,
            GROUP_MA=( 'topbeam' , ) ,
            FORMAT_R='1PE12.3' ,
            VALE_MAX='OUI' , VALE_MIN='OUI' ,
        ),
    ),
);

#--------------------------------------------------------------
#Printing some others results in ASCII file .resu
#--------------------------------------------------------------
IMPR_RESU(
    MODELE=model ,
    FORMAT='RESULTAT' ,
    RESU=(
        _F(
            RESULTAT=stat ,
            NOM_CHAM='SIPO_ELNO' ,
            GROUP_MA=( 'topbeam' , 'mast' , ) ,
            FORMAT_R='1PE12.3' ,
        ),
    ),
);

#------------------------------------------------------------------
#Printing results for graphical viewing, MED file
#U7.05.21
#------------------------------------------------------------------
IMPR_RESU(
    FORMAT='MED' ,
    UNITE=80 ,
    RESU=_F(
        #following lines print on the named groups,
        GROUP_MA=( 'topbeam' , 'mast' , ) ,
        RESULTAT=stat ,
        NOM_CHAM=(
            'DEPL' ,
            'SIEF_ELNO' ,
            'SIPO_ELNO' ,
            'SIPM_ELNO' ,
            'REAC_NODA' ,
        ),
    ),
);


#-------------
#END
#-------------
FIN();

Offline

#4 2020-02-13 19:12:00

jlf
Member
Registered: 2007-11-22
Posts: 241

Re: Erreur a la verification syntaxique-interruption

Hi,

DEBUT=();  <=== Is not good

DEBUT() <=== Is better

To avoid syntax error, try to use Salome_Meca with AsterStudy inside.

JLF

Offline

#5 2020-02-15 11:16:40

vortexe313
Member
Registered: 2020-02-13
Posts: 13

Re: Erreur a la verification syntaxique-interruption

Tried to put Debut=() but didn't solve the problem.

Offline

#6 2020-02-16 10:16:49

AsterO'dactyle
Administrator
Registered: 2007-11-29
Posts: 312

Re: Erreur a la verification syntaxique-interruption

DEBUT()


Not

DEBUT=()


Code_Asterの開発者

Offline

#7 2020-02-21 16:20:23

vortexe313
Member
Registered: 2020-02-13
Posts: 13

Re: Erreur a la verification syntaxique-interruption

Thank you. smile

Offline