Exploring the Interplay between CAD and FreeFem++ as an Energy Decision-Making Tool for Architectural Design

The energy modelling software tools commonly used for architectural purposes do not allow a straightforward real-time implementation within the architectural design programs. In addition, the surrounding exterior spaces of the building, including the inner courtyards, hardly present a specific treatment distinguishing these spaces from the general external temperature in the thermal simulations. This is a clear disadvantage when it comes to streamlining the design process in relation to the whole-building energy optimization. In this context, the present study aims to demonstrate the advantages of the FreeFem++ open source program for performing simulations in architectural environments. These simulations include microclimate tests that describe the interactions between a building architecture and its local exterior. The great potential of this mathematical tool can be realized through its complete system integration within CAD (Computer-Aided Design) software such as SketchUp or AutoCAD. In order to establish the suitability of FreeFem++ for the performance of simulations, the most widely employed energy simulation tools able to consider a proposed architectural geometry in a specific environment are compared. On the basis of this analysis, it can be concluded that FreeFem++ is the only program displaying the best features for the thermal performance simulation of these specific outdoor spaces, excluding the currently unavailable easy interaction with architectural drawing programs. The main contribution of this research is, in fact, the enhancement of FreeFem++ usability by proposing a simple intuitive method for the creation of building geometries and their respective meshing (pre-processing). FreeFem++ is also considered a tool for data analysis (post-processing) able to help engineers and architects with building energy-efficiency-related tasks.


Introduction
Energy saving is of increasing concern to the community. The energy efficiency of buildings and cities is directly related to the preservation of energy resources and the buildings' or cities' effects on climate change due to the use of conventional energy sources. The current need for energy efficiency has led to the development of increasingly precise tools for energy modelling in buildings. Subsequently, over the last decade, there has been an enormous growth in the quantity of simulation programs and in their energy modelling capabilities. These improved tools have been progressively considering and their thermal consequences. This simplification is insufficient if the researcher wishes to study the microclimate and the air behavior in specific exterior spaces. Although they are not commercial programs, neither are they open source coded. This is also the case with other programs such as URSOS [21] and GreenCanyon [2], which are research oriented. Although they can consider more factors than just radiation, including those derived from CFD-based characterizations, they are also closed source. What is more, SUNtool is still not generally available to the public, which hinders scientific debate.

EnergyPlus
An example of a widely used noncommercial open source calculation tool is EnergyPlus which can be downloaded free from the official web page of the U.S. Department of Energy [22]. This program also provides the calculation engine for other commercial programs such as DesignBuilder. It is a wide-reaching program for use by architects, engineers, and researchers that enables energy simulations for buildings which can help optimize the design and reduce water consumption. It models systems of heating, refrigeration, lighting, ventilation, and other energy flows and water usages. To make it easier to use, the web page provides a plugin that allows simulations with EnergyPlus using SketchUp. We have already mentioned how other programs have tried to be compatible with this 3D design tool, and there are two main reasons for this: the basic version is free and is highly intuitive, making it quick and easy to construct any size or volume. Its considerable power and flexibility make EnergyPlus one of the best tools for energy simulations in buildings, but it does not take into account energy simulations for exterior spaces.

ENVI-Met 3.1
Among the calculation tools made specifically to simulate exterior spaces or microclimates of urban spaces is ENVI-met 3.1, which is currently being used by several researchers in this field due to its reliable results [23]. The program was created by Michael Bruse (Institute of Geography, Department of Geoinformatics, Environmental Modeling Group, University of Mainz) to simulate the interaction between surfaces, floors, and air in an urban setting based on fluid dynamic and thermodynamic models [24]. It enables the calculation of various exterior space parameters such as air quality and thermal comfort, for which it only requires the geometry and climate data that can be gathered from any nearby meteorological station. There was also a timely investigation by X. Yang, L. Zhao, M. Bruse, and Q. Meng [25] that links ENVI-met 3.1's capacity to simulate climate conditions in urban spaces with EnergyPlus's ability to provide energy simulations of a building's interior.
The scientific study of the complex microclimate behavior of specific spaces such as patios requires a full understanding of the physical processes involved and the mathematics used to describe these processes, as well as the numerical treatment applied to simulate them. This cannot be done using closed source programs as they block access to the mathematical model on which their calculations are based. Furthermore, ENVI-met does not provide sufficiently accurate simulations of the temperature of small-sized outdoor spaces, as in the case of inner courtyards [12]. Only by using open source programs with free calculation tools can researchers generate a transparent program that enables an understanding of its mathematical processes and the physical phenomena described.

FreeFem++
To carry out numerical simulations, use of the FreeFem++ programming language and free software as a calculation engine is proposed. It is not a program made specifically for studying microclimates; rather it is an open computer language for performing any kind of simulation based on numerical models via the finite element method. In principle, this program is not easy to use beyond research parameters, so the goal of this research is to increase its usability for introducing data into the simulation, or pre-processing, and the subsequent analysis, or post-processing. FreeFem++ is especially useful for researchers because it combines considerable calculating power with flexibility and the transparency of its open source code. As a result, it has given rise to an internet community of developers of the program who tend to be researchers working on numerical simulations [26,27]. One of the big advantages of FreeFem++ is that it can be used as a high-level programming language based on C++, enabling combinations of high-level FreeFem++ commands with C++ commands to develop one's own codes. This offers considerable flexibility for developing simulation codes which in many cases cannot be done with commercial codes. In addition, FreeFem++ commands allow compact programming of different methods with finite elements regardless of the study problem, which means that it is highly versatile and eminently suitable for tackling problems involving thermodynamics and fluid mechanics [27].
The software is also often used in research for pre-and post-processing simulations. Nevertheless, suppling geometric data to the models requires the user to write lines of code using the FreeFem++ programming language derived from C++, after which all the lines of the drawing need to be translated into mathematical expressions. Despite its abstract nature, this procedure of entering the geometries is only viable when they are in simple 2D forms ( Figure 1). When studying three-dimensional objects, the complexity of the translation of their geometry into lines of FreeFem++ code increases considerably. The method is not totally impossible to execute but professional users more interested in the results than in the processes would find it unfeasible. It focuses far more on the stages of the mathematical construction of the form than on the behavior or physical consequences of the totality of the form, which is what appeals to professionals the most. The geometric data of a hypothetical simple square room with several windows in FreeFem++ requires analytical description of a series of geometric operations such as 3D folding and rotations [28]. The reality of architectural practice often means dealing with geometries that are much more complex. Thus, it is necessary to find a simpler way to enter geometric data in order to focus on the study [29]. Table 1 summarizes the characteristics of the calculation tools studied. This provides a visual comparison of the reach of each program according to whether it simulates exterior spaces (in green), performs CFDs, is free, open source, or if it can interact with the drawing programs typically used in architecture (AutoCAD and/or SketchUp). FreeFem++ is the only program that possesses all these features, except for easy interaction with architectural drawing programs (in red) [30]. Our study develops a method for improving that shortcoming, thus making FreeFem++ an optimal tool for resolving this type of problem. simulations [26,27]. One of the big advantages of FreeFem++ is that it can be used as a high-level programming language based on C++, enabling combinations of high-level FreeFem++ commands with C++ commands to develop one's own codes. This offers considerable flexibility for developing simulation codes which in many cases cannot be done with commercial codes. In addition, FreeFem++ commands allow compact programming of different methods with finite elements regardless of the study problem, which means that it is highly versatile and eminently suitable for tackling problems involving thermodynamics and fluid mechanics [27]. The software is also often used in research for pre-and post-processing simulations. Nevertheless, suppling geometric data to the models requires the user to write lines of code using the FreeFem++ programming language derived from C++, after which all the lines of the drawing need to be translated into mathematical expressions. Despite its abstract nature, this procedure of entering the geometries is only viable when they are in simple 2D forms ( Figure 1). When studying threedimensional objects, the complexity of the translation of their geometry into lines of FreeFem++ code increases considerably. The method is not totally impossible to execute but professional users more interested in the results than in the processes would find it unfeasible. It focuses far more on the stages of the mathematical construction of the form than on the behavior or physical consequences of the totality of the form, which is what appeals to professionals the most. The geometric data of a hypothetical simple square room with several windows in FreeFem++ requires analytical description of a series of geometric operations such as 3D folding and rotations [28]. The reality of architectural practice often means dealing with geometries that are much more complex. Thus, it is necessary to find a simpler way to enter geometric data in order to focus on the study [29].  Table 1 summarizes the characteristics of the calculation tools studied. This provides a visual comparison of the reach of each program according to whether it simulates exterior spaces (in green), performs CFDs, is free, open source, or if it can interact with the drawing programs typically used in architecture (AutoCAD and/or SketchUp). FreeFem++ is the only program that possesses all these features, except for easy interaction with architectural drawing programs (in red) [30]. Our study develops a method for improving that shortcoming, thus making FreeFem++ an optimal tool for resolving this type of problem.

Geometries and Meshing
Drawing programs used to generate geometries are usually specific programs with optimized graphics features that enable designers to use them quickly and intuitively, allowing various simple forms and complex geometries to be built and examined in a reasonably short time. These programs need to be able to exchange their output files with FreeFem++; this could be solved by means of exchange files. Besides the definition of geometries, another important part of the pre-process is meshing: the division of the continuous object into parts with limited dimensions (finite elements)    Table 1 summarizes the characteristics of the calculation tools studied. This provides a visual comparison of the reach of each program according to whether it simulates exterior spaces (in green), performs CFDs, is free, open source, or if it can interact with the drawing programs typically used in architecture (AutoCAD and/or SketchUp). FreeFem++ is the only program that possesses all these features, except for easy interaction with architectural drawing programs (in red) [30]. Our study develops a method for improving that shortcoming, thus making FreeFem++ an optimal tool for resolving this type of problem.

Geometries and Meshing
Drawing programs used to generate geometries are usually specific programs with optimized graphics features that enable designers to use them quickly and intuitively, allowing various simple forms and complex geometries to be built and examined in a reasonably short time. These programs need to be able to exchange their output files with FreeFem++; this could be solved by means of exchange files. Besides the definition of geometries, another important part of the pre-process is meshing: the division of the continuous object into parts with limited dimensions (finite elements) fulfilled issue  Table 1 summarizes the characteristics of the calculation tools studied. This provides a visual comparison of the reach of each program according to whether it simulates exterior spaces (in green), performs CFDs, is free, open source, or if it can interact with the drawing programs typically used in architecture (AutoCAD and/or SketchUp). FreeFem++ is the only program that possesses all these features, except for easy interaction with architectural drawing programs (in red) [30]. Our study develops a method for improving that shortcoming, thus making FreeFem++ an optimal tool for resolving this type of problem.

Geometries and Meshing
Drawing programs used to generate geometries are usually specific programs with optimized graphics features that enable designers to use them quickly and intuitively, allowing various simple forms and complex geometries to be built and examined in a reasonably short time. These programs need to be able to exchange their output files with FreeFem++; this could be solved by means of exchange files. Besides the definition of geometries, another important part of the pre-process is meshing: the division of the continuous object into parts with limited dimensions (finite elements) pending issue.

Simulations
Using CFD

Free Software
Open Sauce AutoCAD/Sketchup Import

ANSYS Fluent
Energies 2018, 11, x 6 of 20  Table 1 summarizes the characteristics of the calculation tools studied. This provides a visual comparison of the reach of each program according to whether it simulates exterior spaces (in green), performs CFDs, is free, open source, or if it can interact with the drawing programs typically used in architecture (AutoCAD and/or SketchUp). FreeFem++ is the only program that possesses all these features, except for easy interaction with architectural drawing programs (in red) [30]. Our study develops a method for improving that shortcoming, thus making FreeFem++ an optimal tool for resolving this type of problem.

Geometries and Meshing
Drawing programs used to generate geometries are usually specific programs with optimized graphics features that enable designers to use them quickly and intuitively, allowing various simple forms and complex geometries to be built and examined in a reasonably short time. These programs need to be able to exchange their output files with FreeFem++; this could be solved by means of exchange files. Besides the definition of geometries, another important part of the pre-process is meshing: the division of the continuous object into parts with limited dimensions (finite elements)  Table 1 summarizes the characteristics of the calculation tools studied. This provides a visual comparison of the reach of each program according to whether it simulates exterior spaces (in green), performs CFDs, is free, open source, or if it can interact with the drawing programs typically used in architecture (AutoCAD and/or SketchUp). FreeFem++ is the only program that possesses all these features, except for easy interaction with architectural drawing programs (in red) [30]. Our study develops a method for improving that shortcoming, thus making FreeFem++ an optimal tool for resolving this type of problem.

Geometries and Meshing
Drawing programs used to generate geometries are usually specific programs with optimized graphics features that enable designers to use them quickly and intuitively, allowing various simple forms and complex geometries to be built and examined in a reasonably short time. These programs need to be able to exchange their output files with FreeFem++; this could be solved by means of exchange files. Besides the definition of geometries, another important part of the pre-process is meshing: the division of the continuous object into parts with limited dimensions (finite elements)

Geometries and Meshing
Drawing programs used to generate geometries are usually graphics features that enable designers to use them quickly and in forms and complex geometries to be built and examined in a reaso need to be able to exchange their output files with FreeFem++; exchange files. Besides the definition of geometries, another imp meshing: the division of the continuous object into parts with lim  Table 1 summarizes the characteristics of the calculation tools studied. This provides a visual comparison of the reach of each program according to whether it simulates exterior spaces (in green), performs CFDs, is free, open source, or if it can interact with the drawing programs typically used in architecture (AutoCAD and/or SketchUp). FreeFem++ is the only program that possesses all these features, except for easy interaction with architectural drawing programs (in red) [30]. Our study develops a method for improving that shortcoming, thus making FreeFem++ an optimal tool for resolving this type of problem.

Geometries and Meshing
Drawing programs used to generate geometries are usually specific programs with optimized graphics features that enable designers to use them quickly and intuitively, allowing various simple forms and complex geometries to be built and examined in a reasonably short time. These programs need to be able to exchange their output files with FreeFem++; this could be solved by means of exchange files. Besides the definition of geometries, another important part of the pre-process is meshing: the division of the continuous object into parts with limited dimensions (finite elements)  Table 1 summarizes the characteristics of the calculation tools studied. This provides a visual comparison of the reach of each program according to whether it simulates exterior spaces (in green), performs CFDs, is free, open source, or if it can interact with the drawing programs typically used in architecture (AutoCAD and/or SketchUp). FreeFem++ is the only program that possesses all these features, except for easy interaction with architectural drawing programs (in red) [30]. Our study develops a method for improving that shortcoming, thus making FreeFem++ an optimal tool for resolving this type of problem.

Geometries and Meshing
Drawing programs used to generate geometries are usually specific programs with optimized graphics features that enable designers to use them quickly and intuitively, allowing various simple forms and complex geometries to be built and examined in a reasonably short time. These programs need to be able to exchange their output files with FreeFem++; this could be solved by means of exchange files. Besides the definition of geometries, another important part of the pre-process is meshing: the division of the continuous object into parts with limited dimensions (finite elements)

Geometries and Meshing
Drawing programs used to generate geometries are usually graphics features that enable designers to use them quickly and in forms and complex geometries to be built and examined in a reaso need to be able to exchange their output files with FreeFem++; exchange files. Besides the definition of geometries, another imp meshing: the division of the continuous object into parts with lim  Table 1 summarizes the characteristics of the calculation tools studied. This provides a visual comparison of the reach of each program according to whether it simulates exterior spaces (in green), performs CFDs, is free, open source, or if it can interact with the drawing programs typically used in architecture (AutoCAD and/or SketchUp). FreeFem++ is the only program that possesses all these features, except for easy interaction with architectural drawing programs (in red) [30]. Our study develops a method for improving that shortcoming, thus making FreeFem++ an optimal tool for resolving this type of problem.

Geometries and Meshing
Drawing programs used to generate geometries are usually specific programs with optimized graphics features that enable designers to use them quickly and intuitively, allowing various simple forms and complex geometries to be built and examined in a reasonably short time. These programs need to be able to exchange their output files with FreeFem++; this could be solved by means of exchange files. Besides the definition of geometries, another important part of the pre-process is meshing: the division of the continuous object into parts with limited dimensions (finite elements)  Table 1 summarizes the characteristics of the calculation too comparison of the reach of each program according to whether it si performs CFDs, is free, open source, or if it can interact with the dr architecture (AutoCAD and/or SketchUp). FreeFem++ is the only features, except for easy interaction with architectural drawing p develops a method for improving that shortcoming, thus makin resolving this type of problem.

Geometries and Meshing
Drawing programs used to generate geometries are usually graphics features that enable designers to use them quickly and in forms and complex geometries to be built and examined in a reaso need to be able to exchange their output files with FreeFem++; exchange files. Besides the definition of geometries, another imp meshing: the division of the continuous object into parts with lim  Table 1 summarizes the characteristics of the calculation tools studied. This provides a visual comparison of the reach of each program according to whether it simulates exterior spaces (in green), performs CFDs, is free, open source, or if it can interact with the drawing programs typically used in architecture (AutoCAD and/or SketchUp). FreeFem++ is the only program that possesses all these features, except for easy interaction with architectural drawing programs (in red) [30]. Our study develops a method for improving that shortcoming, thus making FreeFem++ an optimal tool for resolving this type of problem.

Geometries and Meshing
Drawing programs used to generate geometries are usually specific programs with optimized graphics features that enable designers to use them quickly and intuitively, allowing various simple forms and complex geometries to be built and examined in a reasonably short time. These programs need to be able to exchange their output files with FreeFem++; this could be solved by means of exchange files. Besides the definition of geometries, another important part of the pre-process is meshing: the division of the continuous object into parts with limited dimensions (finite elements)  Table 1 summarizes the characteristics of the calculation tools studied. This provides comparison of the reach of each program according to whether it simulates exterior spaces (i performs CFDs, is free, open source, or if it can interact with the drawing programs typicall architecture (AutoCAD and/or SketchUp). FreeFem++ is the only program that possesses features, except for easy interaction with architectural drawing programs (in red) [30]. O develops a method for improving that shortcoming, thus making FreeFem++ an optimal resolving this type of problem.

Geometries and Meshing
Drawing programs used to generate geometries are usually specific programs with o graphics features that enable designers to use them quickly and intuitively, allowing variou forms and complex geometries to be built and examined in a reasonably short time. These p need to be able to exchange their output files with FreeFem++; this could be solved by m exchange files. Besides the definition of geometries, another important part of the pre-p meshing: the division of the continuous object into parts with limited dimensions (finite e  Table 1 summarizes the characteristics of the calculation tools studied. This provides a visual comparison of the reach of each program according to whether it simulates exterior spaces (in green), performs CFDs, is free, open source, or if it can interact with the drawing programs typically used in architecture (AutoCAD and/or SketchUp). FreeFem++ is the only program that possesses all these features, except for easy interaction with architectural drawing programs (in red) [30]. Our study develops a method for improving that shortcoming, thus making FreeFem++ an optimal tool for resolving this type of problem.

Geometries and Meshing
Drawing programs used to generate geometries are usually specific programs with optimized graphics features that enable designers to use them quickly and intuitively, allowing various simple forms and complex geometries to be built and examined in a reasonably short time. These programs need to be able to exchange their output files with FreeFem++; this could be solved by means of exchange files. Besides the definition of geometries, another important part of the pre-process is meshing: the division of the continuous object into parts with limited dimensions (finite elements)  Table 1 summarizes the characteristics of the calculation tools studied. This provides comparison of the reach of each program according to whether it simulates exterior spaces (i performs CFDs, is free, open source, or if it can interact with the drawing programs typicall architecture (AutoCAD and/or SketchUp). FreeFem++ is the only program that possesses features, except for easy interaction with architectural drawing programs (in red) [30]. O develops a method for improving that shortcoming, thus making FreeFem++ an optimal resolving this type of problem.

Geometries and Meshing
Drawing programs used to generate geometries are usually specific programs with o graphics features that enable designers to use them quickly and intuitively, allowing variou forms and complex geometries to be built and examined in a reasonably short time. These p need to be able to exchange their output files with FreeFem++; this could be solved by m exchange files. Besides the definition of geometries, another important part of the pre-p meshing: the division of the continuous object into parts with limited dimensions (finite e  Table 1 summarizes the characteristics of the calculation tools studied. This provides a visual comparison of the reach of each program according to whether it simulates exterior spaces (in green), performs CFDs, is free, open source, or if it can interact with the drawing programs typically used in architecture (AutoCAD and/or SketchUp). FreeFem++ is the only program that possesses all these features, except for easy interaction with architectural drawing programs (in red) [30]. Our study develops a method for improving that shortcoming, thus making FreeFem++ an optimal tool for resolving this type of problem.

Geometries and Meshing
Drawing programs used to generate geometries are usually specific programs with optimized graphics features that enable designers to use them quickly and intuitively, allowing various simple forms and complex geometries to be built and examined in a reasonably short time. These programs need to be able to exchange their output files with FreeFem++; this could be solved by means of exchange files. Besides the definition of geometries, another important part of the pre-process is meshing: the division of the continuous object into parts with limited dimensions (finite elements)  Table 1 summarizes the characteristics of the calculation tools studied. This provides comparison of the reach of each program according to whether it simulates exterior spaces (i performs CFDs, is free, open source, or if it can interact with the drawing programs typicall architecture (AutoCAD and/or SketchUp). FreeFem++ is the only program that possesses features, except for easy interaction with architectural drawing programs (in red) [30]. O develops a method for improving that shortcoming, thus making FreeFem++ an optimal resolving this type of problem.

Geometries and Meshing
Drawing programs used to generate geometries are usually specific programs with o graphics features that enable designers to use them quickly and intuitively, allowing variou forms and complex geometries to be built and examined in a reasonably short time. These p need to be able to exchange their output files with FreeFem++; this could be solved by m exchange files. Besides the definition of geometries, another important part of the pre-p meshing: the division of the continuous object into parts with limited dimensions (finite e  Table 1 summarizes the characteristics of the calculation tools studied. This provides a visual comparison of the reach of each program according to whether it simulates exterior spaces (in green), performs CFDs, is free, open source, or if it can interact with the drawing programs typically used in architecture (AutoCAD and/or SketchUp). FreeFem++ is the only program that possesses all these features, except for easy interaction with architectural drawing programs (in red) [30]. Our study develops a method for improving that shortcoming, thus making FreeFem++ an optimal tool for resolving this type of problem.

Geometries and Meshing
Drawing programs used to generate geometries are usually specific programs with optimized graphics features that enable designers to use them quickly and intuitively, allowing various simple forms and complex geometries to be built and examined in a reasonably short time. These programs need to be able to exchange their output files with FreeFem++; this could be solved by means of exchange files. Besides the definition of geometries, another important part of the pre-process is meshing: the division of the continuous object into parts with limited dimensions (finite elements)  Table 1 summarizes the characteristics of the calculation tools studied. This provides comparison of the reach of each program according to whether it simulates exterior spaces (i performs CFDs, is free, open source, or if it can interact with the drawing programs typicall architecture (AutoCAD and/or SketchUp). FreeFem++ is the only program that possesses features, except for easy interaction with architectural drawing programs (in red) [30]. O develops a method for improving that shortcoming, thus making FreeFem++ an optimal resolving this type of problem.

Geometries and Meshing
Drawing programs used to generate geometries are usually specific programs with o graphics features that enable designers to use them quickly and intuitively, allowing variou forms and complex geometries to be built and examined in a reasonably short time. These p need to be able to exchange their output files with FreeFem++; this could be solved by m exchange files. Besides the definition of geometries, another important part of the pre-p meshing: the division of the continuous object into parts with limited dimensions (finite e  Table 1 summarizes the characteristics of the calculation tools studied. This provides a visual comparison of the reach of each program according to whether it simulates exterior spaces (in green), performs CFDs, is free, open source, or if it can interact with the drawing programs typically used in architecture (AutoCAD and/or SketchUp). FreeFem++ is the only program that possesses all these features, except for easy interaction with architectural drawing programs (in red) [30]. Our study develops a method for improving that shortcoming, thus making FreeFem++ an optimal tool for resolving this type of problem.

Geometries and Meshing
Drawing programs used to generate geometries are usually specific programs with optimized graphics features that enable designers to use them quickly and intuitively, allowing various simple forms and complex geometries to be built and examined in a reasonably short time. These programs need to be able to exchange their output files with FreeFem++; this could be solved by means of exchange files. Besides the definition of geometries, another important part of the pre-process is meshing: the division of the continuous object into parts with limited dimensions (finite elements)  Table 1 summarizes the characteristics of the calculation tools studied. This provides a visual comparison of the reach of each program according to whether it simulates exterior spaces (in green), performs CFDs, is free, open source, or if it can interact with the drawing programs typically used in architecture (AutoCAD and/or SketchUp). FreeFem++ is the only program that possesses all these features, except for easy interaction with architectural drawing programs (in red) [30]. Our study develops a method for improving that shortcoming, thus making FreeFem++ an optimal tool for resolving this type of problem.

Geometries and Meshing
Drawing programs used to generate geometries are usually specific programs with optimized graphics features that enable designers to use them quickly and intuitively, allowing various simple forms and complex geometries to be built and examined in a reasonably short time. These programs need to be able to exchange their output files with FreeFem++; this could be solved by means of exchange files. Besides the definition of geometries, another important part of the pre-process is meshing: the division of the continuous object into parts with limited dimensions (finite elements)  Table 1 summarizes the characteristics of the calculation tools studied. This provides comparison of the reach of each program according to whether it simulates exterior spaces (i performs CFDs, is free, open source, or if it can interact with the drawing programs typicall architecture (AutoCAD and/or SketchUp). FreeFem++ is the only program that possesses features, except for easy interaction with architectural drawing programs (in red) [30]. O develops a method for improving that shortcoming, thus making FreeFem++ an optimal resolving this type of problem.

Geometries and Meshing
Drawing programs used to generate geometries are usually specific programs with o graphics features that enable designers to use them quickly and intuitively, allowing variou forms and complex geometries to be built and examined in a reasonably short time. These p need to be able to exchange their output files with FreeFem++; this could be solved by m exchange files. Besides the definition of geometries, another important part of the pre-p meshing: the division of the continuous object into parts with limited dimensions (finite e  Table 1 summarizes the characteristics of the calculation tools studied. This provides a visual comparison of the reach of each program according to whether it simulates exterior spaces (in green), performs CFDs, is free, open source, or if it can interact with the drawing programs typically used in architecture (AutoCAD and/or SketchUp). FreeFem++ is the only program that possesses all these features, except for easy interaction with architectural drawing programs (in red) [30]. Our study develops a method for improving that shortcoming, thus making FreeFem++ an optimal tool for resolving this type of problem.

Geometries and Meshing
Drawing programs used to generate geometries are usually specific programs with optimized graphics features that enable designers to use them quickly and intuitively, allowing various simple forms and complex geometries to be built and examined in a reasonably short time. These programs need to be able to exchange their output files with FreeFem++; this could be solved by means of exchange files. Besides the definition of geometries, another important part of the pre-process is meshing: the division of the continuous object into parts with limited dimensions (finite elements)  Table 1 summarizes the characteristics of the calculation tools studied. This provides comparison of the reach of each program according to whether it simulates exterior spaces (i performs CFDs, is free, open source, or if it can interact with the drawing programs typicall architecture (AutoCAD and/or SketchUp). FreeFem++ is the only program that possesses features, except for easy interaction with architectural drawing programs (in red) [30]. O develops a method for improving that shortcoming, thus making FreeFem++ an optimal resolving this type of problem.

Geometries and Meshing
Drawing programs used to generate geometries are usually specific programs with o graphics features that enable designers to use them quickly and intuitively, allowing variou forms and complex geometries to be built and examined in a reasonably short time. These p need to be able to exchange their output files with FreeFem++; this could be solved by m exchange files. Besides the definition of geometries, another important part of the pre-p meshing: the division of the continuous object into parts with limited dimensions (finite e

Geometries and Meshing
Drawing programs used to generate geometries are usually specific progra graphics features that enable designers to use them quickly and intuitively, allow forms and complex geometries to be built and examined in a reasonably short tim need to be able to exchange their output files with FreeFem++; this could be s exchange files. Besides the definition of geometries, another important part of meshing: the division of the continuous object into parts with limited dimensio

Geometries and Meshing
Drawing programs used to generate geometries are usually graphics features that enable designers to use them quickly and in forms and complex geometries to be built and examined in a reaso need to be able to exchange their output files with FreeFem++; exchange files. Besides the definition of geometries, another imp meshing: the division of the continuous object into parts with lim  Table 1 summarizes the characteristics of the calculation tools studied. This provides a visual comparison of the reach of each program according to whether it simulates exterior spaces (in green), performs CFDs, is free, open source, or if it can interact with the drawing programs typically used in architecture (AutoCAD and/or SketchUp). FreeFem++ is the only program that possesses all these features, except for easy interaction with architectural drawing programs (in red) [30]. Our study develops a method for improving that shortcoming, thus making FreeFem++ an optimal tool for resolving this type of problem.

Geometries and Meshing
Drawing programs used to generate geometries are usually specific programs with optimized graphics features that enable designers to use them quickly and intuitively, allowing various simple forms and complex geometries to be built and examined in a reasonably short time. These programs need to be able to exchange their output files with FreeFem++; this could be solved by means of exchange files. Besides the definition of geometries, another important part of the pre-process is meshing: the division of the continuous object into parts with limited dimensions (finite elements)  Table 1 summarizes the characteristics of the calculation tools studied. This provides a visual comparison of the reach of each program according to whether it simulates exterior spaces (in green), performs CFDs, is free, open source, or if it can interact with the drawing programs typically used in architecture (AutoCAD and/or SketchUp). FreeFem++ is the only program that possesses all these features, except for easy interaction with architectural drawing programs (in red) [30]. Our study develops a method for improving that shortcoming, thus making FreeFem++ an optimal tool for resolving this type of problem.

Geometries and Meshing
Drawing programs used to generate geometries are usually specific programs with optimized graphics features that enable designers to use them quickly and intuitively, allowing various simple forms and complex geometries to be built and examined in a reasonably short time. These programs need to be able to exchange their output files with FreeFem++; this could be solved by means of exchange files. Besides the definition of geometries, another important part of the pre-process is meshing: the division of the continuous object into parts with limited dimensions (finite elements)  Table 1 summarizes the characteristics of the calculation tools studied. This provides comparison of the reach of each program according to whether it simulates exterior spaces (i performs CFDs, is free, open source, or if it can interact with the drawing programs typicall architecture (AutoCAD and/or SketchUp). FreeFem++ is the only program that possesses features, except for easy interaction with architectural drawing programs (in red) [30]. O develops a method for improving that shortcoming, thus making FreeFem++ an optimal resolving this type of problem.

Geometries and Meshing
Drawing programs used to generate geometries are usually specific programs with o graphics features that enable designers to use them quickly and intuitively, allowing variou forms and complex geometries to be built and examined in a reasonably short time. These p need to be able to exchange their output files with FreeFem++; this could be solved by m exchange files. Besides the definition of geometries, another important part of the pre-p meshing: the division of the continuous object into parts with limited dimensions (finite e Software using FreeFem++  Table 1 summarizes the characteristics of the calculation tools studied. This provides a visual comparison of the reach of each program according to whether it simulates exterior spaces (in green), performs CFDs, is free, open source, or if it can interact with the drawing programs typically used in architecture (AutoCAD and/or SketchUp). FreeFem++ is the only program that possesses all these features, except for easy interaction with architectural drawing programs (in red) [30]. Our study develops a method for improving that shortcoming, thus making FreeFem++ an optimal tool for resolving this type of problem.

Geometries and Meshing
Drawing programs used to generate geometries are usually specific programs with optimized graphics features that enable designers to use them quickly and intuitively, allowing various simple forms and complex geometries to be built and examined in a reasonably short time. These programs need to be able to exchange their output files with FreeFem++; this could be solved by means of exchange files. Besides the definition of geometries, another important part of the pre-process is meshing: the division of the continuous object into parts with limited dimensions (finite elements)  Table 1 summarizes the characteristics of the calculation tools studied. This provides a visual comparison of the reach of each program according to whether it simulates exterior spaces (in green), performs CFDs, is free, open source, or if it can interact with the drawing programs typically used in architecture (AutoCAD and/or SketchUp). FreeFem++ is the only program that possesses all these features, except for easy interaction with architectural drawing programs (in red) [30]. Our study develops a method for improving that shortcoming, thus making FreeFem++ an optimal tool for resolving this type of problem.

Geometries and Meshing
Drawing programs used to generate geometries are usually specific programs with optimized graphics features that enable designers to use them quickly and intuitively, allowing various simple forms and complex geometries to be built and examined in a reasonably short time. These programs need to be able to exchange their output files with FreeFem++; this could be solved by means of exchange files. Besides the definition of geometries, another important part of the pre-process is meshing: the division of the continuous object into parts with limited dimensions (finite elements)  Table 1 summarizes the characteristics of the calculation tools studied. This provides comparison of the reach of each program according to whether it simulates exterior spaces (i performs CFDs, is free, open source, or if it can interact with the drawing programs typicall architecture (AutoCAD and/or SketchUp). FreeFem++ is the only program that possesses features, except for easy interaction with architectural drawing programs (in red) [30]. O develops a method for improving that shortcoming, thus making FreeFem++ an optimal resolving this type of problem.

Geometries and Meshing
Drawing programs used to generate geometries are usually specific programs with o graphics features that enable designers to use them quickly and intuitively, allowing variou forms and complex geometries to be built and examined in a reasonably short time. These p need to be able to exchange their output files with FreeFem++; this could be solved by m exchange files. Besides the definition of geometries, another important part of the pre-p meshing: the division of the continuous object into parts with limited dimensions (finite e  Table 1 summarizes the characteristics of the calculation tools studied. Thi comparison of the reach of each program according to whether it simulates exterio performs CFDs, is free, open source, or if it can interact with the drawing program architecture (AutoCAD and/or SketchUp). FreeFem++ is the only program that features, except for easy interaction with architectural drawing programs (in re develops a method for improving that shortcoming, thus making FreeFem++ a resolving this type of problem.

Geometries and Meshing
Drawing programs used to generate geometries are usually specific progra graphics features that enable designers to use them quickly and intuitively, allow forms and complex geometries to be built and examined in a reasonably short tim need to be able to exchange their output files with FreeFem++; this could be s exchange files. Besides the definition of geometries, another important part of meshing: the division of the continuous object into parts with limited dimensio  Table 1 summarizes the characteristics of the calculation tools studied. This p comparison of the reach of each program according to whether it simulates exterior s performs CFDs, is free, open source, or if it can interact with the drawing programs architecture (AutoCAD and/or SketchUp). FreeFem++ is the only program that po features, except for easy interaction with architectural drawing programs (in red) develops a method for improving that shortcoming, thus making FreeFem++ an resolving this type of problem.

Geometries and Meshing
Drawing programs used to generate geometries are usually specific programs graphics features that enable designers to use them quickly and intuitively, allowin forms and complex geometries to be built and examined in a reasonably short time. need to be able to exchange their output files with FreeFem++; this could be solv exchange files. Besides the definition of geometries, another important part of th meshing: the division of the continuous object into parts with limited dimensions

Geometries and Meshing
Drawing programs used to generate geometries are usually specific programs with optimized graphics features that enable designers to use them quickly and intuitively, allowing various simple forms and complex geometries to be built and examined in a reasonably short time. These programs need to be able to exchange their output files with FreeFem++; this could be solved by means of exchange files. Besides the definition of geometries, another important part of the pre-process is meshing: the division of the continuous object into parts with limited dimensions (finite elements) and with nodes that contain the physical properties and interactions of the material with the actions. This meshing process should be carried out by a program that guarantees easy and correct execution.

Salome Analysis
Salome is an open source platform under the LGPL (Lesser General Public License) for the preand post-processing of numerical simulations. It enables geometries to be built in a user-friendly CAD environment that facilitates the construction of volumes in 3D and is quick and easy to learn. The program can be downloaded and information and support accessed from the official website [31]. The program promises speedy and intuitive pre-processing compatible with various calculation engines. It can mesh a given volume by considering different hypotheses and algorithms (hexahedron, tetrahedron, Netgen 1D-2D-3D, etc.). Submeshes can be created as well as groups and subgroups from these. The result is a 3D mesh that is seemingly accurate, but its usability is undermined by an excessively diffuse process for entering data. For the scientific user this probably leads to greater control over the process, but for the professional it is an impediment (Figure 2).
Salome is an open source platform under the LGPL (Lesser General Public License) for the preand post-processing of numerical simulations. It enables geometries to be built in a user-friendly CAD environment that facilitates the construction of volumes in 3D and is quick and easy to learn. The program can be downloaded and information and support accessed from the official website [31]. The program promises speedy and intuitive pre-processing compatible with various calculation engines. It can mesh a given volume by considering different hypotheses and algorithms (hexahedron, tetrahedron, Netgen 1D-2D-3D, etc.). Submeshes can be created as well as groups and subgroups from these. The result is a 3D mesh that is seemingly accurate, but its usability is undermined by an excessively diffuse process for entering data. For the scientific user this probably leads to greater control over the process, but for the professional it is an impediment (Figure 2).

Figure 2. 3D geometries. An example from the current investigation.
Once the pre-processing is complete, we need to find a method for transferring the results to FreeFem++. The natural format of the Salome files has an *.hdf extension and those for the output files for the geometries can be *.brep, *.iges, *.igs, *.step, *.stp, *.stl, *.sat, or *.vtk. The meshing output formats have the following extensions: *.med, *.unv, *.stl, *.sauv, *.gmf, or *.dat. None of these meshing file formats can be imported directly to FreeFem++, but the geometries and meshes generated in Salome can be transferred indirectly to FreeFem++ by using the GMESH program as a bridge, as shown in Figure 3. Once the pre-processing is complete, we need to find a method for transferring the results to FreeFem++. The natural format of the Salome files has an *.hdf extension and those for the output files for the geometries can be *.brep, *.iges, *.igs, *.step, *.stp, *.stl, *.sat, or *.vtk. The meshing output formats have the following extensions: *.med, *.unv, *.stl, *.sauv, *.gmf, or *.dat. None of these meshing file formats can be imported directly to FreeFem++, but the geometries and meshes generated in Salome can be transferred indirectly to FreeFem++ by using the GMESH program as a bridge, as shown in Figure 3.
The first step is to export the file from Salome in a *.brep geometry format, which can be imported from GMESH [32]. GMESH also allows us to do the meshing, which can be saved in files with the *.mesh extension format. These file formats can be read by FreeFem*++, as explained later. We can also do the meshing in Salome, which requires exporting the mesh as a *.unv file extension. This file format can be read by GMESH and from here, as in the previous case, saved as *.mesh, which can be read by FreeFem++. Moreover, GMESH may allow the user to generate 3D geometries in a CAD environment as well as the complete meshing of the volume, rendering it unnecessary to use Salome to carry out the same function. Salome has other inconveniences such as excessive size and demand on resources, and difficulties in the tag exporting process. Moreover, its usability is not as advanced as in the CAD programs designed specifically for drawing. Thus, the GMESH program was analyzed in greater detail to assess its viability as a tool to solve the problem proposed.
imported from GMESH [32]. GMESH also allows us to do the meshing, which can be saved in files with the *.mesh extension format. These file formats can be read by FreeFem*++, as explained later. We can also do the meshing in Salome, which requires exporting the mesh as a *.unv file extension. This file format can be read by GMESH and from here, as in the previous case, saved as *.mesh, which can be read by FreeFem++. Moreover, GMESH may allow the user to generate 3D geometries in a CAD environment as well as the complete meshing of the volume, rendering it unnecessary to use Salome to carry out the same function. Salome has other inconveniences such as excessive size and demand on resources, and difficulties in the tag exporting process. Moreover, its usability is not as advanced as in the CAD programs designed specifically for drawing. Thus, the GMESH program was analyzed in greater detail to assess its viability as a tool to solve the problem proposed.

GMESH Analysis
The GMESH software has a strong meshing capacity that incorporates a calculation engine and pre-and post-processes [33]. It enables the user to erect geometries in a CAD environment, and its aim, according to the official website, is to provide a tool that is fast, light, and easy to use for meshing with inputs of parametric objects and advanced visualization capabilities. It allows its mesh to be exported in *.mesh, which can be read by FreeFem++. The GMESH and FreeFem++ integration is perfect, as the experiences of FreeFem++ community members demonstrate.
In the example shown in Figure 4a, meshing was done with Salome and exported using the *.unv format. Then, this file was imported into GMESH and the mesh was able to be opened without any problem (Figure 4). Then, the mesh was exported from GMESH as *.mesh (for example, "Room3d.mesh"). It is important not to confuse the *.mesh export file with the natural format saved by GMESH which is *.msh, as FreeFem++ cannot open this. It can be observed that FreeFem++ reads the mesh in *.mesh generated by Salome (Figure 4b).

GMESH Analysis
The GMESH software has a strong meshing capacity that incorporates a calculation engine and pre-and post-processes [33]. It enables the user to erect geometries in a CAD environment, and its aim, according to the official website, is to provide a tool that is fast, light, and easy to use for meshing with inputs of parametric objects and advanced visualization capabilities. It allows its mesh to be exported in *.mesh, which can be read by FreeFem++. The GMESH and FreeFem++ integration is perfect, as the experiences of FreeFem++ community members demonstrate.
In the example shown in Figure 4a, meshing was done with Salome and exported using the *.unv format. Then, this file was imported into GMESH and the mesh was able to be opened without any problem (Figure 4). Then, the mesh was exported from GMESH as *.mesh (for example, "Room3d.mesh"). It is important not to confuse the *.mesh export file with the natural format saved by GMESH which is *.msh, as FreeFem++ cannot open this. It can be observed that FreeFem++ reads the mesh in *.mesh generated by Salome (Figure 4b).

Computer-Aided Design Programs
The most efficient way to erect three-dimensional models for buildings is to use the drawing and 3D CAD programs most commonly applied in architecture. The two most widely used assisted drawing tools on the market for 3D constructions are AutoCAD ® and SketchUp ® . AutoCAD is the main commercial CAD program for computer-assisted design but SketchUp is becoming the preferred program of use for quick and intuitive geometric 3D constructions as its basic version is free. Both are standard tools in architecture and engineering faculties.

AutoCAD
The Autodesk program is widely used in universities and architectural and engineering companies in many countries. Its official website offers ample information on the program's features and a downloadable test version [16]. Thanks to the utility of the IGES format, AutoCAD exports directly to IGES, although this option does not appear by default in the export dialogue box and you have to open particular submenus to find this option.

SketchUp
Although the AutoCAD program is the most popular, it has two major drawbacks that led us to search for possible alternatives. Despite the fact that the program is made specifically for CAD drawing, constructing three-dimensional volumes with this tool is not fast or intuitive. It is difficult to outline a volume and modify the finished geometry quickly. By contrast, AutoCAD offers considerable accuracy, and final projects are normally drawn up using this program.
However, the nature of the study in this investigation does not require mathematical precision. What is important is that the architectural spaces and their microclimate features are not affected by alterations in millimeters to their dimensions since the details of the architecture and the spaces are normally defined in centimeters. A meshing that generates a mesh of 10 cm to 30 cm is usually sufficient for the dimensional accuracy needed. What is more important is the speed at which 3D models can be constructed, an area in which AutoCAD is lacking. To solve the problem at the heart of this research requires constant experimentation with various geometries that can be quickly put together, thus enabling comparisons and decision-making on its formal design. Another drawback of AutoCAD is that this commercial program is quite expensive.
A good alternative is the much-used program for constructing 3D objects, SketchUp. It is simple and fast, the models can be easily modified, and the SketchUp Make basic version is free. Information about the program can be found on the official website, where it is also available for download [34]. Thus, the idea is to use SketchUp to build geometries quickly and simply and then export them in the IGES format, which GMESH can read, and continue the method proposed above. The SketchUp Make export options do not include exporting in IGES format, but the SketchUp community on the Internet has developed a plugin that enables this [35]. The "iges_export.rb" export file is copied into the Tools folder of SketchUp in the program files. The option to export the solid is found in the program tools' submenu under the name "IGES export".

ParaView
To improve the presentation and analysis of the results (post-processing), another program designed specifically for this task it is also considered: ParaView. This is an open source multiplatform tool for data analysis and visualization applications developed by the Los Alamos National Laboratory of the U.S. Department of Energy in collaboration with Kitware Inc. [36]. After performing the simulation calculation process in FreeFem++, the results can be exported from FreeFem++ to a VTK library (whose files have extension *.vtk) and read by ParaView, which provides the user with ample scope to analyze the data [37].

Proposed Plug-In Procedure
Based on what has been described so far, a specific tool for each part of the simulation (pre-process, process, and post-process) for the execution of this method is proposed. For constructing the geometry, the programs for drawing, design, and 3D construction most widely used among technicians, and for the meshing, GMESH. The pre-process is the building of the geometry and the meshing. For the process-the nucleus of the calculation of the numerical simulation via the finite element method for the study of microclimates [33]-we propose FreeFem++. For the post-process-in other words, the visualization and analysis of the results-the ParaView program is suggested.

File Exchange
After studying the import and export compatibilities of the various programs, we propose to use the IGES format (whose files have extension *.igs) between the drawing programs and the GMESH meshing, and the MESH format (whose files have extension *.mesh) between GMESH and FreeFem++. IGES (Initial Graphics Exchange Specification) is a neutral data format that enables the digital exchange of information between computer-assisted design (CAD) systems. Despite the emergence of STEP, IGES continues to be the most widely used standard format for exchanging 3D graphics files.
In the proposed method, the geometry is drawn using AutoCAD ® or SketchUp ® and exported in the IGES format and read in GMESH. This program is used for meshing the volume generated as it is made specifically to carry out this task. The mesh is then exported as MESH. All this constitutes the pre-process. FreeFem++ reads the mesh format (*.mesh), and this program is then used to perform the calculations (process). The results are presented and analyzed (post-process) by exporting the results from FreeFem++ to a *.vtk library. These result files are read by the ParaView program where they can be easily studied and analyzed, and then exported to other data presentation formats ( Figure 5).

Proposed Plug-In Procedure
Based on what has been described so far, a specific tool for each part of the simulation (preprocess, process, and post-process) for the execution of this method is proposed. For constructing the geometry, the programs for drawing, design, and 3D construction most widely used among technicians, and for the meshing, GMESH. The pre-process is the building of the geometry and the meshing. For the process-the nucleus of the calculation of the numerical simulation via the finite element method for the study of microclimates [33]-we propose FreeFem++. For the post-processin other words, the visualization and analysis of the results-the ParaView program is suggested.

File Exchange
After studying the import and export compatibilities of the various programs, we propose to use the IGES format (whose files have extension *.igs) between the drawing programs and the GMESH meshing, and the MESH format (whose files have extension *.mesh) between GMESH and FreeFem++. IGES (Initial Graphics Exchange Specification) is a neutral data format that enables the digital exchange of information between computer-assisted design (CAD) systems. Despite the emergence of STEP, IGES continues to be the most widely used standard format for exchanging 3D graphics files.
In the proposed method, the geometry is drawn using AutoCAD ® or SketchUp ® and exported in the IGES format and read in GMESH. This program is used for meshing the volume generated as it is made specifically to carry out this task. The mesh is then exported as MESH. All this constitutes the preprocess. FreeFem++ reads the mesh format (*.mesh), and this program is then used to perform the calculations (process). The results are presented and analyzed (post-process) by exporting the results from FreeFem++ to a *.vtk library. These result files are read by the ParaView program where they can be easily studied and analyzed, and then exported to other data presentation formats ( Figure 5).

Case Study
An example of the proposed methodology's application can be used to illustrate the process by entering in Freefem++ a geometry and mesh of a courtyard (10 × 10 × 10 m) in a building (30 × 30 × 10 m) considering an air volume of 50 × 50 × 20 m. The first step is to build the geometry in SketchUp.
In SketchUp Make, the "rectangle" tool is used to make a rectangle on the floor. On selecting the origin of the rectangle, it is possible to enter the boundary measurements that appear in the square in the bottom left corner directly, separated by full stops and commas, with speed and accuracy (Figure 6a).

Case Study
An example of the proposed methodology's application can be used to illustrate the process by entering in Freefem++ a geometry and mesh of a courtyard (10 × 10 × 10 m) in a building (30 × 30 × 10 m) considering an air volume of 50 × 50 × 20 m. The first step is to build the geometry in SketchUp.
In SketchUp Make, the "rectangle" tool is used to make a rectangle on the floor. On selecting the origin of the rectangle, it is possible to enter the boundary measurements that appear in the square in the bottom left corner directly, separated by full stops and commas, with speed and accuracy (Figure 6a).
The push-pull tool is used to extrude the rectangle upwards, thus generating a volume. As in the previous case, the user can enter the precise numerical value of the movement when the side and the direction of the movement have been selected (Figure 6b). This type of sketch is one of the simplest systems available for constructing volumes that allows trying out various forms with different thermodynamic behaviors. The volume can be modified at any time by stretching one of the sides with the push-pull tool; this is an example of the program's flexibility, enabling the volume to be modified quickly when searching for a form that generates a different microclimate. Using the tools that enable operations between solids (intersecting, joining, subtracting, cutting, dividing), all of which are identified by icons at the top of the screen, complex parallelepiped geometries can be created with ease. Other tools allow us to create curved and complex nonparallelepiped geometries. The line or "offset tool" lets us draw reference lines on the side. The lines on a plane that delimit one area of a side of a solid in SketchUp define a region that is different from that plane. This feature can be identified by clicking on the zone and observing the shadowed area, The push-pull tool is used to extrude the rectangle upwards, thus generating a volume. As in the previous case, the user can enter the precise numerical value of the movement when the side and the direction of the movement have been selected (Figure 6b).
This type of sketch is one of the simplest systems available for constructing volumes that allows trying out various forms with different thermodynamic behaviors. The volume can be modified at any time by stretching one of the sides with the push-pull tool; this is an example of the program's flexibility, enabling the volume to be modified quickly when searching for a form that generates a different microclimate.
Using the tools that enable operations between solids (intersecting, joining, subtracting, cutting, dividing), all of which are identified by icons at the top of the screen, complex parallelepiped geometries can be created with ease. Other tools allow us to create curved and complex non-parallelepiped geometries. The line or "offset tool" lets us draw reference lines on the side. The lines on a plane that delimit one area of a side of a solid in SketchUp define a region that is different from that plane. This feature can be identified by clicking on the zone and observing the shadowed area, and this can be cut or colored separately from the rest of the plane. This quality is very interesting because the program automatically identifies the region, labelling it so that it can then be recognized as a numerical model. The IGES format uses numbers to automatically identify each of the regions generated. Sometimes, assigning a color to these regions can give a better understanding of the geometry generated in SketchUp, thus avoiding errors of interpretation.
From this point, it is possible to export the geometry to IGES using the plugin placed in the tools menu (Figure 7a). When dealing with more complex geometries, we can check that only one group has been created in order to ensure that the exportation is done correctly. It is also important to remember that GMESH does not import files stored on lower levels (subfiles inside subfolders). It is advisable to temporarily shift the *.igs export files to the desktop to import them from GMESH without any problem. and this can be cut or colored separately from the rest of the plane. This quality is very interesting because the program automatically identifies the region, labelling it so that it can then be recognized as a numerical model. The IGES format uses numbers to automatically identify each of the regions generated. Sometimes, assigning a color to these regions can give a better understanding of the geometry generated in SketchUp, thus avoiding errors of interpretation. From this point, it is possible to export the geometry to IGES using the plugin placed in the tools menu (Figure 7a). When dealing with more complex geometries, we can check that only one group has been created in order to ensure that the exportation is done correctly. It is also important to remember that GMESH does not import files stored on lower levels (subfiles inside subfolders). It is advisable to temporarily shift the *.igs export files to the desktop to import them from GMESH without any problem. Then, the GMESH program is opened and the *.igs file is imported. This is done by opening the File menu, selecting Open, and locating the *.igs file on a level close to the desktop (Figure 7b). When the file is imported, nothing appears in the window. We need to open the "Tool" menu, select "Option", then "Geometry", and mark the elements required for visualization (Figure 7c). It is Then, the GMESH program is opened and the *.igs file is imported. This is done by opening the File menu, selecting Open, and locating the *.igs file on a level close to the desktop (Figure 7b). When the file is imported, nothing appears in the window. We need to open the "Tool" menu, select "Option", then "Geometry", and mark the elements required for visualization (Figure 7c). It is important to check that there are labels for the points (unmarked in the example), vertices, and differentiated sides and regions within the sides (the windows in the example). These labels are fundamental so that the regions can be identified and assigned different contours in FreeFem++. Now the 3D meshing can be done. This is done by opening the "Mesh" menu and clicking on 3D (in red in the figure). After that, the first meshing takes place. As in the previous case, the data which appear are confusing, with only the labels that correspond to the mesh nodes being visible. We again need to return to "Option" and select "Mesh" and mark the elements of the mesh we wish to see (Figure 7d). In "Mesh", it is important to be able to visualize the lines, the sides, and the vertices of the sides (2D mesh in sides) in order to check that the elements have different colors. We check that a 3D mesh has been done in the volume by selecting "Tool", "Option", "Mesh", and marking "Volume Edges" (Figure 7e). Now it is possible to proceed to optimizing and defining the mesh, first by clicking on "Optimize 3D (Netgen)", which is marked in red (Figure 7f). By clicking on it once, a slight repositioning of the mesh's tetrahedrons occurs. Another click produces the same effect, but this time it is less perceptible. If the clicking process is continued, it is possible to realize that the alterations become smaller and smaller until the mesh no longer changes. At this point, maximum optimization has been reached, thanks to the program's Netgen module.
If a tighter and more precise mesh is necessary, the "Refine by Splitting" option can be used. Unlike in the previous example, only a single click is normally necessary, as the mesh grows considerably in density (Figure 7f). A second click could make the mesh very dense, with too many polygons to enable calculation in FreeFem++ in a reasonable time. A third click would produce a mesh impossible to calculate. At this point we notice that GMESH has no option to "undo". If a wrong calculation is made in refining the mesh and it became too dense, it is possible to go back and start again by importing the *.igs geometry.

Results
The case study results presentation was done through open-source software ParaView. This software is not only able to read the results of FreeFem++ but also allows graphic data visualization, facilitating intuitive and almost immediate analysis. Results in Paraview, by means of a mesh made in GMESH and imported into FreeFem++ with geometry constructed in SketchUp, are shown in Figure 9. Figure 9a shows the example mesh in ParaView, and Figure 9b,c display the simulation results representing the vector field and stream lines, respectively. The influence of wind speed and direction on the generation of air flows in combination with the thermal impact of the facades determine the conformation of a vortex inside the courtyard and a thermal stratification in lower layers, as shown in Figure 9. The ParaView graphical interface allows a direct visualization of the geometry changes' influence on the courtyard thermal behaviour. Different colours represent different flow rates. Using the ParaView tool to open the *.vtk library, the program allows analysis of pressure values, speed vectors, and current lines, among other results of the simulation. It also helps us to visualize and understand its distribution and evolution within the three-dimensional space. This is vital for understanding the specific structures that emerge and which are the results of the interaction between the physical properties of the fluid in motion and the form of the space in which it moves. In other words, the design of the space modifies these structures. So, being able to see them more clearly enables us to produce an architectural design that best fits these characteristics.
The interplay between CAD and FreeFem++ and the subsequent visualization in ParaView allows us not only to apply a meshing system good enough for tackling problems involving thermodynamics and fluid mechanics, but to generate a decision-making design tool based on the data feedback through a suitable graphic support. This paper proposes a methodology based on open source software effective for adapting courtyard design to a specific climatic environment. The next step would be to create a unified platform that could integrate these steps into the one application.

Results
The case study results presentation was done through open-source software ParaView. This software is not only able to read the results of FreeFem++ but also allows graphic data visualization, facilitating intuitive and almost immediate analysis. Results in Paraview, by means of a mesh made in GMESH and imported into FreeFem++ with geometry constructed in SketchUp, are shown in Figure 9. Figure 9a shows the example mesh in ParaView, and Figure 9b,c display the simulation results representing the vector field and stream lines, respectively. The influence of wind speed and direction on the generation of air flows in combination with the thermal impact of the facades determine the conformation of a vortex inside the courtyard and a thermal stratification in lower layers, as shown in Figure 9. The ParaView graphical interface allows a direct visualization of the geometry changes' influence on the courtyard thermal behaviour. Different colours represent different flow rates. Using the ParaView tool to open the *.vtk library, the program allows analysis of pressure values, speed vectors, and current lines, among other results of the simulation. It also helps us to visualize and understand its distribution and evolution within the three-dimensional space. This is vital for understanding the specific structures that emerge and which are the results of the interaction between the physical properties of the fluid in motion and the form of the space in which it moves. In other words, the design of the space modifies these structures. So, being able to see them more clearly enables us to produce an architectural design that best fits these characteristics.
The interplay between CAD and FreeFem++ and the subsequent visualization in ParaView allows us not only to apply a meshing system good enough for tackling problems involving thermodynamics and fluid mechanics, but to generate a decision-making design tool based on the data feedback through a suitable graphic support. This paper proposes a methodology based on open source software effective for adapting courtyard design to a specific climatic environment. The next step would be to create a unified platform that could integrate these steps into the one application.

Conclusions
There is a huge opportunity regarding energy saving in the correct design of microclimates in outdoor spaces within courtyards in buildings or public spaces in cities. Nonetheless, increasing energy efficiency in buildings requires the development of simulation tools enabling us to gain a better understanding of these environments and perform more accurate calculations. The nature of the challenge means that different fields of knowledge, such as architectural design, mathematical models, and energy engineering, need to interact [38].
Programs widely in professional use, such as DesignBuilder, consider the air temperature in courtyards to be exactly the same as that outside, i.e., for these programs, a different microclimate in the courtyards does not exist. This has led to justification of recommendations and energy standards that advise limiting the shape factor (ratio between envelope and interior volume contained) in buildings.
Actual monitoring performed in courtyards by our research group and other authors has demonstrated that the temperature in a courtyard in summer is significantly lower than that outside, i.e., there is a microclimate within the same. The main aim of this study was to appraise the most commonly employed programmes for the energy simulation of buildings as a basis to bring forward

Conclusions
There is a huge opportunity regarding energy saving in the correct design of microclimates in outdoor spaces within courtyards in buildings or public spaces in cities. Nonetheless, increasing energy efficiency in buildings requires the development of simulation tools enabling us to gain a better understanding of these environments and perform more accurate calculations. The nature of the challenge means that different fields of knowledge, such as architectural design, mathematical models, and energy engineering, need to interact [38].
Programs widely in professional use, such as DesignBuilder, consider the air temperature in courtyards to be exactly the same as that outside, i.e., for these programs, a different microclimate in the courtyards does not exist. This has led to justification of recommendations and energy standards that advise limiting the shape factor (ratio between envelope and interior volume contained) in buildings.
Actual monitoring performed in courtyards by our research group and other authors has demonstrated that the temperature in a courtyard in summer is significantly lower than that outside, i.e., there is a microclimate within the same. The main aim of this study was to appraise the most commonly employed programmes for the energy simulation of buildings as a basis to bring forward a new methodology to achieve a more precise system that is also easy to implement within Computer-Aided Design software.
Despite the current availability of integrated programmes, such as emerging BIM systems, the aptitude showed by most common energy analysis simulation software packages for the modelling of thermal conditions in small-sized outdoor spaces such as inner courtyards is limited. Hence, its potential effectiveness not only depends on the amount of exchanged information, but also on a system configured in such a way that allows enough flexibility to predict the thermodynamical behaviour and the appropriate transparency to enable understanding of the mathematical model of the physical processes. These characteristics are more typical of open source codes.
Furthermore, there are some standardization challenges nowadays for energy performance assessment in a BIM context. The general framework must be a holistic or systemic approach which combines indoor climate requirements in a specific environment distinguishing transitional spaces' microclimates from the outdoor climate parameters with the required accuracy. Moreover, the widespread use of openBIM as a central technology would be desirable for information management that can combine inputs from different BIM, mostly free, open source software tools that enable full control over how the energy performance is calculated The comparative study of the energy calculation tools included in Section 2 shows that the programme based on FreeFem++ possesses all these characteristics except for its current lack of compatibility with the main CAD design programmes used in architecture.
In this paper, a method connecting these drawing tools for generating geometries (AutoCAD and SketchUp) that enables them to be meshed (GMESH) and the calculations performed by FreeFem++ was developed. Also, a tool for data analysis was considered (ParaView).
The presented methodology sets the way forward for the development of a new unified tool that allows proper real-time knowledge of the architectural geometries influencing the generation of outdoor microclimates to improve both comfort and energy optimization.
A future step in the research will be to develop a method to calculate the temperatures produced by the microclimate of the courtyard and to subsequently introduce it into commercial energy balance programs, thus more accurately calculating the energy performance of buildings taking into account the energy savings produced by the courtyard.