Exemplo n.º 1
0
    def open_flux_graphs(self):

        fluxes = [
            GraphContainer(self.chi_i.rho,
                           [self.chi_i.shot.rtrans.gamma.D.diff.val / (1E20)],
                           title="Ion Particle Flux",
                           legend=[r"$\Gamma_{j,r}[10E20]$"]),
            GraphContainer(self.chi_i.rho,
                           [self.chi_i.shot.rtrans.Q.D.diff.val],
                           title="Heat Flux",
                           legend=[r"$Q_{r,j}$"])
        ]
        flux_graphs = GraphPopout(fluxes,
                                  grid=len(fluxes),
                                  title="Particle/Heat fluxes")
        flux_graphs.show()
Exemplo n.º 2
0
    def open_scale_length_graphs(self):

        scale_lengths = [
            GraphContainer(
                self.chi_i.rho,
                [self.chi_i.T.i.J.L.fsa.val, self.chi_i.T.e.J.L.fsa.val],
                title="Scale Lengths",
                legend=[r"$L_{T_i}$", r"$L_{T_e}$"]),
            GraphContainer(
                self.chi_i.rho,
                [self.chi_i.n.i.L.fsa.val, self.chi_i.n.e.L.fsa.val],
                title="Scale Lengths",
                legend=[r"$L_{n_i}$", r"$L_{n_e}$"])
        ]
        scale_length_graph = GraphPopout(scale_lengths,
                                         grid=len(scale_lengths),
                                         title="Gradient Scale Lengths")
        scale_length_graph.show()
Exemplo n.º 3
0
    def open_collisionality_graphs(self):

        field = [
            GraphContainer(self.chi_i.rho, [self.chi_i.shot.rtrans.nustar],
                           title="Collisionality",
                           legend=[r"$\nu^*$"])
        ]
        field_graphs = GraphPopout(field,
                                   grid=len(field),
                                   title="Collisionality")
        field_graphs.show()
Exemplo n.º 4
0
    def open_electric_field_graphs(self):

        field = [
            GraphContainer(self.chi_i.rho, [self.chi_i.shot.core.E_r.fsa],
                           title="Electric Field",
                           legend=[r"$E_r$"])
        ]
        field_graphs = GraphPopout(field,
                                   grid=len(field),
                                   title="Electric Field")
        field_graphs.show()
Exemplo n.º 5
0
    def open_velocity_graphs(self):

        velocities = [
            GraphContainer(self.chi_i.rho, [
                self.chi_i.shot.rtrans.vpol_D.val,
                self.chi_i.shot.rtrans.vpol_C.val
            ],
                           title="Poloidal Velocity",
                           legend=[r"$V^D_{\theta}$", r"$V^C_{\theta}$"]),
            GraphContainer(self.chi_i.rho, [
                self.chi_i.shot.rtrans.vtor_C_total.val,
                self.chi_i.shot.rtrans.vtor_D_total.val
            ],
                           title="Toroidal Velocity",
                           legend=[r"$V^D_{\phi}$", r"$V^C_{\phi}$"])
        ]
        velocity_graph = GraphPopout(velocities,
                                     grid=len(velocities),
                                     title="Shot Velocities")
        velocity_graph.show()
Exemplo n.º 6
0
    def open_temperature_graphs(self):

        temperatures = [
            GraphContainer(self.chi_i.rho, [
                self.chi_i.shot.core.T.i.ev.fsa.val,
                self.chi_i.shot.core.T.e.ev.fsa.val
            ],
                           title="Temperatures",
                           legend=[r"$T_i$", r"$T_e$"])
        ]
        temperature_graph = GraphPopout(temperatures,
                                        grid=len(temperatures),
                                        title="Shot Temperatures")
        temperature_graph.show()
Exemplo n.º 7
0
    def open_density_graphs(self):

        densities = [
            GraphContainer(self.chi_i.rho, [
                self.chi_i.shot.rtrans._n.D.val /
                (1E20), self.chi_i.shot.rtrans._n.e.val / (1E20)
            ],
                           title="Densities",
                           legend=[r"$n_D$", r"$n_e$"])
        ]
        density_graph = GraphPopout(densities,
                                    grid=len(densities),
                                    title="Density (x10^20 m^-3)")
        density_graph.show()