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

Поделиться
HTML-код
  • Опубликовано: 12 сен 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