Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion zoidberg/field.py
Original file line number Diff line number Diff line change
Expand Up @@ -1237,7 +1237,8 @@ def __init__(self, gfile):
print("Height: {0} -> {1} m".format(self.zmin, self.zmax))

# Poloidal flux
self.psi = np.transpose(data["psi"])
#self.psi = np.transpose(data["psi"])
self.psi = data["psi"]
nr, nz = self.psi.shape

# Normalising factors: psi on axis and boundary
Expand Down
3 changes: 2 additions & 1 deletion zoidberg/zoidberg.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ def make_maps(
y_all = y_all[refine_parallel_integral:-refine_parallel_integral]

Bs = [
magnetic_field.Byfunc(coord[..., 0], coord[..., 1], y)
magnetic_field.Bmag(coord[..., 0], coord[..., 1], y)
for coord, y in zip(coords, y_all)
]

Expand Down Expand Up @@ -700,6 +700,7 @@ def write_maps(
with MapWriter(gridfile, new_names=new_names, metric2d=metric2d, quiet=quiet) as mw:
mw.add_grid_field(grid, magnetic_field)
mw.add_maps(maps)
mw.add_dagp()


def write_Bfield_to_vtk(
Expand Down
Loading