Skip to content

Commit

Permalink
Replace window dict with wall
Browse files Browse the repository at this point in the history
  • Loading branch information
oguzhankoral committed Nov 13, 2024
1 parent cbfdd67 commit b2b8791
Showing 1 changed file with 103 additions and 112 deletions.
215 changes: 103 additions & 112 deletions SpeckleAutomateDotnetExample/ClimateZone.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,119 +34,110 @@ public enum ClimateZone

// Polar Climates
ET_Tundra,
EF_IceCap
EF_IceCap,
}

public static class UValues
{
public static Dictionary<ClimateZone, double> Wall => new ()
{
// Tropical Climates
{ ClimateZone.Af_TropicalRainforest, 0.9 },
{ ClimateZone.Am_TropicalMonsoon, 1.0 },
{ ClimateZone.Aw_TropicalSavanna, 1.1 },
{ ClimateZone.As_TropicalSavanna, 1.1 },

// Dry Climates
{ ClimateZone.BWh_HotDesert, 1.0 },
{ ClimateZone.BWk_ColdDesert, 1.2 },
{ ClimateZone.BSh_HotSemiArid, 1.2 },
{ ClimateZone.BSk_ColdSemiArid, 1.5 },

// Temperate Climates
{ ClimateZone.Cfa_HumidSubtropical, 1.4 },
{ ClimateZone.Cfb_Oceanic, 1.3 },
{ ClimateZone.Cfc_SubpolarOceanic, 1.2 },
{ ClimateZone.Csa_MediterraneanHotSummer, 1.51 },
{ ClimateZone.Csb_MediterraneanWarmSummer, 1.4 },
{ ClimateZone.Csc_MediterraneanCoolSummer, 1.3 },

// Continental Climates
{ ClimateZone.Dfa_HumidContinentalHotSummer, 1.3 },
{ ClimateZone.Dfb_HumidContinentalMildSummer, 1.2 },
{ ClimateZone.Dfc_Subarctic, 0.7 },
{ ClimateZone.Dfd_SubarcticExtremeWinter, 0.6 },
{ ClimateZone.Dsa_MediterraneanInfluenceSnowyWinter, 1.2 },
{ ClimateZone.Dsb_MediterraneanInfluenceSnowyWinter, 1.1 },
{ ClimateZone.Dsc_MediterraneanInfluenceSnowyWinter, 0.9 },
{ ClimateZone.Dsd_MediterraneanInfluenceSnowyWinter, 0.8 },

// Polar Climates
{ ClimateZone.ET_Tundra, 0.5 },
{ ClimateZone.EF_IceCap, 0.4 }
};

public static Dictionary<ClimateZone, double> Window => new ()
{
// Tropical Climates
{ ClimateZone.Af_TropicalRainforest, 0.8 },
{ ClimateZone.Am_TropicalMonsoon, 0.8 },
{ ClimateZone.Aw_TropicalSavanna, 0.9 },
{ ClimateZone.As_TropicalSavanna, 0.9 },

// Dry Climates
{ ClimateZone.BWh_HotDesert, 0.7 },
{ ClimateZone.BWk_ColdDesert, 0.9 },
{ ClimateZone.BSh_HotSemiArid, 0.8 },
{ ClimateZone.BSk_ColdSemiArid, 0.85 },

// Temperate Climates
{ ClimateZone.Cfa_HumidSubtropical, 0.6 },
{ ClimateZone.Cfb_Oceanic, 0.7 },
{ ClimateZone.Cfc_SubpolarOceanic, 0.75 },
{ ClimateZone.Csa_MediterraneanHotSummer, 0.55 },
{ ClimateZone.Csb_MediterraneanWarmSummer, 0.65 },
{ ClimateZone.Csc_MediterraneanCoolSummer, 0.7 },

// Continental Climates
{ ClimateZone.Dfa_HumidContinentalHotSummer, 0.75 },
{ ClimateZone.Dfb_HumidContinentalMildSummer, 0.8 },
{ ClimateZone.Dfc_Subarctic, 0.5 },
{ ClimateZone.Dfd_SubarcticExtremeWinter, 0.45 },
{ ClimateZone.Dsa_MediterraneanInfluenceSnowyWinter, 0.7 },
{ ClimateZone.Dsb_MediterraneanInfluenceSnowyWinter, 0.65 },
{ ClimateZone.Dsc_MediterraneanInfluenceSnowyWinter, 0.55 },
{ ClimateZone.Dsd_MediterraneanInfluenceSnowyWinter, 0.5 },

// Polar Climates
{ ClimateZone.ET_Tundra, 0.3 },
{ ClimateZone.EF_IceCap, 0.25 }
};

public static Dictionary<ClimateZone, double> Roof => new ()
{
// Tropical Climates
{ ClimateZone.Af_TropicalRainforest, 1.2 },
{ ClimateZone.Am_TropicalMonsoon, 1.3 },
{ ClimateZone.Aw_TropicalSavanna, 1.4 },
{ ClimateZone.As_TropicalSavanna, 1.4 },

// Dry Climates
{ ClimateZone.BWh_HotDesert, 1.1 },
{ ClimateZone.BWk_ColdDesert, 1.3 },
{ ClimateZone.BSh_HotSemiArid, 1.2 },
{ ClimateZone.BSk_ColdSemiArid, 1.3 },

// Temperate Climates
{ ClimateZone.Cfa_HumidSubtropical, 1.1 },
{ ClimateZone.Cfb_Oceanic, 1.0 },
{ ClimateZone.Cfc_SubpolarOceanic, 0.9 },
{ ClimateZone.Csa_MediterraneanHotSummer, 1.2 },
{ ClimateZone.Csb_MediterraneanWarmSummer, 1.1 },
{ ClimateZone.Csc_MediterraneanCoolSummer, 1.0 },

// Continental Climates
{ ClimateZone.Dfa_HumidContinentalHotSummer, 1.0 },
{ ClimateZone.Dfb_HumidContinentalMildSummer, 0.9 },
{ ClimateZone.Dfc_Subarctic, 0.6 },
{ ClimateZone.Dfd_SubarcticExtremeWinter, 0.5 },
{ ClimateZone.Dsa_MediterraneanInfluenceSnowyWinter, 0.9 },
{ ClimateZone.Dsb_MediterraneanInfluenceSnowyWinter, 0.8 },
{ ClimateZone.Dsc_MediterraneanInfluenceSnowyWinter, 0.7 },
{ ClimateZone.Dsd_MediterraneanInfluenceSnowyWinter, 0.6 },

// Polar Climates
{ ClimateZone.ET_Tundra, 0.4 },
{ ClimateZone.EF_IceCap, 0.35 }
};
}
public static Dictionary<ClimateZone, double> Window =>
new()
{
// Tropical Climates
{ ClimateZone.Af_TropicalRainforest, 0.9 },
{ ClimateZone.Am_TropicalMonsoon, 1.0 },
{ ClimateZone.Aw_TropicalSavanna, 1.1 },
{ ClimateZone.As_TropicalSavanna, 1.1 },
// Dry Climates
{ ClimateZone.BWh_HotDesert, 1.0 },
{ ClimateZone.BWk_ColdDesert, 1.2 },
{ ClimateZone.BSh_HotSemiArid, 1.2 },
{ ClimateZone.BSk_ColdSemiArid, 1.5 },
// Temperate Climates
{ ClimateZone.Cfa_HumidSubtropical, 1.4 },
{ ClimateZone.Cfb_Oceanic, 1.3 },
{ ClimateZone.Cfc_SubpolarOceanic, 1.2 },
{ ClimateZone.Csa_MediterraneanHotSummer, 1.51 },
{ ClimateZone.Csb_MediterraneanWarmSummer, 1.4 },
{ ClimateZone.Csc_MediterraneanCoolSummer, 1.3 },
// Continental Climates
{ ClimateZone.Dfa_HumidContinentalHotSummer, 1.3 },
{ ClimateZone.Dfb_HumidContinentalMildSummer, 1.2 },
{ ClimateZone.Dfc_Subarctic, 0.7 },
{ ClimateZone.Dfd_SubarcticExtremeWinter, 0.6 },
{ ClimateZone.Dsa_MediterraneanInfluenceSnowyWinter, 1.2 },
{ ClimateZone.Dsb_MediterraneanInfluenceSnowyWinter, 1.1 },
{ ClimateZone.Dsc_MediterraneanInfluenceSnowyWinter, 0.9 },
{ ClimateZone.Dsd_MediterraneanInfluenceSnowyWinter, 0.8 },
// Polar Climates
{ ClimateZone.ET_Tundra, 0.5 },
{ ClimateZone.EF_IceCap, 0.4 },
};

public static Dictionary<ClimateZone, double> Wall =>
new()
{
// Tropical Climates
{ ClimateZone.Af_TropicalRainforest, 0.8 },
{ ClimateZone.Am_TropicalMonsoon, 0.8 },
{ ClimateZone.Aw_TropicalSavanna, 0.9 },
{ ClimateZone.As_TropicalSavanna, 0.9 },
// Dry Climates
{ ClimateZone.BWh_HotDesert, 0.7 },
{ ClimateZone.BWk_ColdDesert, 0.9 },
{ ClimateZone.BSh_HotSemiArid, 0.8 },
{ ClimateZone.BSk_ColdSemiArid, 0.85 },
// Temperate Climates
{ ClimateZone.Cfa_HumidSubtropical, 0.6 },
{ ClimateZone.Cfb_Oceanic, 0.7 },
{ ClimateZone.Cfc_SubpolarOceanic, 0.75 },
{ ClimateZone.Csa_MediterraneanHotSummer, 0.55 },
{ ClimateZone.Csb_MediterraneanWarmSummer, 0.65 },
{ ClimateZone.Csc_MediterraneanCoolSummer, 0.7 },
// Continental Climates
{ ClimateZone.Dfa_HumidContinentalHotSummer, 0.75 },
{ ClimateZone.Dfb_HumidContinentalMildSummer, 0.8 },
{ ClimateZone.Dfc_Subarctic, 0.5 },
{ ClimateZone.Dfd_SubarcticExtremeWinter, 0.45 },
{ ClimateZone.Dsa_MediterraneanInfluenceSnowyWinter, 0.7 },
{ ClimateZone.Dsb_MediterraneanInfluenceSnowyWinter, 0.65 },
{ ClimateZone.Dsc_MediterraneanInfluenceSnowyWinter, 0.55 },
{ ClimateZone.Dsd_MediterraneanInfluenceSnowyWinter, 0.5 },
// Polar Climates
{ ClimateZone.ET_Tundra, 0.3 },
{ ClimateZone.EF_IceCap, 0.25 },
};

public static Dictionary<ClimateZone, double> Roof =>
new()
{
// Tropical Climates
{ ClimateZone.Af_TropicalRainforest, 1.2 },
{ ClimateZone.Am_TropicalMonsoon, 1.3 },
{ ClimateZone.Aw_TropicalSavanna, 1.4 },
{ ClimateZone.As_TropicalSavanna, 1.4 },
// Dry Climates
{ ClimateZone.BWh_HotDesert, 1.1 },
{ ClimateZone.BWk_ColdDesert, 1.3 },
{ ClimateZone.BSh_HotSemiArid, 1.2 },
{ ClimateZone.BSk_ColdSemiArid, 1.3 },
// Temperate Climates
{ ClimateZone.Cfa_HumidSubtropical, 1.1 },
{ ClimateZone.Cfb_Oceanic, 1.0 },
{ ClimateZone.Cfc_SubpolarOceanic, 0.9 },
{ ClimateZone.Csa_MediterraneanHotSummer, 1.2 },
{ ClimateZone.Csb_MediterraneanWarmSummer, 1.1 },
{ ClimateZone.Csc_MediterraneanCoolSummer, 1.0 },
// Continental Climates
{ ClimateZone.Dfa_HumidContinentalHotSummer, 1.0 },
{ ClimateZone.Dfb_HumidContinentalMildSummer, 0.9 },
{ ClimateZone.Dfc_Subarctic, 0.6 },
{ ClimateZone.Dfd_SubarcticExtremeWinter, 0.5 },
{ ClimateZone.Dsa_MediterraneanInfluenceSnowyWinter, 0.9 },
{ ClimateZone.Dsb_MediterraneanInfluenceSnowyWinter, 0.8 },
{ ClimateZone.Dsc_MediterraneanInfluenceSnowyWinter, 0.7 },
{ ClimateZone.Dsd_MediterraneanInfluenceSnowyWinter, 0.6 },
// Polar Climates
{ ClimateZone.ET_Tundra, 0.4 },
{ ClimateZone.EF_IceCap, 0.35 },
};
}

0 comments on commit b2b8791

Please sign in to comment.