An open API service indexing awesome lists of open source software.

https://github.com/jmarrec/energyplus-cpp-demo

Using C++ to drive EnergyPlus. A fancy CLI for E+ with a terminal UI based on FTXUI
https://github.com/jmarrec/energyplus-cpp-demo

cpp cpp20 energyplus ftxui hacktoberfest

Last synced: 2 months ago
JSON representation

Using C++ to drive EnergyPlus. A fancy CLI for E+ with a terminal UI based on FTXUI

Awesome Lists containing this project

README

        

# C++ to drive EnergyPlus

[![C++ CI](https://github.com/jmarrec/EnergyPlus-Cpp-Demo/actions/workflows/build.yml/badge.svg)](https://github.com/jmarrec/EnergyPlus-Cpp-Demo/actions/workflows/build.yml)
[![clang-format](https://github.com/jmarrec/EnergyPlus-Cpp-Demo/actions/workflows/clang-format-check.yml/badge.svg)](https://github.com/jmarrec/EnergyPlus-Cpp-Demo/actions/workflows/clang-format-check.yml)
[![cppcheck](https://github.com/jmarrec/EnergyPlus-Cpp-Demo/actions/workflows/cppcheck.yml/badge.svg)](https://github.com/jmarrec/EnergyPlus-Cpp-Demo/actions/workflows/cppcheck.yml)

![demo GIF](EnergyPlus-Cpp-Demo.gif)

## Usage

This uses my branch: https://github.com/NREL/EnergyPlus/tree/export_energyplusapi

Make sure you have conan installed: `pip install conan` (tested with 1.53)

```shell
conan install . -pr:b=default -b missing -if build/ -of build
cd build/
cmake -G Ninja -DCMAKE_TOOLCHAIN_FILE=conan_toolchain.cmake -Denergyplus_DIR:PATH=/Users/julien/Software/Others/EnergyPlus-build-release/_CPack_Packages/Darwin/TGZ/EnergyPlus-22.2.0-5b72c372e7-Darwin-macOS12.1-arm64/lib/cmake/energyplus ..
ninja
cd Products/
./test
```