How are eigenfunctions normalized with solvepdeeig?
4 次查看(过去 30 天)
显示 更早的评论
When computing eigenfunctions with solvepdeeig, how are the returned eigenfunctions normalized? With respect to -norm, etc? It seems that they are definitely not normalized with the -norm.
In case it's relevant, my code looks a lot like the example in https://www.mathworks.com/help/pde/ug/pde.pdemodel.solvepdeeig.html.
0 个评论
回答(1 个)
SAI SRUJAN
2023-10-20
Hi Marichi gupta,
I understand that you are trying to get a grasp of the output arguments of "solvepdeeig" function.
Solvepdeeig function return a "Eigenresults" object as output, which contains eigenvectors and eigenvalues. We can use the "normalize" MATLAB function to normalize the eigenvectors.
Refer to the following coding snippet for better understanding of the same,
model = createpde(3);
importGeometry(model,"BracketTwoHoles.stl");
applyBoundaryCondition(model,"dirichlet","Face",1,"u",[0;0;0]);
E = 200e9; % elastic modulus of steel in Pascals
nu = 0.3; % Poisson's ratio
specifyCoefficients(model,"m",0,...
"d",1,...
"c",elasticityC3D(E,nu),...
"a",0,...
"f",[0;0;0]);
evr = [-Inf,1e7];
generateMesh(model);
results = solvepdeeig(model,evr);
EigenVectors=results.Eigenvectors;
% MATLAB function to normalize a vector.
normalizedEigenfunctions = normalize(EigenVectors);
% Follow this example for normalizing a vector
v= [1 2 3];
normalized_v=v./sqrt(sum(v.^2));
You can refer to the following documentation to understand more about "normalize" function in MATLAB.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 General PDEs 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!