Learn R Programming

eplusr (version 0.8.2)

run_idf: Run simulations of EnergyPlus models.

Description

run_idf is a wrapper of EnergyPlus command line interface which enables to run EnergyPlus model with different options. run_multi provides the functionality of running multiple models in parallel.

Usage

run_idf(eplus, model, weather, output_dir = NULL, design_day = FALSE,
  annual = FALSE, expand_obj = TRUE, echo = FALSE)

run_multi(eplus, model, weather, output_dir = NULL, design_day = FALSE, annual = FALSE, parallel_backend = future::multiprocess)

Arguments

eplus

An acceptable input of use_eplus() and eplus_config().

model

A path of an EnergyPlus IDF or IMF file.

weather

A path of an EnergyPlus EPW weather file.

output_dir

Output directory path. If NULL, which is default, the directory of input model will be used.

design_day

Force design-day-only simulation. Default: FALSE.

annual

Force design-day-only simulation. Default: FALSE.

expand_obj

Where to run ExpandObject preprocessor before simulation. Default: TRUE.

echo

Only applicable to run_idf. Show EnergyPlus simulation process information to the console. If FALSE, which is default, a processx::process object will be return.

parallel_backend

Acceptable input for future::plan().

Details

Behind the scene, run_multi uses the package furrr which provides apply mapping functions in parallel using package future. It is suggested to run simulation using Job class, which provides much more controls on simulation and also methods to extract simulation results.

References

Running EnergyPlus from Command Line (EnergyPlus GitHub Repository)

Examples

Run this code
# NOT RUN {
run_idf(8.8, "input.idf", "weather.epw")
# }

Run the code above in your browser using DataLab