Custom OpenFOAM Solver [1/2] : Adding Temperature to icoFoam

แชร์
ฝัง
  • เผยแพร่เมื่อ 11 ก.ย. 2024
  • This video guides you through the process of adding a passive_scalar (Temperature) equation to a standard incompressible solver (icoFoam) inside OpenFOAM.
    After this lesson you should be able to
    1. Compile your own solvers in OpenFOAM
    2. Better understand the workflow in OpenFOAM to solve for equations you want.
    It ends after creating a new custom solver. If you want to test the solver, you can use the "cavity" test case which is the part of the next video.
    Next Video Link:
    • Custom OpenFOAM Solver...
    Link to OpenFoam WIKI:
    openfoamwiki.n...
    If you run a case as it is in my video the results after simulation will be the same but will require solving the temperature equation more frequently than necessary. So, better add the temperature equation after the PISO loop ends. Like this :
    U = HbyA - rAU*fvc::grad(p);
    U.correctBoundaryConditions();
    }
    // Add the Temperature Equation Here..
    runTime.write();

ความคิดเห็น • 8

  • @MrLote83
    @MrLote83 6 วันที่ผ่านมา

    Fantastic video. Thank you😀

  • @user-hs3dg8jy3t
    @user-hs3dg8jy3t 2 ปีที่แล้ว +1

    Thanks for this tutorial. Very helpful.

  • @alexshumilov3175
    @alexshumilov3175 3 ปีที่แล้ว +1

    thanks a lot!! Very usefull video

  • @anooprathore8710
    @anooprathore8710 3 ปีที่แล้ว +2

    please check this is correct yours or they mention on wiki wesite link-------
    Because the temperature transport depends on the velocity field, we will add the equation after the momentum equation is solved (after the PISO loop), but before the time step is written.

    • @ptroyensspace6975
      @ptroyensspace6975  3 ปีที่แล้ว

      Thanks for mentioning that. The wiki link is correct. You need to add the temperature equation after the piso loop ends, else within each piso loop the added temperature equation will be solved. If you run a case as it is in my video the results after simulation will be the same but will require solving the temperature equation more frequently than necessary.

  • @madarauchiha6009
    @madarauchiha6009 4 ปีที่แล้ว +1

    That is really helpful!! ...also, I have a question, I did complete editing the solver file but my "DT" is giving error, also, unlike yours mine had no 'transportproperties.lookup' but just 'transportproperties'. I am using OF1812.
    Please upload your follow up run for this modded solver.
    thank you

  • @rishis9423
    @rishis9423 2 ปีที่แล้ว +1

    Thank you !
    when will be the 2nd part?

    • @ptroyensspace6975
      @ptroyensspace6975  2 ปีที่แล้ว

      It is live now : th-cam.com/video/qDbSWcGBCSU/w-d-xo.html