Improve efficiency of AssembleFEMatrices?
조회 수: 6 (최근 30일)
이전 댓글 표시
Dear all,
I am using the PDE Toolbox to perform a FEM simulation. I am using the following toolbox function to aquire the matrices I am after:
FEM = assembleFEMatrices(model,'nullspace')
However, the only matrices I require are the global stiffness matrix (FEM.Kc) and nodal force vector (FEM.Fc).
The issue is that the assembleFEMatrices function is quite costly. I was wondering if there is a way improve the efficiency of this? Could the stiffness matrix and force vector be calculated another way, i.e. could they be calculated from the results of the 'solve' function that is less time consuming:
results = solve(model);
Or if it is possible to assemble ONLY the matrices you desire to reduce the computational expense?
Thank you for any advices/solutions that can be offered
댓글 수: 0
채택된 답변
Ravi Kumar
2021년 3월 30일
If you are using R2020b or newer version of MATLAB, you should be able to specify required matrices as input:
Regards,
Ravi
댓글 수: 3
Ravi Kumar
2021년 3월 31일
Eaxctly! Selecting a subset of matrices or specifying BC appliction option are sort of orthogonal. You need to do the way you are doing. I would also add, you can assemble some of these matrices once and some that have some variation over time or solution repeatedly.
추가 답변 (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!