当前位置: 首页>>代码示例>>C++>>正文


C++ UserModel::setWeatherFilePath方法代码示例

本文整理汇总了C++中UserModel::setWeatherFilePath方法的典型用法代码示例。如果您正苦于以下问题:C++ UserModel::setWeatherFilePath方法的具体用法?C++ UserModel::setWeatherFilePath怎么用?C++ UserModel::setWeatherFilePath使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在UserModel的用法示例。


在下文中一共展示了UserModel::setWeatherFilePath方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: resourcesPath


//.........这里部分代码省略.........
  EXPECT_DOUBLE_EQ(0.896808057579816, userModel.windowSHGCNW());
  EXPECT_DOUBLE_EQ(0.981291583238567, userModel.windowSHGCW());
  EXPECT_DOUBLE_EQ(0.148339469077549, userModel.windowSHGCSW());
  EXPECT_DOUBLE_EQ(0.531228639942613, userModel.skylightSHGC());
  EXPECT_DOUBLE_EQ(0.719753126248692, userModel.windowSCFS());
  EXPECT_DOUBLE_EQ(0.719295130996734, userModel.windowSCFSE());
  EXPECT_DOUBLE_EQ(0.62587251635714, userModel.windowSCFE());
  EXPECT_DOUBLE_EQ(0.789338364373816, userModel.windowSCFNE());
  EXPECT_DOUBLE_EQ(0.620542267432122, userModel.windowSCFN());
  EXPECT_DOUBLE_EQ(0.300503015955268, userModel.windowSCFNW());
  EXPECT_DOUBLE_EQ(0.128976467360588, userModel.windowSCFW());
  EXPECT_DOUBLE_EQ(0.947178709804832, userModel.windowSCFSW());
  EXPECT_DOUBLE_EQ(0.902216926946315, userModel.windowSDFS());
  EXPECT_DOUBLE_EQ(0.632486442302954, userModel.windowSDFSE());
  EXPECT_DOUBLE_EQ(0.719004834647601, userModel.windowSDFE());
  EXPECT_DOUBLE_EQ(0.504956302525102, userModel.windowSDFNE());
  EXPECT_DOUBLE_EQ(0.212427137938556, userModel.windowSDFN());
  EXPECT_DOUBLE_EQ(0.0746662195816253, userModel.windowSDFNW());
  EXPECT_DOUBLE_EQ(0.970579615803331, userModel.windowSDFW());
  EXPECT_DOUBLE_EQ(0.617489329894299, userModel.windowSDFSW());
  EXPECT_DOUBLE_EQ(0.523964673586454, userModel.exteriorHeatCapacity());
  EXPECT_DOUBLE_EQ(0.139585598177502, userModel.infiltration());
  EXPECT_DOUBLE_EQ(0.287554068015519, userModel.hvacWasteFactor());
  EXPECT_DOUBLE_EQ(0.801121347575538, userModel.hvacHeatingLossFactor());
  EXPECT_DOUBLE_EQ(0.919509843310335, userModel.hvacCoolingLossFactor());
  EXPECT_DOUBLE_EQ(0.33038965168355, userModel.dhwDistributionEfficiency());
  EXPECT_DOUBLE_EQ(0.625403806654488, userModel.heatingPumpControl());
  EXPECT_DOUBLE_EQ(0.0184589116025784, userModel.coolingPumpControl());
  EXPECT_DOUBLE_EQ(0.976673863929532, userModel.heatGainPerPerson());

  std::string wpath = "test";
  userModel.load(openstudio::toPath(wpath));
  EXPECT_FALSE(userModel.valid());
  userModel.setWeatherFilePath(openstudio::toPath(wpath));
  EXPECT_EQ(userModel.weatherFilePath(), openstudio::toPath(wpath));
  userModel.loadWeather();
  EXPECT_FALSE(userModel.valid());

  path p = resourcesPath() / openstudio::toPath("isomodel/exampleModel.ISO");
  userModel.load(p);

  EXPECT_DOUBLE_EQ(0.9, userModel.terrainClass());
  EXPECT_DOUBLE_EQ(10000.0, userModel.floorArea());
  EXPECT_DOUBLE_EQ(8.0, userModel.buildingHeight());
  EXPECT_DOUBLE_EQ(1.0, userModel.buildingOccupancyFrom());
  EXPECT_DOUBLE_EQ(5.0, userModel.buildingOccupancyTo());
  EXPECT_DOUBLE_EQ(7.0, userModel.equivFullLoadOccupancyFrom());
  EXPECT_DOUBLE_EQ(18.0, userModel.equivFullLoadOccupancyTo());
  EXPECT_DOUBLE_EQ(22.386274698794701, userModel.peopleDensityOccupied());
  EXPECT_DOUBLE_EQ(171.87446672181500, userModel.peopleDensityUnoccupied());
  EXPECT_DOUBLE_EQ(24.0, userModel.heatingOccupiedSetpoint());
  EXPECT_DOUBLE_EQ(24.0, userModel.heatingUnoccupiedSetpoint());
  EXPECT_DOUBLE_EQ(28.0, userModel.coolingOccupiedSetpoint());
  EXPECT_DOUBLE_EQ(28.0, userModel.coolingUnoccupiedSetpoint());
  EXPECT_DOUBLE_EQ(8.9340456458692508, userModel.elecPowerAppliancesOccupied());
  EXPECT_DOUBLE_EQ(1.1636399740730901, userModel.elecPowerAppliancesUnoccupied());
  EXPECT_DOUBLE_EQ(26.183103184023899, userModel.gasPowerAppliancesOccupied());
  EXPECT_DOUBLE_EQ(3.4102921249677900, userModel.gasPowerAppliancesUnoccupied());
  EXPECT_DOUBLE_EQ(8.9340456458692508, userModel.lightingPowerIntensityOccupied());
  EXPECT_DOUBLE_EQ(1.1636399740730901, userModel.lightingPowerIntensityUnoccupied());
  EXPECT_DOUBLE_EQ(0.0, userModel.exteriorLightingPower());
  EXPECT_DOUBLE_EQ(1.0, userModel.daylightSensorSystem());
  EXPECT_DOUBLE_EQ(1.0, userModel.lightingOccupancySensorSystem());
  EXPECT_DOUBLE_EQ(1.0, userModel.constantIlluminationControl());
  EXPECT_DOUBLE_EQ(3.0, userModel.coolingSystemCOP());
  EXPECT_DOUBLE_EQ(1.0, userModel.coolingSystemIPLVToCOPRatio());
开发者ID:jtanaa,项目名称:OpenStudio,代码行数:67,代码来源:UserModel_GTest.cpp


注:本文中的UserModel::setWeatherFilePath方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。