src.surface.surface_Fourier

Module Contents

Classes

Surface_Fourier

A class used to represent an toroidal surface with Fourier coefficients

Functions

expand_for_plot(S)

from a toroidal_surface surface return X,Y,Z

plot(lst_S)

plot a list of surfaces

plot_function_on_surface(S, f)

Plot f the surface given by S.X,S.Y,S.Z

class src.surface.surface_Fourier.Surface_Fourier(surface_parametrization, nbpts, Np)

Bases: src.surface.abstract_surface.Surface

A class used to represent an toroidal surface with Fourier coefficients

Parameters
  • surface_parametrization ((int[],int[],float[],float[])) – (m,n,Rmn,Zmn) 4 lists to parametrize the surface

  • nbpts ((int,int)) – see abstract_surface.Abstract_surface()

  • Np (int) – see .abstract_surface.Abstract_surface

load_file(pathfile)

load file with the format m,n,Rmn,Zmn

change_param(param, dcoeff)

from a surface parameters and an array of modification, return the right surface parameters

compute_surface_attributes(self, deg=2)

compute surface elements used in the shape optimization up to degree deg deg is 0,1 or 2

plot_surface(self)

Plot the surface

get_boldpsi(self)

old, we should eliminate

get_theta_pertubation(self, compute_curvature=True)

return a dictionary with the shape derivative of several elements

src.surface.surface_Fourier.expand_for_plot(S)

from a toroidal_surface surface return X,Y,Z and add redundancy of first row

src.surface.surface_Fourier.plot(lst_S)

plot a list of surfaces

src.surface.surface_Fourier.plot_function_on_surface(S, f)

Plot f the surface given by S.X,S.Y,S.Z