|
[Sponsors] |
December 22, 2020, 08:03 |
rhoPimpleFoam Initial Density
|
#1 |
New Member
Join Date: Jul 2020
Posts: 5
Rep Power: 6 |
Dear Foamers,
I am trying to calculate a compressible fluid using rhoPimpleFoam(OpenFOAM1806). My question is the calculation of density. I use the ideal gas law (perfect Gas) to calculate density. Do you know how the density at the start of the calculation is calculated? It was found that the density was calculated from the pressure, gas constant, and temperature, and the initial value of the pressure was read in createfields.H. I didn't know how the initial temperature values were read. Thanks in advance. |
|
December 22, 2020, 16:36 |
|
#2 |
Senior Member
Michael Alletto
Join Date: Jun 2018
Location: Bremen
Posts: 616
Rep Power: 16 |
||
December 23, 2020, 00:46 |
|
#3 |
New Member
Join Date: Jul 2020
Posts: 5
Rep Power: 6 |
Dear mAlletto,
Thank you for your reply. I apply perfectGas to calculate the density. I understand that the density field is calculated using pressure field, temperature field, and gas constant at any time step (after starting time loop). I can not understand that how the density is calculated BEFORE starting time loop. In the createfields.H, pressure is initialized, then, density is initialized. But where Temperature is initialized? I apologize for the difficulty in reading in my poor English. |
|
December 23, 2020, 03:22 |
|
#4 |
Senior Member
Michael Alletto
Join Date: Jun 2018
Location: Bremen
Posts: 616
Rep Power: 16 |
The temperature is calculated in the thermopackage from the energy.
https://caefn.com/openfoam/temperature-calculation |
|
December 23, 2020, 03:44 |
|
#5 |
New Member
Join Date: Jul 2020
Posts: 5
Rep Power: 6 |
Dear mAlletto,
Thank you for your reply. Thanks to the link you pasted, I understand the existence of a function that transforms energy into temperature. At first of the calculation, temperature is initialized using the function. Thank you for your kindness. |
|
Tags |
compressible, density, rhopimplefoam |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Free surface issues with interDyMFoam for hydroturbine | oumnion | OpenFOAM Running, Solving & CFD | 0 | October 6, 2017 15:05 |
High Courant Number @ icoFoam | Artex85 | OpenFOAM Running, Solving & CFD | 11 | February 16, 2017 14:40 |
pimpleFoam: turbulence->correct(); is not executed when using residualControl | hfs | OpenFOAM Running, Solving & CFD | 3 | October 29, 2013 09:35 |
SLTS+rhoPisoFoam: what is rDeltaT??? | nileshjrane | OpenFOAM Running, Solving & CFD | 4 | February 25, 2013 05:13 |
pisoFoam with k-epsilon turb blows up - Some questions | Heroic | OpenFOAM Running, Solving & CFD | 26 | December 17, 2012 04:34 |