BuildingSystems.Buildings.Geometries.Viewfactors.Functions.generateTriangles

# .BuildingSystems.Buildings.Geometries.Viewfactors.Functions.generateTriangles

Generates discretized triangle areas and normals

## Information

This function generates discretized triangle areas and normals.

#### Literature

This algorithm is inherited by the view factor calculation method of Bernd Glück: Dynamisches Raummodell zur wärmetechnischen und wärmephysiologischen Bewertung, Rudolf-Otto-Meyer-Stiftung, Bericht Teil A, 2004.

#### Interface

>     function generateTriangles
>       input Integer nTri "Number of the triangular areas";
>       input Real a1[nTri];
>       input Real a2[nTri];
>       input Real a3[nTri];
>       input Real b1[nTri];
>       input Real b2[nTri];
>       input Real b3[nTri];
>       input Real c1[nTri];
>       input Real c2[nTri];
>       input Real c3[nTri];
>       input Integer z[nTri] "Number of segments";
>       input Integer r[nTri] "Normal direction of the triangular areas";
>       output Real w1[nTri];
>       output Real w2[nTri];
>       output Real w3[nTri];
>       output Real v1[nTri];
>       output Real v2[nTri];
>       output Real v3[nTri];
>       output Real AD[nTri] "Area of the triangle";
>       output Real AEP[nTri] "Area of the parallelogram";
>       output Real n1[nTri] "Surface normal 1st component";
>       output Real n2[nTri] "Surface normal 2nd component";
>       output Real n3[nTri] "Surface normal 3rd component";
>     end generateTriangles;

## Revisions

- March 9, 2022 by Christoph Nytsch-Geusen:
  First implementation.

Generated at 2026-05-09T18:18:56Z by OpenModelicaOpenModelica 1.26.7 using GenerateDoc.mos