-
Notifications
You must be signed in to change notification settings - Fork 13
How to Preprocess and Upload a Model
Note: All examples in this guide will be shown using the python package alfalfa-client
, please see "How to Install Alfalfa Client" for more details on using this package.
Once you have configured a model for use with Alfalfa, (see "How to Configure an OpenStudio Model"), your model can be uploaded to an Alfalfa instance where the relevant files will be stored. This model will be assigned a unique identifier which can be used to refer to this model upload.
model_id = upload_model(path_to_my_model)
path_to_my_model
should reference either a folder or a zip file saved locally to your machine. This function can be used to submit a single file path, or a list of file paths. It will return either a single model ID or a list of model IDs.
Once you have model IDs associated with your file upload, simulation runs can be started with these models. When a simulation run is created, the model will be preprocessed to prepare the simulation to execute. Only one simulation run can be active for each model upload at a time. This run will have an associated run ID.
run_id = create_run_from_model(_model_id)
Similar to the upload_model functionality, either a list of model IDs or a single model ID can be passed to this function.
Once a run has been created, the simulation will have an associated status (see "Statuses") which can be returned as follows:
run_status = status(run_id)
Alternatively, a model can be uploaded and a run created in a single step with the following function:
run_id = submit(path_to_my_model)
- Getting Started with Model Measures Part 1: Creating Inputs and Outputs
- Getting Started with Model Measures Part 2: Creating Actuators
- Getting Started with EnergyPlus Measures Part 1: Creating Inputs and Outputs
- Getting Started with EnergyPlus Measures Part 2: Creating Actuators
- How to Configure an OpenStudio Model
- How to Configure Measures for Use with Alfalfa Ruby Gem
- How to Create Inputs and Outputs With Measures
- How to Run URBANopt Output Models in Alfalfa
- How to Migrate EnergyPlus Python Plugins
- How to Integrate Python based Electric Vehicle Models with OpenStudio Workflows
- How to Locally Test OpenStudio Models
- Required Structure of OpenStudio Workflow
- List of Automatically Generated Energyplus Points
- Alfalfa EnergyPlus Mixin Methods
- Getting Started with Uploading and Running a Model Using Python
- Getting Started with Uploading and Running a Model Using the UI
- How to Install Alfalfa Client
- How to Preprocess and Upload a Model
- How to Step Through a Simulation
- How to View Historical Data in Grafana
- How to Configure an Alias
- How to Troubleshoot Models