private static AuxContainer PrepareContainer(OmegaModel model, decimal recieverDepth) { var alphaBeta = AlphaBeta.CreateFrom(model.Section1D); var c = AuxContainer.CreateContainer(model, 0, recieverDepth); const double lambda = 0; c.Eta = PlanCalculator.CalculateEta(model, lambda); c.Exp = PlanCalculator.CalculateExp(model, c.Eta); c.Q = PlanCalculator.CalculateQ1(alphaBeta, c.Eta, c.Exp); c.P = PlanCalculator.CalculateP1(alphaBeta, c.Eta, c.Exp); c.A = PlanCalculator.CalculateA1(model, c); return(c); }
private GreenScalarCalculator( ILogger logger, OmegaModel model, FieldToField ftof, IntegrationType integrationType) { if (logger == null) { throw new ArgumentNullException(nameof(logger)); } if (model == null) { throw new ArgumentNullException(nameof(model)); } _logger = logger; _model = model; _ftof = ftof; _integrationType = integrationType; _alphaBeta = AlphaBeta.CreateFrom(model.Section1D); }