ExcelIntegrationCalcProp Method |
Namespace: DWSIM.Thermodynamics.ExcelAddInAssembly: DWSIM.Thermodynamics (in DWSIM.Thermodynamics.dll) Version: 8.8.1.0
Syntax [ExcelFunctionAttribute(Description = "Calculates properties using the selected Property Package.",
HelpTopic = "ExcelAddInHelp.chm!11")]
public static Object[,] CalcProp(
[ExcelArgumentAttribute("The name of the Property Package to use.")] string proppack,
[ExcelArgumentAttribute("The property to calculate.")] string prop,
[ExcelArgumentAttribute("The returning basis of the properties: Mole, Mass or UNDEFINED.")] string basis,
[ExcelArgumentAttribute("The name of the phase to calculate properties from.")] string phaselabel,
[ExcelArgumentAttribute("The list of compounds to include.")] Object[] compounds,
[ExcelArgumentAttribute("Temperature in K.")] double temperature,
[ExcelArgumentAttribute("Pressure in Pa.")] double pressure,
[ExcelArgumentAttribute("*Normalized* mole fractions of the compounds in the mixture.")] double[] molefractions,
[ExcelArgumentAttribute("Interaction Parameters Set #1.")] Object ip1,
[ExcelArgumentAttribute("Interaction Parameters Set #2.")] Object ip2,
[ExcelArgumentAttribute("Interaction Parameters Set #3.")] Object ip3,
[ExcelArgumentAttribute("Interaction Parameters Set #4.")] Object ip4,
[ExcelArgumentAttribute("Interaction Parameters Set #5.")] Object ip5,
[ExcelArgumentAttribute("Interaction Parameters Set #6.")] Object ip6,
[ExcelArgumentAttribute("Interaction Parameters Set #7.")] Object ip7,
[ExcelArgumentAttribute("Interaction Parameters Set #8.")] Object ip8
)
<ExcelFunctionAttribute(Description := "Calculates properties using the selected Property Package.",
HelpTopic := "ExcelAddInHelp.chm!11")>
Public Shared Function CalcProp (
<ExcelArgumentAttribute("The name of the Property Package to use.")> proppack As String,
<ExcelArgumentAttribute("The property to calculate.")> prop As String,
<ExcelArgumentAttribute("The returning basis of the properties: Mole, Mass or UNDEFINED.")> basis As String,
<ExcelArgumentAttribute("The name of the phase to calculate properties from.")> phaselabel As String,
<ExcelArgumentAttribute("The list of compounds to include.")> compounds As Object(),
<ExcelArgumentAttribute("Temperature in K.")> temperature As Double,
<ExcelArgumentAttribute("Pressure in Pa.")> pressure As Double,
<ExcelArgumentAttribute("*Normalized* mole fractions of the compounds in the mixture.")> molefractions As Double(),
<ExcelArgumentAttribute("Interaction Parameters Set #1.")> ip1 As Object,
<ExcelArgumentAttribute("Interaction Parameters Set #2.")> ip2 As Object,
<ExcelArgumentAttribute("Interaction Parameters Set #3.")> ip3 As Object,
<ExcelArgumentAttribute("Interaction Parameters Set #4.")> ip4 As Object,
<ExcelArgumentAttribute("Interaction Parameters Set #5.")> ip5 As Object,
<ExcelArgumentAttribute("Interaction Parameters Set #6.")> ip6 As Object,
<ExcelArgumentAttribute("Interaction Parameters Set #7.")> ip7 As Object,
<ExcelArgumentAttribute("Interaction Parameters Set #8.")> ip8 As Object
) As Object(,)
Request Example
View SourceParameters
- proppack String
-
- prop String
-
- basis String
-
- phaselabel String
-
- compounds Object
-
- temperature Double
-
- pressure Double
-
- molefractions Double
-
- ip1 Object
-
- ip2 Object
-
- ip3 Object
-
- ip4 Object
-
- ip5 Object
-
- ip6 Object
-
- ip7 Object
-
- ip8 Object
-
Return Value
ObjectSee Also