CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM

How can I make a solver that will change the reference density 'rho0' during solving

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 18, 2017, 05:56
Default How can I make a solver that will change the reference density 'rho0' during solving
  #1
New Member
 
YongQiang Chi
Join Date: Jun 2010
Posts: 14
Rep Power: 15
sazabi2001 is on a distinguished road
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
sazabi2001 is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
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


All times are GMT -4. The time now is 21:08.