Skip to main content

CoatModel

Struct CoatModel 

Source
pub struct CoatModel {
    pub d: f64,
    pub bmax: f64,
    pub wavelengths: Vec<f64>,
    pub betas: Vec<f64>,
    pub m: Vec<Vec<[[C64; 4]; 2]>>,
    pub psi: Vec<Vec<[f64; 2]>>,
    pub mirror: Option<MirrorModel>,
    pub kinks: Vec<f64>,
    pub note: String,
    pub order: usize,
}
Expand description

暗号化された膜の特性行列モデル(層を読まずに、任意の硝材・向き・波長で使う)。

透過は膜ごと・波長ごと・β = n sinθ ごと・偏光ごとの特性行列 M(OpticStudio の位相を含む)を M = exp(i k ψ) · M̃ と分けて持つ。M̃ は det M̃ = 1 の滑らかな行列、ψ [µm] は OpticStudio が掛ける s・p 共通の位相 −Σ d_j Re(β²/q_j) 由来のスカラー(層の屈折率 Re(n_j) で発散するので、β ≤ bmax だけ使う)。 入射側のアドミタンス e1、基板側 e2(s: n cos、p: n / cos)で t = 2 e1 / (e1 M00 + M10 + e1 e2 M01 + e2 M11) · sqrt(e2 / e1) · exp(i k D n_o / cos_o) (n_o は膜の外側の媒質)。基板側から入る(後ろの媒質が空気)ときは M の対角を入れ替える。 鏡は基準の媒質 n_ref から測った r(位相 exp(2 i k n cos D_m) を外したもの)を持ち、 アドミタンス Y = e_ref (1 − r) / (1 + r) を通して入射側の媒質へ換算する。 補間は order が 0 なら β² で 3 次スプライン、波長は近い 4 点で 1/λ の 3 次。 order が p(4〜12)なら、波長は近い p 点の 1/λ の多項式、β は近い p 点の β² の多項式 (厚い膜でも少ない点で済む。層から作るモデルで使う)。

Fields§

§d: f64

透過の位相の厚さ D [µm]

§bmax: f64

透過で使える β の上限

§wavelengths: Vec<f64>§betas: Vec<f64>

β(昇順、全波長で共通)

§m: Vec<Vec<[[C64; 4]; 2]>>

[波長][β][偏光 s, p] → (M̃00, M̃10, M̃01, M̃11)

§psi: Vec<Vec<[f64; 2]>>

[波長][β][偏光] → ψ [µm]

§mirror: Option<MirrorModel>§kinks: Vec<f64>

波長方向の折れ目 [µm](昇順)。膜の材料の分散表の節で、係数の波長微分がここで跳ぶ。 波長の補間はこの点をまたがない(透過・鏡とも。折れ目の波長でも測っておく)

§note: String

注記(空でなければ利用者に見せる。短い測定から作った近似のモデルの印など)。LBCM 2 の NOTE 行、LBCM 3 の末尾の NOTES

§order: usize

透過の補間の点の数。0 は従来(波長は近い 4 点、β は β² のスプライン)、p(4〜12)は波長・β² とも近い p 点の多項式。 LBCM 2 の ORDER 行、LBCM 4 の値(LBCM 3 は 0 だけ)

Implementations§

Source§

impl CoatModel

Source

pub fn iface( &self, key: &str, wl: f64, n1: f64, n2: f64, phase: PhaseConvention, ) -> Result<Iface>

このモデルだけで境界 key(膜|前|後、鏡は後が MIRROR)の波長 wl [µm] の係数を用意する。 系も膜ファイルも使わない(モデルと OpticStudio の実測表を比べる道具用)。n1・n2 は前後の屈折率

Trait Implementations§

Source§

impl Clone for CoatModel

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for CoatModel

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for CoatModel

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DynClone for T
where T: Clone,

Source§

fn __clone_box(&self, _: Private) -> *mut ()

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.