24 lines
720 B
C#
24 lines
720 B
C#
namespace FluidSim.Interfaces
|
|
{
|
|
public class Port
|
|
{
|
|
public float MassFlowRate; // kg/s, positive INTO owning component
|
|
public float SpecificEnthalpy; // J/kg
|
|
public float Pressure; // Pa
|
|
public float Density; // kg/m³
|
|
public float Temperature; // K
|
|
public float AirFraction; // mass fraction (0 = exhaust, 1 = air)
|
|
|
|
public object? Owner { get; set; }
|
|
|
|
public Port()
|
|
{
|
|
MassFlowRate = 0f;
|
|
SpecificEnthalpy = 0f;
|
|
Pressure = 101325f;
|
|
Density = 1.225f;
|
|
Temperature = 300f;
|
|
AirFraction = 1f;
|
|
}
|
|
}
|
|
} |