The MediumT class

MediumT is a handle class.

Properties

Public properties

name

type

default

description

h

double

Thickness of the layer medium.

num

double

Number of the layer: 1(substrate), 2(medium), 3(cover)

(GetAccess=public , SetAccess=private)

name

type

default

description

name

'water', 'glycerol', 'BK7' or 'none'

Material of the medium ( can be ‘water’, ‘glycerol’, ‘BK7’ or ‘none’).

mesh

double or char

refractive index or nature of the upper medium

mesh_param

Mesh

Coordinates of the points meshing the layer in z.

mesh_Npx

double

Number of mesh points

Dependent properties

name

type

dependence

description

kappa

double

Thermal conductivity of the medium.

b

double

4-number vector defining the dn/dT fit coefficients b1, b2, b3, b4.

Constructor

Constructor

Synthax

% prototypes
MediumT(material,h)
MediumT(material,h,m_p)
MediumT(material,h,m_p,mesh_Npx)

% examples
MediumT('water', 1e-3)
MediumT('glass', 0.1e-3, 'progressive')
MediumT('water', 1e-3, 'regular', 200)
Description

MediumT(material,h) creates a MediumT object representing a material layer of thickness h.


MediumT(material,h,m_p) creates a MediumT object representing a material layer of thickness h, and specifies that the discretization in \(z\) of the layer will be performed using an m_p method. m_p must equal either regular or progressive. regular creates a uniform mesh, with an increment that equals the pixel size of the image. progressive is to be used with thick layer, for which the regular distribution would lead too large a mesh, and too long computation time. It meshes finely the proximity of the interface and roughly further away.


MediumT(material,h,m_p,mesh_Npx). Same as above where the number of mesh points is not automatic, but specified by mesh_Npx.This value can be lower than the automatic one as a means to make the temperature computation faster.


To create a full system, several Medium objects have to be assembled, as an array, as many as the number of layers in the system (i.e. 2 or 3). Once the Medium array Med is created, the mesh is computed using the command

Med = mesher(Med,MI);