thermo.correct
Dear All,
I have a problem with thermo.correct(). I create my own solver (I needed to add a source term - thanks to the explicitSetValue features - to the buoyanPimpleFoam solver). I edited the hEqn.H file, since I wanted to impose temperature (i.e. enthalpy) and this is my new file: Code:
{ Code:
lab@lab-laptop:~/Documenti/cases_OF/OF_case09_steady_vs_unsteady/unsteady_new_solver$ buoyantPimpleFoam_Epta Could anyone help? Thanks, Samuele |
Hi,
firstly, could you have a look at the enthalpy field right before you call thermo.correct() (and have already solved the energy equation). I guess there might be something wrong in the enthalpy field. Also, try to find the exact line in the thermo.correct() function where the solver crashes. One thing that puzzles me is your energy equation. Maybe it is the explicitSetValue features I'm not familiar with, but don't have these two terms in your equation different units? fvm::ddt(rho, h) + sources(rho, h) Best Regards, Chritistian |
I am not very sure about how the explicitSetValue feature works, too.
But I guess that it is correct since if you look at the /opt/openfoam210/applications/solvers/lagrangian/LTSReactingParcelFoam/hsEqn.H you will find this: Code:
{ Samuele |
Hi,
does the solver run with the source term? What about the enthalpy field after solving the energy equation? Regards Christian |
Hi Christian and thanks for answering.
Do you mean `my' solver? Of course, it doesn't work since I get the error that I posted above. It stopped at the thermo.correct() line. BTW, are you familiar with chtMultiRegionFoam? Could I ask you a think? |
Hi,
sorry, there was a typo in my last post. The question is, does the solver run if you remove he line "sources(rho, h)" from the energy equation in your code. Additionally, could you write out the enthalpy field after solving the energy equation and have a look at it. Are there values at infinity? At which line in thermo.correct() (inside the thermo library) does the solver crash? Best regards, Christian |
2 Attachment(s)
Quote:
I attach the buoyantSimpleFoam_Epta and the buoyantPimpleFoam_Epta. The former is steady (and it works), while the ladder is unsteady (and it doesn't). Any idea? |
All times are GMT -4. The time now is 20:47. |