public FixedPropagator(string anglesLengthsPath, Propagator actualPropagator = null) { this.actualPropagator = actualPropagator; checkPropagation = (actualPropagator == null) ? false : true; Logger = ReadFromFile(anglesLengthsPath); iteration = 0; }
/// <summary> /// /// </summary> /// <param name="logger">Intermediate crack propagation data that were gathered by a previous analysis and will be /// enforced now.</param> /// <param name="actualPropagator">For asserting purposes</param> public FixedPropagator(PropagationLogger logger, Propagator actualPropagator = null) { this.actualPropagator = actualPropagator; checkPropagation = (actualPropagator == null) ? false : true; this.Logger = logger; for (int i = 0; i < logger.GrowthAngles.Count; ++i) { logger.InteractionIntegralsMode1.Add(0.0); logger.InteractionIntegralsMode2.Add(0.0); logger.SIFsMode1.Add(0.0); logger.SIFsMode2.Add(0.0); } iteration = 0; }