ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/REPOS_ERICCA/magic/cas_test/optmvtnormal/vasy
Revision: 562
Committed: Tue Oct 14 20:08:10 2014 UTC (10 years, 10 months ago) by francois
File size: 4293 byte(s)
Log Message:
renommage de noms plus logique pour le dernier commit

File Contents

# User Rev Content
1 gervaislavoie 561 #!/bin/bash
2    
3     function executer
4     {
5     $*
6     VAR=$?
7     if (( $VAR )) ; then
8     STATUSTXT="ERREUR dans les tests";
9     STAT=$VAR;
10     fi
11     }
12     CHEMINCOMPILE=../../exe/app
13     STATUSTXT="Test sans ERREUR"
14     echo "********************************************************"
15     echo "Exemple de calcul par elements de coques avec code aster"
16     echo "********************************************************"
17     STAT=$?
18    
19     # Importation de la géométrie dans MAGIC
20     executer $CHEMINCOMPILE/mgoperation/mgoperation.exe -stepocc -in cylindre.step -unite 0.001
21    
22     # Génération de la carte de taille
23     executer $CHEMINCOMPILE/carte/carte.exe -constante -in cylindre.magic -out cylindre.ctt -dg 7. -fechantillonage 20 -festimation 1
24    
25     # Génération du maillage géométrique
26     executer $CHEMINCOMPILE/mailleur/mailleur.exe -front -in cylindre.magic -out cylindre_maille.magic -carte cylindre.ctt -niveau 2
27     executer $CHEMINCOMPILE/mgoperation/mgoperation.exe -examine -in cylindre_maille.magic -nummai 88
28     executer $CHEMINCOMPILE/mgoperation/mgoperation.exe -gmsh -in cylindre_maille.magic -correspondance
29     #gmsh cylindre_maille52.msh
30    
31     # Définition du module de Young et du coefficient de Poisson associés à la coque
32     executer $CHEMINCOMPILE/mgoperation/mgoperation.exe -ccf -in cylindre_maille.magic -valeur 2:Em:69e9 -numgeo 1
33     executer $CHEMINCOMPILE/mgoperation/mgoperation.exe -ccf -in cylindre_maille.magic -valeur 2:nu:0.33 -numgeo 1
34    
35     # Définition de l'épaisseur des faces appartenant à la coque (5, 37, 61 et 77)
36     executer $CHEMINCOMPILE/mgoperation/mgoperation.exe -ccf -in cylindre_maille.magic -valeur 5:ep:0.002 -numgeo 1
37     executer $CHEMINCOMPILE/mgoperation/mgoperation.exe -ccf -in cylindre_maille.magic -valeur 37:ep:0.002 -numgeo 1
38     executer $CHEMINCOMPILE/mgoperation/mgoperation.exe -ccf -in cylindre_maille.magic -valeur 61:ep:0.002 -numgeo 1
39     executer $CHEMINCOMPILE/mgoperation/mgoperation.exe -ccf -in cylindre_maille.magic -valeur 77:ep:0.002 -numgeo 1
40    
41     # Définition des conditions aux limites (déplacements et efforts imposés)
42     # Les arêtes 27 et 84 sont encastrées et une pression de 1000 N (6366.20 N/m car l = 0.15708) est appliquée en direction - Y le long des aretes 51 et 72
43     executer $CHEMINCOMPILE/mgoperation/mgoperation.exe -ccf -in cylindre_maille.magic -valeur 27:Da:0 -numgeo 1
44     executer $CHEMINCOMPILE/mgoperation/mgoperation.exe -ccft -in cylindre_maille.magic -valeur 84:Da:0 -numgeo 1
45     executer $CHEMINCOMPILE/mgoperation/mgoperation.exe -ccf -in cylindre_maille.magic -valeur 51:Py:-6366.20 -numgeo 1
46     executer $CHEMINCOMPILE/mgoperation/mgoperation.exe -ccf -in cylindre_maille.magic -valeur 72:Py:-6366.20 -numgeo 1
47    
48     # Définition des zones de non-design (topologie à ne pas optimiser (faces 5 et 77 et arêtes 51 et 72))
49     executer $CHEMINCOMPILE/mgoperation/mgoperation.exe -ccft -in cylindre_maille.magic -valeur 5:Nd:0 -geo 1
50     executer $CHEMINCOMPILE/mgoperation/mgoperation.exe -ccft -in cylindre_maille.magic -valeur 77:Nd:0 -geo 1
51     executer $CHEMINCOMPILE/mgoperation/mgoperation.exe -ccft -in cylindre_maille.magic -valeur 51:Nd:0 -geo 1
52     executer $CHEMINCOMPILE/mgoperation/mgoperation.exe -ccft -in cylindre_maille.magic -valeur 72:Nd:0 -geo 1
53    
54     # Définition du point d'orientation et orientation de la coque
55     executer $CHEMINCOMPILE/mgoperation/mgoperation.exe -ccf -in cylindre_maille.magic -valeur 2:Cx:1000 -geo 1
56     executer $CHEMINCOMPILE/mgoperation/mgoperation.exe -ccf -in cylindre_maille.magic -valeur 2:Cy:1200 -geo 1
57     executer $CHEMINCOMPILE/mgoperation/mgoperation.exe -ccf -in cylindre_maille.magic -valeur 2:Cz:1400 -geo 1
58     executer $CHEMINCOMPILE/mgoperation/mgoperation.exe -oricoque -in cylindre_maille.magic -out cylindre_oriente.magic -numcoque 2 -nummai 88 -numgeo 1
59    
60     # Génération du maillage fem pour l'optimisation (maillage déformé)
61     executer $CHEMINCOMPILE/mgoperation/mgoperation.exe -fem -in cylindre_oriente.magic -degre 1
62    
63     # Génération du maillage fem pour la visualisation (maillage initial)
64     executer $CHEMINCOMPILE/mgoperation/mgoperation.exe -fem -in cylindre_oriente.magic -degre 1
65    
66     # Optimisation par la méthode du mouvement normal
67     executer $CHEMINCOMPILE/mvtn_optis/mvtn_optis.exe -optimise -in cylindre_oriente.magic -out cylindre_optimise.magic -param params_cylindre.txt
68    
69     echo "**********************"
70     echo $STATUSTXT
71     echo "**********************"
72     exit $STAT

Properties

Name Value
svn:executable *