资源简介
关于水平集方法的拓扑优化代码-TOPLSM.m
这是我在香港中文大学王煜教授团队做的关于拓扑优化的水平集方法源程序。希望大家共同学习一下!讨论讨论!
这是我在香港中文大学王煜教授团队做的关于拓扑优化的水平集方法源程序。希望大家共同学习一下!讨论讨论!
代码片段和文件信息
function TOPLSM(DomainWidth DomainHight EleNumPerRow EleNumPerCol LV LCurFEAInterval PlotInterval TotalItNum)
%=================================================================%
% TOPLSM a 199-line Matlab program is developed and presented here for the
% mean compliance optimization of structures in 2D with the classical level set method.
%
% Developed by: Michael Yu WANG Shikui CHEN and Qi XIA
% First Version : July 10 2004
% Second Version: September 27 2004
% Last Modification:October 31 2005 optimize the code.
%
% The code can be downloaded from the webpage:
% http://www2.acae.cuhk.edu.hk/~cmdl/download.htm
%
% Department of Automation and Computer-Aided Engineering
% The Chinese University of Hong Kong
% Email: yuwang@acae.cuhk.edu.hk
%
%Main references:
% (1.)M.Y. Wang X. M. Wang and D. M. GuoA level set method for structural topology optimization
% Computer Methods in Applied Mechanics and Engineering 192(1-2) 227-246 January 2003
%
%(2.) M. Y. Wang and X. M. Wang PDE-driven level sets shape sensitivity and curvature flow for structural topology optimization
% CMES: Computer Modeling in Engineering & Sciences 6(4) 373-395 October 2004.
%
%(3.) G. Allaire F. Jouve A.-M. Toader Structural optimization using sensitivity analysis and a level-set method
% J. Comp. Phys. Vol 194/1 pp.363-393 2004.
%Parameters:
% DomainWidth : the width of the design domain;
% DomainHight : the hight of the design domain;
% EleNumPerRow : the number of finite elements in horizontal direction;
% EleNumPerCol : the number of finite elements in vertical direction;
% LV : Lagrange multiplier for volume constraint;
% LCur : Lagrange multiplier for perimeter constraint whose shape sensitivity is curvature;
% FEAInterval : parameters to specify the frequency of finite element
% analysis;
% PlotInterval : parameters to specify the frequency of plotting;
% TotalItNum : total iteration number.
%=================================================================%
% Step 1: Data initialization
EW = DomainWidth / EleNumPerRow; % The width of each finite element.
EH = DomainHight / EleNumPerCol; % The hight of each finite element.
M = [ EleNumPerCol + 1 EleNumPerRow + 1 ]; % the number of nodes in each dimension
[ x y ] = meshgrid( EW * [ -0.5 : EleNumPerRow + 0.5 ] EH * [ -0.5 : EleNumPerCol + 0.5 ]);
[ FENd.x FENd.y FirstNodePerCol ] = MakeNodes(EleNumPerRowEleNumPerColEWEH); % get the coordinates of the finite element nodes
Ele.NodesID = MakeElements( EleNumPerRow EleNumPerCol FirstNodePerCol );
LSgrid.x = x(:); LSgrid.y = y(:); % The coordinates of each Level Set grid
for i = 1 : length(Ele.NodesID(:1))
Ele.LSgridID(i) = find((LSgrid.x - FENd.x(Ele.NodesID(i1)) - EW/2).^2 +... % get the ID of the level set grid that lies in the middle of a finite element
(LSgrid.y - FENd.y(Ele.NodesID(i1)) - EH/2).^2 <= 100*ep
相关资源
- Pattern Recognition and Machine Learning(高清
- MATLAB 编程 第二版 Stephen J. Chapman 著
- 均值滤波和FFT频谱分析Matlab代码
- 《MATLAB扩展编程》代码
- HDB3码、AMI码的MATLAB实现
- 3点GPS定位MATLAB仿真
- MATLAB数字信号处理85个实用案例精讲入
- matlab从入门到精通pdf94795
- 欧拉放大论文及matlab代码
- 跳一跳辅助_matlab版本
- 全面详解LTE MATLAB建模、仿真与实现
- MIMO-OFDM无线通信技术及MATLAB实现_孙锴
- MATLAB Programming for Engineers 4th - Chapman
- matlab 各种谱分析对比
- 分数阶chen混沌matlab程序
- 基于粒子群算法的非合作博弈的matl
- MATLAB车流仿真 包括跟驰、延误
- matlab空间桁架计算程序
- 基于MATLAB的图像特征点匹配和筛选
- DMA-TVP-FAVAR
- GPS信号的码捕获matlab代码.7z
- 一维光子晶体MATLAB仿真代码吸收率折
- newmark法源程序
- 传统关联成像、计算鬼成像matlab
- pri传统分选算法
- 摆动滚子推杆盘形凸轮设计
- 医学图像重建作业matlab源码
- Matlab实现混沌系统的控制
- 检测疲劳驾驶
- Matlab锁相环仿真-Phase Locked Loop.rar
评论
共有 条评论