Adding a New Component Type

If you are ready to dive in and implement a new model type in this tool, here are the steps you should take!

  1. Identify the model to be implemented, along with identifying the independent and dependent variables

  2. Create a new skeleton derived class from an existing component type inside the equipment folder

  3. Generate example and test data, adding it to the examples/ folder, mimicking the existing structures

  4. Add entries to the classes and functions inside equipment/equip_types.py

  5. Add an entry to the factory method in equipment/manager.py

  6. Fully flesh out the equipment derived class, mimicking patterns and examples in other equipment

  7. If there are model curve functions that can be reused by other classes, consider adding them to common_curves.py

  8. Add branches and nodes to the main form in the _build_treeview function in forms/main.py

That’s it!