资源简介
风机仿真模型及代码
Simulation of a Microturbine Generation System for Grid Connected and Islanding Operations
The ever-increasing need for electric power generation, steady progress in the power deregulation and utility restructuring, and tight constraints over the construction of new transmission lines for long distance power transmission have created increased interest in distributed generation (DG) sources[1~3]. The fundamental concepts for the penetration of DG technologies are the high efficiency of the energy conversion process and the limited emission of pollutants with respect to conventional power plants. They are relatively small in size (relative to the power capacity of the system to which they are connected), and are modular in structure. These power generation devices can be placed in power systems (mainly at the distribution level) for grid reinforcement, offering a higher flexibility and load management, reducing power losses and on-peak operating costs, improving voltage profiles and load factors, deferring or eliminating the need for system upgrades, and improving system integrity, reliability and efficiency.
代码片段和文件信息
/*
* This file is not available for use in any application other than as a
* MATLAB(R) MEX file for use with the Simulink(R) product.
*/
/*
* grid_connected_testsystem_acc.c
*
* Real-Time Workshop code generation for Simulink model “grid_connected_testsystem_acc.mdl“.
*
* Model version : 1.162
* Real-Time Workshop version : 7.5 (R2010a) 25-Jan-2010
* C source code generated on : Sun Jun 02 23:41:11 2013
*
* Target selection: accel.tlc
* Note: GRT includes extra infrastructure and instrumentation for prototyping
* embedded hardware selection: 32-bit Generic
* Emulation hardware selection:
* Differs from embedded hardware (MATLAB Host)
* Code generation objectives: Unspecified
* Validation result: Not run
*/
#include
#include “grid_connected_testsystem_acc.h“
#include “grid_connected_testsystem_acc_private.h“
#include
#include “simstruc.h“
#include “fixedpoint.h“
#define CodeFormat S-Function
#define AccDefine1 Accelerator_S-Function
#ifndef __RTW_UTFREE__
extern void * utMalloc(size_t);
extern void utFree(void *);
#endif
/* Buffer management routine for variable delay block */
boolean_T grid_connected_testsystem_acc_rt_TDelayUpdateTailOrGrowBuf(
int_T *bufSzPtr /* in/out - circular buffer size */
int_T *tailPtr /* in/out - tail of circular buffer */
int_T *headPtr /* in/out - head of circular buffer */
int_T *lastPtr /* in/out - same logical ‘last‘ referenced index */
real_T tMinusDelay /* in - last point we are looking at */
real_T **tBufPtr /* in/out - larger buffer for time */
real_T **uBufPtr /* in/out - larger buffer for input */
real_T **xBufPtr /* in/out - larger buffer for state */
boolean_T isfixedbuf /* in - fixed buffer size enable */
boolean_T istransportdelay /* in - block acts as transport dela y */
int_T *maxNewBufSzPtr)
{
int_T testIdx;
int_T tail = *tailPtr;
int_T bufSz = *bufSzPtr;
real_T *tBuf = *tBufPtr;
real_T *xBuf = (NULL);
int_T numBuffer = 2;
if (istransportdelay) {
numBuffer = 3 ;
xBuf= *xBufPtr;
}
/* Get testIdx the index of the second oldest data point and
* see if this is older than current sim time minus applied delay
* used to see if we can move tail forward
*/
testIdx = (tail < (bufSz - 1)) ? (tail + 1) : 0;
if ((tMinusDelay <= tBuf[testIdx]) && !isfixedbuf) {
int_T j;
real_T *tempT;
real_T *tempU;
real_T *tempX = (NULL);
real_T *uBuf = *uBufPtr;
int_T newBufSz = bufSz + 1024;
if (newBufSz > *maxNewBufSzPtr) {
*maxNewBufSzPtr = newBufSz; /* save for warning*/
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2014-01-10 22:54 models in Simuli
文件 146685 2008-06-23 00:36 models in Simuli
文件 55296 2013-06-02 23:41 models in Simuli
文件 73700 2008-06-21 00:15 models in Simuli
文件 124532 2008-06-23 16:11 models in Simuli
文件 59392 2013-06-02 23:42 models in Simuli
文件 58280 2008-06-23 16:41 models in Simuli
文件 44371 2008-06-20 00:30 models in Simuli
目录 0 2014-01-10 22:54 models in Simuli
目录 0 2014-01-10 22:54 models in Simuli
目录 0 2014-01-10 22:54 models in Simuli
文件 15279 2013-06-02 23:41 models in Simuli
文件 88 2013-06-02 23:41 models in Simuli
文件 133 2013-06-02 23:41 models in Simuli
文件 8367 2013-06-02 23:41 models in Simuli
文件 102587 2013-06-02 23:41 models in Simuli
文件 67313 2013-06-02 23:41 models in Simuli
文件 66886 2013-06-02 23:41 models in Simuli
文件 40144 2013-06-02 23:41 models in Simuli
文件 2233 2013-06-02 23:41 models in Simuli
文件 3489 2013-06-02 23:41 models in Simuli
文件 950 2013-06-02 23:41 models in Simuli
文件 0 2013-06-02 23:41 models in Simuli
目录 0 2014-01-10 22:54 models in Simuli
文件 1177 2013-06-02 23:41 models in Simuli
文件 37 2013-06-02 23:41 models in Simuli
文件 3463 2013-06-02 23:41 models in Simuli
文件 959 2013-06-02 23:41 models in Simuli
文件 1000 2013-06-02 23:41 models in Simuli
文件 2426 2013-06-02 23:41 models in Simuli
文件 884 2013-06-02 23:41 models in Simuli
............此处省略66个文件信息
- 上一篇:多脉波自耦变压器的MATLAB模型
- 下一篇:RBF神经网络
相关资源
- 多脉波自耦变压器的MATLAB模型
- 《粒子滤波原理及Matlab应用 》程序代
- 卷积编码的matlab程序
- Funval.m函数精通Matlab最优化计算
- 机器人控制仿真程序matlab
- IEEE33节点matlab潮流程序
- 分形维数matlab代码
- 基于matlab的英文字符识别
- harris角点检测代码
- Matlab制作的简易备忘录GUI
- 图片曲线数据提取
- 利用MATLAB仿真DTMF音频的产生及其解码
- 压缩感知Matlab-代码与文档-l1magic-1.1
- L1范数最小化matlab源代码
- 二维图像分形维数计算
- 基于Matlabm文件的GMSK调制解调系统仿真
- 图像的简单处理
- 基于matlab的QPSK系统仿真
- 四元数matlab工具箱2.6版
- 局部二值化
- matlab_决策树C4.5算法源代码
- 动态聚类MATLAB 代码
- 小波去噪算法matlab代码
- 用matlab编写的用遗传算法优化神经网
- OFDM同步算法matlab实现
- 用Matlab 解决碎片拼接的源程序
- 基于水平集的分割方法MATLAB代码
-
基于MATLAB/Simuli
nk的双闭环直流调速 - EMD实现的MATLAB代码
- 图像分割-分水岭算法MATLAB代码
评论
共有 条评论