Skip to main content

Brent or Newton Root finding in DLL

  • December 16, 2019
  • 1 reply
  • 17 views

Brock.MCCABE
Anyone know of an example user defined surface DLL, that uses Brent–Dekker or Newton root-finding for the ray-surface intercept?
Did this topic help you find an answer to your question?

1 reply

Mark.Nicholson
Luminary
Forum|alt.badge.img+3
AFAIK, all the sample files use a generic Newton-Raphson method, but it's no problem to replace that with something better suited to the surface under development.

We use Newton-Raphson in the UDS examples because it is reliable over a very wide range of surface types. You can use methods that converge faster, but you also generally have to handle lots of special cases, and remember that during optimization you may have a specific set of parameter values that you would never enter by hand, so your code must be general enough to handle that.

I would personally stick with N-R unless I had a compelling reason to do otherwise. Is there a specific problem you're experiencing?

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings