command_post_for_dummies.py 942 Bytes
Newer Older
1
2
3
4
5
6

from pylmgc90.chipy import *
from numpy import *

# plage de fichiers a traiter
min = 1
7
max = 30
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
pas = 2

# space dimension
dim = 2

# un pas de temps bidon ?
dt = 2.e-4

####

######## etat 0 ###########################

### computation's parameters definition ### 
SetDimension(2,1)

23
24
#utilities_logMes('INIT TIME STEPPING')
#TimeEvolution_SetTimeStep(dt)
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49

### model reading ###
utilities_logMes('READ BEHAVIOURS')
ReadBehaviours()

utilities_logMes('READ BODIES')
ReadBodies()

utilities_logMes('LOAD BEHAVIOURS')
LoadBehaviours()

utilities_logMes('READ INI DOF')
ReadIniDof()

utilities_logMes('LOAD TACTORS')
LoadTactors()

utilities_logMes('READ INI Vloc Rloc')
ReadIniVlocRloc()

OpenDisplayFiles()

for k in xrange(min,max+1,pas):
    #
    utilities_logMes('READ INI DOF')
50
    ReadIniDof(k)
51
52

    utilities_logMes('READ INI Vloc Rloc')
53
    ReadIniVlocRloc(k)
54
55
56
57
58
59

    WriteDisplayFiles(freq=1,ref_radius=0.1e-2)
  
CloseDisplayFiles()