FlowsheetSolverSolveFlowsheet Method |
Calculate all objects in the Flowsheet using an ordering method.
Namespace: DWSIM.FlowsheetSolverAssembly: DWSIM.FlowsheetSolver (in DWSIM.FlowsheetSolver.dll) Version: 8.8.1.0
Syntax public static List<Exception> SolveFlowsheet(
Object fobj,
int mode,
CancellationTokenSource ts = null,
bool frompgrid = false,
bool Adjusting = false,
Action FinishSuccess = null,
Action FinishWithErrors = null,
Action FinishAny = null,
bool ChangeCalcOrder = false
)
Public Shared Function SolveFlowsheet (
fobj As Object,
mode As Integer,
Optional ts As CancellationTokenSource = Nothing,
Optional frompgrid As Boolean = false,
Optional Adjusting As Boolean = false,
Optional FinishSuccess As Action = Nothing,
Optional FinishWithErrors As Action = Nothing,
Optional FinishAny As Action = Nothing,
Optional ChangeCalcOrder As Boolean = false
) As List(Of Exception)
Request Example
View SourceParameters
- fobj Object
- Flowsheet to be calculated (FormFlowsheet object).
- mode Int32
- 0 = Main Thread, 1 = Background Thread, 2 = Background Parallel Threads, 3 = Azure Service Bus, 4 = Network Computer
- ts CancellationTokenSource (Optional)
- CancellationTokenSource instance from main flowsheet when calculating subflowsheets.
- frompgrid Boolean (Optional)
- True if the routine is called from a PropertyGrid PropertyChanged event.
- Adjusting Boolean (Optional)
- True if the routine is called from the Simultaneous Adjust Solver.
- FinishSuccess Action (Optional)
-
- FinishWithErrors Action (Optional)
-
- FinishAny Action (Optional)
-
- ChangeCalcOrder Boolean (Optional)
-
Return Value
ListExceptionSee Also