How do I damp a membrane subject to a time-dependent force with PDE Toolbox
I have a membrane wave equation simulation using PDE toolbox functions with time-independent but spatially constant or varying m and c. I can excite it with a a time dependent edge boundary or with a time and space dependent f. WIthout f, I can Rayleigh damp an initial state using the M and K matrix for in the documentation (I cannot set d= constant, consarnit, nor is it at all clear how to make the damping expressed in terms of node space dependent.) Anyway, when I during on damping with a nonvanishing f I receive the following error: after the followign code. Any advice/help resolving this would be appreciated as I can’t find in the documentation any example or advice.
if damping==1
fem = assembleFEMatrices(model);
alpha_damp = 1/tau;
beta_damp = 0.01;
dampmat = alpha_damp*fem.M + beta_damp*fem.K;
CA=specifyCoefficients(model,"m",m,"d",dampmat,"c",c,"a",a,"f",f);
end
Error using pde.internal.FESolverUtilities/assembleFEMatricesInternal (line 71)
For a time-dependent model, the last argument must be a structure array with the time data as its ‘time’ field.
Error in assembleFEMatrices (line 124)
FEMatricesOut = assembleFEMatricesInternal(pdem,BCEnforcementOption,matrix,state);I have a membrane wave equation simulation using PDE toolbox functions with time-independent but spatially constant or varying m and c. I can excite it with a a time dependent edge boundary or with a time and space dependent f. WIthout f, I can Rayleigh damp an initial state using the M and K matrix for in the documentation (I cannot set d= constant, consarnit, nor is it at all clear how to make the damping expressed in terms of node space dependent.) Anyway, when I during on damping with a nonvanishing f I receive the following error: after the followign code. Any advice/help resolving this would be appreciated as I can’t find in the documentation any example or advice.
if damping==1
fem = assembleFEMatrices(model);
alpha_damp = 1/tau;
beta_damp = 0.01;
dampmat = alpha_damp*fem.M + beta_damp*fem.K;
CA=specifyCoefficients(model,"m",m,"d",dampmat,"c",c,"a",a,"f",f);
end
Error using pde.internal.FESolverUtilities/assembleFEMatricesInternal (line 71)
For a time-dependent model, the last argument must be a structure array with the time data as its ‘time’ field.
Error in assembleFEMatrices (line 124)
FEMatricesOut = assembleFEMatricesInternal(pdem,BCEnforcementOption,matrix,state); I have a membrane wave equation simulation using PDE toolbox functions with time-independent but spatially constant or varying m and c. I can excite it with a a time dependent edge boundary or with a time and space dependent f. WIthout f, I can Rayleigh damp an initial state using the M and K matrix for in the documentation (I cannot set d= constant, consarnit, nor is it at all clear how to make the damping expressed in terms of node space dependent.) Anyway, when I during on damping with a nonvanishing f I receive the following error: after the followign code. Any advice/help resolving this would be appreciated as I can’t find in the documentation any example or advice.
if damping==1
fem = assembleFEMatrices(model);
alpha_damp = 1/tau;
beta_damp = 0.01;
dampmat = alpha_damp*fem.M + beta_damp*fem.K;
CA=specifyCoefficients(model,"m",m,"d",dampmat,"c",c,"a",a,"f",f);
end
Error using pde.internal.FESolverUtilities/assembleFEMatricesInternal (line 71)
For a time-dependent model, the last argument must be a structure array with the time data as its ‘time’ field.
Error in assembleFEMatrices (line 124)
FEMatricesOut = assembleFEMatricesInternal(pdem,BCEnforcementOption,matrix,state); dpe toolbox, driven damped oscillation MATLAB Answers — New Questions