public TrainLoadCalculator(TrainLoadInput trainLoadInput) { this.trainLoadInput = trainLoadInput; this.gradient = new LinearGradient(this.trainLoadInput.MaxColor, this.trainLoadInput.MinColor, this.trainLoadInput.MiddleColor); this.femCalculator = new FEMCalculator(this.trainLoadInput); this.resultCreator = new ResultCreator(this.gradient, trainLoadInput.TimeSettings); }
public FEMCalculator(TrainLoadInput trainLoadInput) { this.trainLoadInput = trainLoadInput; this.elementBarIdMap = new Dictionary <IDynamicBeamElement, string>(); var settings = this.trainLoadInput.TimeSettings.ToDynamicSolverSettings(dampingRatio); this.structure = new DynamicStructure(settings); this.trainLoadInput = trainLoadInput; }