GeoJsonModelicaTranslator

class geojson_modelica_translator.geojson_modelica_translator.GeoJsonModelicaTranslator(geojson_filepath, sys_params_filepath, root_dir, project_name)

Bases: object

Main class for using the GeoJSON to Modelica Translator.

__init__(geojson_filepath, sys_params_filepath, root_dir, project_name)

Create an instance of this class

Parameters:
  • geojson_filepath – str, path to GeoJSON file

  • sys_params_filepath – str, path to system parameters file

  • root_dir – str, where to create the package

Project_name:

str, name of the package

Methods

__init__(geojson_filepath, ...)

Create an instance of this class

to_modelica()

Generate the modelica package.

to_modelica()

Generate the modelica package. Call simulate method on the result to run the package

Returns:

ModelicaPackage