| | | 1 | | namespace Morpho25.Settings |
| | | 2 | | { |
| | | 3 | | /// <summary> |
| | | 4 | | /// Lateral Boundary Condition (LBC) class. |
| | | 5 | | /// </summary> |
| | | 6 | | public class LBC |
| | | 7 | | { |
| | | 8 | | /// <summary> |
| | | 9 | | /// Force temperature and humidity |
| | | 10 | | /// </summary> |
| | 6 | 11 | | public BoundaryCondition TemperatureHumidity { get; set; } |
| | | 12 | | |
| | | 13 | | /// <summary> |
| | | 14 | | /// Force turbolence. |
| | | 15 | | /// </summary> |
| | 3 | 16 | | public BoundaryCondition Turbolence { get; set; } |
| | | 17 | | |
| | | 18 | | /// <summary> |
| | | 19 | | /// Create Lateral Boundary Condition. |
| | | 20 | | /// 'Forced' is used when simpleforcing is activate. |
| | | 21 | | /// 'Open' copy the values of the next grid point close |
| | | 22 | | /// to the border back to the border each timestep which |
| | | 23 | | /// mean overstimate the influence of environment near border. |
| | | 24 | | /// 'Cyclic' describes the process of copying values |
| | | 25 | | /// of the downstream boarder to the upstream boarder. |
| | | 26 | | /// </summary> |
| | 2 | 27 | | public LBC() |
| | 2 | 28 | | { |
| | 2 | 29 | | TemperatureHumidity = BoundaryCondition.Open; |
| | 2 | 30 | | Turbolence = BoundaryCondition.Open; |
| | 2 | 31 | | } |
| | | 32 | | |
| | | 33 | | /// <summary> |
| | | 34 | | /// Title of the XML section |
| | | 35 | | /// </summary> |
| | 1 | 36 | | public string Title => "LBC"; |
| | | 37 | | |
| | | 38 | | /// <summary> |
| | | 39 | | /// Values of the XML section |
| | | 40 | | /// </summary> |
| | 1 | 41 | | public string[] Values => new[] { |
| | 1 | 42 | | ((int)TemperatureHumidity).ToString(), |
| | 1 | 43 | | ((int)Turbolence).ToString() |
| | 1 | 44 | | }; |
| | | 45 | | |
| | | 46 | | /// <summary> |
| | | 47 | | /// Tags of the XML section |
| | | 48 | | /// </summary> |
| | 1 | 49 | | public string[] Tags => new[] { |
| | 1 | 50 | | "LBC_TQ", |
| | 1 | 51 | | "LBC_TKE" |
| | 1 | 52 | | }; |
| | | 53 | | |
| | | 54 | | /// <summary> |
| | | 55 | | /// String representation of LBC object. |
| | | 56 | | /// </summary> |
| | | 57 | | /// <returns>String representation.</returns> |
| | 0 | 58 | | public override string ToString() => "Config::LBC"; |
| | | 59 | | } |
| | | 60 | | |
| | | 61 | | } |