7.11. Code generators and model exchange

7.11.1. Code Generators

7.11.1.1. Modelica

class daeExpressionFormatter_Modelica[source]
formatNumpyArray(arr)[source]
formatQuantity(quantity)[source]
formatUnits(units)[source]
class daeCodeGenerator_Modelica[source]
generateSimulation(simulation, directory)[source]

7.11.1.2. gPROMS

class daeExpressionFormatter_gPROMS[source]
formatNumpyArray(arr)[source]
class daeCodeGenerator_gPROMS[source]
generateSimulation(simulation, directory)[source]

7.11.1.3. Functional Mockup Interface (FMI)

class daeCodeGenerator_FMI(xml_stylesheet=None)[source]
generateSimulation(simulation, directory, py_simulation_file, callable_object_name, arguments, additional_files=[], localsAsOutputs=True, add_xml_stylesheet=False, useWebService=False)[source]

7.11.1.4. C99

class daeExpressionFormatter_c99[source]
formatNumpyArray(arr)[source]
formatQuantity(quantity)[source]
class daeCodeGenerator_c99[source]
generateSimulation(simulation, directory)[source]

7.11.1.5. C++ MPI (deprecated)

class daeCodeGenerator_cxx_mpi[source]
generateSimulation(simulation, directory, Nnodes)[source]

7.11.1.6. OpenCS

class daeCodeGenerator_OpenCS[source]
Limitations:
  • Discontinuous equations (STNs and IFs) are not supported

  • External functions are not supported

  • Thermo-physical property packages are not supported

property defaultSimulationOptions_DAE
property defaultSimulationOptions_ODE
generateSimulation(simulation, inputFilesDirectory, Npe=1, graphPartitioner=None, simulationOptions=None, logPartitionResults=False, balancingConstraints=[], unaryOperationsFlops={}, binaryOperationsFlops={})[source]

7.11.1.7. Auxiliary classes

class daeCodeGeneratorAnalyzer[source]
analyzeModel(model)[source]
analyzePort(port)[source]
analyzeSimulation(simulation, unaryFlops={}, binaryFlops={})[source]
class daeExpressionFormatter[source]
flattenIdentifier(identifier)[source]
formatDomain(domainCanonicalName, index, value)[source]
formatIdentifier(identifier)[source]
formatNumpyArray(arr)[source]
formatParameter(parameterCanonicalName, domainIndexes, value)[source]
formatQuantity(quantity)[source]
formatRuntimeConditionNode(node)[source]
formatRuntimeNode(node)[source]
formatTimeDerivative(variableCanonicalName, domainIndexes, overallIndex)[source]
formatUnits(units)[source]
formatVariable(variableCanonicalName, domainIndexes, overallIndex)[source]