impure functionsimulateAcausalDAE

Simulates a flowsheet model whose top-level components are acausal DAE blocks. Each top-level component is translated separately via translateResidualsDAE, the connections are extracted, the per-component code is stitched together by combine_components.py, and the resulting combined DAE system is built, run and returned just like simulate().

Extends from Internal.simulationArguments (The arguments of simulate, buildModel and the other simulation calls.).

Information

Simulates a flowsheet model whose top-level components are acausal DAE blocks, by separately compiling each top-level component (see translateResidualsDAE), stitching them together with the connection equations, and building/running the combined DAE system. Returns the same SimulationResult record as simulate.

simulateAcausalDAE(className, [startTime], [stopTime], [numberOfIntervals], [stepSize], [tolerance], [method], [fileNamePrefix], [options], [outputFormat], [variableFilter], [cflags], [simflags])

Inputs

TypeNameDefaultDescription
TypeNameclassName (from simulationArguments)The model
RealstartTime (from simulationArguments)nan()Start time
RealstopTime (from simulationArguments)nan()Stop time
IntegernumberOfIntervals (from simulationArguments)-1Number of intervals
RealstepSize (from simulationArguments)nan()Interval of the result file
Realtolerance (from simulationArguments)nan()Integration tolerance
Stringmethod (from simulationArguments)"<default>"Integration method
StringfileNamePrefix (from simulationArguments)"<default>"File name prefix
Stringoptions (from simulationArguments)"<default>"Not used
StringoutputFormat (from simulationArguments)"<default>"Result file format
StringvariableFilter (from simulationArguments)"<default>"Variables to store
Stringcflags (from simulationArguments)"<default>"Flags for the C compiler
Stringsimflags (from simulationArguments)"<default>"Flags for the simulation

Outputs

TypeNameDefaultDescription
SimulationResultsimulationResults

Contents

NameDescription
SimulationResult