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();
Fantastic video. Thank you😀
Thanks for this tutorial. Very helpful.
thanks a lot!! Very usefull video
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.
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.
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
Thank you !
when will be the 2nd part?
It is live now : th-cam.com/video/qDbSWcGBCSU/w-d-xo.html