Fit_Standard

 

See also: Fitting

Top  Previous  Next

 

Important note: This function will not be supported in the future. It has been replaced by a new fitting interface.

 

For some standard components the pure component parameters are unknown or there may be a need to fit them to in-house data.

This function lets the user fit pure component data.

 

The object functions are:

Vapor pressure
Density
Heat capacity
Critical point

 

Note: Most of the input to the function is a range of cells in a fixed format. Please use the wizard to see what this format look like.

 

 

Input

Argument

Type

Optional

Description

 

 

Fitting type

 

 

C#: string

 

 

No

Type of fitting. Possible input are:

Standard: Selected parameters are fitted to the given data based on the selected object function
Volume shift: The volume shift parameter is fitted to the given density data. The ObjectFunction argument is unused in this case.

 

 

Parameters

 

 

C#: object

 

 

No

Range of cells in a fixed format with information for each parameter. Input are:

Initial guess of parameter value

Include the parameter or not

 

ObjectFunction

 

C#: object

 

No

Range of cells in a fixed format with information for each object function. In put are:

Include the object function or not.

Note that for some fitting  types this input is unused.

 

Components

 

C# : string

 

No

Give a list of component names.

Only those components are used in the calculations.

See here for more information

 

Units

 

C# : string

 

No

 

Set the units used in this calculation.

See here for more information

VaporPressureData

C#: object

Yes

Range of cells in a fixed format with data for vapor pressure. The format of the range has to be given in a fixed format.

DensityData

C#: object

Yes

Range of cells in a fixed format with data for density. The format of the range has to be given in a fixed format.

CpData

C#: object

Yes

Range of cells in a fixed format with data for vapor pressure. The format of the range has to be given in a fixed format.

Distribution

C# : object

(Expect a range of double)

Yes

Gives a range with the distribution of the polymer. Can for example be used if 2 flash calculations are liked as 2 separation tanks.

See here for more information

 

BlockMassfraction

C# : object

(Expect a range of double)

 

Yes

Sets the block mass fractions in a copolymer.

See here for more infomation

ProjectSheet

C#: object

Yes

Lets the user set the project sheet to use.

See here for more information

AdvVLXE

C#: object

Yes

Advanced used. Reserved for use by VLXE.

See here for more information

AdvUser

C# : object

Yes

Advanced used. Reserved for the user. For example it can be used to force the function update.

See here for more information

 

 

 

Extra

This function is defined in C# as:

public Object[,] Fit_Standard(string FittingType, MSExcel.Range Parameters, MSExcel.Range ObjectFunction, string Components, string Units, [In, Optional] object VaporPressureData, [In, Optional] object DensityData, [In, Optional] object CpData, [In, Optional] object AdvVLXE, [In, Optional] object AdvUser)