< Summary

Information
Class: Morpho25.Settings.LBC
Assembly: Morpho25
File(s): D:\a\Morpho\Morpho\project\Morpho\Morpho25\Settings\LBC.cs
Line coverage
94%
Covered lines: 16
Uncovered lines: 1
Coverable lines: 17
Total lines: 61
Line coverage: 94.1%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Cyclomatic complexity Line coverage
get_TemperatureHumidity()100%1100%
get_Turbolence()100%1100%
.ctor()100%1100%
get_Title()100%1100%
get_Values()100%1100%
get_Tags()100%1100%
ToString()100%10%

File(s)

D:\a\Morpho\Morpho\project\Morpho\Morpho25\Settings\LBC.cs

#LineLine coverage
 1namespace 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>
 611        public BoundaryCondition TemperatureHumidity { get; set; }
 12
 13        /// <summary>
 14        /// Force turbolence.
 15        /// </summary>
 316        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>
 227        public LBC()
 228        {
 229            TemperatureHumidity = BoundaryCondition.Open;
 230            Turbolence = BoundaryCondition.Open;
 231        }
 32
 33        /// <summary>
 34        /// Title of the XML section
 35        /// </summary>
 136        public string Title => "LBC";
 37
 38        /// <summary>
 39        /// Values of the XML section
 40        /// </summary>
 141        public string[] Values => new[] {
 142            ((int)TemperatureHumidity).ToString(),
 143            ((int)Turbolence).ToString()
 144        };
 45
 46        /// <summary>
 47        /// Tags of the XML section
 48        /// </summary>
 149        public string[] Tags => new[] {
 150            "LBC_TQ",
 151            "LBC_TKE"
 152        };
 53
 54        /// <summary>
 55        /// String representation of LBC object.
 56        /// </summary>
 57        /// <returns>String representation.</returns>
 058        public override string ToString() => "Config::LBC";
 59    }
 60
 61}