本文整理汇总了C++中Zone::getMeanRadiantTemperature方法的典型用法代码示例。如果您正苦于以下问题:C++ Zone::getMeanRadiantTemperature方法的具体用法?C++ Zone::getMeanRadiantTemperature怎么用?C++ Zone::getMeanRadiantTemperature使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Zone
的用法示例。
在下文中一共展示了Zone::getMeanRadiantTemperature方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: step
void Agent_Action_Heat_Gains::step(const Zone& zone, bool inZone, bool previouslyInZone, const std::vector<double> &activities){
ppd = 5;
pmv = 0;
result = 0;
if (inZone) {
Model_HeatGains h;
/**
* Calculates the Fanger pmv and sets the instance varibles related to results.
* @param metabolicRate Metabolic Rate
* @param partialWaterPressure partial water vapour kPa
* @param meanRadiantTemperature mean radiant temperature C
* @param externalWork external work
* @param ta air temperature
* @param clo Clothing value
* @param airVelocity Air velocity
*/
double airTemp = zone.getMeanAirTemperature();
double airHumid = zone.getAirRelativeHumidity();
double meanRadient = zone.getMeanRadiantTemperature();
/*
std::cout << "metabolicRate: " << metabolicRate << std::endl;
std::cout << "airHumid: " << airHumid << std::endl;
std::cout << "meanRadient: " << meanRadient << std::endl;
std::cout << "airTemp: " << airTemp << std::endl;
std::cout << "clo: " << clo << std::endl;
*/
h.calculate(metabolicRate, airHumid, meanRadient, 0, airTemp, clo, 0);
result = h.getAllHeatGains();
ppd = h.getPpd();
pmv = h.getPmv();
}
std::string name = "AgentGains" + idAsString;
DataStore::addValue(name.c_str(), result);
name = "Agent_Metabolic_Rate_" + idAsString;
DataStore::addValue(name.c_str(), metabolicRate);
name = "Agent_clo_" + idAsString;
DataStore::addValue(name.c_str(), clo);
name = "Agent_ppd_" + idAsString;
DataStore::addValue(name.c_str(), ppd);
name = "Agent_pmv_" + idAsString;
DataStore::addValue(name.c_str(), pmv);
}