<p>To calculate the focal length of an optical element, the two main factors are the refraction index and the shape of the lens.</p>
<p>For a cylindrical lens with one optic active side (that is, one domed or bowled side), we can ignore the whole bottom cylinder and just take into account the top dome. The shape of the dome is determined by the radius of the circle that created it.</p>
<h1>Thin, single sided lenses</h1>
<p>For a thin, single-sided lens the rather complicated Gullstrand’s formula to calculate the focal length of lenses becomes rather simple:</p>
<p><span class="math-container">$f = \frac {r}{(n-1)}$</span> for the bend facing the object</p>
<p><span class="math-container">$f = \frac {r}{(1-n)}= \frac {-r}{(n-1)}$</span> for mounting it in reverse.</p>
<p>A <a href="https://polymerdatabase.com/polymer%20physics/Ref%20Index%20Table%20.html" rel="nofollow noreferrer">Polymer database</a> did give a refraction index of PLA as <span class="math-container">$n=1.465$</span>.</p>
<h1>Thick, single sided lenses</h1>
<p>For a thick lens with a total thickness of <span class="math-container">$d$</span> and one active side, we solve first for the one active side, and then insert:
<span class="math-container">$$f_1=\frac{r}{n}  \land \frac {-r}{(1-n)} ; f_2=\infty ; P_i = \frac 1 {f_i}$$</span>
<span class="math-container">$$P=P_1+P_2 -P_1P_2\frac d n ; P_2\to0$$</span>
<span class="math-container">$$f=\frac{1}{P_1}=f_1$$</span>
As long as one side of our lense stays flat, the thickness of the lense is mathematically not relevant (save for increasing dispersion).</p>

CC BY-SA 4.0
2019-01-08T15:34:06.290Z
That last line is not strictly true.  The thickness doesn't affect the paraxial trace a lot, but does affect higher-order distortion terms.  In addition, since your material is almost certainly dispersive ( index varies with wavelength), the thickness will lead to spectral distortion.  BTW,  your "mounting in reverse" formula is identical to the first formula: just multiply by $\frac{-1}{-1}$
Carl Witthoft
CC BY-SA 4.0
2019-01-08T15:35:45.257Z
@CarlWitthoft duh! missed a minus sign...
Trish
CC BY-SA 4.0
2019-01-08T16:31:28.990Z
aha!   Tho' I will say that us "Optickers" usually leave the sign of the radius of curvature as positive for a convex surface with the understanding that the focal length is always positive for a real image and negative for a virtual image.  But so long as your notation is self-consistent, no big deal.
Carl Witthoft
CC BY-SA 4.0
2019-01-07T15:54:09.763Z
2019-01-08T15:36:38.357Z
2020-06-18T08:29:41.667Z
Trish
<p>Recently, I did discover that it might be possible to print <a href="https://learn.colorfabb.com/lets-make-something-clear/" rel="nofollow noreferrer">fully solid</a>, air free and thus optical homogenous, even with PLA.</p>

<p>How can I design a proper focusing lens (or rather: single sided lens with a flat bottom) with this, ignoring the <a href="http://fenneclabs.net/index.php/2018/12/09/3d-printing-transparent-parts-using-fdm-fff-printer/" rel="nofollow noreferrer">post-processing</a> needed to get the surface smooth?</p>

CC BY-SA 4.0
2019-01-08T20:25:30.123Z
I guess I'll ask, if not about post processing or print orientation...how does this apply to 3D printing?
tjb1
<pla><3d-design>
Designing lenses
Trish
# Designing lenses

(Asked by: username_0 on 2019-01-07)

Recently, I did discover that it might be possible to print [fully solid](https://learn.colorfabb.com/lets-make-something-clear/), air free and thus optical homogenous, even with PLA.

How can I design a proper focusing lens (or rather: single sided lens with a flat bottom) with this, ignoring the [post-processing](http://fenneclabs.net/index.php/2018/12/09/3d-printing-transparent-parts-using-fdm-fff-printer/) needed to get the surface smooth?

**Tags:** pla, 3d-design

> **Comments:**
> **username_1**: I guess I'll ask, if not about post processing or print orientation...how does this apply to 3D printing?  

---

## 1 answers

### Answer by username_0 on 2019-01-07. Score: 3 | Accepted answer

To calculate the focal length of an optical element, the two main factors are the refraction index and the shape of the lens.

For a cylindrical lens with one optic active side (that is, one domed or bowled side), we can ignore the whole bottom cylinder and just take into account the top dome. The shape of the dome is determined by the radius of the circle that created it.

# Thin, single sided lenses

For a thin, single-sided lens the rather complicated Gullstrand’s formula to calculate the focal length of lenses becomes rather simple:

$f = \frac {r}{(n-1)}$ for the bend facing the object

$f = \frac {r}{(1-n)}= \frac {-r}{(n-1)}$ for mounting it in reverse.

A [Polymer database](https://polymerdatabase.com/polymer%20physics/Ref%20Index%20Table%20.html) did give a refraction index of PLA as $n=1.465$.

# Thick, single sided lenses

For a thick lens with a total thickness of $d$ and one active side, we solve first for the one active side, and then insert:
$$f\_1=\frac{r}{n} \land \frac {-r}{(1-n)} ; f\_2=\infty ; P\_i = \frac 1 {f\_i}$$
$$P=P\_1+P\_2 -P\_1P\_2\frac d n ; P\_2\to0$$
$$f=\frac{1}{P\_1}=f\_1$$
As long as one side of our lense stays flat, the thickness of the lense is mathematically not relevant (save for increasing dispersion).

> **Comments:**
> **username_2**: That last line is not strictly true.  The thickness doesn't affect the paraxial trace a lot, but does affect higher-order distortion terms.  In addition, since your material is almost certainly dispersive ( index varies with wavelength), the thickness will lead to spectral distortion.  BTW,  your "mounting in reverse" formula is identical to the first formula: just multiply by $\frac{-1}{-1}$  
> **username_0**: @username_2 duh! missed a minus sign...  
> **username_2**: aha!   Tho' I will say that us "Optickers" usually leave the sign of the radius of curvature as positive for a convex surface with the understanding that the focal length is always positive for a real image and negative for a virtual image.  But so long as your notation is self-consistent, no big deal.  

---

