I am using MATLAB R2020a and creating an axisymmetric model with inner radius "r_in", outer radius "r_out", and height "height", but I am running into the following error when trying to "solve" the model over a frequency range:
StructuralModel does not have structural properties
The model has a mass density "rho", Young's Modulus "E", and Poisson's Ratio "nu". My code is below:
% Create PDE model
model = createpde('structural','modal-axisymmetric');% Create geometry
geometry = [3,4,r_in,r_out,r_out,r_in,0,0,height,height]';g = decsg(gdm,'R1',['R1']');geometryFromEdges(model,g);% Plot geometry
figurepdegplot(model,'EdgeLabels','on','VertexLabels','on');title('Axisymmetric Model');% Crete mesh
mesh = generateMesh(model,'Hmax',0.02);figurepdeplot(model)% Solve
sol = solve(model,'FrequencyRange',[0 2*pi]); % Error on this line
Best Answer