예제 #1
0
 public static void CalculatePressurizationForSpaces(IEnumerable <Space> spaces)
 {
     foreach (var space in spaces)
     {
         VentilationParameterUtility.AssignRequiredPressurization(space);
         VentilationParameterUtility.AssignModeledPressurization(space);
     }
 }
예제 #2
0
 /// <summary>
 /// Gets values of Ventilation Requirement parameters from a lookup tables based on Space values
 /// </summary>
 /// <param name="spaces"></param>
 public static void ApplyVentRequirementsToSpaces(IEnumerable <Space> spaces)
 {
     foreach (var space in spaces)
     {
         VentilationParameterUtility.AssignACHRBasedOnCategory(space);
         VentilationParameterUtility.AssignOAACHRBasedOnCategory(space);
     }
 }
예제 #3
0
 public static void CalculateCurrentCFMForSpaces(IEnumerable <Space> spaces)
 {
     foreach (var space in spaces)
     {
         VentilationParameterUtility.AssignACHMBasedOnCategory(space);
         VentilationParameterUtility.AssignOAACHMBasedOnCategory(space);
     }
 }
예제 #4
0
        /// <summary>
        /// Gets the vent parameters necessary or creates them if they are unavailable
        /// </summary>
        /// <param name="schedule"></param>
        public static void AddVentParametersToSchedule(ViewSchedule schedule)
        {
            // check if doc has vent parameters
            // if not create them
            var hasVentParams = VentilationParameterUtility.ModelHasVentParameters(schedule.Document);

            var ventParams = hasVentParams
                ? VentilationParameterUtility.GetVentParametersFromModel(schedule.Document)
                : VentilationParameterUtility.CreateVentParametersInModel(schedule.Document);

            // add them to the schedule as schedulable fields
            VentilationParameterUtility.AddParameterToSchedule(schedule, ventParams.ToArray());
        }