fyziktom / VirtualEconomyFramework

Framework for economy applications
https://veframework.com/
MIT License
24 stars 7 forks source link

151 entities blocks pvecalc #153

Closed fyziktom closed 1 year ago

fyziktom commented 1 year ago

Computing core for basic PVE simulation.

The very important ingredience is class SunMoonCalcs.cs which was written by VPKSoft (more info about this in class file in header). I have added one function inside, the Calculation of the sun beam angle against the plane. It allows to calculate the angle of sun against the PVE Panel when the panel has Azimuth <> 0.

The simulator use the functions described above to create PVE simulated production data. Classes are part of EntitiesBlocks library now.

The PVEPanel keeps the information about specification of the panel parameters such as peak power, dimension, location coordinates, etc.

Each panel can be grouped in the PVPanelsGroup. Which can represent for example part of the roof or part of PVE in common. This class provides function for calculation of the common/median PVE panel which can represent median values across the panels in the group. Another function GetGroupPeakPowerInDateTime will give you expected peak power of this group in the specific datetime based on the sun position during that date.

The Groups are collected under PVPanelsGroupsHandler which represents whole PVE plant. It offers functions to get peak power in datetime for specific group or total peak power for whole pve in datetime. Create list of IBlocks for whole year of prediction for specific group or whole pve.

There are simple demo for use of these functions. The UI components are part of the VEBlazor.EntitiesBlocks library. The components are used in Energy demo on new page PVESimulations.

the year simulation graph component shows how to transfer the created blocks from simulator to the planner module.

sonarcloud[bot] commented 1 year ago

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 37 Code Smells

47.4% 47.4% Coverage
6.1% 6.1% Duplication