24 lines
771 B
C#
24 lines
771 B
C#
namespace FluidSim.Interfaces
|
|
{
|
|
public class Port
|
|
{
|
|
public double MassFlowRate; // kg/s, positive INTO the component that owns this port
|
|
public double SpecificEnthalpy; // J/kg
|
|
public double Pressure; // Pa
|
|
public double Density; // kg/m³
|
|
public double Temperature; // K
|
|
public double AirFraction; // mass fraction of air (0 = exhaust, 1 = air)
|
|
|
|
public object? Owner { get; set; }
|
|
|
|
public Port()
|
|
{
|
|
MassFlowRate = 0.0;
|
|
SpecificEnthalpy = 0.0;
|
|
Pressure = 101325.0;
|
|
Density = 1.225;
|
|
Temperature = 300.0;
|
|
AirFraction = 1.0; // default fresh air
|
|
}
|
|
}
|
|
} |