functiongenerateTriangles
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.Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| Integer | nTri | Number of the triangular areas | |
| Real[nTri] | a1 | ||
| Real[nTri] | a2 | ||
| Real[nTri] | a3 | ||
| Real[nTri] | b1 | ||
| Real[nTri] | b2 | ||
| Real[nTri] | b3 | ||
| Real[nTri] | c1 | ||
| Real[nTri] | c2 | ||
| Real[nTri] | c3 | ||
| Integer[nTri] | z | Number of segments | |
| Integer[nTri] | r | Normal direction of the triangular areas |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| Real[nTri] | w1 | ||
| Real[nTri] | w2 | ||
| Real[nTri] | w3 | ||
| Real[nTri] | v1 | ||
| Real[nTri] | v2 | ||
| Real[nTri] | v3 | ||
| Real[nTri] | AD | Area of the triangle | |
| Real[nTri] | AEP | Area of the parallelogram | |
| Real[nTri] | n1 | Surface normal 1st component | |
| Real[nTri] | n2 | Surface normal 2nd component | |
| Real[nTri] | n3 | Surface normal 3rd component |
Revisions
-
March 9, 2022 by Christoph Nytsch-Geusen:
First implementation.