SUMMARY OF GNUMEX USAGE
For more information see the detailed guidelines in [1]. Gnumex enables mex files
for C, C++ and Fortran to be created with gcc, and subsequently called from
Matlab. The following steps are involved:
INSTALL COMPILER:
See [1].
RUN GNUMEX. Cd to the folder where Gnumex is installed and type "gnumex"
at the Matlab prompt. This brings up a GUI-window. Make appropriate choices
(see [1]) and select "Make opts".
If easy switching between compilers (or other Gnumex options) is desired
it may be easier to add the Gnumex folder to the Matlab search path and
use Gnumex in batch mode. Issue "gnumex usage" for a quick help.
This will create libraries of mex-, mx- and mat-functions ready to be called
from C or Fortran programs (in Matlab 7.4 and later a preliminary step is
the creation of .def-files in the Gnumex folder). Gnumex will also create a
configuration file for the Matlab mex-command, called "options.bat" by
default. The configuration file sets gcc to be the compiler, and a
perl-script, linkmex.pl, that is part of Gnumex to be the linker. It also
points to the libraries, and sets appropriate options for the compilation
and linking.
There are two sensible choices for the configuration file, in the Matlab
"prefdir" folder (e.g. "C:\Documents and Settings\jonasson\Application
Data\MathWorks\MATLAB\R2007a"; its location is returned by the Matlab
prefdir command) or in the folder where the sources of the C (or Fortran)
programs are.
WRITE A GATEWAY ROUTINE in C or Fortran which will be called from Matlab and
calls the computational routines. The gateway routine must be named
mexFunction. For details refer to the Matlab documentation.
TO CREATE MEX-FILES use the Matlab mex command. It will by default look for a
config file named "mexopts.bat" in the current folder, and if not found
there in the prefdir folder. One can also use a -f switch to point to a
different config file. For details, see the Matlab documentation on "mex",
and the link therein to "mex script switches" (note for instance that it is
possible to override the default flags from Gnumex with commands such as
"mex -c OPTIMFLAGS='$OPTIMFLAGS -o2 yprime.c" -- before version 7.3 or 7.2
one must use # instead of =). Mex compiles and links C or Fortran programs
and creates mex-files with the extension .mexw32 (.dll in Matlab 7.0 and
earlier) callable from Matlab. With a -c switch, mex compiles only and
creates files with extension .obj -- .obj files are valid inputs for
subsequent mex-commands.
EXAMPLE C MEXING: See example in Examples\GCC.
ACCOMPANYING DOCUMENTATION AND EXAMPLE FILES:
EXAMPLES Folder of examples for various compilers
README This file
changes.txt Lists changes after Gnumex version 1.11
TODO List of things that needs done
ERROR IN MEX.PL IN MATLAB 7.10 AND 7.11
There is a bug in the file [matlabroot '/bin/mex.pl']: Line 809 should be:
$IMPLICIT_LIBS = getValidInputLinkLibraries();
(the brackets are missing---many thanks to "anonymous" and "Simon" for
finding this error). The error caused mex to fail because it ended up
thinking that getValidInputLinkLibraries was a library. I was not able to
find a way around the error, so I ended up having gnumex automatically
correcting the Matlab distribution. This correction may fail if mex.pl is
not writeable. Gnumex issues a warning if this happens. If the file cannot
be made writeable, a possible workaround is to copy the m-file mex_helper.m
and the mex.pl file from the Matlab distribution to a local folder, make sure
that folder is early in the the Matlab search path, correct the bug in mex.pl
manually, and edit mex_helper.m to make matlab_bin_location point to the
location of mex.pl. The error has been reported to Mathworks.
HOW TO CHECK GNUMEX OUT-FROM/IN-TO SVN REPOSITORY AND RELEASE
The following Unix command will check out gnumex from the sourceforge svn
repository to a folder gnumex in the current folder:
svn co https://gnumex.svn.sourceforge.net/svnroot/gnumex/trunk .
Developers can check in by issuing (from the gnumex folder):
svn commit -m 'Description-of-change'
Developer k10 can release using:
scp gnumex.zip k10,gnumex@frs.sourceforge.net:/home/frs/project/g/gn/gnumex/gnumex-X.YY.zip
Developer k10 can login to repository with:
ssh -t k10,gnumex@shell.sourceforge.net create
REFERENCES
[1] http://gnumex.sourceforge.net
Kristjan Jonasson, September 2007 (jonasson@hi.is)
Jason Nicholson, March 2014 jashale@yahoo.com
没有合适的资源?快使用搜索试试~ 我知道了~
航空发动机建模模型NASA T-MATS
共536个文件
m:112个
slx:101个
html:97个
需积分: 3 4 下载量 49 浏览量
2023-07-25
10:43:06
上传
评论
收藏 9.17MB ZIP 举报
温馨提示
NASA T-MATS是一种用于航空发动机建模的软件工具。T-MATS代表"Toolbox for the Modeling and Analysis of Thermodynamic Systems",它由美国国家航空航天局(NASA)开发,旨在支持航空发动机系统的建模和分析。 T-MATS提供了一个图形用户界面(GUI)和相关的API,使用户能够建立复杂的航空发动机模型,并对其进行性能分析和优化。该工具使用基于方程的建模方法,可以考虑各种热力学和动力学特性,包括压力、温度、流量、转速等。它还可以模拟不同的发动机工况,如起飞、巡航、进近等。 使用T-MATS,用户可以通过连接各个组件来构建航空发动机模型,如压气机、燃烧室、涡轮等。用户可以定义各个组件的性能特性和控制逻辑,并设置输入输出参数以进行模拟和分析。T-MATS还提供了可视化工具,用于监视和分析模型的性能,如输出曲线、时序图和数据记录等。 T-MATS具有以下特点: 灵活性:可以构建复杂的发动机模型,并灵活调整模型的参数和结构。 可扩展性:可以添加新的组件和模型,以适应不同类型的发动机系统。 可视化:提供了丰富的可视化
资源推荐
资源详情
资源评论
收起资源包目录
航空发动机建模模型NASA T-MATS (536个子文件)
Mixer_TMATS_body.c 19KB
Compressor_TMATS_body.c 18KB
sp2tc_TMATS.c 16KB
pt2sc_TMATS.c 15KB
Nozzle_TMATS_body.c 15KB
Turbine_TMATS_body.c 11KB
Turbine_PSI_TMATS_body.c 10KB
Compressor_TMATS.c 9KB
StaticCalc_TMATS_body.c 9KB
Mixer_TMATS.c 8KB
Turbine_PSI_TMATS.c 7KB
Nozzle_TMATS.c 7KB
Turbine_TMATS.c 7KB
pt2sc_TMATS.c 6KB
pt2sc_TMATS.c 6KB
ValvePHY_TMATS_body.c 5KB
StaticCalc_TMATS.c 5KB
Ambient_TMATS.c 5KB
ValvePHY_TMATS.c 5KB
h2tc_TMATS.c 5KB
sp2tc_TMATS.c 5KB
sp2tc_TMATS.c 5KB
Ambient_TMATS_body.c 5KB
Bleed_TMATS.c 4KB
interp3Ac_TMATS.c 4KB
Valve_TMATS.c 4KB
t2hc_TMATS.c 4KB
h2tc_TMATS.c 4KB
h2tc_TMATS.c 4KB
t2hc_TMATS.c 4KB
t2hc_TMATS.c 4KB
Burner_TMATS.c 4KB
Bleed_TMATS_body.c 4KB
DO_TMATS.c 4KB
interp1Ac_TMATS.c 3KB
calc_Pstatic_TMATS.c 3KB
3D_append.c 3KB
SP2T_TMATS.c 3KB
yprime.c 3KB
PT2S_TMATS.c 3KB
Temp2Enth_TMATS.c 3KB
Enth2Temp_TMATS.c 3KB
interp2Ac_TMATS.c 2KB
PT2SM_TMATS.c 2KB
SP2TM_TMATS.c 2KB
Valve_TMATS_body.c 2KB
Burner_TMATS_body.c 2KB
2D_append.c 2KB
T2HM_TMATS.c 2KB
H2TM_TMATS.c 2KB
mexgcc.c 2KB
uigetpath.c 2KB
calc_WvsMN_TMATS.c 1KB
PcalcStat_TMATS.c 1KB
functions_TMATS.c 1KB
shortpath.c 1KB
calc_PsvsMN_TMATS.c 793B
3D_append_define.c 244B
2D_append_define.c 201B
StyleSheet_TMATS.css 974B
StyleSheet_TMATS.css 974B
StyleSheet_TMATS.css 974B
StyleSheet_TMATS.css 974B
dlltool.c.diff 5KB
uigetpath.dll 5KB
shortpath.dll 5KB
shared_file.dmr 117KB
TMATS_user_guide_updated.docx 654KB
TMATS_users_guide_errata.docx 14KB
帮助.docx 13KB
mexdlltool.exe 506KB
mexgcc.exe 4KB
fengdemo.f 2KB
yprime77.f 938B
yprimef.f 433B
powerit.f90 5KB
powerit.f90 5KB
yprime95.f90 2KB
yprime95.f90 2KB
mexinterface_c.f90 2KB
mexinterface_c.f90 2KB
mexinterface.f90 1KB
mexinterface.f90 1KB
CanteraTableBuilder.fig 19KB
DViewerGUI_TMATS.fig 12KB
SetIDesGUI_TMATS.fig 7KB
BlockTransMTLB_TMATS.fnc 42KB
mapplot_matlab.fnc 15KB
types_TMATS.h 5KB
functions_TMATS.h 2KB
constants_TMATS.h 1KB
Turbo_TMATS_Cmp.html 24KB
Turbo_TMATS_Noz.html 22KB
HeatXfer_TMATS_1DTCondVarPropGenBC.html 21KB
Turbo_TMATS_Trb.html 21KB
Turbo_TMATS_TrbPSI.html 20KB
Turbo_TMATS_Mix.html 18KB
TurboC_TMATSC_Cmp.html 15KB
Turbo_TMATS_CmpVG.html 14KB
BlockGuide.html 14KB
共 536 条
- 1
- 2
- 3
- 4
- 5
- 6
资源评论
童小纯
- 粉丝: 3w+
- 资源: 289
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- Java字符串转换处理工具类
- windows USB 驱动,用于PL2303芯片上报GPS信息使用
- McFly 为 Bash 提供历史命令搜索功能 v0.9.2
- Package Control-12.22.sublime-package.zip
- Dragon book编译器龙书源码附详细注释
- 华为云开发者服务协议.pdf
- Hyper-YOLO保姆级教程(私以为的YOLOv12)
- Hyper-YOLO保姆级教程(私以为的YOLOv12)
- Java课程课后作业答案(1).zip
- IMG_20230412_094114.jpg
- asm-西电微机原理实验
- py-apple-quadruped-robot-四足机器人
- asm-西电微机原理实验
- asm-西电微机原理实验
- py-apple-bldc-quadruped-robot-四足机器人
- asm-西电微机原理实验
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功