|
Important note: This function will not be supported in the future. It has been replaced by a new fitting interface.
Fitting pure component parameters for polymers are a challenge since there is not enoth pure component data to get the parameters. Often only density and heat capacity is available. The solution is to fit the parameters for the polymer using binary data. But using care it is possible to obtain parameters this way that is independent of the type of solvent in the binary data.
This function therefore can fit 2 types of parameters
| • | Pure parameter for a polymer |
| • | Kij between a solvent and a polymer |
The object functions are:
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.
|
CloudPointType
|
C#: string
|
No
|
Cloud point type to perform for each point
Possible input are:
|
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
|
CloudPointData
|
C#: object
|
Yes
|
Range of cells in a fixed format with data for cloud point. 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_Polymer(string FittingType, MSExcel.Range Parameters, MSExcel.Range ObjectFunction, string CloudPointType, string Components, string Units, [In, Optional] object CloudPointData, [In, Optional] object DensityData, [In, Optional] object CpData, [In, Optional] object Distribution, [In, Optional] object BlockMassfraction, [In, Optional] object AdvVLXE, [In, Optional] object AdvUser)
|