[cig-commits] r18669 - seismo/3D/FAULT_SOURCE/branches/new_fault_db/CUBIT

percygalvez at geodynamics.org percygalvez at geodynamics.org
Wed Jun 29 00:00:06 PDT 2011


Author: percygalvez
Date: 2011-06-29 00:00:05 -0700 (Wed, 29 Jun 2011)
New Revision: 18669

Removed:
   seismo/3D/FAULT_SOURCE/branches/new_fault_db/CUBIT/fault_elements_1.dat
   seismo/3D/FAULT_SOURCE/branches/new_fault_db/CUBIT/open_crack.py
Modified:
   seismo/3D/FAULT_SOURCE/branches/new_fault_db/CUBIT/crack_fault.py
Log:
deleting useless files

Modified: seismo/3D/FAULT_SOURCE/branches/new_fault_db/CUBIT/crack_fault.py
===================================================================
--- seismo/3D/FAULT_SOURCE/branches/new_fault_db/CUBIT/crack_fault.py	2011-06-29 00:01:01 UTC (rev 18668)
+++ seismo/3D/FAULT_SOURCE/branches/new_fault_db/CUBIT/crack_fault.py	2011-06-29 07:00:05 UTC (rev 18669)
@@ -37,9 +37,9 @@
 x.append(0*km)   #x8
 
 y.append(0.0)       #y5
-y.append(0.45)    #y6
+y.append(0.1)    #y6
 y.append(0.0)       #y7
-y.append(-0.45)   #y8
+y.append(-0.1)   #y8
 
 
 z=[z_surf]*4

Deleted: seismo/3D/FAULT_SOURCE/branches/new_fault_db/CUBIT/fault_elements_1.dat
===================================================================
--- seismo/3D/FAULT_SOURCE/branches/new_fault_db/CUBIT/fault_elements_1.dat	2011-06-29 00:01:01 UTC (rev 18668)
+++ seismo/3D/FAULT_SOURCE/branches/new_fault_db/CUBIT/fault_elements_1.dat	2011-06-29 07:00:05 UTC (rev 18669)
@@ -1,127 +0,0 @@
-        63         63
-        36         52         44        147        170
-        37         51         52        170        169
-        38         50         51        169        168
-        39         49         50        168        167
-        40         48         49        167        166
-        41         47         48        166        165
-        42         46         47        165        164
-        43         45         46        164        163
-        44         43         45        163        162
-       146        170        147        146        178
-       147        169        170        178        177
-       148        168        169        177        176
-       149        167        168        176        175
-       150        166        167        175        174
-       151        165        166        174        173
-       152        164        165        173        172
-       153        163        164        172        171
-       154        162        163        171        161
-       256        178        146        145        186
-       257        177        178        186        185
-       258        176        177        185        184
-       259        175        176        184        183
-       260        174        175        183        182
-       261        173        174        182        181
-       262        172        173        181        180
-       263        171        172        180        179
-       264        161        171        179        160
-       366        186        145        144        194
-       367        185        186        194        193
-       368        184        185        193        192
-       369        183        184        192        191
-       370        182        183        191        190
-       371        181        182        190        189
-       372        180        181        189        188
-       373        179        180        188        187
-       374        160        179        187        159
-       476        194        144        143        202
-       477        193        194        202        201
-       478        192        193        201        200
-       479        191        192        200        199
-       480        190        191        199        198
-       481        189        190        198        197
-       482        188        189        197        196
-       483        187        188        196        195
-       484        159        187        195        158
-       586        202        143        142        210
-       587        201        202        210        209
-       588        200        201        209        208
-       589        199        200        208        207
-       590        198        199        207        206
-       591        197        198        206        205
-       592        196        197        205        204
-       593        195        196        204        203
-       594        158        195        203        157
-       696        210        142        141        156
-       697        209        210        156        155
-       698        208        209        155        154
-       699        207        208        154        153
-       700        206        207        153        152
-       701        205        206        152        151
-       702        204        205        151        150
-       703        203        204        150        149
-       704        157        203        149        148
-        25         60         43        162        226
-        26         59         60        226        225
-        27         58         59        225        224
-        28         57         58        224        223
-        29         56         57        223        222
-        30         55         56        222        221
-        31         54         55        221        220
-        32         53         54        220        219
-        33         44         53        219        147
-       135        226        162        161        234
-       136        225        226        234        233
-       137        224        225        233        232
-       138        223        224        232        231
-       139        222        223        231        230
-       140        221        222        230        229
-       141        220        221        229        228
-       142        219        220        228        227
-       143        147        219        227        146
-       245        234        161        160        242
-       246        233        234        242        241
-       247        232        233        241        240
-       248        231        232        240        239
-       249        230        231        239        238
-       250        229        230        238        237
-       251        228        229        237        236
-       252        227        228        236        235
-       253        146        227        235        145
-       355        242        160        159        250
-       356        241        242        250        249
-       357        240        241        249        248
-       358        239        240        248        247
-       359        238        239        247        246
-       360        237        238        246        245
-       361        236        237        245        244
-       362        235        236        244        243
-       363        145        235        243        144
-       465        250        159        158        258
-       466        249        250        258        257
-       467        248        249        257        256
-       468        247        248        256        255
-       469        246        247        255        254
-       470        245        246        254        253
-       471        244        245        253        252
-       472        243        244        252        251
-       473        144        243        251        143
-       575        258        158        157        266
-       576        257        258        266        265
-       577        256        257        265        264
-       578        255        256        264        263
-       579        254        255        263        262
-       580        253        254        262        261
-       581        252        253        261        260
-       582        251        252        260        259
-       583        143        251        259        142
-       685        266        157        148        211
-       686        265        266        211        212
-       687        264        265        212        213
-       688        263        264        213        214
-       689        262        263        214        215
-       690        261        262        215        216
-       691        260        261        216        217
-       692        259        260        217        218
-       693        142        259        218        141

Deleted: seismo/3D/FAULT_SOURCE/branches/new_fault_db/CUBIT/open_crack.py
===================================================================
--- seismo/3D/FAULT_SOURCE/branches/new_fault_db/CUBIT/open_crack.py	2011-06-29 00:01:01 UTC (rev 18668)
+++ seismo/3D/FAULT_SOURCE/branches/new_fault_db/CUBIT/open_crack.py	2011-06-29 07:00:05 UTC (rev 18669)
@@ -1,57 +0,0 @@
-# Opening fault cracks
-# Input : surface up and down.
-def open_crack(id,surface_up,surface_down)
-
-   import cubit
-   import os
-   import sys
-   
-   fault_id = id
-   fault_u = surface_up  # fault surface up   
-   fault_d = surface_down  # fault surface down
-   txt =''
-   fault_name = 'MESH/fault_file_'+str(fault_id)+'.dat'
-   fault_file=open(fault_name,'w')
-   
-   
-   list_hex=cubit.parse_cubit_list('hex','all')
-   
-   quads_fault_u = cubit.get_surface_quads(fault_u)
-   quads_fault_d = cubit.get_surface_quads(fault_d)
-   
-   # TO DO : stop python properly in case fault nodes at both sides
-   #         do not match.
-   if len(quads_fault_u) != len(quads_fault_d):
-      stop
-   # Writting number of elements at both sides to make 
-   # double sure everything is going fine .
-   txt='%10i %10i\n' % (len(quads_fault_u),len(quads_fault_d))
-   fault_file.write(txt)
-   
-   dic_quads_fault_u = dict(zip(quads_fault_u,quads_fault_u)) 
-   dic_quads_fault_d = dict(zip(quads_fault_d,quads_fault_d)) 
-   
-   # FAULT SIDE UP
-   for h in list_hex: 
-       faces = cubit.get_sub_elements('hex',h,2)  
-       for f in faces:
-           if dic_quads_fault_u.has_key(f): 
-              nodes=cubit.get_connectivity('Face',f)
-   #           print 'h,fault nodes side up :',h,nodes[0],nodes[1],nodes[2],nodes[3]
-              txt='%10i %10i %10i %10i %10i\n' % (h,nodes[0],\
-                                                nodes[1],nodes[2],nodes[3])
-              fault_file.write(txt)
-   
-   # FAULT SIDE DOWN
-   for h in list_hex: 
-       faces = cubit.get_sub_elements('hex',h,2)  
-       for f in faces:
-           if dic_quads_fault_d.has_key(f): 
-              nodes=cubit.get_connectivity('Face',f)
-   #           print 'h,fault nodes side down :',h,nodes[0],nodes[1],nodes[2],nodes[3]
-              txt='%10i %10i %10i %10i %10i\n' % (h,nodes[0],\
-                                                nodes[1],nodes[2],nodes[3])
-              fault_file.write(txt)
-   
-   # CLOSING FAULT FILE 
-   fault_file.close()



More information about the CIG-COMMITS mailing list