translate¶
dragonfly translate¶
Commands for translating Dragonfly JSON files to honeybee.
dragonfly translate [OPTIONS] COMMAND [ARGS]...
merge-models-to-honeybee¶
Merge multiple Dragonfly and/or Honeybee Models into a single Honeybee Model.
dragonfly translate merge-models-to-honeybee [OPTIONS] BASE_MODEL
Options
- -d, --dragonfly-model <dragonfly_model>¶
Other Dragonfly Model to be merged into the base model.
- -h, --honeybee-model <honeybee_model>¶
Other Honeybee Model to be merged into the base model.
- --multiplier, -fg, --full-geometry¶
Flag to note if the multipliers on each Building story should be passed along to the generated Honeybee Room objects or if full geometry objects should be written for each story in the building.
- Default:
True
- --no-plenum, -p, --plenum¶
Flag to indicate whether ceiling/floor plenums should be auto-generated for the Rooms.
- Default:
True
- --default-adjacency, -sa, --solve-adjacency¶
Flag to indicate whether all boundary conditions of the original models should be left as they are or whether adjacencies should be solved across the final model when everything is merged together. In this case, solving adjacencies will involve merging all coplanar faces across the Dragonfly/Honeybee Models, intersecting coplanar Faces to get matching areas, and setting Surface boundary conditions for all matching coplanar faces.
- Default:
True
- --enforce-adj-check, -bc, --bypass-adj-check¶
Flag to note whether an exception should be raised if an adjacency between two Room2Ds is invalid or if the check should be bypassed and the invalid Surface boundary condition should be replaced with an Outdoor boundary condition. If bypass is selected, any Walls containing WindowParameters and an illegal boundary condition will also be replaced with an Outdoor boundary condition.
- Default:
True
- --enforce-solid, -pns, --permit-non-solid¶
Flag to note whether rooms should be translated as solid extrusions whenever translating them with custom roof geometry produces a non-solid result or the non-solid room geometry should be allowed to remain in the result. The latter is useful for understanding why a particular roof geometry has produced a non-solid result.
- Default:
True
- -f, --output-file <output_file>¶
Optional file to output the Honeybee Model JSON string with solved adjacency. By default it will be printed out to stdout
Arguments
- BASE_MODEL¶
Required argument
model-to-honeybee¶
Translate a Dragonfly Model file into one or more Honeybee Models.
dragonfly translate model-to-honeybee [OPTIONS] MODEL_FILE
Options
- -o, --obj-per-model <obj_per_model>¶
Text to describe how the input Model should be divided across the output Models. Choose from: District, Building, Story.
- Default:
'Building'
- --multiplier, -fg, --full-geometry¶
Flag to note if the multipliers on each Building story should be passed along to the generated Honeybee Room objects or if full geometry objects should be written for each story in the building.
- Default:
True
- --no-plenum, -p, --plenum¶
Flag to indicate whether ceiling/floor plenums should be auto-generated for the Rooms.
- Default:
True
- --no-cap, -c, --cap¶
Flag to indicate whether context shade buildings should be capped with a top face.
- Default:
True
- --no-ceil-adjacency, -a, --ceil-adjacency¶
Flag to indicate whether adjacencies should be solved between interior stories when Room2D floor and ceiling geometries are coplanar. This ensures that Surface boundary conditions are used instead of Adiabatic ones. Note that this input has no effect when the object-per-model is Story.
- Default:
True
- -sd, --shade-dist <shade_dist>¶
An optional number to note the distance beyond which other buildings shade should not be exported into a Model. This can include the units of the distance (eg. 100ft) or, if no units are provided, the value will be interpreted in the dragonfly model units. If None, all other buildings will be included as context shade in each and every Model. Set to 0 to exclude all neighboring buildings from the resulting models.
- --enforce-adj-check, -bc, --bypass-adj-check¶
Flag to note whether an exception should be raised if an adjacency between two Room2Ds is invalid or if the check should be bypassed and the invalid Surface boundary condition should be replaced with an Outdoor boundary condition. If bypass is selected, any Walls containing WindowParameters and an illegal boundary condition will also be replaced with an Outdoor boundary condition.
- Default:
True
- --enforce-solid, -pns, --permit-non-solid¶
Flag to note whether rooms should be translated as solid extrusions whenever translating them with custom roof geometry produces a non-solid result or the non-solid room geometry should be allowed to remain in the result. The latter is useful for understanding why a particular roof geometry has produced a non-solid result.
- Default:
True
- -f, --folder <folder>¶
Folder on this computer, into which the HBJSON files will be written. By default, the files will be output to the honeybee default simulation folder and placed in a project folder with the same name as the model json.
- -log, --log-file <log_file>¶
Optional log file to output a JSON array of dictionaries with information about each of the generated HBJSONs, including their file paths. By default the list will be printed out to stdout
- Default:
'-'
Arguments
- MODEL_FILE¶
Required argument
model-to-honeybee-file¶
Translate a Dragonfly Model into a single Honeybee Model.
dragonfly translate model-to-honeybee-file [OPTIONS] MODEL_FILE
Options
- --multiplier, -fg, --full-geometry¶
Flag to note if the multipliers on each Building story should be passed along to the generated Honeybee Room objects or if full geometry objects should be written for each story in the building.
- Default:
True
- --no-plenum, -p, --plenum¶
Flag to indicate whether ceiling/floor plenums should be auto-generated for the Rooms.
- Default:
True
- --no-ceil-adjacency, -a, --ceil-adjacency¶
Flag to indicate whether adjacencies should be solved between interior stories when Room2D floor and ceiling geometries are coplanar. This ensures that Surface boundary conditions are used instead of Adiabatic ones.
- Default:
True
- --enforce-adj-check, -bc, --bypass-adj-check¶
Flag to note whether an exception should be raised if an adjacency between two Room2Ds is invalid or if the check should be bypassed and the invalid Surface boundary condition should be replaced with an Outdoor boundary condition. If bypass is selected, any Walls containing WindowParameters and an illegal boundary condition will also be replaced with an Outdoor boundary condition.
- Default:
True
- --enforce-solid, -pns, --permit-non-solid¶
Flag to note whether rooms should be translated as solid extrusions whenever translating them with custom roof geometry produces a non-solid result or the non-solid room geometry should be allowed to remain in the result. The latter is useful for understanding why a particular roof geometry has produced a non-solid result.
- Default:
True
- -f, --output-file <output_file>¶
Optional file to output the Honeybee Model JSON string with solved adjacency. By default it will be printed out to stdout
Arguments
- MODEL_FILE¶
Required argument