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

How to add AFN in openstudio sdk

The sdk documentation on how to create a AFN object confuses me; it seems to be self-referential?

openstudio::model::AirflowNetworkZone::AirflowNetworkZone ( const AirflowNetworkZone &  other)

Can anyone provide an example of how to add the AFN objects (in python or ruby) ? More generally, why does the below approach work for most objects, but not some like the AFN objects ?

openstudio.model.AirflowNetworkZone(model) 
TypeError: Wrong number or type of arguments for overloaded function 'new_AirflowNetworkZone'. Possible C/C++ prototypes are: openstudio::model::AirflowNetworkZone::AirflowNetworkZone(openstudio::model::AirflowNetworkZone const &) openstudio::model::AirflowNetworkZone::AirflowNetworkZone(openstudio::model::AirflowNetworkZone &&)

How to add AFN in openstudio sdk

The sdk documentation on how to create a AFN object confuses me; it seems to be self-referential?

openstudio::model::AirflowNetworkZone::AirflowNetworkZone ( const AirflowNetworkZone &  other)

Can anyone provide an example of how to add the AFN objects (in python or ruby) ? More generally, why does the below approach work for most objects, but not some like the AFN objects ?

openstudio.model.AirflowNetworkZone(model) 
TypeError: Wrong number or type of arguments for overloaded function 'new_AirflowNetworkZone'. Possible C/C++ prototypes are: openstudio::model::AirflowNetworkZone::AirflowNetworkZone(openstudio::model::AirflowNetworkZone const &) openstudio::model::AirflowNetworkZone::AirflowNetworkZone(openstudio::model::AirflowNetworkZone &&)

How to add AFN in openstudio sdk

The sdk documentation on how to create a AFN object confuses me; it seems to be self-referential?

openstudio::model::AirflowNetworkZone::AirflowNetworkZone ( const AirflowNetworkZone &  other)

Can anyone provide an example of how to add the AFN objects (in python or ruby) ? More generally, why does the below approach work for most objects, but not some like the AFN objects ?

openstudio.model.AirflowNetworkZone(model) 
TypeError: Wrong number or type of arguments for overloaded function 'new_AirflowNetworkZone'. Possible C/C++ prototypes are: openstudio::model::AirflowNetworkZone::AirflowNetworkZone(openstudio::model::AirflowNetworkZone const &) openstudio::model::AirflowNetworkZone::AirflowNetworkZone(openstudio::model::AirflowNetworkZone &&)

How to add AFN in openstudio sdk

The sdk documentation on how to create a AFN object confuses me; it seems to be self-referential?

openstudio::model::AirflowNetworkZone::AirflowNetworkZone ( const AirflowNetworkZone &  other)

Can anyone provide an example of how to add the AFN objects (in python or ruby) ? More generally, why does the below approach work for most objects, but not some like the AFN objects ?

openstudio.model.AirflowNetworkZone(model) 
TypeError: Wrong number or type of arguments for overloaded function 'new_AirflowNetworkZone'. Possible C/C++ prototypes are: openstudio::model::AirflowNetworkZone::AirflowNetworkZone(openstudio::model::AirflowNetworkZone const &) openstudio::model::AirflowNetworkZone::AirflowNetworkZone(openstudio::model::AirflowNetworkZone &&)

Second part to my question;

Am I doing something wrong here, or is this a python binding issue?

calling this;

afn_zone.setVentingAvailabilitySchedule(model.alwaysOnDiscreteSchedule())

returns this error message;

[openstudio.model.ScheduleTypeRegistry] <2> No 'Venting Availability' Schedule is registered for class    AirflowNetworkZone.
RuntimeError: D:\a\OpenStudio\OpenStudio\src\model\ScheduleTypeRegistry.cpp@44 : No 'Venting Availability' Schedule is registered for class AirflowNetworkZone

How to add AFN in openstudio sdk

The sdk documentation on how to create a AFN object confuses me; it seems to be self-referential?

openstudio::model::AirflowNetworkZone::AirflowNetworkZone ( const AirflowNetworkZone &  other)

Can anyone provide an example of how to add the AFN objects (in python or ruby) ? More generally, why does the below approach work for most objects, but not some like the AFN objects ?

openstudio.model.AirflowNetworkZone(model) 
TypeError: Wrong number or type of arguments for overloaded function 'new_AirflowNetworkZone'. Possible C/C++ prototypes are: openstudio::model::AirflowNetworkZone::AirflowNetworkZone(openstudio::model::AirflowNetworkZone const &) openstudio::model::AirflowNetworkZone::AirflowNetworkZone(openstudio::model::AirflowNetworkZone &&)

Second part to my question;

Am I doing something wrong here, or is this a python binding issue?

calling this;

afn_zone.setVentingAvailabilitySchedule(model.alwaysOnDiscreteSchedule())

returns this error message;

[openstudio.model.ScheduleTypeRegistry] <2> No 'Venting Availability' Schedule is registered for class    AirflowNetworkZone.
RuntimeError: D:\a\OpenStudio\OpenStudio\src\model\ScheduleTypeRegistry.cpp@44 : No 'Venting Availability' Schedule is registered for class AirflowNetworkZone