Title: | A toolkit to convert 'DeST' models to 'EnergyPlus' models |
---|---|
Description: | A toolkit to convert 'DeST' models to 'EnergyPlus' models. |
Authors: | Hongyuan Jia [aut, cre] |
Maintainer: | Hongyuan Jia <[email protected]> |
License: | MIT + file LICENSE |
Version: | 0.0.0.9000 |
Built: | 2025-02-14 03:56:18 UTC |
Source: | https://github.com/hongyuanjia/destep |
Download a typical building model from the DeST website
download_dest_model(building_type, location, year, dir = ".")
download_dest_model(building_type, location, year, dir = ".")
building_type |
[character] Building type to download. |
location |
[character] Location of the building. |
year |
[integer] Year of the building model. |
dir |
[string] Directory to save the file. Default is the current workding directory. |
The downloaded 7z
file will be unachieved using the {archive}
package.
[character] Path to the downloaded file.
Information about all available models can be retrieved by sending a
GET
request to https://svr.dest.net.cn/api/v1/all_model_names
.
## Not run: download_typical_dest("Commerical office A", "Chongqin", 2015) ## End(Not run)
## Not run: download_typical_dest("Commerical office A", "Chongqin", 2015) ## End(Not run)
Read tables from a DeST model and convert to SQLite
read_dest(accdb, tables = NULL, sqlite = ":memory:", verbose = FALSE)
read_dest(accdb, tables = NULL, sqlite = ":memory:", verbose = FALSE)
accdb |
[string] Path to the DeST model file. Usually a Microsoft
Access database file with |
tables |
[character] Vector of table names to read from the DeST
model. If |
sqlite |
[string] Path to the SQLite database file. If |
verbose |
[logical] Whether to print information about the conversion
process. Default is |
[DBIConnection] A SQLite database connection with all specified tables..
Tables with the same name will be overwritten in the SQLite database.
Convert a DeST model to EnergyPlus model
to_eplus(dest, ver = "latest", copy = TRUE)
to_eplus(dest, ver = "latest", copy = TRUE)
dest |
A [string or DBIConnection] path to a DeST model file or a DBIConnection object. |
ver |
[string] A character string specifying the EnergyPlus version.
It can be |
copy |
[logical] Whether to copy the input DeST database to a
temporary SQLite database. Note that if |
[eplusr::Idf] The converted EnergyPlus model.