Skip to content
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

Extension to cos/sin #1

Open
jomorlier opened this issue May 24, 2022 · 0 comments
Open

Extension to cos/sin #1

jomorlier opened this issue May 24, 2022 · 0 comments

Comments

@jomorlier
Copy link
Contributor

Thanks to a discussion with Edouard:

consider cos and sin instead of orientation
in top_obj line 5,6 :

vol = x(1:length(x)/3);

cos = x((length(x)/3+1):2*(length(x)/3));

sin = x((2*length(x)/3+1):end);

ang=arctan(sin./cos); % rad?

in main line 36-56:

cos0=ones(nely,nelx);

sin0=ones(nely,nelx);

x0 = [rho0(:);cos0(:);sin0(:)];

lb = [1E-6ones(length(rho0(:)),1);-1ones(2*length(cos0(:)),1)];

ub = [ones(length(rho0(:)),1);ones(2*length(cos0(:))1)];

Aeq = [ones(1,length(rho0(:))) zeros(1,2*length(cos0(:)))];

  • after x is updated....for the postproccessing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant