動作確認結果
実行可能かの検証(〇:実行可能、罰:エラー等で実行不可)
OF10 interFoam | OF11 incompressibleVoF | OpenFOAM2306 interFoam | OpenFOAM2306 interIsoFoam | |
OpenFOAM10 | 〇 | × | × | × |
OpenFOAM11 | 〇 | 〇 | × | × |
OpenFOAM2306 | × | × | 〇 | 〇 |
まとめ
- OpenFOAM11がOpenFOAM10のチュートリアルを実行できるのみで他のバージョン間でのチュートリアルの互換性はない。
- OpenFOAM10はOpenFOAM2306とファイル名が変わったものもあり、書き換えが必要。
- OpenFOAM11のチュートリアルはsolver名の指定が変わったことで他のバージョンでは実行できない。
- OpenFOAM10と11はcontrolDictのadjustableRunTimeがadjustableに変わったことでOpenCFD側のチュートリアルが実行できない。
実行ログの確認
OpenFOAM10でOpenFOAM10のinterFoam-dambreakを実施
ソルバーとチュートリアルが一緒のため、実行可能。
Running blockMesh on /mnt/c/Users/hamma/Documents/97thOpenCAE/OF10/damBreak_interFoam_OF10/damBreak
Running setFields on /mnt/c/Users/hamma/Documents/97thOpenCAE/OF10/damBreak_interFoam_OF10/damBreak
Running interFoam on /mnt/c/Users/hamma/Documents/97thOpenCAE/OF10/damBreak_interFoam_OF10/damBreak
Cloning damBreakFine case from damBreak
Running blockMesh on /mnt/c/Users/hamma/Documents/97thOpenCAE/OF10/damBreak_interFoam_OF10/damBreakFine
Running setFields on /mnt/c/Users/hamma/Documents/97thOpenCAE/OF10/damBreak_interFoam_OF10/damBreakFine
Running decomposePar on /mnt/c/Users/hamma/Documents/97thOpenCAE/OF10/damBreak_interFoam_OF10/damBreakFine
Running interFoam in parallel on /mnt/c/Users/hamma/Documents/97thOpenCAE/OF10/damBreak_interFoam_OF10/damBreakFine using 4 processes
Running reconstructPar on /mnt/c/Users/hamma/Documents/97thOpenCAE/OF10/damBreak_interFoam_OF10/damBreakFine
OpenFOAM10でOpenFOAM11のincompressibleVoF-dambreakを実行
エコー自体は正常に見える。
Running blockMesh on /mnt/c/Users/hamma/Documents/97thOpenCAE/OF10/damBreak_incompressibleVoF_OF11/damBreak
Running setFields on /mnt/c/Users/hamma/Documents/97thOpenCAE/OF10/damBreak_incompressibleVoF_OF11/damBreak
Running foamRun on /mnt/c/Users/hamma/Documents/97thOpenCAE/OF10/damBreak_incompressibleVoF_OF11/damBreak
Cloning damBreakFine case from damBreak
Running blockMesh on /mnt/c/Users/hamma/Documents/97thOpenCAE/OF10/damBreak_incompressibleVoF_OF11/damBreakFine
Running setFields on /mnt/c/Users/hamma/Documents/97thOpenCAE/OF10/damBreak_incompressibleVoF_OF11/damBreakFine
Running decomposePar on /mnt/c/Users/hamma/Documents/97thOpenCAE/OF10/damBreak_incompressibleVoF_OF11/damBreakFine
Running foamRun in parallel on /mnt/c/Users/hamma/Documents/97thOpenCAE/OF10/damBreak_incompressibleVoF_OF11/damBreakFine using 4 processes
Running reconstructPar on /mnt/c/Users/hamma/Documents/97thOpenCAE/OF10/damBreak_incompressibleVoF_OF11/damBreakFine
foamRunがないためエラー
./Allrun: 93: foamRun: not found
OpenFOAM10でOpenFOAM2306のinterFoam-dambreakを実行
restore0DirとnotTestのコマンドがないというエラー。
./Allrun: 6: restore0Dir: not found
Running blockMesh on /mnt/c/Users/hamma/Documents/97thOpenCAE/OF10/damBreak_interFoam_OF2306/damBreak
Running setFields on /mnt/c/Users/hamma/Documents/97thOpenCAE/OF10/damBreak_interFoam_OF2306/damBreak
Running interFoam on /mnt/c/Users/hamma/Documents/97thOpenCAE/OF10/damBreak_interFoam_OF2306/damBreak
./Allrun: 29: notTest: not found
log.blockMeshでControlDictのadjustableRunTimeがadjustableに名称変更したことによるエラー。
Create time
--> FOAM FATAL IO ERROR:
adjustable is not in enumeration:
5
(
adjustableRunTime
clockTime
cpuTime
runTime
timeStep
)
file: /mnt/c/Users/hamma/Documents/97thOpenCAE/OF10/damBreak_interFoam_OF2306/damBreak/system/controlDict/writeControl at line 29.
From function Enum Foam::NamedEnum<Enum, nEnum>::read(Foam::Istream&) const [with Enum = Foam::Time::writeControl; unsigned int nEnum = 5]
in file lnInclude/NamedEnum.C at line 69.
FOAM exiting
setFieldとinterFoamも同様にエラー
OpenFOAM10でOpenFOAM2306のinterIsoFoam-dambreakを実行
restore0DirとnotTestのコマンドがないというエラー。interIsoFoamはもちろん存在しないためエラー。
./Allrun: 6: restore0Dir: not found
Running blockMesh on /mnt/c/Users/hamma/Documents/97thOpenCAE/OF10/damBreak_interIsoFoam_OF2306
Running setFields on /mnt/c/Users/hamma/Documents/97thOpenCAE/OF10/damBreak_interIsoFoam_OF2306
Running interIsoFoam on /mnt/c/Users/hamma/Documents/97thOpenCAE/OF10/damBreak_interIsoFoam_OF2306
invalid option '-vtp'
Usage: foamSequenceVTKFiles [OPTIONS] ...
options:
-case | -c <dir> specify case directory (default = local dir)
-dir | -d <dir> post-processing directory <dir> (default = postProcessing)
-help | -h print the usage
-out | -o <dir> output links directory <dir> (default = sequencedVTK)
Creates symbolic links to all VTK files in a post-processing directory
Links form a sequence like 'patch.0000.vtk', 'patch.0001.vtk', etc.
If files of the same name exist in different sub-directories of the main
directory, e.g. 'inletPatch/0/patch.vtk' and 'outletPatch/0/patch.vtk', a
further index is appended to the name in the links, e.g. 'patch0.0000.vtk' and
'patch1.0000.vtk'
Paraview recognises the link names as a sequence which can be opened and played.
The sequence of links to images can be used to create a video from the images.
- Default directory name for VTK files is 'postProcessing'
blockMeshとsetFieldsはadjustableのエラーが発生。
Create time
--> FOAM FATAL IO ERROR:
adjustable is not in enumeration:
5
(
adjustableRunTime
clockTime
cpuTime
runTime
timeStep
)
file: /mnt/c/Users/hamma/Documents/97thOpenCAE/OF10/damBreak_interIsoFoam_OF2306/system/controlDict/writeControl at line 30.
From function Enum Foam::NamedEnum<Enum, nEnum>::read(Foam::Istream&) const [with Enum = Foam::Time::writeControl; unsigned int nEnum = 5]
in file lnInclude/NamedEnum.C at line 69.
FOAM exiting
OpenFOAM11でOpenFOAM10のinterFoam-dambreakを実施
実行可能であることを確認した。
Running blockMesh on /mnt/c/Users/hamma/Documents/97thOpenCAE/OF11/damBreak_interFoam_OF10/damBreak
Running setFields on /mnt/c/Users/hamma/Documents/97thOpenCAE/OF11/damBreak_interFoam_OF10/damBreak
Running interFoam on /mnt/c/Users/hamma/Documents/97thOpenCAE/OF11/damBreak_interFoam_OF10/damBreak
Cloning damBreakFine case from damBreak
Running blockMesh on /mnt/c/Users/hamma/Documents/97thOpenCAE/OF11/damBreak_interFoam_OF10/damBreakFine
Running setFields on /mnt/c/Users/hamma/Documents/97thOpenCAE/OF11/damBreak_interFoam_OF10/damBreakFine
Running decomposePar on /mnt/c/Users/hamma/Documents/97thOpenCAE/OF11/damBreak_interFoam_OF10/damBreakFine
Running interFoam in parallel on /mnt/c/Users/hamma/Documents/97thOpenCAE/OF11/damBreak_interFoam_OF10/damBreakFine using 4 processes
Running reconstructPar on /mnt/c/Users/hamma/Documents/97thOpenCAE/OF11/damBreak_interFoam_OF10/damBreakFine
OpenFOAM11でOpenFOAM11のincompressibleVoF-dambreakを実行
バージョン一致のため実行可能。
Running blockMesh on /mnt/c/Users/hamma/Documents/97thOpenCAE/OF11/damBreak_incompressibleVoF_OF11/damBreak
Running setFields on /mnt/c/Users/hamma/Documents/97thOpenCAE/OF11/damBreak_incompressibleVoF_OF11/damBreak
Running foamRun on /mnt/c/Users/hamma/Documents/97thOpenCAE/OF11/damBreak_incompressibleVoF_OF11/damBreak
Cloning damBreakFine case from damBreak
Running blockMesh on /mnt/c/Users/hamma/Documents/97thOpenCAE/OF11/damBreak_incompressibleVoF_OF11/damBreakFine
Running setFields on /mnt/c/Users/hamma/Documents/97thOpenCAE/OF11/damBreak_incompressibleVoF_OF11/damBreakFine
Running decomposePar on /mnt/c/Users/hamma/Documents/97thOpenCAE/OF11/damBreak_incompressibleVoF_OF11/damBreakFine
Running foamRun in parallel on /mnt/c/Users/hamma/Documents/97thOpenCAE/OF11/damBreak_incompressibleVoF_OF11/damBreakFine using 4 processes
Running reconstructPar on /mnt/c/Users/hamma/Documents/97thOpenCAE/OF11/damBreak_incompressibleVoF_OF11/damBreakFine
OpenFOAM11でOpenFOAM2306のinterFoam-dambreakを実行
restore0DirとnotTestのコマンドがないというエラー。
./Allrun: 6: restore0Dir: not found
Running blockMesh on /mnt/c/Users/hamma/Documents/97thOpenCAE/OF11/damBreak_interFoam_OF2306/damBreak
Running setFields on /mnt/c/Users/hamma/Documents/97thOpenCAE/OF11/damBreak_interFoam_OF2306/damBreak
Running interFoam on /mnt/c/Users/hamma/Documents/97thOpenCAE/OF11/damBreak_interFoam_OF2306/damBreak
./Allrun: 29: notTest: not found
log.blockMeshでControlDictのadjustableRunTimeがadjustableに名称変更したことによるエラー。
Create time
--> FOAM FATAL IO ERROR:
adjustable is not in enumeration:
5
(
adjustableRunTime
clockTime
cpuTime
runTime
timeStep
)
file: /mnt/c/Users/hamma/Documents/97thOpenCAE/OF11/damBreak_interFoam_OF2306/damBreak/system/controlDict/writeControl at line 29.
From function Enum Foam::NamedEnum<Enum, nEnum>::read(Foam::Istream&) const [with Enum = Foam::Time::writeControl; unsigned int nEnum = 5]
in file lnInclude/NamedEnum.C at line 69.
FOAM exiting
setFields、interFoamも同様。
OpenFOAM11でOpenFOAM2306のinterIsoFoam-dambreakを実行
restore0DirとnotTestのコマンドがないというエラー。interIsoFoamももちろんないのでエラー。
./Allrun: 6: restore0Dir: not found
Running blockMesh on /mnt/c/Users/hamma/Documents/97thOpenCAE/OF11/damBreak_interIsoFoam_OF2306
Running setFields on /mnt/c/Users/hamma/Documents/97thOpenCAE/OF11/damBreak_interIsoFoam_OF2306
Running interIsoFoam on /mnt/c/Users/hamma/Documents/97thOpenCAE/OF11/damBreak_interIsoFoam_OF2306
invalid option '-vtp'
Usage: foamSequenceVTKFiles [OPTIONS] ...
options:
-case | -c <dir> specify case directory (default = local dir)
-dir | -d <dir> post-processing directory <dir> (default = postProcessing)
-help | -h print the usage
-out | -o <dir> output links directory <dir> (default = sequencedVTK)
Creates symbolic links to all VTK files in a post-processing directory
Links form a sequence like 'patch.0000.vtk', 'patch.0001.vtk', etc.
If files of the same name exist in different sub-directories of the main
directory, e.g. 'inletPatch/0/patch.vtk' and 'outletPatch/0/patch.vtk', a
further index is appended to the name in the links, e.g. 'patch0.0000.vtk' and
'patch1.0000.vtk'
Paraview recognises the link names as a sequence which can be opened and played.
The sequence of links to images can be used to create a video from the images.
- Default directory name for VTK files is 'postProcessing'
blockMeshとsetFieldsはadjustableのエラーが発生。
Create time
--> FOAM FATAL IO ERROR:
adjustable is not in enumeration:
5
(
adjustableRunTime
clockTime
cpuTime
runTime
timeStep
)
file: /mnt/c/Users/hamma/Documents/97thOpenCAE/OF11/damBreak_interFoam_OF2306/damBreak/system/controlDict/writeControl at line 29.
From function Enum Foam::NamedEnum<Enum, nEnum>::read(Foam::Istream&) const [with Enum = Foam::Time::writeControl; unsigned int nEnum = 5]
in file lnInclude/NamedEnum.C at line 69.
FOAM exiting
OpenFOAM2306でOpenFOAM10のinterFoam-dambreakを実施
エコーは正常。
Running blockMesh on /mnt/c/Users/hamma/Documents/97thOpenCAE/OF2306/damBreak_interFoam_OF10/damBreak
Running setFields on /mnt/c/Users/hamma/Documents/97thOpenCAE/OF2306/damBreak_interFoam_OF10/damBreak
Running interFoam on /mnt/c/Users/hamma/Documents/97thOpenCAE/OF2306/damBreak_interFoam_OF10/damBreak
Cloning damBreakFine case from damBreak
Running blockMesh on /mnt/c/Users/hamma/Documents/97thOpenCAE/OF2306/damBreak_interFoam_OF10/damBreakFine
Running setFields on /mnt/c/Users/hamma/Documents/97thOpenCAE/OF2306/damBreak_interFoam_OF10/damBreakFine
Running decomposePar on /mnt/c/Users/hamma/Documents/97thOpenCAE/OF2306/damBreak_interFoam_OF10/damBreakFine
Running interFoam (4 processes) on /mnt/c/Users/hamma/Documents/97thOpenCAE/OF2306/damBreak_interFoam_OF10/damBreakFine
Running reconstructPar on /mnt/c/Users/hamma/Documents/97thOpenCAE/OF2306/damBreak_interFoam_OF10/damBreakFine
interFoamでファイルが見つからないエラー。transportPropertiesがmomentumTransportに変わったことによるもの。
Create time
Create mesh for time = 0
PIMPLE: Operating solver in PISO mode
Reading field p_rgh
Reading field U
Reading/calculating face flux field phi
Reading transportProperties
--> FOAM FATAL ERROR: (openfoam-2306)
cannot find file "/mnt/c/Users/hamma/Documents/97thOpenCAE/OF2306/damBreak_interFoam_OF10/damBreak/constant/transportProperties"
From virtual Foam::autoPtr<Foam::ISstream> Foam::fileOperations::uncollatedFileOperation::readStream(Foam::regIOobject&, const Foam::fileName&, const Foam::word&, bool) const
in file global/fileOperations/uncollatedFileOperation/uncollatedFileOperation.C at line 627.
FOAM exiting
OpenFOAM2306でOpenFOAM11のincompressibleVoF-dambreakを実行
エコーは正常。
Running blockMesh on /mnt/c/Users/hamma/Documents/97thOpenCAE/OF2306/damBreak_incompressibleVoF_OF11/damBreak
Running setFields on /mnt/c/Users/hamma/Documents/97thOpenCAE/OF2306/damBreak_incompressibleVoF_OF11/damBreak
Running foamRun on /mnt/c/Users/hamma/Documents/97thOpenCAE/OF2306/damBreak_incompressibleVoF_OF11/damBreak
Cloning damBreakFine case from damBreak
Running blockMesh on /mnt/c/Users/hamma/Documents/97thOpenCAE/OF2306/damBreak_incompressibleVoF_OF11/damBreakFine
Running setFields on /mnt/c/Users/hamma/Documents/97thOpenCAE/OF2306/damBreak_incompressibleVoF_OF11/damBreakFine
Running decomposePar on /mnt/c/Users/hamma/Documents/97thOpenCAE/OF2306/damBreak_incompressibleVoF_OF11/damBreakFine
Running foamRun (4 processes) on /mnt/c/Users/hamma/Documents/97thOpenCAE/OF2306/damBreak_incompressibleVoF_OF11/damBreakFine
Running reconstructPar on /mnt/c/Users/hamma/Documents/97thOpenCAE/OF2306/damBreak_incompressibleVoF_OF11/damBreakFine
foamRunがないというエラーも出る。
./Allrun: 295: foamRun: not found
OpenFOAM2306でOpenFOAM2306のinterFoam-dambreakを実行
もちろん実行可能。
Running blockMesh on /mnt/c/Users/hamma/Documents/97thOpenCAE/OF2306/damBreak_interFoam_OF2306/damBreak
Running setFields on /mnt/c/Users/hamma/Documents/97thOpenCAE/OF2306/damBreak_interFoam_OF2306/damBreak
Running interFoam on /mnt/c/Users/hamma/Documents/97thOpenCAE/OF2306/damBreak_interFoam_OF2306/damBreak
Cloning damBreakFine case from damBreak
Restore 0/ from 0.orig/
Running blockMesh on /mnt/c/Users/hamma/Documents/97thOpenCAE/OF2306/damBreak_interFoam_OF2306/damBreakFine
Running setFields on /mnt/c/Users/hamma/Documents/97thOpenCAE/OF2306/damBreak_interFoam_OF2306/damBreakFine
Running decomposePar on /mnt/c/Users/hamma/Documents/97thOpenCAE/OF2306/damBreak_interFoam_OF2306/damBreakFine
Running interFoam (4 processes) on /mnt/c/Users/hamma/Documents/97thOpenCAE/OF2306/damBreak_interFoam_OF2306/damBreakFine
Running reconstructPar on /mnt/c/Users/hamma/Documents/97thOpenCAE/OF2306/damBreak_interFoam_OF2306/damBreakFine
OpenFOAM2306でOpenFOAM2306のinterIsoFoam-dambreakを実行
もちろん実行可能。
Restore 0/ from 0.orig/
Running blockMesh on /mnt/c/Users/hamma/Documents/97thOpenCAE/OF2306/damBreak_interIsoFoam_OF2306
Running setFields on /mnt/c/Users/hamma/Documents/97thOpenCAE/OF2306/damBreak_interIsoFoam_OF2306
Running interIsoFoam on /mnt/c/Users/hamma/Documents/97thOpenCAE/OF2306/damBreak_interIsoFoam_OF2306
Creating sequencedVTK directory...
Sequencing all vtp files named freeSurf.vtp