Big Red Ball (BRB) Basic UsageΒΆ

BRB_intro

The Big Red Ball (BRB) Basic Functionality

In [1]:
import numpy as np
import matplotlib as mpl
import matplotlib.pyplot as plt

from pleiades import RectMesh
from pleiades.configurations import BRB
In [2]:
brb = BRB()
In [6]:
brb.hh_s.current = 50
brb.hh_n.current = 50
In [4]:
mesh = RectMesh(rmin=0, rmax=3, zmin=-2, zmax=2, nr=101, nz=101)
brb.mesh = mesh
In [7]:
fig, ax = plt.subplots(figsize=(4,6))

brb.plot(ax)
ax.set_xlim(0, 3)
ax.set_ylim(-2, 2)
ax.set_aspect(1)
ax.set_xlabel('R (m)')
ax.set_ylabel('Z (m)')
plt.show()
In [ ]: