## 2 Materials and Methods
### Software Design  
The description of the SustainSIM model will not follow the steps of the development process but will be structured based on the functions and their corresponding features. The development was conducted using the C# programming language and visual scripting.  
Figure 5: Mind map of the algorithm.  
The algorithm map from Figure 5 guided the process, ensuring a clear distinction between user-inputted values and those that are calculated, simulated, or pre-defined in sequence.  
**User Interface**  
This section describes the design, windows, and various elements with which the user will interact (Figure 6)  
* **Introduction Screen**: This involves creating the graphical user interface for the simulation, including the startup menu, the main menu, and the integration of buttons or cursor interactions with objects.
* **Company Name**: The name of the company utilizing the simulation and calculation tool.
* **Company Location**: After entering the company name, the user selects the country. This is essential for the emission simulation properties, as emission factors are determined based on location, specifically using the average factors for the entire electrical grid of Slovakia. These factors are sourced from the emissions factor database created for the simulated model.
* **\"Continue\" Button**: Button that triggers an event, switching to the next screen.  
**Main Screen**  
The next screen after entering company and country data provides several pieces of information and options, allowing the user to navigate through different sections of the model. Interaction with various sections is implemented using raycasting and a click script. This screen can be defined as the Main Menu of the Software (Figure 7).  
As seen, there are several interaction options and subsections available. Below is a description of each section, along with its attributes and functions.  
Figure 6: Design of the introduction screen.  
Figure 7: Main menu of the model.  
**Scope 1**  
The Scope 1 button (Figure 8) directs the user to an interface where they can define and input attribute values for stationary and mobile combustion. Additionally, users can set parameters for simulating CO2 emission reductions under specific user-defined conditions.  
**Scope 2**  
The Scope 2 button (Figure 8) navigates the user to a graphical interface for entering attribute values related to the generation and reduction of Scope 2 emissions in one place. Here, the user will be able to define attributes for machines used in engineering production and simulate the impact of adding solar panels, purchasing electricity from green sources, and other related factors on emissions.  
**Calendar**  
The simulation interval input is assigned to the Calendar section. The functionality of the calendar is to specify the simulation interval in days for calculating the following variables:  
1. Simulation Interval: Units entered in the simulation as time units will be expressed in days.
2. Number of Shifts: Defined as a whole number, this represents the number of work shifts performed daily in the company.
3. Shift Duration: Specifies the time interval defining a single work shift.
4. Summary of Results: The icon on the right navigates to the Results Summary menu.