You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had a measure where I had a formula to set the setOutdoorAirFlowperPerson. The formula had a divided by 0. The measure appeared to run without issue. But the simulation failed. In the GUI I see "-nan" instead of the double. It was a mistake in my code and I fixed it, but I would assume this would either fail in the measure or leave the value untouched. Seems odd to produce a non-double for the value.
Here is the object in the model
OS:DesignSpecification:OutdoorAir,
{4d0a6dba-6738-4665-9e31-12723669e0ec}, !- Handle
Office|Elec/MechRoom|DOE Ref 1980-2004|ASHRAE 169-2006-5A|OutdoorAir, !- Name
Sum, !- Outdoor Air Method
-nan, !- Outdoor Air Flow per Person {m3/s-person}
0, !- Outdoor Air Flow per Floor Area {m3/s-m2}
, !- Outdoor Air Flow Rate {m3/s}
0, !- Outdoor Air Flow Air Changes per Hour {1/hr}
; !- Outdoor Air Flow Rate Fraction Schedule Name
The text was updated successfully, but these errors were encountered:
@DavidGoldwasser Closing because I could not reproduce this with Ruby 2.0.0:
require'openstudio'model=OpenStudio::Model::Model.newoa_spec=OpenStudio::Model::DesignSpecificationOutdoorAir.new(model)# Tried 3 different ways# val = Float::NAN# val = 0.0/0.0# val = 1/0oa_spec.setOutdoorAirFlowperPerson(val)putsoa_spec
I had a measure where I had a formula to set the setOutdoorAirFlowperPerson. The formula had a divided by 0. The measure appeared to run without issue. But the simulation failed. In the GUI I see "-nan" instead of the double. It was a mistake in my code and I fixed it, but I would assume this would either fail in the measure or leave the value untouched. Seems odd to produce a non-double for the value.
Here is the object in the model
The text was updated successfully, but these errors were encountered: