お世話になっております.
ご指摘の通りOpenFOAMv6でコンパイルした結果,以下の7つのエラーのみとなりました.
In file included from main.C:51:0:
../Libraries/SSF_transportModels/immiscibleIncompressibleTwoPhaseMixture/lnInclude/immiscibleIncompressibleTwoPhaseMixture.H:1:1:
error: expected unqualified-id before ‘.’ token
../immiscibleIncompressibleTwoPhaseMixture.H
^
In file included from /opt/openfoam6/src/TurbulenceModels/turbulenceModels/lnInclude/TurbulenceModel.H:38:0,
from /opt/openfoam6/src/TurbulenceModels/incompressible/lnInclude/IncompressibleTurbulenceModel.H:39,
from /opt/openfoam6/src/TurbulenceModels/incompressible/lnInclude/turbulentTransportModel.H:46,
from main.C:52:
/opt/openfoam6/src/TurbulenceModels/turbulenceModels/lnInclude/turbulenceModel.H:75:9:
error: ‘nearWallDist’ does not name a type; did you mean ‘nearWallDist_H’?
nearWallDist y_;
^~~~~~~~~~~~
nearWallDist_H
/opt/openfoam6/src/TurbulenceModels/turbulenceModels/lnInclude/turbulenceModel.H:155:15:
error: ‘nearWallDist’ does not name a type; did you mean ‘nearWallDist_H’?
const nearWallDist& y() const
^~~~~~~~~~~~
nearWallDist_H
In file included from /opt/openfoam6/src/OpenFOAM/lnInclude/postProcess.H:135:0,
from main.C:62:
./createFields.H: In function ‘int main(int, char**)’:
./createFields.H:35:1:
error: ‘immiscibleIncompressibleTwoPhaseMixture’ was not declared in this scope
immiscibleIncompressibleTwoPhaseMixture mixture(U, phi);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./createFields.H:37:24:
error: ‘mixture’ was not declared in this scope
volScalarField& alpha1(mixture.alpha1());
^~~~~~~
In file included from main.C:69:0:
createFields.H:35:1:
error: ‘immiscibleIncompressibleTwoPhaseMixture’ was not declared in this scope
immiscibleIncompressibleTwoPhaseMixture mixture(U, phi);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
createFields.H:37:24:
error: ‘mixture’ was not declared in this scope
volScalarField& alpha1(mixture.alpha1());
^~~~~~~
/opt/openfoam6/wmake/rules/General/transform:25: recipe for target 'Make/linux64GccDPInt32Opt/main.o' failed
make: *** [Make/linux64GccDPInt32Opt/main.o] Error 1
そこで,まずは一つ目のエラーの対処について教えていただきたいです.
該当のソースコードは以下の通りです.
お手数ですがご回答いただければ幸いです.