-
matlab_FEM_dismesh
DistMesh giving a singular FEM matrix?(Hi
Anyone here with some experience of using DistMesh in finite element code? I m solving the scalar Helmoltz equation in an annular region in 2D:
rho_1 < rho < rho_2
where rho_1 is the radius of a Perfect Electric Conducting cylinder and rho_2 is where the mesh is truncated using an Absorbing Boundary condition.
Now, I ve written code to mesh the region myself (by dividing the region into annular rings and picking a fixed number of points on each ring) and I ve written another program which uses DistMesh to mesh the region. I get a nice solution using my own meshing code but the FEM matrix becomes singular when I use DistMesh. This is the DistMesh Code I used:
Circle with hole
rABC=1.5
rCyl=0.5
fdstring=sprintf( ddiff(dcircle(p,0,0, f),dcircle(p,0,0, f)) ,rABC,rCyl)
fd=inline(fdstring, p )
box=[-2,-2 2,2]
[p,N]=distmesh2d(fd,@huniform,0.04,box,[])
I tried changing box and the 0.04 value (initial edge length). But every time, the matrix becomes sin)
- 2010-06-05 09:17:55下载
- 积分:1
-
lab_pro
一级直线倒立摆 pid控制 MATLAB simulink仿真(A linear inverted pendulum pid control MATLAB simulink simulation)
- 2013-01-04 14:22:45下载
- 积分:1
-
H-02prgrams
matlab code for averaging data time series
- 2011-11-16 02:12:17下载
- 积分:1
-
CA-traffic-flow-simulation-
利用元胞自动机对交通流进行模拟,具体模拟某一特定车流密度下的(车流密度由用户设定)单、双车道交通流运行状况,并计算平均速度、换道频率、车流密度等参数。(To take advantage of cellular automata to simulate the traffic flow, the specific simulation under a particular density (density is set by the user), the running status of two-lane traffic flow and calculate the average velocity, frequency and density of the lane changing parameters.)
- 2015-07-17 10:36:45下载
- 积分:1
-
seg
this is a program to identify images from an image file
- 2010-01-19 17:32:08下载
- 积分:1
-
6
说明: matlab科学计算继续上传,一共10个章节,由浅入深,几乎包括了绝大部分的科学计算方法以及仿真。本人把部分算法做了优化,更为完善(matlab scientific computing continue to upload a total of 10 chapters, easy-to-digest, almost, including most of the scientific method of calculation and simulation. I have done a part of algorithm optimization, a more perfect)
- 2008-12-25 16:30:06下载
- 积分:1
-
spidernet
此程序段能完整画出所要图形曲线的蛛网图,其它网站上基本没有提供,对学习经济控制问题是个很有帮助的的功能程序。(This program segment to be able to draw a complete graph of the cobweb diagram, other sites basically did not provide for the study of economic control issue is a useful feature programs.)
- 2009-12-09 23:59:27下载
- 积分:1
-
chap2_4
说明: 《变结构控制与MATLAB仿真》书中第二章例四的变结构控制程序( Variable Structure Control and MATLAB Simulation chapter book, four cases of variable structure control procedures)
- 2008-10-16 23:13:10下载
- 积分:1
-
2
说明: 差分维数计算源代码,大家一定用得到!!!(Differential dimension calculation source code, we must use to get! ! !)
- 2011-09-18 00:48:48下载
- 积分:1
-
matlab_opendss_interface-and-test
该程序实现了matlab软件通过COM接口与OPENDSS软件的衔接,可以在matlab中编程对OPENDSS内的程序进行更改。(The program implements matlab software via COM interface OPENDSS software convergence, can be programmed to make changes within the program OPENDSS in matlab.)
- 2014-10-27 11:06:55下载
- 积分:1