本文整理汇总了C++中HVACComponent::waterInletModelObject方法的典型用法代码示例。如果您正苦于以下问题:C++ HVACComponent::waterInletModelObject方法的具体用法?C++ HVACComponent::waterInletModelObject怎么用?C++ HVACComponent::waterInletModelObject使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类HVACComponent
的用法示例。
在下文中一共展示了HVACComponent::waterInletModelObject方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: _airDistributionUnit
//.........这里部分代码省略.........
}
else if( _reheatCoil->iddObject().type() == IddObjectType::Coil_Heating_Electric )
{
_reheatCoil->setString(Coil_Heating_ElectricFields::AirInletNodeName,mixerOutletNodeName);
_reheatCoil->setString(Coil_Heating_ElectricFields::AirOutletNodeName,outletNodeName.get());
}
else if( _reheatCoil->iddObject().type() == IddObjectType::Coil_Heating_Water )
{
_reheatCoil->setString(Coil_Heating_WaterFields::AirInletNodeName,mixerOutletNodeName);
_reheatCoil->setString(Coil_Heating_WaterFields::AirOutletNodeName,outletNodeName.get());
}
}
}
// AvailabilityScheduleName
Schedule availabilitySchedule = modelObject.availabilitySchedule();
boost::optional<IdfObject> _availabilitySchedule = translateAndMapModelObject(availabilitySchedule);
if( _availabilitySchedule && _availabilitySchedule->name() )
{
idfObject.setString(AirTerminal_SingleDuct_ParallelPIU_ReheatFields::AvailabilityScheduleName,_availabilitySchedule->name().get());
}
// MaximumPrimaryAirFlowRate
if( modelObject.isMaximumPrimaryAirFlowRateAutosized() )
{
idfObject.setString(AirTerminal_SingleDuct_ParallelPIU_ReheatFields::MaximumPrimaryAirFlowRate,"Autosize");
}
else if( (value = modelObject.maximumPrimaryAirFlowRate()) )
{
idfObject.setDouble(AirTerminal_SingleDuct_ParallelPIU_ReheatFields::MaximumPrimaryAirFlowRate,value.get());
}
// MaximumSecondaryAirFlowRate
if( modelObject.isMaximumSecondaryAirFlowRateAutosized() )
{
idfObject.setString(AirTerminal_SingleDuct_ParallelPIU_ReheatFields::MaximumSecondaryAirFlowRate,"Autosize");
}
else if( (value = modelObject.maximumSecondaryAirFlowRate()) )
{
idfObject.setDouble(AirTerminal_SingleDuct_ParallelPIU_ReheatFields::MaximumSecondaryAirFlowRate,value.get());
}
// MinimumPrimaryAirFlowFraction
if( modelObject.isMinimumPrimaryAirFlowFractionAutosized() )
{
idfObject.setString(AirTerminal_SingleDuct_ParallelPIU_ReheatFields::MinimumPrimaryAirFlowFraction,"Autosize");
}
else if( (value = modelObject.minimumPrimaryAirFlowFraction()) )
{
idfObject.setDouble(AirTerminal_SingleDuct_ParallelPIU_ReheatFields::MinimumPrimaryAirFlowFraction,value.get());
}
// FanOnFlowFraction
if( modelObject.isFanOnFlowFractionAutosized() )
{
idfObject.setString(AirTerminal_SingleDuct_ParallelPIU_ReheatFields::FanOnFlowFraction,"Autosize");
}
else if( (value = modelObject.fanOnFlowFraction()) )
{
idfObject.setDouble(AirTerminal_SingleDuct_ParallelPIU_ReheatFields::FanOnFlowFraction,value.get());
}
// MaximumHotWaterorSteamFlowRate
if( modelObject.isMaximumHotWaterorSteamFlowRateAutosized() )
{
idfObject.setString(AirTerminal_SingleDuct_ParallelPIU_ReheatFields::MaximumHotWaterorSteamFlowRate,"Autosize");
}
else if( (value = modelObject.maximumHotWaterorSteamFlowRate()) )
{
idfObject.setDouble(AirTerminal_SingleDuct_ParallelPIU_ReheatFields::MaximumHotWaterorSteamFlowRate,value.get());
}
// MinimumHotWaterorSteamFlowRate
if( (value = modelObject.minimumHotWaterorSteamFlowRate()) )
{
idfObject.setDouble(AirTerminal_SingleDuct_ParallelPIU_ReheatFields::MinimumHotWaterorSteamFlowRate,value.get());
}
// HotWaterorSteamInletNodeName
if( boost::optional<CoilHeatingWater> coil = modelObject.reheatCoil().optionalCast<CoilHeatingWater>() )
{
if( boost::optional<ModelObject> mo = coil->waterInletModelObject() )
{
if( boost::optional<Node> node = mo->optionalCast<Node>() )
{
idfObject.setString(AirTerminal_SingleDuct_ParallelPIU_ReheatFields::HotWaterorSteamInletNodeName,node->name().get());
}
}
}
// ConvergenceTolerance
if( (value = modelObject.convergenceTolerance()) )
{
idfObject.setDouble(AirTerminal_SingleDuct_ParallelPIU_ReheatFields::ConvergenceTolerance,value.get());
}
return _airDistributionUnit;
}
开发者ID:CUEBoxer,项目名称:OpenStudio,代码行数:101,代码来源:ForwardTranslateAirTerminalSingleDuctParallelPIUReheat.cpp