public void UpdateNozzleStatus(double relLength, double areaRatio, NozzleShapeType shape) { bool unchanged = true; if (relLength <= 0.6) { relLength = 0.6; } if (relLength >= 1.0) { relLength = 1.0; } unchanged &= shape == shapeType; unchanged &= this.relLength == relLength; unchanged &= this.areaRatio == areaRatio; shapeType = shape; this.relLength = relLength; this.areaRatio = areaRatio; if (!unchanged) { CalculateNozzleProperties(); //DebugPrintNozzlePoints(); } }
public NozzleCalculator(double relLength, double areaRatio, NozzleShapeType shape) { UpdateNozzleStatus(relLength, areaRatio, shape); }