CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
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

Reply
 
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..??
  #1
New Member
 
George
Join Date: Jun 2017
Posts: 12
Rep Power: 6
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


George
last_jedi is offline   Reply With Quote

Old   May 23, 2018, 16:24
Default
  #2
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Augsburg
Posts: 2,590
Blog Entries: 6
Rep Power: 46
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.

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

Reply

Tags
(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 63 September 19, 2018 06:27
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 06:11.