7.10. Code generators and model exchange

7.10.1. Code Generators

7.10.1.1. Modelica

class daetools.code_generators.modelica.daeExpressionFormatter_Modelica[source]

Bases: daetools.code_generators.formatter.daeExpressionFormatter

formatNumpyArray(arr)[source]
formatQuantity(quantity)[source]
formatUnits(units)[source]
class daetools.code_generators.modelica.daeCodeGenerator_Modelica[source]

Bases: daetools.code_generators.code_generator.daeCodeGenerator

generateSimulation(simulation, directory)[source]

7.10.1.2. gPROMS

class daetools.code_generators.gproms.daeExpressionFormatter_gPROMS[source]

Bases: daetools.code_generators.formatter.daeExpressionFormatter

formatNumpyArray(arr)[source]
class daetools.code_generators.gproms.daeCodeGenerator_gPROMS[source]

Bases: daetools.code_generators.code_generator.daeCodeGenerator

generateSimulation(simulation, directory)[source]

7.10.1.3. Functional Mockup Interface (FMI)

class daetools.code_generators.fmi.daeCodeGenerator_FMI[source]

Bases: daetools.code_generators.fmi_xml_support.fmiModelDescription

generateSimulation(simulation, directory, py_simulation_file, callable_object_name, arguments, py_additional_files=[])[source]

7.10.1.4. C99

class daetools.code_generators.c99.daeExpressionFormatter_c99[source]

Bases: daetools.code_generators.formatter.daeExpressionFormatter

formatNumpyArray(arr)[source]
formatQuantity(quantity)[source]
class daetools.code_generators.c99.daeCodeGenerator_c99[source]

Bases: daetools.code_generators.code_generator.daeCodeGenerator

generateSimulation(simulation, directory)[source]

7.10.1.5. C++_MPI

class daetools.code_generators.cxx_mpi.daeCodeGenerator_cxx_mpi[source]

Bases: daetools.code_generators.code_generator.daeCodeGenerator

generateSimulation(simulation, directory, Nnodes)[source]
class daetools.code_generators.cxx_mpi.daeCodeGenerator_cxx_mpi[source]

Bases: daetools.code_generators.code_generator.daeCodeGenerator

generateSimulation(simulation, directory, Nnodes)[source]

7.10.1.6. Auxiliary classes

class daetools.code_generators.analyzer.daeCodeGeneratorAnalyzer[source]

Bases: object

analyzeModel(model)[source]
analyzePort(port)[source]
analyzeSimulation(simulation)[source]
class daetools.code_generators.formatter.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]