Alfalfa EnergyPlus Mixin Methods - NatLabRockies/alfalfa GitHub Wiki
create_enabled_input(name, variable_name, default="Null")
Create enabled input to actuate an EMS variable. This method creates an external variable with the specified name and an EMS program to copy the value to the specified variable if enabled or the default value otherwise
Arguments
nameName of input to createvariable_nameEMS name of variable to controldefaultValue to have when not enabled. Default to null for actuator control
Return
Returns an Input with an enable_variable property. The Input can then be registered with Alfalfa.
create_actuator(name, component, component_type, control_type, external=false)
Create an Actuator
Arguments
nameName of actuator to createcomponentName of component to actuatecomponent_typeType of componentcontrol_typeType of controlexternalWhen true an external interface variable withnamewill be created and returned
Return
If external is true a tuple of (Input,Output) is returned
Otherwise a WorkspaceObject
create_external_variable(name, initial_value = 0)
Create External Interface Variable.
Arguments
nameName of external variable to createinitial_valueInitial value of external variable
Return
Returns an Input corresponding to the external variable
create_ems_output_variable(name, variable, unit = 'C')
Create EMS Output Variable
Arguments
nameName of EMS Output Variable to createvariableEMS name of variable to connect to Output VariableunitUnit of output
Return
Returns an Output corresponding to the ems variable
create_output_variable(key, var)
Create EMS Output Variable
Arguments
keyKey of Output VariablevarVariable of Output Variable
Return
Return an Output corresponding to the Output Variable
get_node_from_nodelist(node)
Get first node from NodeList
Arguments
nodeNodelist id
Return Return first node in list