modelPerpendicularSquareToRectangularSurface

View factor calculation from a square with an edge length of W to a perpendicular rectangular surfaces with the common edge length W and the edge length H

Extends from Modelica.Icons.Example (Icon for runnable examples).

Information

Example that calculates the view factors of two perpendicular rectangular surfaces with the common edge length L and the individual edge lengths W and H. H varies with the time from 0 to 1.

Parameters

TypeNameDefaultDescription
Modelica.Units.SI.LengthW1.0
Modelica.Units.SI.Length[3]vertex1{0.0, 0.0, 0.0}
Modelica.Units.SI.Length[3]vertex2{W, 0.0, 0.0}
Modelica.Units.SI.Length[3]vertex3{W, W, 0.0}
Modelica.Units.SI.Length[3]vertex4{0.0, W, 0.0}
IntegernRect2
Integer[nRect]r{1, 1}
Integer[nRect]z{10 for i in 1:nRect}

Components

TypeNameDefaultDescription
Modelica.Units.SI.LengthH
Modelica.Units.SI.Length[3]vertex5{0.0, W, H}
Modelica.Units.SI.Length[3]vertex6{0.0, 0.0, H}
Real[nRect]a1{vertex1[1], vertex1[1]}
Real[nRect]a2{vertex1[2], vertex1[2]}
Real[nRect]a3{vertex1[3], vertex1[3]}
Real[nRect]b1{vertex2[1], vertex4[1]}
Real[nRect]b2{vertex2[2], vertex4[2]}
Real[nRect]b3{vertex2[3], vertex4[3]}
Real[nRect]c1{vertex3[1], vertex5[1]}
Real[nRect]c2{vertex3[2], vertex5[2]}
Real[nRect]c3{vertex3[3], vertex5[3]}
Real[nRect]d1{vertex4[1], vertex6[1]}
Real[nRect]d2{vertex4[2], vertex6[2]}
Real[nRect]d3{vertex4[3], vertex6[3]}
Real[nRect,nRect]viewFacBuildingSystems.Buildings.Geometries.Viewfactors.Functions.PhiRect(nRect, a1, a2, a3, b1, b2, b3, c1, c2, c3, d1, d2, d3, r, z, false)
RealhH/W
Realh1sqrt(1 + h^2)
Realh2h1^4/(h^2*(2.0 + h^2))
RealF120.25 + 1.0/Modelica.Constants.pi*(h*Modelica.Math.atan(1.0/h) - h1*Modelica.Math.atan(1.0/h1) - h^2/4.0*Modelica.Math.log(h2))

Revisions

  • April 26, 2022, by Christoph Nytsch-Geusen:
    First implementation.