CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

How to print k (TKE) on the console at every iteration..??

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Search this Thread Display Modes
Old   May 22, 2018, 05:16
Post How to print k (TKE) on the console at every iteration..??
New Member
Join Date: Jun 2017
Posts: 12
Rep Power: 8
last_jedi is on a distinguished road
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

last_jedi is offline   Reply With Quote

Old   May 23, 2018, 16:24
Super Moderator
Tobi's Avatar
Tobias Holzmann
Join Date: Oct 2010
Location: Tussenhausen
Posts: 2,694
Blog Entries: 6
Rep Power: 50
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
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.

Info<< turbulence->k() << endl;
Keep foaming,
Tobias Holzmann
Tobi is offline   Reply With Quote


(k), custom solver, openfaom, programing, tke

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

All times are GMT -4. The time now is 15:46.