Add project files.

This commit is contained in:
max
2026-05-02 16:58:40 +02:00
parent edc3fd9b48
commit 9fc45224af
17 changed files with 915 additions and 0 deletions

17
Components/Connection.cs Normal file
View File

@@ -0,0 +1,17 @@
using FluidSim.Interfaces;
namespace FluidSim.Components
{
/// <summary>Pure data link between two ports, with orifice parameters.</summary>
public class Connection
{
public Port PortA { get; }
public Port PortB { get; }
public double Area { get; set; } = 1e-5; // effective orifice area (m²)
public double DischargeCoefficient { get; set; } = 0.62;
public double Gamma { get; set; } = 1.4;
public Connection(Port a, Port b) => (PortA, PortB) = (a, b);
}
}