Source code for seapy.couplings.couplinglinestructural
import numpy as np
from .coupling import Coupling
[docs]class CouplingLineStructural(Coupling):
"""Line coupling betweeen two structural subsystems.
"""
@property
[docs] def impedance_from(self):
"""
Choses the right impedance of subsystem_from.
Applies boundary conditions correction as well.
"""
if type(self.subsystem_from.impedance) == type(None):
return self.subsystem_from.impedance
else:
return np.zeros(self.frequency.amount)
@property
[docs] def impedance_to(self):
"""
Choses the right impedance of subsystem_from.
Applies boundary conditions correction as well.
"""
if type(self.subsystem_from.impedance) == type(None):
return self.subsystem_to.impedance
else:
return np.zeros(self.frequency.amount)
@property
def clf(self):
return np.ones(self.frequency.amount) * 0.5