7.11. Code generators and model exchange

7.11.1. Code Generators

7.11.1.1. Modelica

class daeExpressionFormatter_Modelica[source]

Bases: daetools.code_generators.formatter.daeExpressionFormatter

formatNumpyArray(arr)[source]
formatQuantity(quantity)[source]
formatUnits(units)[source]
class daeCodeGenerator_Modelica[source]

Bases: daetools.code_generators.code_generator.daeCodeGenerator

generateSimulation(simulation, directory)[source]

7.11.1.2. gPROMS

class daeExpressionFormatter_gPROMS[source]

Bases: daetools.code_generators.formatter.daeExpressionFormatter

formatNumpyArray(arr)[source]
class daeCodeGenerator_gPROMS[source]

Bases: daetools.code_generators.code_generator.daeCodeGenerator

generateSimulation(simulation, directory)[source]

7.11.1.3. Functional Mockup Interface (FMI)

class daeCodeGenerator_FMI(xml_stylesheet=None)[source]

Bases: daetools.code_generators.fmi_xml_support.fmiModelDescription

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]

Bases: daetools.code_generators.formatter.daeExpressionFormatter

formatNumpyArray(arr)[source]
formatQuantity(quantity)[source]
class daeCodeGenerator_c99[source]

Bases: daetools.code_generators.code_generator.daeCodeGenerator

generateSimulation(simulation, directory)[source]

7.11.1.5. C++ MPI

class daeCodeGenerator_cxx_mpi[source]

Bases: daetools.code_generators.code_generator.daeCodeGenerator

Limitations:
  • DOFs in models are not supported (for the block indexes are not set uniformly)
  • STNs are not supported
generateSimulation(simulation, directory, Nnodes)[source]
class daeCodeGenerator_cxx_mpi[source]

Bases: daetools.code_generators.code_generator.daeCodeGenerator

Limitations:
  • DOFs in models are not supported (for the block indexes are not set uniformly)
  • STNs are not supported
generateSimulation(simulation, directory, Nnodes)[source]

7.11.1.6. Auxiliary classes

class daeCodeGeneratorAnalyzer[source]

Bases: object

analyzeModel(model)[source]
analyzePort(port)[source]
analyzeSimulation(simulation)[source]
class daeExpressionFormatter[source]

Bases: object

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, order)[source]
formatUnits(units)[source]
formatVariable(variableCanonicalName, domainIndexes, overallIndex)[source]