Exemplo n.º 1
0
 bool AirGap_Impl::setThermalResistance(const OSOptionalQuantity& thermalResistance) {
   bool result(false);
   OptionalDouble value;
   if (thermalResistance.isSet()) {
     value = getDoubleFromQuantity(OS_Material_AirGapFields::ThermalResistance,thermalResistance.get());
     if (value) {
       result = setThermalResistance(value);
     }
   }
   else {
     result = setThermalResistance(value);
   }
   return result;
 }
 bool MasslessOpaqueMaterial_Impl::setThermalResistance(const Quantity& thermalResistance) {
   OptionalDouble value = getDoubleFromQuantity(OS_Material_NoMassFields::ThermalResistance,thermalResistance);
   if (!value) {
     return false;
   }
   return setThermalResistance(value.get());
 }
Exemplo n.º 3
0
AirGap::AirGap(const Model& model,
               double thermalResistance)
  : OpaqueMaterial(AirGap::iddObjectType(),model)
{
  OS_ASSERT(getImpl<detail::AirGap_Impl>());

  // TODO: Appropriately handle the following required object-list fields.
  bool ok = true;
  // ok = setHandle();
  OS_ASSERT(ok);
  ok = setThermalResistance(thermalResistance);
  OS_ASSERT(ok);
}
MasslessOpaqueMaterial::MasslessOpaqueMaterial(const Model& model,
                                               std::string roughness,
                                               double thermalResistance)
  : OpaqueMaterial(MasslessOpaqueMaterial::iddObjectType(),model)
{
  OS_ASSERT(getImpl<detail::MasslessOpaqueMaterial_Impl>());

  // TODO: Appropriately handle the following required object-list fields.
  bool ok = true;
  //ok = setHandle();
  OS_ASSERT(ok);
  ok = setRoughness(roughness);
  OS_ASSERT(ok);
  ok = setThermalResistance(thermalResistance);
  OS_ASSERT(ok);
}
Exemplo n.º 5
0
 bool AirGap_Impl::setThermalConductance(double value) {
   return setThermalResistance(1.0/value);
 }
 bool MasslessOpaqueMaterial_Impl::setThermalConductance(double value) {
   return setThermalResistance(1.0/value);
 }