-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add new top-opt implementation #13
base: main
Are you sure you want to change the base?
Add new top-opt implementation #13
Conversation
src/Top_opt_3d/top3d_caller.m
Outdated
% === downloaded from the website: http://www.top3dapp.com/ === | ||
% === ----------------------------------------------------------------- === | ||
% === Disclaimer: === | ||
% === The authors reserves all rights for the program. === |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove the Matlab script from the repo. Also please mention in the Julia translation that the author gave us permission to translate the code to Julia under an MIT license. I also suggest committing the email exchange as a pdf to the repo.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have made the changes as suggested.
vert = [x y z; x y-hx z; x+hx y-hx z; x+hx y z; x y z+hx; x y-hx z+hx; x+hx y-hx z+hx; x+hx y z+hx]; | ||
vert[:, 2:3] = vert[:, 3:-1:2]; vert[:, 2, :] = -vert[:, 2, :]; | ||
if flag == false | ||
scene = mesh(vert, faces, color = RGB(0.2+0.8*(1-rho[j,i,k]), 0.2+0.8*(1-rho[j,i,k]), 0.2+0.8*(1-rho[j,i,k])), shading = NoShading; axis=(; show_axis = false)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this doesn't work on my machine, there are 2 issues:
- you can't have kwargs before the
;
- I think
shading
should be booleantrue/false
scene = mesh(vert, faces, color = RGB(0.2+0.8*(1-rho[j,i,k]), 0.2+0.8*(1-rho[j,i,k]), 0.2+0.8*(1-rho[j,i,k])), shading = NoShading; axis=(; show_axis = false)) | ||
flag = true; | ||
else | ||
mesh!(vert, faces, color = RGB(0.2+0.8*(1-rho[j,i,k]), 0.2+0.8*(1-rho[j,i,k]), 0.2+0.8*(1-rho[j,i,k])), shading = NoShading) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think shading should be boolean, true/false
Thanks for the PR. This seems to work once the |
Adding a new topology optimization implementation in Julia using the educational paper - An efficient 3D topology optimization code written in Matlab (Authors- Kai Liu & Andrés Tovar). Link to paper- https://link.springer.com/article/10.1007/s00158-014-1107-x. Also, comparing the efficiency of the Julia implementation with corresponding MATLAB code.