Skip to content

Commit 23a90d5

Browse files
committed
Take into account air_thickness in _Scales.length
1 parent 5478885 commit 23a90d5

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

stagpy/stagyydata.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,13 @@ class _Scales:
4040
def __init__(self, sdat):
4141
self._sdat = sdat
4242

43-
@property
43+
@crop
4444
def length(self):
4545
"""Length in m."""
46-
return self._sdat.par['geometry']['d_dimensional']
46+
thick = self._sdat.par['geometry']['d_dimensional']
47+
if self._sdat.par['boundaries']['air_layer']:
48+
thick += self._sdat.par['boundaries']['air_thickness']
49+
return thick
4750

4851
@property
4952
def temperature(self):

0 commit comments

Comments
 (0)