Test of Desmos model against FEA reflector beam simulation

The purple, red, and orange bars represent the (inner and outer) hotspot, corona, and spill.

The green plot, as a transform of raw intensity L, is 6*ln(1+Lc^2) where c is the emitter:reflector diameter ratio. This transform is logarithmic for large input and linear for small input, which allows fine detail to be preserved on either end.

Once you enter the Desmos link, toggle objects/folders on the left side to reveal/hide the visual elements within. Toggle the small triangle to expand/contract the folder.

In the wall screenshots below, throwier lights have their spill excluded to better bring out the central parts.


M21B F150R: M21B F150R model | Desmos

M21B F45R: M21B F45R model | Desmos

M21B SFT25R: M21B SFT25R model | Desmos

C8 SFT42R: C8 SFT42R model | Desmos

C8 SFT25R: C8 SFT25R model | Desmos

3 Thanks

nice work putting this up against FEA data. the correlation at wider angles (>30 degree off axis) is where most simple models fall apart so it is cool to see desmos holding up there. the biggest divergence you will see in real life is reflector surface finish — the FEA assumes perfect specular reflection but even orange peel scatters a few percent. if you want to test that, model a gaussian spread around the specular angle (sigma ~2-5 degree depending on the OP texture) and see how it changes the spill region. curious what reflector geometry you tested?

1 Thank

Thanks!

What happens at wider angles was actually the easiest part of the model, because the spill is produced by the bare emitter and is therefore almost independent of reflector geometry. If the parabolic reflector were replaced by a simple cone or some similar shape with the same radius and height, the spill does not change at all.

A common mistake I see with many simpler models is that they treat the reflector as if it were a lens, with a well-defined focal length and beam angle. This is simply not the case–the actual behavior of a reflector is much more complex, and of a piecewise nature. The (unpleasantly) piecewise nature of the situation is apparent if one expands the Desmos folders and skims the formulas within!

Additionally, many reflectors are sadly just misshapen–I’ve got myself 4 S2+ smooth reflectors from different years, and all of them are misshapen enough that they cannot produce a symmetric, well-focused beam even after tuning the centering and focus. Such a defect cannot reasonably be modeled.

Reflector texture can only influence light that hits the reflector. Since spill is produced by the bare emitter, it remains unchanged.

What would change is the hotspot and coronas, and one way to model it, as you said, is to convolve with a Gaussian. However, the definitions I used for the beam parts rely strongly on the beam parts having sharp delineations, which no longer apply to a diffused beam. The only sensible and consistent prediction for hotspot, corona, etc., would be to treat the reflector as smooth, and to interpret the result as being not literally correct but correct on average.

Here’s a simple example to clarify what I meant conceptually. If you have a point-mass probability distribution at 1, you can describe the location of the distribution as being at 1. If you blur/convolve it with a mean-zero Gaussian, then the resulting distribution covers the whole real line and therefore does not have a well-defined location. However, you can still assign it a location of 1, which is correct on average: the resulting convolved distribution has mean/expectation 1.

Both the FEA simulation and my model assume that the reflecting surface is cut from a circular paraboloid, i.e., some scaled copy of the surface z = x^2+y^2.

1 Thank

This is super cool man. Very impressive that you’re able to define these points formulaically. I like that it you separate the primary and secondary hotspot and corona. I put together a L21A with SFT60 yesterday and noticed that the visible beam at a distance doesn’t really align with edge of the corona or the 90% hotspot. Based on what you modeled here, I think the primary corona would probably be a better fit. I’ll poke around with it a bit more when I have some time later and see if I can display these in the sim. Would be cool to superimpose on them plots directly and see how they line up, or to have as a quick visualization without having to run the sim.

@ZC_Lighting the default behavior in the FEA is to model it as a specular reflector, then apply a gaussian blur on the reflected rays. It will still scatter the light to infinite, but it’s a simple approximation. If you have the compute to spare, there’s an option in the settings in from v0.0.5 onwards called “Use Dimple Bump-Map for Orange Peel”. It adds a sinusoidal texture to the reflector surface that will scatter each individual ray of light.

It does bring the spill out slightly because you have normal perturbation, so light hitting just the right part of the orange peel texture can land far outside the spill. The effect isn’t huge but you get light scattered pretty far out.

1 Thank

Thank you! If you want to display it in the sim, maybe I can try to write things up a bit better–at the moment the Desmos might be a bit hard to parse. But it might also be worth testing the model thoroughly before committing this effort.

The hope is indeed to learn so much from your FEA data that the model can be used for a quick visual without having to run the sim, which could be helpful for less tech-savvy folks or those without access to powerful computing machinery.

As ridiculous as it sounds: since the light does hit the orange-peel texture in order to land far outside the spill, it technically meets the definition of “outer corona” in my model, rather than the spill! There is some justification for this view too, since the light falling outside the spill cone comes from the diffused outer corona.

But for practical purposes perhaps it is more useful to think of it as spill, which would make the definition of corona extremely tricky to pin down in an OP setup.

The smoothing action of the texture really messes with any attempt to separate the beam into parts–if the smoothing is sufficiently strong, the beam profile approaches the PSF (say, Gaussian) in the limit, so any beam from an OP reflector can be thought of as an interpolant between the original smooth-reflector beam and a Gaussian. In this extreme-diffusion case, it might be more useful to define parts of the beam using multiplicative proportions, as you did.

Makes sense. I’ll play around with it later and test it out with the L21A + SFT60 and see how it lines up with my last build.

That would be amazing. Much easier to deploy as a web app too!

I struggled a bit with the Gaussian blur because the interpolation doesn’t really have a physical representation. The “blur factor” doesn’t mean anything to me and I ended up calibrating it with specific flashlights. Directionally, it works, but I haven’t tested how well it works with different reflector and emitter geometries either.

1 Thank

Also interested! Let me know which gasket you’re using, and I can probably use the built-in library to figure out LES offset and other parameters to put into Desmos.

This is a real issue. The Gaussian distribution has unbounded support, so it doesn’t make a whole lot of sense to use it to model any distribution on a bounded space, like the space of directions in 3D, equivalently, the surface of a unit sphere. Furthermore, the convolution-of-identical-distributions scenario, where Gaussian distributions arise, doesn’t really come into play here. Adding two beams is just simple addition, not convolution.

I wonder if anyone has some physical insight on the manufacturing process of the OP texture–that might shed light on what sort of blurs are appropriate. But really I don’t think most users care about which blur model we use, or what the distinction between inner and outer hotspot is–at this point we’re just doing things for our own enjoyment and satisfaction.

Using the 9mm 5050. One thing I noticed last night was that one of them only raised the reflector up 0.75mm, the other was 1.00mm. I ended up using the 1.0 mm one. There was another one where the injection points were raised, instead of recessed, so it ended up being 1.2mm. Pretty big discrepency and a good reason to check the gaskets before installing.

I found this. I think you’re right that most people won’t care, but having a reliable way to estimate OP beams would be nice.

1 Thank

I get the impression that the quality and consistency of Convoy’s gaskets are getting worse and worse. In the earlier years (right) they were machined, nowadays they are injection-molded and end up lopsided (left):


But the amount of variance you described is crazy. TBH I find it disappointing that Convoy skimped out on the cheapest but one of the most important parts in the optical assembly, while cheaper lights I’ve got from cheaper brands all have very well-made gaskets. Been a problem for years at this point…

Thanks for the OP article, my bet would also be on a specialized mold rather than the resource-intensive extended deposition process. In this case the exact texture would be anyone’s guess.

1 Thank

Quick error check on the 5 lights I tested the model on: Model error | Desmos

In short, the intensity predictions all have less than 0.3% relative error. The output predictions all have less than 3% relative error, but all with the same sign, so I could think more to see what I missed.

I’m not terribly fussed as this is well within the variation among samples of the same emitter; even more so when factors such as battery choice and contact resistance are considered.

A crude attempt at modeling the L21A SFT60, which should hopefully be suggestive of how the beam actually looks IRL:

I tried to also simulate this with the FEA on my machine, but it seems incapable of achieving enough resolution to make out any detail in the center of the beam, without causing the program to hang. Lights with extremely tight beams require extra resolution–more than my machine can handle.

The library has the LES at 4.84mm^2, but photos of it suggest that the actual LES is larger, which would be consistent with Luminus nomenclature. Unfortunately I couldn’t find any datasheets…

Yea, I get the feeling that most people don’t think the gasket is that important. I just get a bunch and pick out the good ones at this point.

If it was just a deposition method, the OP texture would probably be in the single digit micrometer range. Most of the aluminum reflectors are turned on a lathe, so I would imagine that a thicker pattern would have to be built into the programming. Maybe I should just get the cheapest one I can find and scrape off the pvd coating and see.

That’s definitely good enough. There’s way bigger variation between review sites and supplier specs.

I couldn’t find any datasheet either. My numbers might not be super accurate on that either. If you want, you can always take an orthogonal photo and give it to a GPT and ask it to count the pixels and interpolate based on the chip footprint.