Coming from OpticStudio or CODE V#

A term-by-term map for designers who know OpticStudio (Zemax) or CODE V. Each row gives the name of the same thing in each tool. In the Optiland column, lens is an Optic.

  • An empty cell means there is no direct equivalent, or none that could be checked.

  • Matching names do not promise matching numbers. Units, sign conventions and default ray sampling can differ between tools. Validation lists the differences found so far.

  • To bring a whole design across, see File formats.


System setup#

OpticStudio

CODE V

Optiland

Aperture type: Entrance Pupil Diameter

EPD

lens.set_aperture(aperture_type="EPD", value=...), EPDAperture

Aperture type: Image Space F/#

FNO

aperture_type="imageFNO", ImageFNOAperture

Aperture type: Object Space NA

NAO

aperture_type="objectNA", ObjectNAAperture

Aperture type: Float By Stop Size

aperture_type="float_by_stop_size", FloatByStopAperture

Field type: Angle

Object angle (XAN, YAN)

lens.fields.set_type("angle"), then lens.fields.add(y=...), AngleField

Field type: Object Height

Object height (XOB, YOB)

"object_height", ObjectHeightField

Field type: Paraxial Image Height

Paraxial image height (XIM, YIM)

"paraxial_image_height", ParaxialImageHeightField

Field type: Real Image Height

Real image height (XRI, YRI)

"real_image_height", RealImageHeightField

Vignetting factors VCX, VCY

vx and vy in lens.fields.add()

Wavelengths, primary wavelength and weights

WL, REF, WTW

lens.wavelengths.add(value=..., is_primary=True, weight=...), WavelengthGroup

Ray Aiming

lens.ray_tracer.set_aiming(mode) with "paraxial", "iterative" or "robust"


Surfaces#

Pass the Optiland name as surface_type to lens.surfaces.add().

OpticStudio

CODE V

Optiland

Standard

Sphere, Conic (SPH)

"standard" with radius and conic, StandardGeometry

Even Asphere

Asphere (ASP)

"even_asphere", EvenAsphere

Odd Asphere

"odd_asphere", OddAsphere

Toroidal

"toroidal", ToroidalGeometry

Biconic

"biconic", BiconicGeometry

Zernike Standard Sag

"zernike" with zernike_type="noll", ZernikePolynomialGeometry. Optiland’s "standard" is the OSA/ANSI ordering, not OpticStudio’s.

Zernike Fringe Sag

"zernike" with zernike_type="fringe"

Chebyshev Polynomial

"chebyshev", ChebyshevPolynomialGeometry

Q-Type Asphere

"forbes_qbfs", ForbesQNormalSlopeGeometry

Q-Type Freeform

"forbes_q2d", ForbesQ2dGeometry

Grid Sag

"grid_sag"

Paraxial

MFL

"paraxial" with the focal length f

Coordinate Break

Decenter and tilt (XDE, YDE, ZDE, ADE, BDE, CDE)

dx, dy, rx, ry, rz in lens.surfaces.add(). See Tutorial 4a.

Diffraction Grating

"grating", StandardGratingGeometry

Binary 2

interaction_type="phase" with RadialPhaseProfile (phase in even powers of r)


Solves and pickups#

OpticStudio

CODE V

Optiland

Thickness solve: Marginal Ray Height

PIM (paraxial image solve, height 0 at the image)

lens.solves.add("marginal_ray_height", surface_idx, height=...), MarginalRayHeightThicknessSolve

Thickness solve: Chief Ray Height

"chief_ray_height", ChiefRayHeightThicknessSolve

Curvature solve: Marginal Ray Angle

lens.solves.add("marginal_ray_angle", surface_idx, angle=...), MarginalRayAngleCurvatureSolve

Curvature solve: Chief Ray Angle

"chief_ray_angle", ChiefRayAngleCurvatureSolve

Quick Focus

lens.solves.add("quick_focus"), QuickFocusSolve

Pickup

Pickup

lens.pickups.add(source_surface_idx, attr_type, target_surface_idx, scale, offset), Pickup


Optimization operands#

Operands go into an OptimizationProblem with problem.add_operand(operand_type=..., target=..., weight=..., input_data=...). Give min_val or max_val instead of target for a bound. The Optiland names below are the keys of the operand registry (optiland.optimization.operand.operand_registry).

OpticStudio

CODE V

Optiland

EFFL

EFL (specific constraint)

"f2"

PMAG

"magnification"

ENPP

"EPL" (from the first surface)

EPDI

"EPD"

EXPP

"XPL" (from the image surface)

EXPD

"XPD"

TOTR

"total_track"

ISFN

WFNO

TTHI

"center_thickness" for a single gap

CTVA, CTGT, CTLT

Minimum and maximum center thickness (general constraints)

"center_thickness" with target, min_val or max_val

ETVA, ETGT, ETLT

Minimum edge thickness (general constraints)

"edge_thickness" with target, min_val or max_val

REAX, REAY, REAZ

"real_x_intercept_lcs", "real_y_intercept_lcs", "real_z_intercept_lcs" (relative to the surface vertex)

RAGX, RAGY, RAGZ

"real_x_intercept", "real_y_intercept", "real_z_intercept" (global coordinates)

REAR

TRAC

RAID

"AOI"

RSCE

"rms_spot_size" (about the centroid)

RWCE

SPHA, COMA, ASTI, FCUR, DIST

"seidel" with seidel_number 1 to 5

DIMX

MTFT, MTFS

ZERN

Optiland operands with no row above: "f1", "f2_range", "F1", "F2", "P1", "P2", "N1", "N2", "real_L", "real_M", "real_N", "clearance", "OPD_difference", and the per-surface third-order terms "TSC", "SC", "CC", "TCC", "TAC", "AC", "TPC", "PC", "DC", "TAchC", "LchC", "TchC" with their _sum forms.


Analyses#

OpticStudio

CODE V

Optiland

Spot Diagram

Spot Diagram

SpotDiagram

Ray Fan

Ray Aberration Curves

RayFan

OPD Fan

OPD Aberration Curves

OPDFan

Field Curvature and Distortion

FieldCurvature, Distortion

Grid Distortion

GridDistortion

Relative Illumination

RelativeIllumination

FFT MTF

MTF (diffraction)

FFTMTF

Huygens MTF

HuygensMTF

Geometric MTF

MTF (geometrical)

GeometricMTF

MTF vs. Field

MTFvsField

Through Focus MTF

ThroughFocusMTF

FFT PSF

Point Spread Function

FFTPSF

Huygens PSF

HuygensPSF

Geometric Encircled Energy

EncircledEnergy

Wavefront Map

Pupil Map

OPD

RMS vs. Field

Wavefront Analysis (RMS wavefront error)

RmsWavefrontErrorVsField, RmsSpotSizeVsField

Zernike Standard Coefficients

ZernikeOPD with zernike_type="noll"

Zernike Fringe Coefficients

ZernikeOPD with zernike_type="fringe"

Seidel Coefficients, Seidel Diagram

Third Order Aberrations

lens.aberrations (Aberrations), SeidelDiagram

Longitudinal Aberration

LongitudinalAberration

Lateral Color

LateralColor

Chromatic Focal Shift

ChromaticFocalShift

Footprint Diagram

FootprintDiagram

Prescription Data

List Lens Data

Prescription, lens.info()


Tolerancing#

OpticStudio

CODE V

Optiland

Tolerance Data Editor

Tolerancing with add_perturbation() and add_operand()

Compensators

add_compensator(), CompensatorOptimizer

Sensitivity

SensitivityAnalysis

Monte Carlo

MonteCarlo


File formats#

OpticStudio

CODE V

Optiland

.zmx

load_zemax_file(), save_zemax_file(). See Tutorial 1d and Zemax import: glass resolution.

.seq

load_codev_file(), save_codev_file(). See CODE V (.seq) File Import Demo.

Optiland also reads and writes OSLO .len files (load_oslo_file(), save_oslo_file(), see OSLO import compatibility), and saves any system as JSON with save_optiland_file() and load_optiland_file(). All of these are imported from optiland.fileio.