如何解决 OpenFOAM 中“fileName::stripInvalid() 因无效 fileName CalibreLibrary 而调用”?

如何解决 OpenFOAM 中“fileName::stripInvalid() 因无效 fileName CalibreLibrary 而调用”?

我在我的 Linux Mint 上安装了 OpenFOAM。当我运行 时simpleFoam,出现以下提示:

~ ❯❯❯ simpleFoam
/*---------------------------------------------------------------------------*\
  =========                 |
  \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
   \\    /   O peration     | Website:  https://openfoam.org
    \\  /    A nd           | Version:  10
     \\/     M anipulation  |
\*---------------------------------------------------------------------------*/
Build  : 10-c4cf895ad8fa
Exec   : simpleFoam
Date   : Mar 31 2023
Time   : 14:34:11
Host   : "Milotron"
PID    : 29077
I/O    : uncollated
Case   : /home/milo
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster (fileModificationSkew 10)
allowSystemOperations : Allowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

fileName::stripInvalid() called for invalid fileName CalibreLibrary
    For debug level (= 2) > 1 this is considered fatal
fish: Job 1, 'simpleFoam' terminated by signal SIGABRT (Abort)

我该怎么办fileName::stripInvalid() called for invalid fileName CalibreLibrary

答案1

我刚刚遇到了同样的问题,在偶然发现这个问题后,我找到了答案。原来 OpenFOAM 文件夹和文件需要以小写字母开头。您的文件名称是“CalibreLibrary”,以大写字母开头。要解决此问题,名称应为“calibreLibrary”。

如果您查找 openFOAM 教程目录,您会注意到大多数文件夹和文件都以小写字母开头。

相关内容