twoPhaseMixtureのソースコード変更に伴う条件の変更について

22 views
Skip to first unread message

Yusaku Minami

unread,
Sep 14, 2025, 11:27:44 AM (9 days ago) Sep 14
to OpenFOAM
OpenFoam初心者のため、知識不足が多々あるかと思います。
またこのグループで初めて質問を投稿するため、失礼があるかもしれません。
後学のためご指摘いただけますと幸いです。

大学で2次元と3次元流体のハイブリッド計算の研究を行っております。
そこで、mintgen氏によるshallowInterFoamのコンパイルを行ったところ、foam-extend(おそらく3.0)からv2412へのアップデートに伴うソースコードの変更により多数のエラーが発生しました。


デバッグを進めていたのですが、twoPhaseMixtureのエラーの修正方法がわかりません。

create3dFields.Hの120~125行目(以下に記載)でエラーが発生しました。
new twoPhaseMixture
  (
   U3d[i].mesh,
   phi3d[i],
   //"alpha1"
  )
twoPhaseMixtureのソースコードを確認したところ、Foam-extendでは
public:

    // Constructors

        //- Construct from components
        twoPhaseMixture
        (
            const volVectorField& U,
            const surfaceScalarField& phi,
            const word& alpha1Name = "alpha1"
        );
とあり、U,phi,alpha1を引数として与える必要がありました。

v2412では
public:

    // Constructors

        //- Construct from components
        twoPhaseMixture
        (
            const fvMesh& mesh,
            const dictionary& dict
        );
となっており、meshとdictionary形式で与える必要があります。

どのような変更を加えればエラーを解消できるのか、ご教授いただけますと幸いです。

Reply all
Reply to author
Forward
0 new messages