HstPyFitBlock

This block executes a fit (approximation) exported from Altair HyperStudy.

    HstPyFitBlock

Description

HyperStudy offers the option to export an approximation (a "fit") into a compact form package called a PYFIT which is a portable, Python-based, implementation of the fit (the data and the approximation).

The HstPyFit block uses the exported .pyfit file as a parameter and can expose the variables and responses of the fit object as inputs and outputs of the block.

During the simulation, the pyfit object is executed to compute the actual value of the outputs based on the inputs.

Important Note: A license of Altair HyperStudy is required to execute this block.

Parameters

HstPyFitBlock_0

NameLabelDescriptionData TypeValid Values

filename

filename

Name of the HstPyFit file

String

nin

Number of inputs

Number of inputs, related to the variables in the HstPyFit file.

Number

inputs

Variables

List of the input variables

Structure

inputs/name

Name

Cell of strings

inputs/label

Label

Cell of strings

inputs/min

Min

Cell of scalars

inputs/max

Max

Cell of scalars

nout

Number of Outputs

Number of outputs, related to the responses in the hstpyfit file.

Number

outputs

Responses

List of the responses

Ports

NameTypeDescriptionIO TypeNumber

Port 1

explicit

input

nin

Port 2

explicit

output

nout