foam-extend 3.1 compilation error

foam-extend-3.1/src/transportModels/incompressible/incompressibleTwoPhaseMixture/twoPhaseMixture.H:38:28: fatal error: transportModel.H: No such file or directory #include “transportModel.H”   #include “incompressible/transportModel/transportModel.H” #include “incompressible/viscosityModels/viscosityModel/viscosityModel.H”    Send article as PDF   

auto crop images in one-line command in Linux

常用小工具集合: 将本文件夹下的 pdf 文档转换成相应的 jpg 格式,像素 600 px/in for A in *.pdf; do convert -density 600 “$A” “${A%%.}.jpg”; done (Mainly for personal future reference,) using ImageMagick: convert -trim image.jpg image.jpg To trim/autocrop the whole directory: 自动裁剪 for a in *.jpg; Continue reading auto crop images in one-line command in Linux

CFD 相关论坛

CFD-online, 关于 CFD 方面的专业论坛,以英语为使用语言。 流体中文网,关于流体方面的信息与论坛,以中文为使用语言。 CFD 中文网,关于 CFD 方面的专业论坛,以中文为使用语言。 CFDwired Forum,以服务于 CFD 中文社区为宗旨的专业论坛。    Send article as PDF   

qt gui error

If there’s an error like symbol lookup error: /lib64/libQt5Gui.so.5: undefined symbol: hb_font_funcs_set_font_h_extents_func Can be solved by update your gnome environment. error found in CentOS 7, qt5-5.9.2    Send article as PDF   

vi 处理中文字符与数字或字母之间的空格

最近在写 latex 文档,需要处理中文字符与数字或字母插入空格。 用到以下命令: g/[a-zA-Z0-9][\u3400-\u9FFF]/s/[a-zA-Z0-9]\zs\ze[\u3400-\u9FFF]/\ 用于在数字或字母与中文字符之间插入空格。 反过来,以下命令用于在中文字符与数字或字母之间插入空格。 g/[\u3400-\u9FFF][a-zA-z0-9]/s/[\u3400-\u9FFF]\zs\ze[a-zA-z0-9]/\    Send article as PDF