Exemplo n.º 1
0
        private bool Create(BHE.Results.SimulationResult buildingResult)
        {
            TSD.BuildingData      tsdBuildingData      = tsdDocument.SimulationData.GetBuildingData();
            TSD.CoolingDesignData tsdCoolingDesignData = tsdDocument.SimulationData.GetCoolingDesignData(0);
            TSD.HeatingDesignData tsdHeatingDesignData = tsdDocument.SimulationData.GetHeatingDesignData(0);

            tsdBuildingData.GetHourlyBuildingResult(1, (short)tsdBuildingArray.externalTemperature);

            return(true);
        }
Exemplo n.º 2
0
        public List <IBHoMObject> ReadSpaceCoolingResults()
        {
            List <IBHoMObject> spaceResults = new List <IBHoMObject>();

            int coolingIndex = 0;

            TSD.CoolingDesignData coolData = null;
            TSD.ZoneData          zoneData = null;

            while ((coolData = tsdDocument.SimulationData.GetCoolingDesignData(coolingIndex)) != null)
            {
                int zoneIndex = 1;
                while ((zoneData = coolData.GetZoneData(zoneIndex)) != null)
                {
                    spaceResults.Add(BH.Engine.Adapters.TAS.Convert.FromTAS(zoneData, ProfileResultUnits, ProfileResultType, Hour, Day));
                    zoneIndex++;
                }
                coolingIndex++;
            }

            return(spaceResults);
        }