About this internship

Mathematical Modeling of the Solar System

  • Solar Geometry Simulation: Writing Scilab scripts (.sce files) using trigonometric functions to calculate the sun’s position (azimuth and solar altitude angles) for any specific latitude, longitude, and hour of the year.
  • Irradiation Transposition: Implementing mathematical translation models (like the Liu-Jordan or Perez sky models) to convert horizontal solar data (GHI) into total irradiance striking a tilted rooftop surface (POA - Plane of Array).
  • PV Cell Electrical Modeling: Code-constructing the classic Single-Diode Equivalent Circuit Model (5-parameter model) to simulate the voltage-current (I-V) and power-voltage (P-V) characteristics of a solar module under varying temperatures and shading conditions.

 

Problem Formulation & Objective Functions

  • Defining Decision Variables: Selecting the parameters that Scilab's optimization routines will manipulate, primarily:
    • Tilt Angle (β): Angle of the modules relative to the roof horizontal.
    • Azimuth Angle (γ): Direction the panels face (e.g., true South or optimal orientation).
    • Inverter Loading Ratio (ILR): Ratio of DC panel capacity to AC inverter capacity to optimize clipping losses.
  • Setting Up the Cost/Yield Objective Functions: Defining the goal of the optimization. This is usually formulated either as a Maximization function (maximizing annual energy output in kWh) or a Minimization function (minimizing Levelised Cost of Energy - LCOE).
  • Boundary & Geometric Constraints: Defining strict boundary inequalities in Scilab to prevent unrealistic solutions (e.g., keeping tilt angles within structural safety limits, preventing panel row spacing from causing self-shading, or limiting total area to the physical rooftop footprint).

 

Numerical Optimization Execution in Scilab

  • Running Local / Gradient Optimizations: Utilizing Scilab's built-in non-linear optimization functions like optim (quasi-Newton methods) or fminsearch to quickly converge on an optimal angle if the energy landscape is smooth and single-peaked.
  • Running Global / Evolutionary Optimizations: If handling complex rooftop shading or multi-variable constraints (where local minima traps exist), implementing Scilab’s global optimization toolboxes:
    • genetic_algorithms (GA): Initializing a population of design parameters and evolving them over generations to find the global optimum.
    • optim_sa (Simulated Annealing): Simulating a thermodynamic cooling process to explore the design space effectively.
  • Sensitivity & Parameter Sweeps: Running matrix operations (for loops over multi-dimensional arrays) to plot how changes in ambient temperature patterns alter the system's efficiency curve.

 

Data Processing, Visualisation & Validation

  • System Profiling & Matrix Plotting: Generating standard engineering charts natively inside Scilab, including contour plots of solar irradiance versus tilt angle, I-V curves under stress, and monthly generation breakdown profiles.
  • Performance Ratio (PR) Calculation: Computing the ultimate efficiency metric (\(\text{PR} = \frac{\text{Actual Energy Yield}}{\text{Theoretical Energy Yield}}\)) factoring in temperature coefficients, inverter clipping, dirt accumulation (soiling), and wiring losses.

 

Courses included free