| | | 1 | | namespace Morpho25.Settings |
| | | 2 | | { |
| | | 3 | | /// <summary> |
| | | 4 | | /// SOR class. |
| | | 5 | | /// </summary> |
| | | 6 | | public class SOR |
| | | 7 | | { |
| | | 8 | | /// <summary> |
| | | 9 | | /// If you active it pressure field is calculated via |
| | | 10 | | /// red-black-tree algorithm which allows |
| | | 11 | | /// parallel computation of pressure field. |
| | | 12 | | /// </summary> |
| | 6 | 13 | | public Active SORMode { get; set; } |
| | | 14 | | |
| | | 15 | | /// <summary> |
| | | 16 | | /// Create a new SOR object. |
| | | 17 | | /// </summary> |
| | | 18 | | /// <param name="mode">If you active it pressure field is calculated via |
| | | 19 | | /// red-black-tree algorithm which allows |
| | | 20 | | /// parallel computation of pressure field.</param> |
| | 2 | 21 | | public SOR () |
| | 2 | 22 | | { |
| | 2 | 23 | | SORMode = Active.YES; |
| | 2 | 24 | | } |
| | | 25 | | |
| | | 26 | | /// <summary> |
| | | 27 | | /// Title of the XML section |
| | | 28 | | /// </summary> |
| | 1 | 29 | | public string Title => "SOR"; |
| | | 30 | | |
| | | 31 | | /// <summary> |
| | | 32 | | /// Values of the XML section |
| | | 33 | | /// </summary> |
| | 1 | 34 | | public string[] Values => new[] { |
| | 1 | 35 | | ((int)SORMode).ToString() |
| | 1 | 36 | | }; |
| | | 37 | | |
| | | 38 | | /// <summary> |
| | | 39 | | /// Tags of the XML section |
| | | 40 | | /// </summary> |
| | 1 | 41 | | public string[] Tags => new[] { |
| | 1 | 42 | | "SORMode" |
| | 1 | 43 | | }; |
| | | 44 | | |
| | | 45 | | /// <summary> |
| | | 46 | | /// String representation of SOR object. |
| | | 47 | | /// </summary> |
| | | 48 | | /// <returns>String representation.</returns> |
| | 0 | 49 | | public override string ToString() => "Config::SOR"; |
| | | 50 | | } |
| | | 51 | | |
| | | 52 | | } |