nakagawa様
返信の方遅れまして申し訳ございません.
kMegaSSTモデルを参考にwallDistでyを定義しました.
また,モデル関数内の数字を3.1→scalar(3.1)のように定義したら計算は進みました.(こうしなきゃいけないのでしょうか?)
しかし,すぐに止まってしまいます.
現在プログラムの書き間違いなどを探していますが,散逸率εの壁面境界において次のように与えているのですがこれで合っているのでしょうか?
lowerWall
{
type groovyBC;
variables (
"yp=pos().y;"
"kp=k*mag(pos());"
"func=kp/(yp*yp);"
);
valueExpression "2*nu*func";
value uniform 8.91368;
これで,壁面からの第一点目のkとyを使えると思っているのですが・・・
以下がエラーになります.乱流エネルギーkの最小が負となっておりこれが原因かなと思っています.
DILUPBiCG: Solving for Ux, Initial residual = 1, Final residual = 3.37461e-05, No Iterations 1
DILUPBiCG: Solving for Uy, Initial residual = 1, Final residual = 0.000107268, No Iterations 1
DICPCG: Solving for p, Initial residual = 1, Final residual = 0.0074671, No Iterations 95
time step continuity errors : sum local = 1.4063, global = 0.0451286, cumulative = 0.0451286
swak4Foam: Allocating new repository for sampledGlobalVariables
DILUPBiCG: Solving for epsilon, Initial residual = 0.259323, Final residual = 0.00615872, No Iterations 1
DILUPBiCG: Solving for k, Initial residual = 1, Final residual = 0.0201136, No Iterations 1
bounding k, min: -0.0516107 max: 0.230339 average: 0.217347
#0 Foam::error::printStack(Foam::Ostream&) in "/home/eustia/OpenFOAM/OpenFOAM-2.2.x/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
#1 Foam::sigFpe::sigHandler(int) in "/home/eustia/OpenFOAM/OpenFOAM-2.2.x/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
#2 in "/lib/x86_64-linux-gnu/libc.so.6"
#3 in "/lib/x86_64-linux-gnu/libm.so.6"
#4 Foam::pow(Foam::Field<double>&, Foam::UList<double> const&, double const&) in "/home/eustia/OpenFOAM/OpenFOAM-2.2.x/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
#5 Foam::tmp<Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> > Foam::pow<Foam::fvPatchField, Foam::volMesh>(Foam::tmp<Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> > const&, Foam::dimensioned<double> const&) in "/home/eustia/OpenFOAM/OpenFOAM-2.2.x/platforms/linux64GccDPOpt/lib/libincompressibleRASModels.so"
#6 Foam::incompressible::RASModels::AKN::fMu() const in "/home/eustia/OpenFOAM/OpenFOAM-2.2.x/platforms/linux64GccDPOpt/lib/libincompressibleRASModels.so"
#7 Foam::incompressible::RASModels::AKN::correct() in "/home/eustia/OpenFOAM/OpenFOAM-2.2.x/platforms/linux64GccDPOpt/lib/libincompressibleRASModels.so"
#8
in "/home/eustia/OpenFOAM/OpenFOAM-2.2.x/platforms/linux64GccDPOpt/bin/simpleFoam"
#9 __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6"
#10
in "/home/eustia/OpenFOAM/OpenFOAM-2.2.x/platforms/linux64GccDPOpt/bin/simpleFoam"
浮動小数点例外 (コアダンプ)
よろしくおねがいします.