function dm = findStructuralDamping(self)
% findStructuralDamping - Find damping model assigned to the structural model
% DMA = findStructuralDamping(DMR) returns the StructuralDampingAssignment
% object, DMA, that defines the structural damping model and its values
% assigned to the structural analysis model. DMR is the DampingModels
% property of the structural model object.
%
% % Example: Find the damping model assignment for a 3-D model.
%   structuralmodel = createpde('structural','transient-solid')
%   importGeometry(structuralmodel,'Block.stl');
%   structuralDamping(structuralmodel,'proportional','Beta',40);
%   dma = findStructuralDamping(structuralmodel.DampingModels)
%
%   See also pde.StructuralModel/structuralDamping

% Copyright 2017 The MathWorks, Inc.


narginchk(1,1);  

% Only global damping model is supported.
% Last assignment of damping model is the active damping model on the
% entire domain. 

dm = self.StructuralDampingAssignments(end);

end
