Yasf
YASF
Source code in yasfpy/yasf.py
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 |
|
path_cluster: str
instance-attribute
path_config: str = path_config
instance-attribute
config: dict = Config(path_config, preprocess, path_cluster)
instance-attribute
particles = Particles(self.config.spheres[:, 0:3], self.config.spheres[:, 3], self.config.spheres[:, 4], refractive_index_table=self.config.refractive_index_interpolated)
instance-attribute
initial_field = InitialField(beam_width=self.config.config['initial_field']['beam_width'], focal_point=np.array(self.config.config['initial_field']['focal_point']), polar_angle=self.config.config['initial_field']['polar_angle'], azimuthal_angle=self.config.config['initial_field']['azimuthal_angle'], polarization=self.config.config['initial_field']['polarization'])
instance-attribute
parameters = Parameters(wavelength=self.config.wavelength, medium_refractive_index=self.config.medium_refractive_index, particles=self.particles, initial_field=self.initial_field)
instance-attribute
solver = Solver(solver_type=self.config.config['solver']['type'], tolerance=self.config.config['solver']['tolerance'], max_iter=self.config.config['solver']['max_iter'], restart=self.config.config['solver']['restart'])
instance-attribute
numerics = Numerics(lmax=self.config.config['numerics']['lmax'], sampling_points_number=self.config.config['numerics']['sampling_points'], particle_distance_resolution=self.config.config['numerics']['particle_distance_resolution'], gpu=self.config.config['numerics']['gpu'], solver=self.solver)
instance-attribute
simulation = Simulation(self.parameters, self.numerics)
instance-attribute
optics = Optics(self.simulation)
instance-attribute
run
Source code in yasfpy/yasf.py
82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 |
|
benchmark
staticmethod
Source code in yasfpy/yasf.py
110 111 112 113 114 115 116 117 118 |
|
profiler
staticmethod
Source code in yasfpy/yasf.py
120 121 122 123 124 125 126 127 128 129 |
|