Click or drag to resize

FlowsheetSolverSolveFlowsheet Method

Calculate all objects in the Flowsheet using an ordering method.

Namespace: DWSIM.FlowsheetSolver
Assembly: 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
)
Request Example View Source

Parameters

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

ListException
See Also