|
[Sponsors] |
How to print k (TKE) on the console at every iteration..?? |
![]() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
![]() |
![]() |
#1 |
New Member
George
Join Date: Jun 2017
Posts: 12
Rep Power: 8 ![]() |
Dear OFers, i have constructed a custom solver based on icoFoam. Now i want to add a line in order to print on console k (TKE) at every iteration. Does anyone know what line of code to add and where..??
Thanx a lot ![]() ![]() ![]() George |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Super Moderator
Tobias Holzmann
Join Date: Oct 2010
Location: Tussenhausen
Posts: 2,694
Blog Entries: 6
Rep Power: 50 ![]() ![]() ![]() |
Dear Georg,
in order to print the turbulent kinetic energy k, you have to get access to the turbulence model (class) and print k. Something like that should work. Code:
Info<< turbulence->k() << endl;
__________________
Keep foaming, Tobias Holzmann |
|
![]() |
![]() |
![]() |
Tags |
(k), custom solver, openfaom, programing, tke |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
how to get Sutherland and JANAF coefficients of air? | immortality | OpenFOAM Running, Solving & CFD | 64 | October 18, 2022 10:17 |
Hybrid discretisation - blend factor | gcoopermax | CFX | 5 | September 23, 2016 08:05 |
Hardware-Configuration for Fluent HPC-Pack (8x) | JohHaas | Hardware | 9 | March 3, 2015 13:25 |
[blockMesh] Another cylinder question | bendel_boy | OpenFOAM Meshing & Mesh Conversion | 5 | January 6, 2015 05:09 |
Parallel runs slower with MTU=9000 than MTU=1500 | Javier Larrondo | FLUENT | 0 | October 28, 2007 22:30 |