|
[Sponsors] |
June 20, 2019, 04:22 |
turbulence->k()
|
#1 |
Member
Vivek
Join Date: Mar 2018
Location: India
Posts: 54
Rep Power: 8 |
Hi,
I want to access "turbulent kinetic energy" and "nut" value in each cell. I am using OF-5.0 version. So I have implemented in following manner. PHP Code:
a is dimensionedScalar ... represents combination of constant and volScalarField The way I am accessing "k" and "nut" is it correct?? What does -> operator do in turbulence->k() Thanks, Vivek S |
|
June 21, 2019, 03:27 |
|
#2 | |
Senior Member
Santiago Lopez Castano
Join Date: Nov 2012
Posts: 354
Rep Power: 16 |
Quote:
|
||
June 21, 2019, 04:03 |
|
#3 | |
Member
Vivek
Join Date: Mar 2018
Location: India
Posts: 54
Rep Power: 8 |
Quote:
In LES simulation k() gives us subgrid kinetic energy. But I want to know how can I access ksgs in each cell? First I am storing turbulence-k() in variable called turb_k which is volumetric scalar field. volScalarField turb_k = turbulence->k(); volSclarField turb_nut = turbulence->nut(); Then I am using forAll loop for spatial marching over cells PHP Code:
It has also taking lot of time to calculate sourceElsa. How can I program it efficiently? Thanks Vivek S |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Average Turbulence Intensity in LES | M_Hego | Visualization & Post-Processing | 0 | July 24, 2018 16:18 |
Turbulence postprocessing | Mohsin | FLUENT | 2 | October 3, 2016 15:18 |
Turbulence length scale | Leonpolou | FLUENT | 2 | January 23, 2013 08:26 |
How to implement turbulence in one Solver??? | vahid.najafi | OpenFOAM Programming & Development | 0 | July 29, 2012 06:46 |
Code release: Flow Transition and Turbulence | Chaoqun Liu | Main CFD Forum | 0 | September 26, 2008 18:15 |