function interpolatedVector = interpolateVectorDataInternal(obj,vectorFieldName, varargin)
%interpolateVectorDataInternal - Internal function to interpolate vector data at specified spatial locations
%
%

% Copyright 2017-2019 The MathWorks, Inc.

dim = pde.StructuralResults.spatialDimension(obj);
iU = 1:dim;
iT = 1:numel(obj.SolutionTimes);

switch vectorFieldName
    case 'Displacement'
        IntrpData = pde.StructuralResults.interpolateSolutionInternal(obj,obj.Interpolant,varargin{:},iU,iT);
    case 'Velocity'
        IntrpData = pde.StructuralResults.interpolateSolutionInternal(obj,obj.InterpolantdUdT,varargin{:},iU,iT);
    case 'Acceleration'
        IntrpData = pde.StructuralResults.interpolateSolutionInternal(obj,obj.InterpolantdUdT2,varargin{:},iU,iT);
end
interpolatedVector = IntrpData;

end