.NET Interface to CHEMCAD
1.1.11
|
Entry object for using CHEMCAD as a COM server More...
Public Member Functions | |
Server (string licenseKey) | |
Initialize a Server, load the configuration and validates the license. More... | |
void | Release () |
Method added to release COM from MATLAB. More... | |
Flowsheet | LoadFlowsheet (string path) |
Opens a flowsheet from a user defined path and allows access to this flowsheet. More... | |
void | CloseSimulation () |
void | Run () |
Executes the simulation. More... | |
void | Save () |
Saves this flowsheet to file. More... | |
void | Pause () |
Pause simulation. More... | |
void | RunOptimization () |
Run optimization. More... | |
void | RunOptimizationFile (string filePath) |
Run optimization from file. More... | |
OptimizationVariables | GetOptimizationVariables (string filepath) |
Get Optimization variables. More... | |
void | SetOptimizationVariables (string filePath, OptimizationVariables optimizationVariables) |
Set Optimization variables. More... | |
void | RunDataReconciliation () |
Run Data reconciliation and parameter estimation. More... | |
void | RunAllUnits () |
Run all units in a steady state simulation. More... | |
void | RunSelectedUnits (params UnitOperation[] unitOps) |
Run selected units in a steady state simulation. Select Units More... | |
void | RunNamedSequence (string name) |
Run a namend sequence in a steady state simulation. More... | |
void | RunAllSteps () |
Run all steps in a dynamic simulation. More... | |
void | RunStep () |
Run one step in a dynamic simulation. More... | |
void | RestoreToInitialState () |
Restore dynamic simulation to initial state. More... | |
void | SetCurrentAsInitialState () |
Sets the current state as the initial state. More... | |
void | TakeSnapshot (string name) |
Take snapshot of the current simulation state. More... | |
void | LoadSnapshot (string name) |
Load snapshot of simulation state. More... | |
string | GetJobAt (short jobIndex) |
Gets the job at specified index. More... | |
short | GetNumberOfCasesInJob (string jobPath) |
Gets the number of cases in the job. More... | |
string | GetCaseAt (string jobPath, short caseIndex) |
Gets the case from the job at specified number More... | |
Static Public Member Functions | |
static void | DeactivateLicense (string licenseKey) |
Properties | |
Flowsheet | CurrentFlowsheet [get] |
The flowsheet that is currently loaded More... | |
string | RuntimeMessages [get] |
Returns the runtime messages of CHEMCAD. More... | |
float | TimeInMinute [get] |
Returns the time of a dynamic simulation in minutes. More... | |
float | TimeStepInMinute [get] |
Returns the time step of a dynamic simulation in minutes. More... | |
float | TimeScale [get, set] |
Time scale used for operator training system. More... | |
int | Version [get] |
Returns the current version of CHEMCAD. More... | |
string | WorkingDirectory [get, set] |
Gets the working directory used by CHEMCAD. More... | |
short | GetNoOfJobsInWorkDirectory [get] |
Gets the working directory used by CHEMCAD. More... | |
int | PId [get] |
Properties inherited from CCAPI.IServer | |
int | PId [get] |
Flowsheet | CurrentFlowsheet [get] |
string | RuntimeMessages [get] |
float | TimeInMinute [get] |
float | TimeStepInMinute [get] |
float | TimeScale [get, set] |
int | Version [get] |
string | WorkingDirectory [get, set] |
Entry object for using CHEMCAD as a COM server
CCAPI.Server.Server | ( | string | licenseKey | ) |
Initialize a Server, load the configuration and validates the license.
licenseKey | License key |
string CCAPI.Server.GetCaseAt | ( | string | jobPath, |
short | caseIndex | ||
) |
Gets the case from the job at specified number
string CCAPI.Server.GetJobAt | ( | short | jobIndex | ) |
Gets the job at specified index.
short CCAPI.Server.GetNumberOfCasesInJob | ( | string | jobPath | ) |
Gets the number of cases in the job.
OptimizationVariables CCAPI.Server.GetOptimizationVariables | ( | string | filepath | ) |
Get Optimization variables.
Flowsheet CCAPI.Server.LoadFlowsheet | ( | string | path | ) |
Opens a flowsheet from a user defined path and allows access to this flowsheet.
Implements CCAPI.IServer.
void CCAPI.Server.LoadSnapshot | ( | string | name | ) |
void CCAPI.Server.Pause | ( | ) |
Pause simulation.
Implements CCAPI.IServer.
void CCAPI.Server.Release | ( | ) |
Method added to release COM from MATLAB.
void CCAPI.Server.RestoreToInitialState | ( | ) |
Restore dynamic simulation to initial state.
Implements CCAPI.IServer.
void CCAPI.Server.Run | ( | ) |
Executes the simulation.
Implements CCAPI.IServer.
void CCAPI.Server.RunAllSteps | ( | ) |
Run all steps in a dynamic simulation.
Implements CCAPI.IServer.
void CCAPI.Server.RunAllUnits | ( | ) |
Run all units in a steady state simulation.
Implements CCAPI.IServer.
void CCAPI.Server.RunDataReconciliation | ( | ) |
Run Data reconciliation and parameter estimation.
void CCAPI.Server.RunNamedSequence | ( | string | name | ) |
void CCAPI.Server.RunOptimization | ( | ) |
Run optimization.
Implements CCAPI.IServer.
void CCAPI.Server.RunOptimizationFile | ( | string | filePath | ) |
Run optimization from file.
void CCAPI.Server.RunSelectedUnits | ( | params UnitOperation[] | unitOps | ) |
Run selected units in a steady state simulation. Select Units
unitOps |
Implements CCAPI.IServer.
void CCAPI.Server.RunStep | ( | ) |
Run one step in a dynamic simulation.
Implements CCAPI.IServer.
void CCAPI.Server.Save | ( | ) |
void CCAPI.Server.SetCurrentAsInitialState | ( | ) |
Sets the current state as the initial state.
Implements CCAPI.IServer.
void CCAPI.Server.SetOptimizationVariables | ( | string | filePath, |
OptimizationVariables | optimizationVariables | ||
) |
Set Optimization variables.
void CCAPI.Server.TakeSnapshot | ( | string | name | ) |
|
get |
The flowsheet that is currently loaded
|
get |
Gets the working directory used by CHEMCAD.
|
get |
Returns the runtime messages of CHEMCAD.
|
get |
Returns the time of a dynamic simulation in minutes.
|
getset |
Time scale used for operator training system.
|
get |
Returns the time step of a dynamic simulation in minutes.
|
get |
Returns the current version of CHEMCAD.
|
getset |
Gets the working directory used by CHEMCAD.