-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update cmake structure for better compatibility with macOS Clang
- Loading branch information
1 parent
8da341b
commit 42626fc
Showing
3 changed files
with
53 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
|
||
from PyMieSim.experiment.scatterer import Sphere | ||
from PyMieSim.experiment.source import Gaussian | ||
from PyMieSim.experiment import Setup | ||
import numpy as np | ||
from PyMieSim.units import nanometer, degree, watt, AU, RIU | ||
|
||
source = Gaussian( | ||
wavelength=400 * nanometer, | ||
polarization=[0] * degree, | ||
optical_power=1e-6 * watt, | ||
NA=0.2 * AU | ||
) | ||
|
||
scatterer = Sphere( | ||
diameter=np.linspace(300, 1000, 100) * nanometer, | ||
property=[1.2, 1.25] * RIU, | ||
medium_property=[1.0] * RIU, | ||
source=source | ||
) | ||
|
||
experiment = Setup(scatterer=scatterer, source=source) | ||
|
||
dataframe = experiment.get('a1') | ||
|
||
dataframe.plot_data(x='scatterer:diameter') |