blob: 0ddcf0310f1e8f4a0c770ae3c317ac6fe4728db1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#
# Equivalence_SPH_APEX: incorporation of SPH factors in an APEX file
#
import lifo
import lcm
import cle2000
from assertS import *
import numpy as np
# recover the macro-geometry
ipLifo=lifo.new()
ipLifo.pushEmpty("Geom", "LCM")
ipLifo.push('UOX_5x5_TG6_sym8_multiDom.h5')
ipLifo.push(int) # ncals
GeomProc = cle2000.new('Umzone5x5',ipLifo,1)
GeomProc.exec()
ipGeom = ipLifo.node("Geom")
ncals = ipLifo.node(2)
print("test Equivalence_SPH_APEX: number of calculations=",ncals)
ipGeom.lib()
# perform transport-diffusion SPH equivalence
SPH_RT_Proc = cle2000.new('SPH_RT_Proc',ipLifo,1)
SPH_RT_Proc.exec()
# perform transport-SN SPH equivalence
SPH_RT_Proc = cle2000.new('SPH_SN_Proc',ipLifo,1)
SPH_RT_Proc.exec()
print("test Equivalence_SPH_APEX completed")
|