Class MicroscopeFactory
java.lang.Object
org.episteme.natural.physics.classical.waves.optics.MicroscopeFactory
Factory methods for common microscope configurations.
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
-
Method Summary
Modifier and TypeMethodDescriptionstatic CompoundMicroscopecompound(Real objectiveFocalLength, Real eyepieceFocalLength, Real tubeLength, Real objectiveRadius) Creates a simple compound microscope (two lenses).static RealdepthOfField(Real wavelength, Real refractiveIndex, Real numericalAperture) Calculates depth of field.static RealnumericalAperture(Real refractiveIndex, Real halfAngle) Calculates numerical aperture (NA).static RealresolutionLimit(Real wavelength, Real numericalAperture) Calculates resolution limit (Rayleigh criterion). d = 0.61 * λ / NAstatic RealtotalMagnification(Real tubeLength, Real objectiveFocalLength, Real eyepieceFocalLength) Calculates total magnification of a compound microscope.
-
Method Details
-
compound
public static CompoundMicroscope compound(Real objectiveFocalLength, Real eyepieceFocalLength, Real tubeLength, Real objectiveRadius) Creates a simple compound microscope (two lenses).- Parameters:
objectiveFocalLength- Focal length of objective lens (short, e.g. 4mm)eyepieceFocalLength- Focal length of eyepiece lens (e.g. 25mm)tubeLength- Distance between lenses (e.g. 160mm standard)objectiveRadius- Radius/aperture of objective lens- Returns:
- Compound microscope optical system
-
totalMagnification
public static Real totalMagnification(Real tubeLength, Real objectiveFocalLength, Real eyepieceFocalLength) Calculates total magnification of a compound microscope. M = (L / f_obj) * (25cm / f_eye) where L is tube length and 25cm is near point distance.- Parameters:
tubeLength- Optical tube lengthobjectiveFocalLength- Objective focal lengtheyepieceFocalLength- Eyepiece focal length- Returns:
- Total magnification
-
numericalAperture
Calculates numerical aperture (NA). NA = n * sin(θ)- Parameters:
refractiveIndex- Medium refractive index (1.0 for air, ~1.5 for oil)halfAngle- Half-angle of maximum cone of light (radians)- Returns:
- Numerical aperture
-
resolutionLimit
-
depthOfField
Calculates depth of field. DOF ≈λ * n / NA²- Parameters:
wavelength- Wavelength of lightrefractiveIndex- Medium refractive indexnumericalAperture- Numerical aperture- Returns:
- Depth of field
-