Skip to main content

The choice of fit types in the STAR API


Forum|alt.badge.img+1

Hello, STAR users!  We’ve gotten a couple of questions about the type of fit used in the API for STAR, so I thought I would share the answer here.

The STAR API includes a SetThermalFEAFitType command.  The allowed types are 0 = direct fit to the temperature data, 1 = direct fit to the index data, 2 = temperature fit + index correction.  The GUI currently uses option 2 for polychromatic files and 1 for monochromatic files. 

The API, though, always defaults to 1, which is only suitable for models that use a single wavelength.

For best results, always set the fit type to 2.  Here’s a code snippet to help you:

surface3 = myStopSystem.LDE.GetSurfaceAt[3].STARData.Temperatures;

surface3.SetThermalFEAFitType(2)
surface3.GetThermalFEAFitType()

 

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