|
[Sponsors] |
How to add speed of sound (c) into turbulent kinetic energy eqn |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
April 29, 2020, 09:19 |
How to add speed of sound (c) into turbulent kinetic energy eqn
|
#1 |
Senior Member
TWB
Join Date: Mar 2009
Posts: 414
Rep Power: 19 |
Hi,
I need to modify the turbulent kinetic energy eqn. The new k formulation involves the speed of sound (c). I can compute c in the eqn using the formula c = sqrt(gamma*R*T), where gamma, R and T are specific heat ratios, gas constant and temperature. I also realise that there is a computation of c in rhoCentralFoam.C: Code:
volScalarField c("c", sqrt(thermo.Cp()/thermo.Cv()*rPsi)); Or if using the 1st mtd, how do I call gamma, R and T? What are the files which I must modify? Being a newbie, I tried to add: Code:
#include "psiThermo.H" and also add directories to my Make/options: Code:
-I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/radiation/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/specie/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/solidThermo/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/solidSpecie/lnInclude \ error: ‘thermo’ was not declared in this scope I also tried to add the line: Code:
volScalarField c("c", sqrt(thermo.Cp()/thermo.Cv()*rPsi)); Any idea? Of cos, if possible, the 1st mtd seems much easier but I also have no idea how it can be implemented. Last edited by quarkz; April 29, 2020 at 10:56. |
|
May 3, 2020, 18:19 |
|
#2 |
Senior Member
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 931
Rep Power: 13 |
what did you mean by calling c? you compute c inside rhoFoam and you it thereat?
__________________
The OpenFOAM community is the biggest contributor to OpenFOAM: User guide/Wiki-1/Wiki-2/Code guide/Code Wiki/Journal Nilsson/Guerrero/Holzinger/Holzmann/Nagy/Santos/Nozaki/Jasak/Primer Governance Bugs/Features: OpenFOAM (ESI-OpenCFD-Trademark) Bugs/Features: FOAM-Extend (Wikki-FSB) Bugs: OpenFOAM.org How to create a MWE New: Forkable OpenFOAM mirror |
|
May 3, 2020, 22:25 |
|
#3 |
Senior Member
TWB
Join Date: Mar 2009
Posts: 414
Rep Power: 19 |
Sorry I mean I need to obtain the value of c for calculation of turbulent kinetic energy eqn. Since I'll be running rhoCentralFoam with kOmegaSST, is it possible to get the current value of c while running rhoCentralFoam and feed it into the turbulent kinetic energy eqn?
Else, I would need to calculate c using the formula in the source file of the turbulent kinetic energy eqn: thermo.Cp()/thermo.Cv()*rPsi |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Significance of turbulent kinetic energy | oj.bulmer | CFX | 1 | February 25, 2014 18:30 |
Turbulent kinetic Energy | Cfd00d | Main CFD Forum | 2 | December 5, 2013 16:30 |
CFX-POST : gradients for turbulent kinetic energy | syler3321 | CFX | 1 | June 16, 2011 06:47 |
turbulent kinetic energy and turbulent dissipation rate | D_L | Main CFD Forum | 5 | July 17, 2010 03:35 |
ATTENTION! Reliability problems in CFX 5.7 | Joseph | CFX | 14 | April 20, 2010 16:45 |