namespace HydraulicSimulator.Models
{
    /// <summary>
    /// Representa un nodo en la red hidráulica
    /// </summary>
    public class Node
    {
        public string Name { get; set; }
        public bool FixedP { get; set; } = false;
        public double P { get; set; } = 0.0; // Pa

        public Node(string name, bool fixedP = false, double p = 0.0)
        {
            Name = name;
            FixedP = fixedP;
            P = p;
        }
    }
}
