Ejemplo n.º 1
0
k1anw = CubeState(datafr, "k1anw", location=(a,b,z), scale=(a,b,c), unit="°C")

k1to = CubeState(datafr, "k1to" , location=(0,-2.5*b,z), scale=(2*a,0.5*b,c), unit="°C")
k1tw = CubeState(datafr, "k1tw", location=(0,2.5*b,z), scale=(2*a,0.5*b,c), unit="°C" )

k102a = CubeState(datafr, "k102a", location=(-3*a,-b,z), scale=(a,b,c), unit="°C")
k103 = CubeState(datafr, "k103", location=(-2.5*a,1.5*b,z), scale=(0.5*a,0.5*b,c), unit="°C")
k103a = CubeState(datafr, "k103a", location=(-3*a,0.5*b,z), scale=(a,0.5*b,c), unit="°C")
k103b = CubeState(datafr, "k103b", location=(-3.5*a,1.5*b,z), scale=(0.5*a,0.5*b,c), unit="°C")
k109 = CubeState(datafr, "k109", location=(3*a,-b,z), scale=(a,b,c), unit="°C")
k108m = CubeState(datafr, "k108m", location=(3*a,b,z), scale=(a,b,c), unit="°C")

# 2.Stock
#k2aso = CubeState((-a,-b,1.8*z), text_location=text_location, "k2aso", (a,b,c), "°C", datafr)
k2asw = CubeState(datafr, "k2asw", location=(-a,b,1.8*z), scale=(a,b,c), unit="°C")
k2ano = CubeState(datafr, "k2ano", location=(a,-b,1.8*z), scale=(a,b,c), unit="°C")
k2anw = CubeState(datafr, "k2anw", location=(a,b,1.8*z), scale=(a,b,c), unit="°C")

k2to = CubeState(datafr, "k2to", location=(0,-2.5*b,1.8*z), scale=(2*a,0.5*b,c), unit="°C")
k2tw = CubeState(datafr, "k2tw", location=(0,2.5*b,1.8*z), scale=(2*a,0.5*b,c), unit="°C")

k202m = CubeState(datafr, "k202m", location=(-3*a,-b,1.8*z), scale=(a,b,c), unit="°C")
k203 = CubeState(datafr, "k203", location=(-3*a,b,1.8*z), scale=(a,b,c), unit="°C")
k208 = CubeState(datafr, "k208", location=(3*a,-b,1.8*z), scale=(a,b,c), unit="°C")
k207m = CubeState(datafr, "k207m", location=(3*a,b,1.8*z), scale=(a,b,c), unit="°C")

tc.animateColor()
tc.setEndFrame(len(datafr.index))
tc.addCamera((40.0, 2, 15), (1.4, 0, 1.578))
tc.addLamp((25.0, 30.0, 6.5), (0,0.698, 0.349))
Ejemplo n.º 2
0

medians = [Vector((0, -2.7, 1.5)), Vector((0,-12,3.5))]
normals = [Vector((0, -1.5, 0)), Vector(( 0, 0, -1.3))]
mdot_hx_storage_in = MassFlow(datafr, "mdot_hx_storage_in", "T_strat_3","T_hx_storage", text_location=(0,-10.4,2.4), medians=medians, normals=normals, value=1.2, unit="kg/s")

medians = [Vector((0,-10.5,4.5)), Vector((0, -2.7, 4.5))]
normals = [Vector(( 0, 1, 0)), Vector((0, -1, 0))]
mdot_hx_storage_out_mid_0= MassFlow(datafr, "mdot_hx_storage_out_mid_0", "T_hx_storage","T_strat_2", text_location=(0,-10.5,5.3), medians=medians, normals=normals, value=1.2, unit="kg/s")

medians = [Vector((0,-10.5,7.5)), Vector((0, -2.7, 7.5))]
normals = [Vector(( 0, 1, 0)), Vector((0, -1, 0))]
mdot_hx_storage_out_mid_1= MassFlow(datafr, "mdot_hx_storage_out_mid_1", "T_hx_storage","T_strat_1", text_location=(0,-10.5,8.1), medians=medians, normals=normals, value=1.2, unit="kg/s")

medians = [Vector((0,-12,9.2)), Vector((0, -2.2, 10.5))]
normals = [Vector(( 0, 0, 1.3)), Vector((0, -1.5, 0))]
mdot_hx_storage_out_top= MassFlow(datafr,  "mdot_hx_storage_out_top", "T_hx_storage", "T_strat_0", text_location=(0,-10.6,11.3), medians=medians, normals=normals, value=1.2, unit="kg/s")


tc.setEndFrame(20)

# Farbänderung animieren

tc.animateColor()
tc.animateSize()
tc.animateText()

# Kamera und Licht hinzufügen für Export
tc.addCamera((40.0, -1.5, 6.5), (1.5708, 0, 1.5708))
tc.addLamp((25.0, 30.0, 6.5), (0,0.698, 0.349))