|
.NET Interface to CHEMCAD
1.1.11
|
- Class CCAPI.ColumnHydraulicsResult
- This class stores the information about column hydralics of the SCDS column. This class makes it easier to access column hydraulic results.
- Class CCAPI.FlashResult
- This class contains the results from flash methods.
- Class CCAPI.FlowCollection
- This class reduces the danger of wrong inputs. This class is used to define flowrate of components to be used in different calculations
- Class CCAPI.Flowsheet
- Flash methods can be used using both internal engineering units and current flowsheet units.
- Member CCAPI.Flowsheet.HeatCurveEqualCutH (UnitOperations.HeatExchanger heatx, int numberOfPoints)
- This method can be used to generate heat curve points using equal cut H method.
- Member CCAPI.Flowsheet.HeatCurveEqualCutT (UnitOperations.HeatExchanger heatx, int numberOfPoints)
- This method can be used to generate heat curve points using equal cut T method.
- Class CCAPI.FlowsheetUnits
- CCAPI has two sets of engineering units: Internal flowsheet units and current flowsheet units.
- Class CCAPI.KValuesResult
- This class contains the results obtained from calculate K-value method.
- Class CCAPI.OptimizationVariables
- This class makes it easier to handle optimization variables and problems. This class contains all the information needed for optimization problem.
- Class CCAPI.StreamInCurUnits
- Stream values in flowsheet units.
- Member CCAPI.StreamInCurUnits.SetCompFlow (FlowRateCurUnits[] compFlowrates)
- Set component flowrates independent of other stream properties.
- Member CCAPI.StreamInCurUnits.SetOneCompFlow (FlowRateCurUnits compFlowrate)
- No need to defined flowrate of all the components.
- Member CCAPI.StreamInCurUnits.SetPressure (float value)
- Stream pressure can be set independently
- Member CCAPI.StreamInCurUnits.SetStreamEnthalpy (float value)
- Stream enthalpy can be set independently
- Member CCAPI.StreamInCurUnits.SetTemperature (float value)
- Stream Temperature can be set independently
- Member CCAPI.StreamInCurUnits.SetVaporFraction (float value)
- Stream vapor fraction can be set independently
- Member CCAPI.StreamInInternalUnits.SetStreamEnthalpy (float value)
- Stream enthalpy can be set independently
- Member CCAPI.StreamInInternalUnits.SetVaporFraction (float value)
- Stream vapor fraction can be set independently
string Velocity
Unit used for velocity.
Definition: InternalUnits.cs:267
void RestoreToInitialState()
Restore dynamic simulation to initial state.
Definition: Server.cs:282
Definition: StreamMixer.cs:8
string Temperature
Unit used for temperature.
Definition: FlowsheetUnits.cs:113
Definition: Crystallizer.cs:8
string SpecificVolume
Unit used for specific volume.
Definition: FlowsheetUnits.cs:257
float ModifiedAcentricFactor
Definition: Component.cs:250
float VaporZfactor
Definition: StreamInInternalUnits.cs:379
float TotalMassRate
Total mass rate of this stream.
Definition: StreamInCurUnits.cs:76
string HeatOfReaction
Unit used for heat of reaction.
Definition: FlowsheetUnits.cs:177
FlowsheetUnits UnitsCurrent
Returns all units used in this flowsheet.
Definition: IFlowsheet.cs:17
float LiquidStdLiquidVolumeRate
Definition: StreamInCurUnits.cs:465
float VaporEnthalpy
Definition: StreamInCurUnits.cs:313
float LiquidAndSolidActualDensity
Definition: StreamInInternalUnits.cs:523
Component GetComponentByPosition(short position)
Get compononet by its position in the flowsheet. The first component is at positon 0.
Definition: Flowsheet.cs:492
string InverseLiquidVolume
Unit used for inverse liquid volume.
Definition: FlowsheetUnits.cs:409
void SetParameterInCurUnits(short parameterId, float parVal)
Set parameter of unit op in current flowsheet units.
Definition: UnitOperation.cs:178
string PressureDifference
Unit used for pressure differences.
Definition: FlowsheetUnitss.cs:153
short GetNumberOfJobsInWorkDirectory
Gets the number of jobs in the working directory.
Definition: ServerImpl.cs:560
Definition: SolidsDryer.cs:8
float VaporActualVolumeRate
Definition: StreamInInternalUnits.cs:347
void SetTemperaturePressure(float temperature, float pressure)
Set Temperature and Pressure.After setting the values the stream is reflashed and streams is updated.
Definition: StreamInCurUnits.cs:702
Definition: ChemcadCannotWriteToTheTempDirectoryException.cs:9
string SurfaceTension
Unit used for surface tension.
Definition: FlowsheetUnitss.cs:233
StreamCollectionCurUnits CutStreamsInCurUnits
List of cut streams used in the flowsheet.
Definition: IFlowsheet.cs:54
string RuntimeMessages
Returns the runtime messages of CHEMCAD.
Definition: Server.cs:160
float OTSTimeScale
If a value is written in OTSTimeScale, CHEMCAD attempts to run dynamic simulations at [time scale] * ...
Definition: Flowsheet.cs:801
Definition: KineticReactor.cs:8
string TemperatureUnit
Definition: InternalUnits.cs:27
float VaporMoleRate
Definition: StreamInInternalUnits.cs:299
string PackedColumnPressureDrop
Unit used for packed column pressure drop.
Definition: FlowsheetUnits.cs:305
@ EnthalpyPressure
Enthalpy - Pressure
UnitOperation GetUnitOperationById(short id)
Gets unit operation by ID. It is recommended to use this method instead of calling unit operations by...
float TimeStepInMinute
Returns the time step of a dynamic simulation in minutes.
Definition: ServerImpl.cs:464
void RunAllUnits()
Run all units in a steady state simulation.
Definition: ServerImpl.cs:389
float LiquidMassRate
Definition: StreamInInternalUnits.cs:419
float[] SurfaceTensionAdditional
Definition: Component.cs:422
float VaporActualVolumeRate
Definition: StreamInCurUnits.cs:345
float LiquidZfactor
Definition: StreamInCurUnits.cs:489
float[] AntoineVaporPressureEquation
Definition: Component.cs:399
FlashResult CalculateTPFlash(float flashTemperature, float flashPressure, StreamInInternalUnits stream)
Calculates a TP flash using single stream in internal units.
Definition: Flowsheet.cs:171
float ConvertFromInternalUnitToFlowsheetUnit(UnitType type, float value)
Convert the numerical value of the unit from internal unit to flowsheet units
Definition: FlowsheetUnits.cs:434
float Temperature
Temperature of the stream.
Definition: StreamInInternalUnits.cs:103
StreamInInternalUnits GetStreamByIdInInternalUnits(short id)
Gets stream properties by id.
Definition: Flowsheet.cs:381
Definition: DynamicVessel.cs:8
float LiquidLatentHeat
Definition: StreamInInternalUnits.cs:539
string CakeResistance
Unit used for cake resistance.
Definition: FlowsheetUnitss.cs:257
float VABP
Definition: StreamInInternalUnits.cs:243
void SetProperty(CompFlowType type, Component component, float value)
Puts the property of a stream.
Definition: StreamInCurUnits.cs:790
Definition: CrusherGrinder.cs:8
float Enthalpy
Enthalpy of the stream.
Definition: StreamInInternalUnits.cs:127
float VaporEntropy
Definition: StreamInCurUnits.cs:321
short StreamCostType
Type of cost of the stream.
Definition: StreamInInternalUnits.cs:143
FlashResult CalculateVTFlash(float flashVaporFraction, float flashTemperature, StreamInCurUnits stream)
Calculates a VT flash Takes Stream values in current flowsheet units. Takes single stream as a parame...
Definition: Flowsheet.cs:292
float VapStdVaporVolumeRate
Definition: StreamInCurUnits.cs:361
void RunOptimization()
Run optimization.
Definition: Server.cs:178
void PutBinaryInteractionParameters(Component otherComponent, float[] values)
Set binary parameters
Definition: Component.cs:495
void ReflashStream()
Reflash stream
Definition: StreamInCurUnits.cs:648
float LiquidActualVolumeRate
Definition: StreamInInternalUnits.cs:459
float Pressure
Pressure of the stream.
Definition: StreamInCurUnits.cs:108
float APINetHeatingValue
Definition: Component.cs:282
void PutParticleSizeDistribution(short solidCompID, short noOfCuts, object particleSizes, object weightFractions)
Sets the particle size distribution.
Definition: StreamInCurUnits.cs:746
UnitOperationCollection UnitOperations
Returns all unit operations in a flowsheet. The enumeration starts with 0 and is not necessarily the ...
Definition: IFlowsheet.cs:30
FlashResult CalculateVTFlash(float streamTemperature, float streamPressure, float streamEnthalpy, float flashVaporFraction, float flashTemperature, FlowRateInternalUnits[] flow)
Calculates a VT flash using user defined component flowrates.
Definition: Flowsheet.cs:283
float Enthalpy
Enthalpy of the stream.
Definition: StreamInCurUnits.cs:124
float LiquidThermalConductivity
Definition: StreamInCurUnits.cs:505
string WorkingDirectory
Gets the working directory used by CHEMCAD.
Definition: Server.cs:334
float MolecularWeight
Definition: Component.cs:74
FlashResult CalculateHPFlash(float streamTemperature, float streamPressure, float streamEnthalpy, float flashEnthalpy, float flashPressure, FlowRateCurUnits[] compFlows)
Calculates a HP flash on user defined component flowrates in current flowsheet units.
Definition: Flowsheet.cs:70
float TotalStandardLiquidVolumeRate
Total standard liquid volume rate of this stream.
Definition: StreamInCurUnits.cs:84
short Id
Id of the component.
Definition: Component.cs:55
float LiquidLatentHeat
Definition: StreamInCurUnits.cs:537
float Pressure
Pressure of the stream.
Definition: StreamInInternalUnits.cs:111
Definition: StoichiometricReactor.cs:8
float SolidHeatOfFormation
Definition: Component.cs:154
string CrudeFlowRate
Unit used for crude flow rate.
Definition: FlowsheetUnitss.cs:249
FlashResult CalculateVPFlash(float streamTemperature, float streamPressure, float streamEnthalpy, float flashVaporFraction, float flashPressure, StreamInCurUnits[] streams)
Calculates a VP flash. Takes stream values in current flowsheet untis and return result in current fl...
Definition: Flowsheet.cs:234
Definition: StreamCollectionCurUnits.cs:9
float TotalActualVolumeRate
Total actual density.
Definition: StreamInInternalUnits.cs:175
void SetStreamEnthalpy(float value)
Puts the enthalpy of a stream.
Definition: StreamInCurUnits.cs:859
float ConvertFromFlowsheetUnitstoInternalUnits(UnitType type, float value)
Convert the numerical value of the unit from flowsheet unit to internal units
Definition: InternalUnits.cs:422
Definition: Centrifuge.cs:8
string Viscosity
Unit used for viscosity.
Definition: FlowsheetUnitss.cs:225
FlowCollection IonRates
Get ion rates.
Definition: KValuesResult.cs:54
KValuesResult CalculateKValues(float temperatureCurInits, float pressureCurUnits, FlowRateCurUnits[] liquidFlow, FlowRateCurUnits[] vaporFlow)
Calculate K values. The parameter are in current flowsheet units.
Definition: Flowsheet.cs:596
float[] LiquidDensity
Definition: Component.cs:312
string CrudeFlowRate
Unit used for crude flow rate.
Definition: InternalUnits.cs:211
string Viscosity
Unit used for viscosity.
Definition: InternalUnits.cs:187
void SetVaporFraction(float value)
Puts the vapor fraction of a stream.
Definition: StreamInCurUnits.cs:847
FlashResult CalculateVTFlash(float streamTemperature, float streamPressure, float streamEnthalpy, float flashVaporFraction, float flashTemperature, StreamInInternalUnits[] streams)
Calculates a VT flash using multiple streams in internal units.
Definition: Flowsheet.cs:329
float VaporViscosity
Definition: StreamInCurUnits.cs:385
Definition: ExcelUnitOp.cs:8
StreamCollectionCurUnits FeedStreamsInCurUnits
Returns the feed streams used in this flowsheet.
Definition: IFlowsheet.cs:48
float SolidEnthalpy
Definition: StreamInInternalUnits.cs:571
float VapStdVaporVolumeRate
Definition: StreamInInternalUnits.cs:363
string Solubility
Unit used for solubility.
Definition: InternalUnits.cs:227
float CalculateVaporEnthalpy(float temperature, float pressure, FlowRateCurUnits[] flow)
Calculate vapor enthalpy.
Definition: HeatExchanger.cs:8
CompFlowType
Enumeration of components flow properties.
Definition: CompFlowType.cs:6
float LiquidAndSolidActualVolume
Definition: StreamInCurUnits.cs:529
FlashResult CalculateHPFlash(float streamTemperature, float streamPressure, float streamEnthalpy, float flashEnthalpy, float flashPressure, FlowRateInternalUnits[] flow)
Calculates a HP flash on user defined component flowrates in internal units.
Definition: Flowsheet.cs:59
float VapStdLiquidVolumeRate
Definition: StreamInCurUnits.cs:353
string PackedColumnPressureDrop
Unit used for packed column pressure drop.
Definition: FlowsheetUnitss.cs:321
Definition: TheSimulationIsAlreadyOpenException.cs:9
float TimeStepInMinute
Returns the defined time step of a dynamic simulation in minutes.
Definition: Flowsheet.cs:783
string PressureDifference
Unit used for pressure differences.
Definition: FlowsheetUnits.cs:137
new int Version
Returns the current version of CHEMCAD.
Definition: ServerImpl.cs:543
float LiquidAndSolidActualDensity
Definition: StreamInCurUnits.cs:521
FlashResult CalculateHPFlash(float flashEnthalpy, float flashPressure, StreamInInternalUnits stream)
Calculates a HP flash using single stream in internal units.
Definition: Flowsheet.cs:105
void RestoreToInitialState()
Restore dynamic simulation to initial state.
Definition: ServerImpl.cs:499
bool IsSolid
Indicates whether this component is solid.
Definition: Component.cs:25
void SetPressure(float value)
Puts the pressure of a stream.
Definition: StreamInInternalUnits.cs:803
void RunOptimization()
Run optimization.
Definition: ServerImpl.cs:299
float CriticalPressure
Definition: Component.cs:90
string LiquidDensity
Unit used for liquid density.
Definition: FlowsheetUnits.cs:201
Definition: TimeSwitch.cs:8
string Temperature
Unit used for temperature.
Definition: FlowsheetUnitss.cs:129
void SetStreamCost(short costType, float costValue)
Sets the stream cost.
Definition: StreamInInternalUnits.cs:641
string PressureDifference
Unit used for pressure differences.
Definition: InternalUnits.cs:115
void RunAllSteps()
Run all steps in a dynamic simulation.
Definition: ServerImpl.cs:472
float MassVaporFraction
Definition: StreamInInternalUnits.cs:283
void SetOptimizationVariables(string filePath, OptimizationVariables optimizationVariables)
Set Optimization variables.
Definition: Server.cs:204
float[] IdealGasHeatCapacity
Definition: Component.cs:351
string Volume
Unit used for volume.
Definition: FlowsheetUnits.cs:281
StreamProperty
Enumeration of stream properties.
Definition: StreamProperty.cs:6
Contains information about component value from Kvalues and Flash Results.
Definition: ComponentValue.cs:10
string LiquidVolumeRate
Unit used for liquid volume rate
Definition: InternalUnits.cs:307
Definition: LanguageService.cs:13
Definition: FlowsheetFileExistsButCannotBeLoadedException.cs:9
Definition: LiquidPump.cs:8
void Save()
Saves this flowsheet to file.
Definition: ServerImpl.cs:253
short Id
Gets the id of the stream.
Definition: StreamInInternalUnits.cs:45
float PHValue
Definition: StreamInCurUnits.cs:289
int Version
Returns the current version of CHEMCAD.
Definition: Server.cs:326
string Diameter
Unit used for diameter.
Definition: InternalUnits.cs:171
void SetOptimizationVaraibles(string filePath, OptimizationVariables optimizationVariables)
Set Optimization variables in the file.
Definition: ServerImpl.cs:355
@ VaporFractionPressure
Volume - Pressure
Definition: ChemcadLicenseNotFoundException.cs:9
float VaporActualDensity
Definition: StreamInCurUnits.cs:337
string EnthalpyMole
Unit used for enthalpy.
Definition: InternalUnits.cs:347
float LiquidEntropy
Definition: StreamInCurUnits.cs:433
void PutData(PropertyType2 property, float[] values)
Get user component data. Only seven physical properties can be obtained.
Definition: Component.cs:480
float SolidCp
Definition: StreamInCurUnits.cs:577
string GetJobAt(short jobIndex)
Gets the job at specified index.
Definition: ServerImpl.cs:571
float SolidMw
Definition: StreamInInternalUnits.cs:563
float DynamicTimeInCurUnits
Returns the Dynamic Time in current engineering units.
Definition: Flowsheet.cs:762
string EnthalpyUnit
Unit used for enthalpy
Definition: FlowsheetUnitss.cs:81
void SetMolarVFTemperature(float molarVaporFraction, float temperature)
Set stream values. After setting the values the stream is reflashed and streams is updated.
Definition: StreamInCurUnits.cs:734
float DynamicTimeStepInCurUnits
Returns the Dynamic Time Step in current engineering units.
Definition: IFlowsheet.cs:136
void RunAllUnits()
Run all units in a steady state simulation.
Definition: Server.cs:222
float MeanAverageBoilingPoint
Definition: Component.cs:218
Definition: HeatCurvesResult.cs:8
void SetOneCompFlow(FlowRateInternalUnits compFlowrate)
Set the component flowrate.
Definition: StreamInInternalUnits.cs:785
float LiquidViscosity
Definition: StreamInCurUnits.cs:497
float TotalMoleRate
Total mole rate of this stream.
Definition: StreamInCurUnits.cs:68
Stores the colummn hydraulics data. All the units are in current flowsheet engineering units.
Definition: ColumnHydraulicsResult.cs:7
string GetCaseAt(string jobPath, short caseIndex)
Gets the case from the job at specified number
Definition: Server.cs:370
string EnthalpyMoleOrEnthalpyMass
Unit used for enthalpy mole or enthalpy mass.
Definition: FlowsheetUnits.cs:377
string MassFlowRate
Unit used for mass flow rate.
Definition: FlowsheetUnits.cs:225
@ TemperaturePressure
Temperature - Pressure
Contains user units used in a flowsheet.
Definition: FlowsheetUnits.cs:11
float DynamicTimeInCurUnits
Returns the Dynamic Time in current engineering units.
Definition: IFlowsheet.cs:131
ColumnHydraulicsResult GetColumnHydraulicsFromSizingInternalUnits(ColumnType columnType)
Get hydraulics of a column unit op. The values are in internal units.
Definition: UnitOperation.cs:118
string Mass
Unit used for mass.
Definition: FlowsheetUnits.cs:353
short Id
Id of the unit operation.
Definition: UnitOperation.cs:31
float[] SolidHeatCapacity
Definition: Component.cs:335
string Time
Unit used for time.
Definition: FlowsheetUnits.cs:417
float TotalEntropy
Definition: StreamInCurUnits.cs:273
void GetParticleSizeDistribution(Component component)
Return the particle size distribution.
Definition: StreamInInternalUnits.cs:662
HeatCurvesResult HeatCurveEqualCutH(UnitOperations.HeatExchanger heatx, int numberOfPoints)
Calculate Heat curves of Heat Exchanger.
Definition: Flowsheet.cs:616
float CalculateVaporEnthalpy(float temperature, float pressure, FlowRateInternalUnits[] flow)
Calculate vapor enthalpy. The flowrate is defined in internal flowsheet units.
Definition: Flowsheet.cs:588
string HeatTransferCoefficient
Unit used for heat transfer coefficient.
Definition: FlowsheetUnitss.cs:185
Definition: VenturiScrubber.cs:8
string Solubility
Unit used for solubility.
Definition: FlowsheetUnitss.cs:265
float NetHValue
Definition: StreamInCurUnits.cs:216
string Heat
Unit used for heat.
Definition: FlowsheetUnits.cs:361
Definition: FlowsheetUnitsCollection.cs:9
float[] SolidDensity
Definition: Component.cs:305
Definition: ThreePhaseFlash.cs:8
float Pressure
Returns the pressure.
Definition: FlashResult.cs:102
string VaporVolumeRate
Unit used for vapor volume rate.
Definition: FlowsheetUnits.cs:337
float StandardHeatOfVaporation
Definition: Component.cs:170
StreamCollectionInternalUnits FeedStreamsInInternalUnits
Returns the feed streams used in internal units in this flowsheet.
Definition: Flowsheet.cs:539
string EnthalpyMole
Unit used for enthalpy.
Definition: FlowsheetUnits.cs:369
float LiquidMoleRate
Definition: StreamInCurUnits.cs:409
float VaporCp
Definition: StreamInInternalUnits.cs:371
float WilsonMolarVolume
Definition: Component.cs:274
float TimeStepInMinute
Returns the defined time step of a dynamic simulation in minutes.
Definition: IFlowsheet.cs:144
string Time
Unit used for time.
Definition: FlowsheetUnitss.cs:433
StreamInCurUnits GetStreamByIdInCurUnits(short id)
Gets stream properties by id.
Definition: Flowsheet.cs:364
string EnthalpyMass
Unit used for enthalpy mass.
Definition: FlowsheetUnits.cs:385
string CrudeFlowRate
Unit used for crude flow rate.
Definition: FlowsheetUnits.cs:233
void SetOneCompFlow(FlowRateCurUnits compFlowrate)
Set one component flowrate
Definition: StreamInCurUnits.cs:818
float CalculateLiquidEnthalpy(float temperature, float pressure, FlowRateCurUnits[] flow)
Calculate liquid enthalpy. The flowrate is defined in current flowsheet units.
Definition: Flowsheet.cs:564
float GetUserStreamPropertyInInternalUnits(StreamProperty property)
Get User Defined property in internal units
Definition: Flowsheet.cs:845
string Solubility
Unit used for solubility.
Definition: FlowsheetUnits.cs:249
FlashMode
Enumeration of flash modes. Type Value Temperature Pressure 1 Vapor Fraction Pressure 2 Vapor Frac...
Definition: FlashMode.cs:28
Definition: BatchColumn.cs:8
float[] UNIFACGroupData
Definition: Component.cs:446
Definition: EquilibriumReactor.cs:8
short GetNumberOfCasesInJob(string jobPath)
Gets the number of cases in the job.
Definition: Server.cs:363
FlowRateOption
Enumeration of flow rate types.
Definition: FlowRateOption.cs:6
string Area
Unit used for areas.
Definition: FlowsheetUnits.cs:161
string GetCaseAt(string jobPath, short caseIndex)
Gets the case from the job at specified number
Definition: ServerImpl.cs:589
string MolarFlowRate
Unit used for molar flow rate.
Definition: FlowsheetUnitss.cs:121
float SpecificGravityAt60F
Definition: Component.cs:234
Optimization Variables class.
Definition: OptimizationVariables.cs:7
float TotalStandardVaporVolumeRate
Total standard vapor volume rate of this stream.
Definition: StreamInCurUnits.cs:92
string RuntimeMessages
Returns the runtime messages of CHEMCAD.
Definition: ServerImpl.cs:279
void LoadSnapshot(string name)
Load snapshot of simulation state.
Definition: ServerImpl.cs:525
void SetPressure(float value)
Puts the pressure of a stream.
Definition: StreamInCurUnits.cs:837
float TimeStepInMinute
Returns the time step of a dynamic simulation in minutes.
Definition: Server.cs:259
float TotalMassRate
Total mass rate of this stream.
Definition: StreamInInternalUnits.cs:76
Definition: Hydrocyclone.cs:8
Definition: RecycleCalculationControl.cs:8
Definition: IFlowsheet.cs:7
short GetNumberOfCasesInJob(string jobpath)
Gets the number of cases in the job.
Definition: ServerImpl.cs:580
string HeatTransferCoefficient
Unit used for heat transfer coefficient.
Definition: InternalUnits.cs:147
string MassFlowRate
Unit used for mass flow rate.
Definition: InternalUnits.cs:203
string VaporDensity
Unit used for vapor density.
Definition: FlowsheetUnits.cs:273
float[] VaporThermalConductivity
Definition: Component.cs:383
Contains information about component flow in streams.
Definition: Flow.cs:10
Definition: HeatCurvesResult.cs:35
float SolubilityFactor
Definition: Component.cs:138
float UOPK
Characterization Factor
Definition: StreamInCurUnits.cs:233
float LiquidActualDensity
Definition: StreamInInternalUnits.cs:451
Definition: InternalChemcadErrorException.cs:9
float MolecularDiameter
Definition: Component.cs:202
int RuntimeErrorCode
Runtime error code.
Definition: UnitOperation.cs:93
Base class for accessing CHEMCAD functionality.
Definition: Chemcad.cs:6
float LiquidEnthalpy
Definition: StreamInInternalUnits.cs:427
string EnthalpyRate
Unit used for enthalpy rate.
Definition: FlowsheetUnits.cs:145
StreamCollectionInternalUnits ProductStreamsInInternalUnits
Returns the product streams used in internal units in this flowsheet.
Definition: Flowsheet.cs:521
string SpecificHeatCapacity
Unit used for specific heat capacity.
Definition: InternalUnits.cs:291
float LiquidAndSolidActualVolume
Definition: StreamInInternalUnits.cs:531
Definition: ElectrostaticPrecipitator.cs:8
Flowsheet LoadFlowsheet(string path)
Opens a flowsheet from a user defined path and allows access to this flowsheet. Table of errors throw...
Definition: ServerImpl.cs:153
override Flowsheet CurrentFlowsheet
The flowsheet that is currently loaded
Definition: ServerImpl.cs:101
void SetFoulingFactors(double tFouling, double sFouling)
Set fouling factors of the unit op.
Definition: UnitOperation.cs:159
float SolidStdVaporVolumeRate
Definition: StreamInInternalUnits.cs:603
float CalculateVaporEnthalpy(float temperature, float pressure, FlowRateCurUnits[] flow)
Calculate vapor enthalpy. The flowrate is defined in current flowsheet units.
Definition: Flowsheet.cs:580
void RunOptimizationFile(string filePath)
Run optimization from file.
Definition: Server.cs:185
float AcentricFactor
Accentric factor of the component.
Definition: Component.cs:454
Entry object for using CHEMCAD as a COM server
Definition: ServerImpl.cs:24
string EnthalpyMass
Unit used for enthalpy mass.
Definition: FlowsheetUnitss.cs:401
string ThermalConductivity
Unit used for thermal conductivity.
Definition: FlowsheetUnits.cs:321
StreamCollectionCurUnits ProductStreamsInCurUnits
Returns the product streams used in this flowsheet.
Definition: Flowsheet.cs:511
Flowsheet CurrentFlowsheet
The flowsheet that is currently loaded
Definition: Server.cs:120
void PutStreamByIdInCurrentUnits(float temp, float pressure, float enthalpy, float molarVaporFraction, FlowRateCurUnits[] CompFlow, short id)
This method is used to put stream by id in current flowsheet engineering units.
Definition: Flowsheet.cs:741
Definition: SolidsWasher.cs:8
void SetMolarVFTemperature(float molarVaporFraction, float temperature)
Set stream values. After setting the values the stream is reflashed and streams is updated.
Definition: StreamInInternalUnits.cs:736
string MolarFlowRate
Unit used for molar flow rate.
Definition: FlowsheetUnits.cs:105
Definition: UnitOpRuntimeErrorException.cs:30
float StielPolarFactor
Definition: Component.cs:178
void RunAllSteps()
Run all steps in a dynamic simulation.
Definition: Server.cs:266
void RunStep()
Run one step in a dynamic simulation.
Definition: Server.cs:274
float TotalActualDensity
Definition: StreamInCurUnits.cs:180
float OTSTimeScale
If a value is written in OTSTimeScale, CHEMCAD attempts to run dynamic simulations at [time scale] * ...
Definition: IFlowsheet.cs:159
Represents errors that occurr during cc-api execution
Definition: CCAPIException.cs:9
string Name
Name of the unit operation.
Definition: UnitOperation.cs:43
void SetTemperaturePressure(float temperature, float pressure)
Set Temperature and Pressure.After setting the values the stream is reflashed and streams is updated.
Definition: StreamInInternalUnits.cs:704
float[] LiquidViscosityAdditional
Definition: Component.cs:415
Definition: StreamRecorder.cs:8
float LiquidCp
Definition: StreamInInternalUnits.cs:483
float WatsonFactor
Definition: Component.cs:210
void Run()
Executes the simulation.
Definition: ServerImpl.cs:236
float VapStdLiquidVolumeRate
Definition: StreamInInternalUnits.cs:355
Definition: Expander.cs:8
string Velocity
Unit used for velocity.
Definition: FlowsheetUnitss.cs:305
void SetStreamEnthalpy(float value)
Definition: StreamInInternalUnits.cs:821
FlashResult CalculateVPFlash(float streamTemperature, float streamPressure, float streamEnthalpy, float flashVaporFraction, float flashPressure, FlowRateInternalUnits[] flow)
Calculates a VP flash.
void SetVaporFraction(float value)
Puts the vapor fraction of a stream.
Definition: StreamInInternalUnits.cs:812
string HeatCapacityMoleOrMassBases
Unit used for heat capacity mole or mass bases.
Definition: FlowsheetUnitss.cs:417
void TakeSnapshot(string name)
Take snapshot of the current simulation state.
Definition: Server.cs:299
float MoleVaporFraction
Retuns the mole vapor fraction.
Definition: FlashResult.cs:90
Contains user units used in a flowsheet.
Definition: InternalUnits.cs:10
void SetEnthalpyPressure(float enthalpy, float pressure)
Set Enthalpy and Pressure. After setting the values the stream is reflashed and streams is updated.
Definition: StreamInInternalUnits.cs:689
StreamCollectionInternalUnits CutStreamsInInternalUnits
List of cut streams used in internal units in the flowsheet.
Definition: Flowsheet.cs:557
float SolidStdVaporVolumeRate
Definition: StreamInCurUnits.cs:601
Definition: CCAPIException.cs:4
void RunSelectedUnits(params UnitOperation[] unitOps)
Run selected units in a steady state simulation. Select Units
Definition: ServerImpl.cs:420
void ReflashStream()
Reflash stream
Definition: StreamInInternalUnits.cs:650
string CategoryName
Type of the unit op.
Definition: UnitOperation.cs:51
float SolidDensity
Definition: StreamInInternalUnits.cs:595
string Heat
Unit used for heat.
Definition: FlowsheetUnitss.cs:377
float TimeScale
Time scale used for operator training system.
Definition: Server.cs:317
float TotalStdVaporVolumeRate
Definition: StreamInCurUnits.cs:163
float UNIQUACVolumeParameter
Definition: Component.cs:266
Definition: SolidsFilter.cs:8
ComponentValueCollection ActivityCoefficients
Get activity coefficients.
Definition: KValuesResult.cs:38
string Name
The name of the component
Definition: Component.cs:67
float PolarParameter
Definition: Component.cs:186
float[] MSRKParameters
Definition: Component.cs:438
float VaporEnthalpy
Definition: StreamInInternalUnits.cs:315
string SpecificHeatCapacity
Unit used for specific heat capacity.
Definition: FlowsheetUnits.cs:313
Server(string licenseKey)
Initialize a Server, load the configuration and validates the license.
Definition: Server.cs:23
float GetParameterInCurUnits(short parameterId)
Get parameter of unit op in current flowsheet units.
Definition: UnitOperation.cs:203
StreamCollectionCurUnits CutStreamsInCurUnits
List of cut streams used in the flowsheet.
Definition: Flowsheet.cs:548
Definition: BaghouseFilter.cs:8
Definition: Controller.cs:8
FlowRateCurUnits[] CompFlow
Component flow.
Definition: StreamInCurUnits.cs:132
HeatCurvesResult HeatCurveEqualCutT(UnitOperations.HeatExchanger heatx, int numberOfPoints)
Calculate Heat curves of Heat Exchanger.
Definition: Flowsheet.cs:674
PropertyType
Types of basic physical properties. List: Molecular Weight Critical Temperature CriticalPressure A...
Definition: PropertyType.cs:32
Definition: PhaseGenerator.cs:8
string HeatCapacityMoleOrMassBases
Unit used for heat capacity mole or mass bases.
Definition: FlowsheetUnits.cs:401
FlashResult CalculateTPFlash(float flashTemperature, float flashPressure, StreamInCurUnits stream)
Calculates a TP flash using single stream in current flowsheet units.
Definition: Flowsheet.cs:148
string Name
Name of the stream.
Definition: StreamInInternalUnits.cs:56
float VaporViscosity
Definition: StreamInInternalUnits.cs:387
float TotalMoleRate
Total mole rate of this stream.
Definition: StreamInInternalUnits.cs:67
Definition: PidController.cs:8
float LiquidCp
Definition: StreamInCurUnits.cs:481
string Mass
Unit used for mass.
Definition: InternalUnits.cs:331
string Time
Unit used for time.
Definition: InternalUnits.cs:395
float LiquidThermalConductivity
Definition: StreamInInternalUnits.cs:507
Definition: VisualOP.cs:8
FlashResult CalculateVTFlash(float streamTemperature, float streamPressure, float streamEnthalpy, float flashVaporFraction, float flashTemperature, StreamInCurUnits[] streams)
Calculates a VT flash using multiple streams in current flowsheet units.
Definition: Flowsheet.cs:303
Definition: UnitOperationCollection.cs:10
string HeatOfReaction
Unit used for heat of reaction.
Definition: InternalUnits.cs:155
float ReidVaporPressure
Definition: StreamInInternalUnits.cs:227
void SetTemperature(float value)
Puts the temperature of a stream.
Definition: StreamInInternalUnits.cs:794
Definition: StreamReference.cs:8
float ConvertFromFlowsheetUnitstoInternalUnits(UnitType type, float value)
Convert the numerical value of the unit from flowsheet unit to internal units
Definition: FlowsheetUnits.cs:448
ComponentCollection Components
Returns all components used in the current flowsheet.
Definition: IFlowsheet.cs:36
void SetCurrentAsInitialState()
Sets the current state as the initial state.
Definition: ServerImpl.cs:507
void SetTemperature(float value)
Puts the temperature of a stream.
Definition: StreamInCurUnits.cs:827
Allows access to components by id or name.
Definition: ComponentCollection.cs:13
string VaporDensity
Unit used for vapor density.
Definition: FlowsheetUnitss.cs:289
float FlashPoint
Definition: StreamInCurUnits.cs:257
Definition: Sedimentator.cs:8
void RunSelectedUnits(params UnitOperation[] unitOps)
Run selected units in a steady state simulation. Select Units
Definition: Server.cs:231
float SolidEnthalpy
Definition: StreamInCurUnits.cs:569
float GetKineticReactionParameter(short rxnNo, KineticRxnParameter parID, short compIdx)
Get kinetic reaction parameter of the unit op.
Definition: UnitOperation.cs:142
string RuntimeErrorString
Runtime error string.
Definition: UnitOperation.cs:85
void SetStreamCost(short costType, float costValue)
Sets the stream cost.
Definition: StreamInCurUnits.cs:639
Represents a unit operation in a flowsheet.
Definition: UnitOperation.cs:12
float[] LiquidThermalConductivity
Definition: Component.cs:375
string HeatCapacityMoleOrMassBases
Unit used for heat capacity mole or mass bases.
Definition: InternalUnits.cs:379
void SetColumnPressureProfile(float[] pressureCurrentUnits)
Set the column pressure of a profile in current flowsheet Units.
Definition: UnitOperation.cs:170
Definition: CustomLogger.cs:13
FlashResult CalculateHPFlash(float streamTemperature, float streamPressure, float streamEnthalpy, float flashEnthalpy, float flashPressure, StreamInInternalUnits[] streams)
Calculates a HP flash using multiple streams in internal units.
Definition: Flowsheet.cs:117
float TotalStdVaporVolumeRate
Definition: StreamInInternalUnits.cs:166
FlowCollection IonRates
Get ion rates.
Definition: FlashResult.cs:66
float TotalStandardLiquidVolumeRate
Total standard liquid volume rate of this stream.
Definition: StreamInInternalUnits.cs:86
float ReidVaporPressure
Definition: StreamInCurUnits.cs:224
bool IsDynamic
Determines whether the flowsheet is a dynamic simulation or not.
Definition: IFlowsheet.cs:126
void PutEquilibriumReactionParameter(float parVal, EquilibriumRxnParamter parID, short rxnNo, short compIdx)
Set an equilibrium reaction parameter of the unit op.
Definition: UnitOperation.cs:134
ColumnType
Column type enumeration.
Definition: ColumnType.cs:6
string WorkRate
Unit used for work rate.
Definition: InternalUnits.cs:131
float TotalEnthalpy
Returns the total enthalpy.
Definition: FlashResult.cs:126
void DefineUserStreamInInternalUnits(float TempR, float presPsia, float moleVapFrac, float enthBtu_Hr, FlowRateInternalUnits[] flowRates)
User can define stream in internal units.
Definition: Flowsheet.cs:821
float Temperature
Temperature of the stream.
Definition: StreamInCurUnits.cs:100
Component GetComponentById(short id)
Returns all components used in the current flowsheet.
Definition: Flowsheet.cs:474
float UOPK
Definition: StreamInInternalUnits.cs:235
float[] GetBinaryInteractionParameters(Component otherComponent)
Read Binary Internaction parameters. Only accessible if already defined in chemcad thermodynamic sett...
Definition: Component.cs:488
Contains information about component flow in streams in internal Units.
Definition: FlowRateInternalUnits.cs:10
float LiquidStdVaporVolumeRate
Definition: StreamInCurUnits.cs:473
float StreamCost
Cost of the stream.
Definition: StreamInCurUnits.cs:148
Definition: PolymerReactor.cs:8
float ConvertFromInternalUnitToFlowsheetUnit(UnitType type, float value)
Convert the numerical value of the unit from internal unit to flowsheet units
Definition: InternalUnits.cs:408
string Temperature
Unit used for temperature.
Definition: InternalUnits.cs:91
void DefineUserStreamInFlowsheetUnits(float Temp, float pres, float moleVapFrac, float enthalpy, FlowRateCurUnits[] flowRates)
User can define stream in flowsheet engineering units.
Definition: Flowsheet.cs:833
string Pressure
Unit used for pressure.
Definition: FlowsheetUnits.cs:129
Definition: TimeDelay.cs:8
string LiquidDensity
Unit used for liquid density.
Definition: FlowsheetUnitss.cs:217
float CriticalVolume
Definition: Component.cs:98
FlashResult CalculateTPFlash(float streamTemperature, float streamPressure, float streamEnthalpy, float flashTemperature, float flashPressure, FlowRateInternalUnits[] flow)
Calculates a TP flash using user defined component flowrates in internal units.
Definition: Flowsheet.cs:128
string VaporVolumeRate
Unit used for vapor volume rate.
Definition: FlowsheetUnitss.cs:353
ComponentValueCollection KValues
Get k values.
Definition: KValuesResult.cs:63
int Version
Returns the current version of CHEMCAD.
Definition: Chemcad.cs:19
string FoulingFactorReserved
Unit used for fouling factor.
Definition: FlowsheetUnitss.cs:409
string MediumResistance
Unit used for medium resistance.
Definition: InternalUnits.cs:275
string MediumResistance
Unit used for medium resistance.
Definition: FlowsheetUnits.cs:297
bool IsUserAdded
Indicates whether this component is user added.
Definition: Component.cs:43
void SetCompFlow(FlowRateInternalUnits[] compFlowrates)
Set the component flowrates
Definition: StreamInInternalUnits.cs:778
OptimizationVariables GetOptimizationVariables(string path)
Run all units in a steady state simulation.
Definition: ServerImpl.cs:327
FlowRateInternalUnits[] CompFlow
Component flow.
Definition: StreamInInternalUnits.cs:135
string PackedColumnPressureDrop
Unit used for packed column pressure drop.
Definition: InternalUnits.cs:283
short GetNoOfJobsInWorkDirectory
Gets the working directory used by CHEMCAD.
Definition: Server.cs:345
float MassVaporFraction
Definition: StreamInCurUnits.cs:281
string MolarFlowRate
Unit used for molar flow rate.
Definition: InternalUnits.cs:83
UnitOperation GetUnitOperationById(short id)
Gets unit operation by ID. It is recommended to use this method instead of calling unit operations by...
Definition: Flowsheet.cs:347
float PHValue
Definition: StreamInInternalUnits.cs:291
string CakeResistance
Unit used for cake resistance.
Definition: FlowsheetUnits.cs:241
float SolidMassRate
Definition: StreamInCurUnits.cs:553
Definition: LanguageService.cs:11
float SolidCp
Definition: StreamInInternalUnits.cs:579
float[] LiquidHeatCapacity
Definition: Component.cs:343
string FoulingFactorReserved
Unit used for fouling factor.
Definition: FlowsheetUnits.cs:393
void TakeSnapshot(string name)
Take snapshot of the current simulation state.
Definition: ServerImpl.cs:516
void PutStreamByIdInternalUnits(float temp, float pressure, float enthalpy, float molarVaporFraction, FlowRateCurUnits[] CompFlow, short id)
This method is used to put stream By id in internal units.
Definition: Flowsheet.cs:751
FlashResult CalculateHPFlash(float streamTemperature, float streamPressure, float streamEnthalpy, float flashEnthalpy, float flashPressure, StreamInCurUnits[] streams)
Calculates a HP flash using multiple streams in current flowsheet units.
Definition: Flowsheet.cs:93
float TotalStdLiquidVolumeRate
Definition: StreamInCurUnits.cs:155
string EnthalpyMoleOrEnthalpyMass
Unit used for enthalpy mole or enthalpy mass.
Definition: InternalUnits.cs:355
Definition: ChemcadVersionNotSupportedException.cs:9
Contains a collection of component flows.
Definition: FlowCollection.cs:14
string Diameter
Unit used for diameter.
Definition: FlowsheetUnitss.cs:209
string Velocity
Unit used for velocity.
Definition: FlowsheetUnits.cs:289
string Mass
Unit used for mass.
Definition: FlowsheetUnitss.cs:369
float SolidStdLiquidVolumeRate
Definition: StreamInInternalUnits.cs:611
float[] GetData(PropertyType2 propertyType)
Get user component data.
Definition: Component.cs:463
@ VaporFractionTemperature
Volume - Temperature
FlashResult CalculateVTFlash(float flashVaporFraction, float flashTemperature, StreamInInternalUnits stream)
Calculates a VT flash using single stream in internal units.
Definition: Flowsheet.cs:316
string ComponentDataCategory
Definition: FlowsheetUnitss.cs:57
string PressureUnit
Unit used for pressure.
Definition: InternalUnits.cs:35
EquilibriumRxnParamter
Enumeration of Equilibrium Reaction parameters.
Definition: EquilibriumRxnParamter.cs:7
float VaporMoleRate
Definition: StreamInCurUnits.cs:297
float TotalEntropy
Definition: StreamInInternalUnits.cs:275
float VaporMassRate
Definition: StreamInInternalUnits.cs:307
string MassRateUnit
Unit used for mass rate.
Definition: FlowsheetUnits.cs:81
string TemperatureDifference
Unit used for temperature difference.
Definition: FlowsheetUnits.cs:121
void SetParameterInInternalUnits(short parameterId, float parVal)
Set parameter of unit op in internal units.
Definition: UnitOperation.cs:193
float LiquidEntropy
Definition: StreamInInternalUnits.cs:435
string SurfaceTension
Unit used for surface tension.
Definition: InternalUnits.cs:195
float[] HenrysConstants
Definition: Component.cs:430
string LiquidVolumeRate
Unit used for liquid volume rate
Definition: FlowsheetUnits.cs:329
string CakeResistance
Unit used for cake resistance.
Definition: InternalUnits.cs:219
Contains flash calculation results.
Definition: FlashResult.cs:11
float RackettConstant
Definition: Component.cs:242
Definition: InternalUnitsCollection.cs:9
float TotalMw
Definition: StreamInCurUnits.cs:200
Represents a computed stream.
Definition: StreamResult.cs:10
void RunNamedSequence(string name)
Run a namend sequence in a steady state simulation.
Definition: ServerImpl.cs:440
string Length
Unit used for length.
Definition: InternalUnits.cs:163
float LiquidEnthalpy
Definition: StreamInCurUnits.cs:425
float SolidDensity
Definition: StreamInCurUnits.cs:593
Contains information about component flow in streams in current flowsheet Units.
Definition: FlowRateCurlUnits.cs:10
void Run()
Executes the simulation.
Definition: Server.cs:140
string EnthalpyUnit
Unit used for enthalpy
Definition: InternalUnits.cs:43
void RunDataReconciliation()
Run Data reconciliation and parameter estimation.
Definition: Server.cs:214
float VaporActualDensity
Definition: StreamInInternalUnits.cs:339
string HeatTransferCoefficient
Unit used for heat transfer coefficient.
Definition: FlowsheetUnits.cs:169
Definition: ComponentSeparator.cs:8
string DipoleMoment
Unit used for dipole moment.
Definition: InternalUnits.cs:243
Definition: MultiPurposeFlash.cs:8
Definition: PipeSimulator.cs:8
float CpCv
Definition: StreamInInternalUnits.cs:403
float GetProperty(CompFlowType type, Component component)
Returns the property of a stream.
Definition: StreamInCurUnits.cs:778
Definition: SCDSColumn.cs:8
short[] GetIDsOfComponents()
Returns the ID of the components present in the flowsheet.
Definition: Flowsheet.cs:501
string EnthalpyRate
Unit used for enthalpy rate.
Definition: InternalUnits.cs:123
float FlashPoint
Definition: StreamInInternalUnits.cs:259
ComponentCollection Components
Returns all components used in the current flowsheet.
Definition: Flowsheet.cs:466
string Mole
Unit used for mole.
Definition: FlowsheetUnitss.cs:361
string Pressure
Unit used for pressure.
Definition: InternalUnits.cs:107
void CopyStreamToId(StreamInCurUnits stream, short id)
This method is used to copy one stream from one stream to other.
Definition: Flowsheet.cs:730
float NormalBoilingPoint
Definition: Component.cs:114
float[] VaporPressureEquation
Definition: Component.cs:319
string MoleRateUnit
Unit used for mole rate.
Definition: FlowsheetUnitss.cs:89
Definition: GibbsFreeEnergyReactor.cs:8
void Close()
Closes the flowsheet.
Definition: Flowsheet.cs:810
Represents a CHEMCAD component.
Definition: Component.cs:10
void LoadSnapshot(string name)
Load snapshot of simulation state.
Definition: Server.cs:308
FlashResult CalculateTPFlash(float streamTemperature, float streamPressure, float streamEnthalpy, float flashTemperature, float flashPressure, StreamInCurUnits[] streams)
Calculates a TP flash using multiple streams in current flowsheet units.
Definition: Flowsheet.cs:159
@ StandardLiquidVolumeRate
float MeltingPoint
Definition: Component.cs:106
void PutKineticReactionPar(float parVal, KineticRxnParameter parID, short rxnNo, short compIdx)
Set kinetic reaction parameter of the unit op.
Definition: UnitOperation.cs:151
string GetJobAt(short jobIndex)
Gets the job at specified index.
Definition: Server.cs:356
FlashResult CalculateVTFlash(float streamTemperature, float streamPressure, float streamEnthalpy, float flashVaporFraction, float flashTemperature, FlowRateInternalUnits[] flow)
Calculates a VT flash.
CCAPIException(string message)
Initializes a new instance of the CCAPIException class with a specified error message.
Definition: CCAPIException.cs:24
float SolidActualVolume
Definition: StreamInCurUnits.cs:585
float PourPoint
Definition: StreamInCurUnits.cs:265
float MeABP
Definition: StreamInCurUnits.cs:249
float SolidMoleRate
Definition: StreamInInternalUnits.cs:547
void SetMolarVFPressure(float molarVaporFraction, float pressure)
Set Vapor fraction and Pressure. After setting the values the stream is reflashed and streams is upda...
Definition: StreamInInternalUnits.cs:720
float CalculateLiquidEnthalpy(float temperature, float pressure, FlowRateCurUnits[] flow)
Calculate liquid enthalpy.
float GetProperty(StreamProperty type)
Returns the property of a stream.
Definition: StreamInCurUnits.cs:758
float DynamicTimeStepInCurUnits
Returns the Dynamic Time Step in current engineering units.
Definition: Flowsheet.cs:871
float VaporEntropy
Definition: StreamInInternalUnits.cs:323
float Temperature
Returns the temperature.
Definition: FlashResult.cs:114
FlashResult CalculateVPFlash(float flashVaporFraction, float flashPressure, StreamInCurUnits stream)
Calculates a VP flash. Takes stream values in current flowsheet untis and return result in current fl...
Definition: Flowsheet.cs:220
void GetParticleSizeDistribution(Component component)
Return the particle size distribution.
Definition: StreamInCurUnits.cs:661
string Length
Unit used for length.
Definition: FlowsheetUnitss.cs:201
Definition: TowerPlus.cs:8
float LiquidVolumeConstant
Definition: Component.cs:298
float IdealGasGibbsFreeEnergyOfFormation
Definition: Component.cs:130
string EnthalpyMass
Unit used for enthalpy mass.
Definition: InternalUnits.cs:363
void PutParticleSizeDistribution(short solidCompID, short noOfCuts, object particleSizes, object weightFractions)
Sets the particle size distribution.
Definition: StreamInInternalUnits.cs:748
Link to the SPL Mixer help page Single Phase Liquid Mixer Help
Definition: SPLMixer.cs:12
string PressureUnit
Unit used for pressure.
Definition: FlowsheetUnitss.cs:73
float MoleVaporFraction
Mole vapor fraction.
Definition: StreamInCurUnits.cs:116
Definition: FlowsheetFileNotFoundException.cs:9
Definition: StreamsCollectionInternalUnits.cs:9
string InverseLiquidVolume
Unit used for inverse liquid volume.
Definition: FlowsheetUnitss.cs:425
ServerImpl(string licenseKey)
Initialize a Server, load the configuration and validates the license.
Definition: ServerImpl.cs:47
string ComponentDataUnitString
Definition: FlowsheetUnits.cs:34
Definition: RampSchedule.cs:8
UnitOperationCollection UnitOperations
Returns all unit operations in a flowsheet. The enumeration starts with 0 and is not necessarily the ...
Definition: Flowsheet.cs:457
string ThermalConductivity
Unit used for thermal conductivity.
Definition: InternalUnits.cs:299
FlashResult CalculateTPFlash(float streamTemperature, float streamPressure, float streamEnthalpy, float flashTemperature, float flashPressure, StreamInInternalUnits[] streams)
Calculates a TP flash using multiple streams in internal units.
Definition: Flowsheet.cs:183
float VaporThermalConductivity
Definition: StreamInInternalUnits.cs:395
string Length
Unit used for length.
Definition: FlowsheetUnits.cs:185
string Volume
Unit used for volume.
Definition: FlowsheetUnitss.cs:297
float EpsK
Definition: Component.cs:194
StreamCollectionInternalUnits StreamsInInternalUnits
Returns all streams in internal units used in this flowsheet.
Definition: Flowsheet.cs:447
float LiquidActualDensity
Definition: StreamInCurUnits.cs:449
string LiquidVolumeRate
Unit used for liquid volume rate
Definition: FlowsheetUnitss.cs:345
float[] SurfaceTension
Definition: Component.cs:391
PropertyType2
Types of physical properties.
Definition: PropertyType2.cs:6
void SetCompFlow(FlowRateCurUnits[] compFlowrates)
Set the component flowrates
Definition: StreamInCurUnits.cs:810
void SaveBinaryInteractionParameters()
Save binary parameters
Definition: Component.cs:503
short Id
Gets the id of the stream.
Definition: StreamInCurUnits.cs:46
string WorkRate
Unit used for work rate.
Definition: FlowsheetUnits.cs:153
float TotalStandardVaporVolumeRate
Total standard vapor volume rate of this stream.
Definition: StreamInInternalUnits.cs:95
Definition: ChemcadException.cs:6
float SolidMoleRate
Definition: StreamInCurUnits.cs:545
string SpecificVolume
Unit used for specific volume.
Definition: FlowsheetUnitss.cs:273
FlashResult CalculateHPFlash(float flashEnthalpy, float flashPressure, StreamInCurUnits stream)
Calculates a HP flash using single stream in current flowsheet units.
Definition: Flowsheet.cs:81
float LiquidMolecularWeight
Definition: StreamInCurUnits.cs:441
float TotalMolecularWeight
Definition: StreamInInternalUnits.cs:203
Entry object for using CHEMCAD as a COM server
Definition: Server.cs:15
string TemperatureUnit
Unit used for temperature.
Definition: FlowsheetUnits.cs:49
StreamCollectionCurUnits ProductStreamsInCurUnits
Returns the product streams used in this flowsheet.
Definition: IFlowsheet.cs:42
void RunNamedSequence(string name)
Run a namend sequence in a steady state simulation.
Definition: Server.cs:240
Definition: AnotherUserOpenedTheSimulationException.cs:9
float VaporThermalConductivity
Definition: StreamInCurUnits.cs:393
float APIGravity
Definition: Component.cs:226
float LiquidSurfaceTension
Definition: StreamInCurUnits.cs:513
FlashResult CalculateVPFlash(float streamTemperature, float streamPressure, float streamEnthalpy, float flashVaporFraction, float flashPressure, StreamInInternalUnits[] streams)
Calculates a VP flash using multiple streams in internal units.
Definition: Flowsheet.cs:260
string VaporVolumeRateUnit
Unit used for volume of vapors.
Definition: InternalUnits.cs:75
void Pause()
Pause simulation.
Definition: ServerImpl.cs:290
float LiquidMassRate
Definition: StreamInCurUnits.cs:417
StreamCollectionCurUnits StreamsInCurUnits
Returns all streams used in this flowsheet.
Definition: IFlowsheet.cs:23
Definition: TheSimulationZipFileIsCorrupted.cs:9
string HeatOfReaction
Unit used for heat of reaction.
Definition: FlowsheetUnitss.cs:193
UnitOperation Source
Source of the stream.
Definition: StreamInInternalUnits.cs:631
string LiquidVolumeRateUnit
Unit used for volume of liquids.
Definition: FlowsheetUnitss.cs:105
FlashResult CalculateVPFlash(float flashVaporFraction, float flashPressure, StreamInInternalUnits stream)
Calculates a VP flash using single stream in internal units.
Definition: Flowsheet.cs:246
string PressureUnit
Unit used for pressure.
Definition: FlowsheetUnits.cs:57
float TimeInMinute
Returns the time of a dynamic simulation in minutes.
Definition: Server.cs:250
void GetEquilibriumReactionParameter(float parVal, short rxnNo, EquilibriumRxnParamter parID, short compIdx)
Get equilibrium reaction parameter.
Definition: UnitOperation.cs:126
string LiquidVolumeRateUnit
Unit used for volume of liquids.
Definition: InternalUnits.cs:67
string EnthalpyRate
Unit used for enthalpy rate.
Definition: FlowsheetUnitss.cs:161
ComponentValueCollection FugacityCoefficients
Get fugacity coefficients.
Definition: KValuesResult.cs:46
void Release()
Method added to release COM from MATLAB.
Definition: Server.cs:111
string MassRateUnit
Unit used for mass rate.
Definition: InternalUnits.cs:59
string TemperatureUnit
Unit used for temperature.
Definition: FlowsheetUnitss.cs:65
short StreamCostType
Type of cost of the stream.
Definition: StreamInCurUnits.cs:140
int CategoryId
Type of the unit op.
Definition: UnitOperation.cs:59
Represents a stream in a flowsheet.
Definition: StreamInCurUnits.cs:14
float SolidMw
Definition: StreamInCurUnits.cs:561
float GrossHValue
Definition: StreamInInternalUnits.cs:211
FlashResult CalculateVPFlash(float streamTemperature, float streamPressure, float streamEnthalpy, float flashVaporFraction, float flashPressure, FlowRateCurUnits[] flow)
Calculates a VP flash using user defined component flowrates in current flowsheet units.
Definition: Flowsheet.cs:206
string Heat
Unit used for heat.
Definition: InternalUnits.cs:339
void Pause()
Pause simulation.
Definition: Server.cs:170
Definition: HeatCurvesResult.cs:82
float TotalStdLiquidVolumeRate
Definition: StreamInInternalUnits.cs:158
Represents a simulation file and its contents.
Definition: Flowsheet.cs:17
string VaporVolumeRateUnit
Unit used for volume of vapors.
Definition: FlowsheetUnits.cs:97
float LiquidActualVolumeRate
Definition: StreamInCurUnits.cs:457
bool IsDynamic
Determines whether the flowsheet is a dynamic simulation or not.
Definition: Flowsheet.cs:773
Definition: UnitOperationAttribute.cs:9
float[] LiquidViscosity
Definition: Component.cs:360
UnitOperation Target
Target of the stream.
Definition: StreamInInternalUnits.cs:620
float TimeInMinute
Returns the time of a dynamic simulation in minutes.
Definition: ServerImpl.cs:455
void SetProperty(StreamProperty type, float value)
Puts the property of a stream.
Definition: StreamInCurUnits.cs:800
string Name
Name of the stream.
Definition: StreamInCurUnits.cs:57
Definition: AnotherUserOpenedTheSimulationException.cs:7
Definition: Compressor.cs:8
Definition: BaghouseFilter.cs:3
string InverseLiquidVolume
Unit used for inverse liquid volume.
Definition: InternalUnits.cs:387
string ThermalConductivity
Unit used for thermal conductivity.
Definition: FlowsheetUnitss.cs:337
ComponentValueCollection KValues
Get K values.
Definition: FlashResult.cs:78
string Mole
Unit used for mole.
Definition: InternalUnits.cs:323
string TemperatureDifference
Unit used for temperature difference.
Definition: FlowsheetUnitss.cs:137
FlashResult CalculateTPFlash(float streamTemperature, float streamPressure, float streamEnthalpy, float flashTemperature, float flashPressure, FlowRateInternalUnits[] flow)
Calculates a TP flash.
string Volume
Unit used for volume.
Definition: InternalUnits.cs:259
float CriticalTemperature
Definition: Component.cs:82
UnitOperation Target
Target of the stream.
Definition: StreamInCurUnits.cs:618
float SolidMassRate
Definition: StreamInInternalUnits.cs:555
float[] IdealGasHeatCapacityAdditional
Definition: Component.cs:406
void SetEnthalpyPressure(float enthalpy, float pressure)
Set Enthalpy and Pressure. After setting the values the stream is reflashed and streams is updated.
Definition: StreamInCurUnits.cs:687
float NetHValue
Definition: StreamInInternalUnits.cs:219
string LiquidDensity
Unit used for liquid density.
Definition: InternalUnits.cs:179
float[] VaporViscosity
Definition: Component.cs:367
float LiquidMolecularWeight
Definition: StreamInInternalUnits.cs:443
FlashResult CalculateTPFlash(float streamTemperature, float streamPressure, float streamEnthalpy, float flashTemperature, float flashPressure, FlowRateCurUnits[] flow)
Calculates a TP flash using user defined component flowrates in current flowsheet units.
Definition: Flowsheet.cs:138
float CalculateLiquidEnthalpy(float temperature, float pressure, FlowRateInternalUnits[] flow)
Calculate liquid enthalpy. The flowrate is defined in internal units.
Definition: Flowsheet.cs:572
float VaporMassRate
Definition: StreamInCurUnits.cs:305
float CalculatedHeatDuty
Get calculted heat duty.
Definition: FlashResult.cs:45
Contains user units used in a flowsheet.
Definition: FlowsheetUnitss.cs:10
string MediumResistance
Unit used for medium resistance.
Definition: FlowsheetUnitss.cs:313
FlowsheetUnits UnitsCurrent
Returns all units used in this flowsheet.
Definition: Flowsheet.cs:426
string SpecificHeatCapacity
Unit used for specific heat capacity.
Definition: FlowsheetUnitss.cs:329
CCAPIException(string message, Exception inner)
Initializes a new instance of the CCAPIException class with a specified error message and a reference...
Definition: CCAPIException.cs:35
float APIGrossHeatingValue
Definition: Component.cs:290
float LiquidMoleRate
Definition: StreamInInternalUnits.cs:411
float LiquidStdVaporVolumeRate
Definition: StreamInInternalUnits.cs:475
KValuesResult CalculateKValues(float temperatureInternalUnits, float pressureInternalUnits, FlowRateInternalUnits[] liquidFlow, FlowRateInternalUnits[] vaporFlow)
Calculate K values. The parameter are in internal flowsheet units.
Definition: Flowsheet.cs:605
StreamCollectionCurUnits StreamsInCurUnits
Returns all streams used in this flowsheet.
Definition: Flowsheet.cs:438
float IdealGasHeatOfFormation
Definition: Component.cs:122
float DipoleMoment
Definition: Component.cs:146
Definition: TowerColumn.cs:8
void Save()
Saves this flowsheet to file.
Definition: Server.cs:151
string WorkRate
Unit used for work rate.
Definition: FlowsheetUnitss.cs:169
string SurfaceTension
Unit used for surface tension.
Definition: FlowsheetUnits.cs:217
abstract Flowsheet CurrentFlowsheet
The currently opened flowsheet.
Definition: Chemcad.cs:13
InternalUnits UnitsInternal
Returns all internal units used in this flowsheet.
Definition: Flowsheet.cs:407
string SpecificVolume
Unit used for specific volume.
Definition: InternalUnits.cs:235
float VaporZfactor
Definition: StreamInCurUnits.cs:377
float LiquidStdLiquidVolumeRate
Definition: StreamInInternalUnits.cs:467
float GetParameterInInernalUnits(short parameterId)
Get parameter of unit op in internal units.
Definition: UnitOperation.cs:212
string Area
Unit used for areas.
Definition: FlowsheetUnitss.cs:177
string LiquidVolumeRateUnit
Unit used for volume of liquids.
Definition: FlowsheetUnits.cs:89
float CpCv
Definition: StreamInCurUnits.cs:401
StreamCollectionCurUnits OutletStreams
Returns all outlet streams of this unit op.
Definition: UnitOperation.cs:77
void RunOptimizationFile(string path)
Run optimization from specified file.
Definition: ServerImpl.cs:314
Definition: FlowStrategy.cs:9
float SolidGibbsEnergyOfFormation
Definition: Component.cs:162
float TotalActualVolumeRate
Total actual density.
Definition: StreamInCurUnits.cs:172
int NumberOfStages
Number of stages of this unit operation.
Definition: UnitOperation.cs:101
string MassFlowRate
Unit used for mass flow rate.
Definition: FlowsheetUnitss.cs:241
StreamCollectionCurUnits FeedStreamsInCurUnits
Returns the feed streams used in this flowsheet.
Definition: Flowsheet.cs:530
@ StandardVaporVolumeRate
string MoleRateUnit
Unit used for mole rate.
Definition: InternalUnits.cs:51
float SolidStdLiquidVolumeRate
Definition: StreamInCurUnits.cs:609
Definition: ChemcadAndFlowsheetVersionsDoNotMatchException.cs:9
void RunStep()
Run one step in a dynamic simulation.
Definition: ServerImpl.cs:486
float TimeScale
Time scale used for operator training system.
Definition: ServerImpl.cs:534
void RunDataReconciliation()
Run Data reconciliation and parameter estimation.
Definition: ServerImpl.cs:375
string DipoleMoment
Unit used for dipole moment.
Definition: FlowsheetUnits.cs:265
string EnthalpyMoleOrEnthalpyMass
Unit used for enthalpy mole or enthalpy mass.
Definition: FlowsheetUnitss.cs:393
StreamInCurUnits GetStreamByIdInCurUnits(short id)
Gets stream properties by id.
float[] HeatOfVaporation
Definition: Component.cs:327
FlashResult CalculateHPFlash(float streamTemperature, float streamPressure, float streamEnthalpy, float flashEnthalpy, float flashPressure, FlowRateInternalUnits[] flow)
Calculates a HP flash.
float VaporMw
Definition: StreamInInternalUnits.cs:331
UnitOperation Source
Source of the stream.
Definition: StreamInCurUnits.cs:629
float MeABP
Definition: StreamInInternalUnits.cs:251
float PourPoint
Definition: StreamInInternalUnits.cs:267
float VaporMw
Definition: StreamInCurUnits.cs:329
string TemperatureDifference
Unit used for temperature difference.
Definition: InternalUnits.cs:99
Flowsheet LoadFlowsheet(string path)
Opens a flowsheet from a user defined path and allows access to this flowsheet.
Definition: Server.cs:127
Definition: ControlValve.cs:8
KValuesResult(ComponentValueCollection kValues, ComponentValueCollection fugacityCoefficients, ComponentValueCollection activityCoefficients, FlowCollection ionRates)
Create a new temporary stream to compute k values.
Definition: KValuesResult.cs:25
FlashResult CalculateVTFlash(float streamTemperature, float streamPressure, float streamEnthalpy, float flashVaporFraction, float flashTemperature, FlowRateCurUnits[] flow)
Calculates a VT flash using user defined component flowrates.
Definition: Flowsheet.cs:273
float GrossHValue
Definition: StreamInCurUnits.cs:208
ColumnHydraulicsResult GetColumnHydraulicsFromSizing(ColumnType columnType)
Get hydraulics of a column unit op. The values are in current flowsheet units.
Definition: UnitOperation.cs:109
CCAPIException()
Initializes a new instance of the CCAPIException class.
Definition: CCAPIException.cs:16
float LiquidZfactor
Definition: StreamInInternalUnits.cs:491
Definition: FlowsheetConvergenceException.cs:9
float GetTrayProperty(ColumnType columnType, int trayNumber, StreamProperty property)
Get tray property of the defined tray in the distillation column.
Definition: UnitOperation.cs:221
string ComponentDataCategory
Definition: FlowsheetUnits.cs:41
void SetCurrentAsInitialState()
Sets the current state as the initial state.
Definition: Server.cs:290
float VABP
Definition: StreamInCurUnits.cs:241
string FoulingFactorReserved
Unit used for fouling factor.
Definition: InternalUnits.cs:371
string Mole
Unit used for mole.
Definition: FlowsheetUnits.cs:345
void SetMolarVFPressure(float molarVaporFraction, float pressure)
Set Vapor fraction and Pressure. After setting the values the stream is reflashed and streams is upda...
Definition: StreamInCurUnits.cs:718
float SolidActualVolume
Definition: StreamInInternalUnits.cs:587
float VaporCp
Definition: StreamInCurUnits.cs:369
string ComponentDataUnitString
Definition: FlowsheetUnitss.cs:50
float LiquidSurfaceTension
Definition: StreamInInternalUnits.cs:515
string Pressure
Unit used for pressure.
Definition: FlowsheetUnitss.cs:145
float LiquidViscosity
Definition: StreamInInternalUnits.cs:499
float TotalActualDensity
Definition: StreamInInternalUnits.cs:183
Definition: ShortcutColumn.cs:8
Definition: BatchReactor.cs:8
KineticRxnParameter
Enumeration of Kinectic Reaction parameters.
Definition: KineticRxnParameter.cs:6
Definition: StaticMixer.cs:9
Contains a collection of component flows.
Definition: ComponentValueCollection.cs:12
Definition: FiredHeater.cs:8
float MoleVaporFraction
Mole vapor fraction.
Definition: StreamInInternalUnits.cs:119
string Area
Unit used for areas.
Definition: InternalUnits.cs:139
string VaporDensity
Unit used for vapor density.
Definition: InternalUnits.cs:251
float StreamCost
Cost of the stream.
Definition: StreamInInternalUnits.cs:151
string VaporVolumeRateUnit
Unit used for volume of vapors.
Definition: FlowsheetUnitss.cs:113
void SaveData()
Save user component data.
Definition: Component.cs:511
OptimizationVariables GetOptimizationVariables(string filepath)
Get Optimization variables.
Definition: Server.cs:193
string DipoleMoment
Unit used for dipole moment.
Definition: FlowsheetUnitss.cs:281
Definition: LNGHeatExchanger.cs:8
Definition: UnitOpRuntimeErrorException.cs:9
string Viscosity
Unit used for viscosity.
Definition: FlowsheetUnits.cs:209
string MassRateUnit
Unit used for mass rate.
Definition: FlowsheetUnitss.cs:97
FlashResult CalculateVPFlash(float streamTemperature, float streamPressure, float streamEnthalpy, float flashVaporFraction, float flashPressure, FlowRateInternalUnits[] flow)
Calculates a VP flash using user defined component flowrates in internal units.
Definition: Flowsheet.cs:195
string VaporVolumeRate
Unit used for vapor volume rate.
Definition: InternalUnits.cs:315
float UNIQUACAreaParameter
Definition: Component.cs:258
string WorkingDirectory
Gets the working directory used by CHEMCAD.
Definition: ServerImpl.cs:551
string EnthalpyUnit
Unit used for enthalpy
Definition: FlowsheetUnits.cs:65
string Diameter
Unit used for diameter.
Definition: FlowsheetUnits.cs:193
string MoleRateUnit
Unit used for mole rate.
Definition: FlowsheetUnits.cs:73
Represents a stream in a flowsheet.
Definition: StreamInInternalUnits.cs:13
void Dispose(bool disposing)
Realease chemcad server and deactivete license.
Definition: ServerImpl.cs:82
string EnthalpyMole
Unit used for enthalpy.
Definition: FlowsheetUnitss.cs:385
Contains computed k values.
Definition: KValuesResult.cs:11
StreamCollectionCurUnits InletStreams
Returns all inlet streams of this unit op.
Definition: UnitOperation.cs:68