/// <summary> /// Assigns wind pressure loads to area objects. /// </summary> /// <param name="windPressure">The wind pressure.</param> /// <exception cref="CSiException">API_DEFALT_ERROR_CODE</exception> public void SetLoadWindPressure(AreaLoadWindPressure windPressure) { _areaObject?.SetLoadWindPressure(Name, windPressure.LoadPattern, windPressure.WindPressureType, windPressure.PressureCoefficient); }
/// <summary> /// Sets the area loads wind pressure coefficients. /// </summary> /// <param name="model">The model.</param> /// <param name="table">The table.</param> private static void setAREA_LOADS_WIND_PRESSURE_COEFFICIENTS(Model model, List <Dictionary <string, string> > table) { foreach (Dictionary <string, string> tableRow in table) { Area area = model.Structure.Areas[tableRow["Area"]]; AreaLoadWindPressure windPressure = new AreaLoadWindPressure { LoadPattern = tableRow["LoadPat"], PressureCoefficient = Adaptor.toDouble(tableRow["Cp"]), WindPressureType = Adaptor.fromYesNo(tableRow["Windward"]) ? eWindPressureApplication.Windward : eWindPressureApplication.Other, }; area.SetLoadWindPressure(windPressure); } }
// LoadWindPressure /// <summary> /// Returns the wind pressure load assignments to area objects. /// </summary> /// <exception cref="CSiException"><see cref="CSiApiBase.API_DEFAULT_ERROR_CODE" /></exception> public void GetLoadWindPressure() { if (_areaObject == null) { return; } _areaObject.GetLoadWindPressure(Name, out var names, out var loadPatterns, out var windPressureTypes, out var pressureCoefficients); for (int i = 0; i < names.Length; i++) { AreaLoadWindPressure areaLoadWindPressure = new AreaLoadWindPressure { LoadPattern = loadPatterns[i], WindPressureType = windPressureTypes[i], PressureCoefficient = pressureCoefficients[i] }; WindPressureLoads.Add(areaLoadWindPressure); } }