Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

The below code gives an error message Optional not initialized

ps: how to type in a code box?

chiller = OpenStudio::Model::ChillerElectricEIR.new(model, clgCapFuncTempCurve, eirFuncTempCurve, eirFuncPlrCurve) chiller.chiller.setName('primary chiller') runner.registerInfo("Primary Chiller= '#{chiller.name}' #it outputs the chiller name chilled_water_plant.addSupplyBranchForComponent(chiller) primarychiller_manager_scheduled = OpenStudio::Model::SetpointManagerScheduled.new(model, chiller_setpoint_schedule) primarychiller_manager_scheduled.addToNode(chiller.demandOutletModelObject.get.to_Node.get)

The below code gives an error message Optional not initialized

ps: how to type in a code box?

chiller = OpenStudio::Model::ChillerElectricEIR.new(model, clgCapFuncTempCurve, eirFuncTempCurve, eirFuncPlrCurve) chiller.chiller.setName('primary chiller') runner.registerInfo("Primary Chiller= '#{chiller.name}' #it outputs the chiller name chilled_water_plant.addSupplyBranchForComponent(chiller) primarychiller_manager_scheduled = OpenStudio::Model::SetpointManagerScheduled.new(model, chiller_setpoint_schedule) primarychiller_manager_scheduled.addToNode(chiller.demandOutletModelObject.get.to_Node.get)primarychiller_manager_scheduled.addToNode(chiller.demandOutletModelObject.get.to_Node.get)

The below code gives an error message Optional not initialized

ps: how to type in a code box?

chiller = OpenStudio::Model::ChillerElectricEIR.new(model, clgCapFuncTempCurve, eirFuncTempCurve, eirFuncPlrCurve) eirFuncPlrCurve)

chiller.chiller.setName('primary chiller') chiller')

runner.registerInfo("Primary Chiller= '#{chiller.name}' #it outputs the chiller name chilled_water_plant.addSupplyBranchForComponent(chiller) name

chilled_water_plant.addSupplyBranchForComponent(chiller)

primarychiller_manager_scheduled = OpenStudio::Model::SetpointManagerScheduled.new(model, chiller_setpoint_schedule) primarychiller_manager_scheduled.addToNode(chiller.demandOutletModelObject.get.to_Node.get) chiller_setpoint_schedule)

primarychiller_manager_scheduled.addToNode(chiller.demandOutletModelObject.get.to_Node.get)

The below code gives an error message Optional not initialized

ps: how to type in a code box?

chiller = OpenStudio::Model::ChillerElectricEIR.new(model, clgCapFuncTempCurve, eirFuncTempCurve, eirFuncPlrCurve)

chiller.chiller.setName('primary chiller')

runner.registerInfo("Primary Chiller= '#{chiller.name}' #it outputs ") #this line prints the chiller name

chilled_water_plant.addSupplyBranchForComponent(chiller)

primarychiller_manager_scheduled = OpenStudio::Model::SetpointManagerScheduled.new(model, chiller_setpoint_schedule)

primarychiller_manager_scheduled.addToNode(chiller.demandOutletModelObject.get.to_Node.get)

The below code gives an error message Optional not initialized

ps: how to type in a code box?

chiller = OpenStudio::Model::ChillerElectricEIR.new(model, clgCapFuncTempCurve, eirFuncTempCurve, eirFuncPlrCurve)

eirFuncPlrCurve) chiller.chiller.setName('primary chiller')

chiller') runner.registerInfo("Primary Chiller= '#{chiller.name}' ") #this line prints the chiller name

chilled_water_plant.addSupplyBranchForComponent(chiller)

name chilled_water_plant.addSupplyBranchForComponent(chiller) primarychiller_manager_scheduled = OpenStudio::Model::SetpointManagerScheduled.new(model, chiller_setpoint_schedule)chiller_setpoint_schedule) primarychiller_manager_scheduled.addToNode(chiller.demandOutletModelObject.get.to_Node.get)

primarychiller_manager_scheduled.addToNode(chiller.demandOutletModelObject.get.to_Node.get)

The below code gives an error message Optional not initialized

ps: how to type in a code box?

chiller = OpenStudio::Model::ChillerElectricEIR.new(model, clgCapFuncTempCurve, eirFuncTempCurve, eirFuncPlrCurve)
 chiller.chiller.setName('primary chiller')
 runner.registerInfo("Primary Chiller= '#{chiller.name}' ") #this line prints the chiller name
 chilled_water_plant.addSupplyBranchForComponent(chiller)
 primarychiller_manager_scheduled = OpenStudio::Model::SetpointManagerScheduled.new(model, chiller_setpoint_schedule)
 primarychiller_manager_scheduled.addToNode(chiller.demandOutletModelObject.get.to_Node.get)

The below code gives an error message Optional not initialized

ps: how to type in a code box?

chiller = OpenStudio::Model::ChillerElectricEIR.new(model, clgCapFuncTempCurve, eirFuncTempCurve, eirFuncPlrCurve)

chiller.chiller.setName('primary chiller')

runner.registerInfo("Primary Chiller= '#{chiller.name}' ") #this line prints the chiller name

chilled_water_plant.addSupplyBranchForComponent(chiller)

primarychiller_manager_scheduled = OpenStudio::Model::SetpointManagerScheduled.new(model, chiller_setpoint_schedule)

primarychiller_manager_scheduled.addToNode(chiller.demandOutletModelObject.get.to_Node.get)

The below code gives an error message Optional not initialized

EDITED with the correct answer

chiller = OpenStudio::Model::ChillerElectricEIR.new(model, clgCapFuncTempCurve, eirFuncTempCurve, eirFuncPlrCurve)
 chiller.chiller.setName('primary chiller')
 runner.registerInfo("Primary Chiller= '#{chiller.name}' ") #this line prints the chiller name
 chilled_water_plant.addSupplyBranchForComponent(chiller)
 primarychiller_manager_scheduled = OpenStudio::Model::SetpointManagerScheduled.new(model, chiller_setpoint_schedule)

primarychiller_manager_scheduled.addToNode(chiller.demandOutletModelObject.get.to_Node.get)
primarychiller_manager_scheduled.addToNode(chiller.supplyOutletModelObject.get.to_Node.get)