Пример #1
0
sscfg.runargs = "dump 16"
sscfg.keepfiles = "clumps.h5part disk.hdf5 moons.pdf"

eVinK = 11604.505

#axnorm = [-8.0e9 , 8.0e9 , -4.5e9 , 4.5e9 ]
axwide = [-3.2e10, 1.6e10, -1.8e10, 0.9e10]
axmedi = [-1.6e10, 8.0e9 , -9.0e9 , 4.5e9 ]

cfg_orb_XY_m.imgdir = sscfg.dir + "/viz_orb_XY_m"
cfg_orb_XY_m.ax        = [-3.2e10, 1.6e10, -1.8e10, 0.9e10]

cfg_ecc_m.imgdir = sscfg.dir + "/viz_ecc____m"
cfg_eng_m.imgdir = sscfg.dir + "/viz_eng____m"

vizcfg = GIvizConfig()
vizcfg.subcmd = "qsubSALL $JOBNAME $JOBCMD"
vizcfg.scdir = sscfg.dir + "/vizscratch"
vizcfg.tasksperjob = 10


simadm = SimAdmin(sscfg)
sims = simadm._sims

vizsim = GIviz(vizcfg)

def fillViz(cfgs):
  for sim in sims.values():
    if sim.nodumps > 0:
      vizsim.gatherVizTasks(sim, cfgs)
      vizsim.runTasksSGE()
Пример #2
0
cfg_mat_XY_n.axreluse  = False
cfg_mat_XY_n.postPlot  = [plotSimParams, plotDiskMass]

#cfg_mat_XY_n.ax        = [-16.0e9, 8.0e9 , -9.0e9 , 4.5e9 ]
#cfg_mat_XY_n.axreluse  = False
#cfg_mat_XY_n.postPlot  = [plotSimParams, plotDiskMass]


mimpa = [0.1, 0.2, 0.5, 1.0, 2.0]
mtara = [0.1, 0.2, 0.5, 1.0, 2.0]
impaa = [0.1, 15., 30., 45., 60., 75.]
vimpa = [1.0, 1.05, 1.1, 1.15, 1.2, 1.3, 1.4, 1.5, 1.6, 1.8, 2.0, 2.2, 2.4]
cond  = "mimp <= mtar"


vizcfg = GIvizConfig()
vizcfg.scdir = sscfg.dir + "/vizscratch"
vizcfg.tasksperjob = 1

vizsim = GIviz(vizcfg)

vizcfgs = [cfg_T___XY_n, cfg_orb_XY_m, cfg_mat_XY_n]

def impaPicAll(trel):
  for sim in sims.values():
    impaPic(sim, trel)

def impaPic(sim, trel):
  tcol = sim.tcol
  for drec in sim.dumps:
    (dfile, dtime) = drec
Пример #3
0
vizcfgs = [
    cfg_mat_XY_n, cfg_mat_YZ_n, cfg_cid_XY_n, cfg_cid_YZ_n, cfg_phs_XY_n,
    cfg_phs_XY_z, cfg_T___XY_n, cfg_T___XY_z, cfg_rho_XY_n, cfg_rho_XY_z,
    cfg_p___XY_n, cfg_p___XY_z
]

simadm = SimAdmin(ssconf)
sims = simadm._sims

simA = sims["mtar001.000_mimp001.000_impa85.0_vimp1.15"]
simB = sims["mtar000.100_mimp000.100_impa00.0_vimp1.25"]
simC = sims["mtar001.000_mimp000.100_impa45.0_vimp1.50"]

simsA = simadm.getSims(SimParam(1.0, 1.0, nan, 1.15))

vizcfg = GIvizConfig()
vizcfg.subcmd = "qsub -M [email protected] -b n -cwd -l h_cpu=96:00:00 -l h_vmem=512M -N $JOBNAME $JOBCMD"
vizcfg.scdir = ssconf.dir + "/vizscratch"
vizcfg.tasksperjob = 1000

vizsim = GIviz(vizcfg)


def vizAll():
    for sim in sims.values():
        if sim.nodumps > 0:
            vizsim.gatherVizTasks(sim, vizcfgs)
            vizsim.runTasksSGE()


def animAll():
Пример #4
0
sscfg.runargs = "dump 16"
sscfg.keepfiles = "clumps.h5part disk.hdf5 moons.pdf"

eVinK = 11604.505

#axnorm = [-8.0e9 , 8.0e9 , -4.5e9 , 4.5e9 ]
axwide = [-3.2e10, 1.6e10, -1.8e10, 0.9e10]
axmedi = [-1.6e10, 8.0e9, -9.0e9, 4.5e9]

cfg_orb_XY_m.imgdir = sscfg.dir + "/viz_orb_XY_m"
cfg_orb_XY_m.ax = [-3.2e10, 1.6e10, -1.8e10, 0.9e10]

cfg_ecc_m.imgdir = sscfg.dir + "/viz_ecc____m"
cfg_eng_m.imgdir = sscfg.dir + "/viz_eng____m"

vizcfg = GIvizConfig()
vizcfg.subcmd = "qsubSALL $JOBNAME $JOBCMD"
vizcfg.scdir = sscfg.dir + "/vizscratch"
vizcfg.tasksperjob = 10

simadm = SimAdmin(sscfg)
sims = simadm._sims

vizsim = GIviz(vizcfg)


def fillViz(cfgs):
    for sim in sims.values():
        if sim.nodumps > 0:
            vizsim.gatherVizTasks(sim, cfgs)
            vizsim.runTasksSGE()
Пример #5
0
(75.0, 1.0), (75.0, 1.05), (75.0, 1.1), (75.0, 1.15), (75.0, 1.2), (75.0, 1.3),
(75.0, 1.4), (75.0, 1.7) , (75.0, 2.0), (75.0, 2.5) , (75.0, 3.0), (75.0, 3.5),
(75.0, 4.0),
(82.5, 1.0), (82.5, 1.05), (82.5, 1.1), (82.5, 1.15), (82.5, 1.2), (82.5, 1.3),
(89.0, 1.0), (89.5, 1.05), (89.5, 1.1), (89.5, 1.15), (89.5, 1.2), (89.5, 1.3)
             ]

vimpimpaa2 = [ \
 (15., 1.0), (30., 1.0), (45., 1.0), (60., 1.0), (75., 1.0), (89.5, 1.0),
(15., 1.05), (30., 1.05), (45., 1.05), (60., 1.05), (75., 1.05), (89.5, 1.05),
(15., 1.1), (30., 1.1), (45., 1.1), (60., 1.1), (75., 1.1), (89.5, 1.1),
(15., 1.2), (30., 1.2), (45., 1.2), (60., 1.2), (75., 1.2), (89.5, 1.2) ]

cond = "mimp <= mtar"

vizcfg = GIvizConfig()
vizcfg.scdir = sscfg.dir + "/vizscratch"
vizcfg.tasksperjob = 100

vizsim = GIviz(vizcfg)


def vizAll():
    vizsim.clearScratch()
    vizsim.doSims(sims.values(), [cfg_T___XY_n, cfg_mat_XY_n])


def animAll():
    vizsim.animSims(sims.values(), [cfg_T___XY_n, cfg_mat_XY_n])