impure functiontranslateAcausalDAE

Generates the combined DAE C code for a flowsheet model whose top-level components are acausal DAE blocks, without building it. Each top-level component is translated separately via translateResidualsDAE, the connections are extracted, and the per-component code is stitched together by combine_components.py. This is the acausal-DAE counterpart of translateModel().

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

Information

Generates the combined acausal-DAE C code (per-component residual code plus connection equations) without building it, the acausal-DAE counterpart of translateModel().

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
Booleansuccess