Revision history [back]
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.supplyOutletModelObject.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.supplyOutletModelObject.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
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)
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}'
") #this line prints #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)
eirFuncPlrCurve)
chiller.chiller.setName('primary
chiller')
chiller')
runner.registerInfo("Primary Chiller= '#{chiller.name}' #it outputs the chiller
namename
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)
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)