Skip to content

把abaqus的inp转换为单独的网格文件

把abaqus的inp转换为单独的网格文件 published on No Comments on 把abaqus的inp转换为单独的网格文件

其实没啥特别的,只是记录几个linux命令而已
首先把aaa.inp里面的Node和Element分别存入points.aba, elements.aba两个文件。
删除第一列的序号:
awk '{$1=""; sub(" ", " "); print}' points.aba > points
把逗号换为tab
sed -i 's/,/\t/g' points
对elements同样操作即可
删除空行
sed -i '/^$/d' aaa

OpenFOAM error message

OpenFOAM error message published on No Comments on OpenFOAM error message

When running OpenFOAM solver/utilities, sometimes you may encounter the following error:

Create time

fileName::stripInvalid() called for invalid fileName NewFolder
    For debug level (= 2) > 1 this is considered fatal
Aborted (core dumped)

This is because there is some illegal file name exists in the case folder. Check it carefully.