eppy_funcs¶
-
eppy_funcs.convert_format(s, place, mode)[source]¶ Converts energyPlus names to their Eppy equivalents
Parameters: - s (str) – name to convert
- place (str) – the type of place that is being used ‘field’ or ‘class’
- mode (str) – whether to convert to idf or json formating
Returns: the converted name
-
eppy_funcs.get_idf(idf_file, idd_file, output_directory) → IDF[source]¶ Uses eppy to read an idf file and generate the corresponding idf object
Parameters: - idf_file (str) – Input IDF file name
- idd_file (str) – Input IDD file name
- output_directory (str) – Directory for the IDF object
Returns: The specified IDF object
-
eppy_funcs.one_window(building)[source]¶ Removes some windows so that each wall has no more than one
Parameters: building – The building to apply the changes to
-
eppy_funcs.set_vertex(idfObj, vertexNum, x = 0, y = 0, z = 0)[source]¶ Sets a single vertex of the passed idfObject (idfObj) to the specified x,y and z coordinates.
Parameters: - idfObj – The idfObject to be used
- x, y, z (float) – The position of the vertex
-
eppy_funcs.wwr_all(building, wwr)[source]¶ Sets the wwr for all walls that have a window. Will malfunction if there are multiple windows on one wall
Parameters: - building – The building to apply the changes to
- wwr (float) – The desired wwr
-
eppy_funcs.wwr_single(window, wwr, building, mode)[source]¶ Sets window to have the window to wall ratio specified by wwr
Parameters: - window – The window to apply the changes to
- wwr (float) – The desired wwr
- building – The building to apply the changes to
- mode (str) – Whether to convert to idf or json formating