freefem++的安装与使用
freefem安装
windows二进制文件安装: 先下载windows可执行安装文件,然后双击安装freefem++,通常只要对弹出的问题按回车即可。在Additional Task窗口界面,选中"Add application directory to your system path" 。此操作不可省略,否则ffglut.exe程序将无法找到。
文本编辑器
此处使用的是Notepad++。
可以在Notepad++中加入与Freefem++相容的语法,使之高亮:
①在菜单“设置”中选择“格式语言设置”
②在“语言”列表中选择C++
③在“自定义扩展名”中输入"edp"
④在“样式”列表中选择“INSTRUCTION WORD”,在“自定义关键字”中加入下列关键字:
P0 P1 P2 P3 P4 P5 P1dc P2dc P3dc P4dc P5dc RT0 RT1 RT2 RT3 RT4
RT5 macro plot int1d int2d solve movemesh adaptmesh trunc checkmovemesh
on func buildmesh square Eigenvalue min max imag exec LinearCG NLCG
Newton BFGS LinearGMRES catch try intalledges jump average mean load
savemesh convect abs sin cos tan atan asin acos cotan sinh cosh tanh cotanh
atanh asinh acosh pow exp log log10 sqrt dx dy endl cout
⑤在“样式”列表中选择“TYPE WORD”,在“自定义关键字”中加入下列关键字:
mesh real fespace varf matrix problem string border complex ifstream ofstream
⑥点击“保存并关闭”,Notepad++就配置好了。
最后给上安装包链接。
freefem++和notepad++安装包