|
[Sponsors] |
How can I make a solver that will change the reference density 'rho0' during solving |
![]() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
![]() |
![]() |
#1 |
New Member
YongQiang Chi
Join Date: Jun 2010
Posts: 14
Rep Power: 16 ![]() |
Hi:
I'm now working on natural convection problem and I'd like to try changing the reference density 'rho0' during running. I know it will be tricky, since changing the 'rho0' will mean changing the Enthalpy state of the whole problem. But before looking into the mathematics, I'd like to know whether it is possible, or in a manageable difficult that I can read and change the 'rho0' in the solver (maybe by building an extra rho0Eqn.H) during ruining. For example, i'd like to use the average density calculated during real-time solving to replace the static 'rho0' I put in the thermophysicalProperties Now the problem is: the rho0 value sits in the thermophysicalProperties / equationOfState, and some other things (thermo.H basicThermo.H rhoThermo.h heThermo.H and heRhoThermo.h) will read it. can I construct it like a uniformDimensionedScalarField in the [0] folder, read it and make it affect those thermo.H programs? Regards |
|
![]() |
![]() |
![]() |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
chtMultiRegionSimpleFoam: maximum number of iterations excedeed. | Nkl | OpenFOAM Running, Solving & CFD | 19 | October 10, 2019 02:42 |
chtMultiRegionSimpleFoam turbulent case | Aditya Patil | OpenFOAM Running, Solving & CFD | 6 | April 24, 2017 22:13 |
Compressor Simulation using rhoPimpleDyMFoam | Jetfire | OpenFOAM Running, Solving & CFD | 107 | December 9, 2014 13:38 |
Unstabil Simulation with chtMultiRegionFoam | mbay101 | OpenFOAM Running, Solving & CFD | 13 | December 28, 2013 13:12 |
calculation stops after few time steps | sivakumar | OpenFOAM Running, Solving & CFD | 7 | March 17, 2013 06:37 |