Rev 5448 | Rev 12170 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
3138 | bpr | 1 | type=chemistry |
3391 | bpr | 2 | textarea="data file atom scriptinput scriptoutput" |
3138 | bpr | 3 | |
4 | :Sélectionner certains atomes d'une molécule |
||
5 | |||
6 | On présente une molécule dans l'applet Jmol et on demande de sélectionner |
||
7 | certains atomes |
||
8 | <p> |
||
9 | Pour construire un exercice avec ce modèle, il suffit de donner le fichier |
||
3426 | bpr | 10 | de structure et d'indiquer les atomes devant être sélectionnés. |
3138 | bpr | 11 | |
12 | <p> |
||
13 | Auteurs du modèle : Yves Noël et Bernadette Perrin-Riou <yves.noel@upmc.fr> |
||
14 | |||
15 | :%%%%%%%%%%%%%%%%% ATTENTION %%%%%%%%%%%%%%%%%%%% |
||
16 | |||
17 | Enlevez l'en-tête ci-dessus si vous détruisez les balises pour le modèle ! |
||
18 | (Ce sont les lignes qui commencent par un ':'.) |
||
19 | Sinon l'exercice risque de ne pas pouvoir repasser sous Createxo. |
||
20 | |||
21 | :%%%%%%%% Paramètres d'exemples à redéfinir %%%%%%%%%%%%%%%%% |
||
22 | |||
3194 | bpr | 23 | :\title{Sélectionner dans l'espace} |
5147 | bpr | 24 | :\author{Yves, Noël ; Bernadette, Perrin-Riou} |
3138 | bpr | 25 | :\email{yves.noel@upmc.fr} |
6132 | bpr | 26 | :\credits{} |
3138 | bpr | 27 | |
28 | :Fichier MDMol |
||
29 | \text{file=xxx |
||
30 | Jmol version 11.7.31 2009-03-28 16:42 |
||
31 | EXTRACT: visible |
||
32 | 24 25 0 0 0 |
||
33 | -3.380413 -1.127236 0.5733036 H |
||
34 | 0.9668296 -1.073742 -0.819822 N |
||
35 | 0.0567293 0.8527195 0.3923156 C |
||
36 | -1.375174 -1.021224 -0.057055 N |
||
37 | -1.261501 0.2590713 0.5234135 C |
||
38 | -0.306833 -1.683633 -0.716934 C |
||
39 | 1.1394234 0.1874122 -0.27009 C |
||
40 | 0.5602627 2.0839095 0.8251589 N |
||
41 | -0.492679 -2.818055 -1.209473 O |
||
42 | -2.632807 -1.730396 -0.006095 C |
||
43 | -2.230133 0.7988624 1.089973 O |
||
44 | 2.549699 2.9734976 0.6229589 H |
||
45 | 2.0527434 -1.736088 -1.493128 C |
||
46 | -2.480771 -2.726952 0.4882631 H |
||
47 | -3.008904 -1.902525 -1.049802 H |
||
48 | 2.9176102 -1.848151 -0.785786 H |
||
49 | 2.378786 -1.121191 -2.374365 H |
||
50 | 1.7189878 -2.748991 -1.843920 H |
||
51 | -0.151845 3.0970047 1.5348347 C |
||
52 | 1.8934095 2.1181242 0.4193193 C |
||
53 | 2.2861252 0.9968439 -0.244029 N |
||
54 | -0.168702 4.043655 0.9301094 H |
||
55 | 0.3535322 3.297906 2.5177748 H |
||
56 | -1.207449 2.7537594 1.7203048 H |
||
57 | 24 19 1 |
||
58 | 22 19 1 |
||
59 | 20 21 1 |
||
60 | 20 12 1 |
||
61 | 19 23 1 |
||
62 | 19 8 1 |
||
63 | 18 13 1 |
||
64 | 15 10 1 |
||
65 | 13 17 1 |
||
66 | 13 16 1 |
||
67 | 11 5 1 |
||
68 | 10 14 1 |
||
69 | 10 4 1 |
||
70 | 9 6 1 |
||
71 | 8 20 1 |
||
72 | 7 21 1 |
||
73 | 6 2 1 |
||
74 | 5 3 1 |
||
75 | 4 6 1 |
||
76 | 4 5 1 |
||
77 | 3 7 1 |
||
78 | 3 8 1 |
||
79 | 2 13 1 |
||
80 | 2 7 1 |
||
81 | 1 10 1 |
||
82 | } |
||
83 | |||
3191 | bpr | 84 | :La taille de l'applet, en pixels, largeur x hauteur. |
85 | \text{size1=200x200} |
||
86 | |||
87 | :Texte avant l'applet |
||
88 | \text{pre=Sélectionner tous les atomes} |
||
89 | |||
3138 | bpr | 90 | :Les atomes sur lequels il faut cliquer (une des lignes sera prise au hasard) |
91 | \matrix{atom=_N |
||
92 | _O |
||
93 | _C} |
||
94 | |||
95 | :Le texte de l'instruction spécifique à chaque ligne précédente |
||
96 | \matrix{instruction=d'azote. |
||
97 | d'oxygène. |
||
98 | de carbone.} |
||
99 | |||
3191 | bpr | 100 | :Texte après l'applet |
101 | \text{post=<i>Vérifiez que le zoom de votre navigateur est sur la taille normale.</i>} |
||
3138 | bpr | 102 | |
3191 | bpr | 103 | :le script Jmol à effectuer lors de la présentation de l'exercice. |
104 | \text{scriptinput=select all;color atoms yellow; select none;} |
||
3138 | bpr | 105 | |
3191 | bpr | 106 | :le script Jmol à effectuer lors de la présentation de la réponse |
3391 | bpr | 107 | \text{scriptoutput=} |
3138 | bpr | 108 | |
109 | |||
110 | |||
3191 | bpr | 111 | :%%%%%%%%%%%%%% Rien à modifier avant l'énoncé %%%%%%%%%%%%%%%% |
112 | |||
3138 | bpr | 113 | \text{cnt=\atom[;1]} |
114 | \integer{cnt=items(\cnt)} |
||
115 | \text{sel=randint(1..\cnt)} |
||
116 | \text{atom=\atom[\sel;]} |
||
117 | \statement{\pre \instruction[\sel;] |
||
6132 | bpr | 118 | <p class="wimscenter"> |
3191 | bpr | 119 | \embed{reply 1, \size1 |
120 | |||
121 | \scriptinput |
||
3391 | bpr | 122 | \scriptoutput} |
6132 | bpr | 123 | </p> |
3138 | bpr | 124 | \post |
125 | } |
||
126 | |||
127 | :%%%%%%%%%%%%% Rien à modifier ci-après. %%%%%%%%%%%%%%%%%5 |
||
128 | |||
129 | \answer{}{\atom;\file}{type=jmolclick} |