run topology optimization code
10 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
hi there, my name is ayush. Im a bachelor student from india. I was doing a semester project in topology optimization. can you tell me how you run the file (https://www.topopt.mek.dtu.dk/apps-and-software/new-99-line-topology-optimization-code-written-in-matlab)in matlab. In one of your answers you provided the source, from there i got the matlab file. i was thinking of doing a project on it, but i cant run the file. its showing error.![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1534792/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1534792/image.png)
i provided the value of ftBC = 1. I have no priorknowledge of matlab. i want to learn it though.
0 commentaires
Réponses (1)
Walter Roberson
le 9 Nov 2023
You editted the code for top99neo.m which you should not have done. You need to restore the code to the original -- in particular you need to restore the first line of code to be
function top99neo(nelx,nely,volfrac,penal,rmin,ft,ftBC,eta,beta,move,maxit)
After that, at the MATLAB command line give the command
top99neo(120, 40, 0.5, 3, 1.5, 1, 1, 0.5, 2, 0.2, 500)
0 commentaires
Voir également
Catégories
En savoir plus sur Get Started with Optimization Toolbox dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!