CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Output values in the log file

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 8, 2024, 22:49
Default Output values in the log file
  #1
New Member
 
harshavardhan
Join Date: Nov 2017
Posts: 24
Rep Power: 9
harsha002 is on a distinguished road
Hello everyone,

I am running a spray foam simulation, studying the evaporation of droplets. In the evaporation.C I added a line to output the values of parameters, unfortunately the values are not being printed in the terminal. Is there any way I can make the output values to be printed in the terminal for each iteration.

The change which I made in the Evaporation.C is

// calculate mass transfer of each specie in liquid
forAll(activeLiquids_, i)
{
const label gid = liqToCarrierMap_[i];
const label lid = liqToLiqMap_[i];

// ... code to calculate other variables ...

// Print the values of relevant variables to the log file
Info << "Values of parameters:" << endl;
Info << "Ni: " << Ni << ", d: " << d << ", dt: " << dt << ", lid: " << lid << endl;
this is the line added to output the values of the parameters used in the eqn below

// mass transfer [kg]
dMassPC[lid] += Ni * pi * sqr(d) * liquids_.properties()[lid].W() * dt;
}
harsha002 is offline   Reply With Quote

Reply

Tags
openfoam, openfoam 11


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
Custom Thermophysical Properties wsmith02 OpenFOAM 4 June 1, 2023 15:30
[OpenFOAM.org] Error creating ParaView-4.1.0 OpenFOAM 2.3.0 tlcoons OpenFOAM Installation 13 April 20, 2016 18:34
[foam-extend.org] problem when installing foam-extend-1.6 Thomas pan OpenFOAM Installation 7 September 9, 2015 22:53
Version 15 on Mac OS X gschaider OpenFOAM Installation 113 December 2, 2009 11:23
OpenFOAM on MinGW crosscompiler hosted on Linux allenzhao OpenFOAM Installation 127 January 30, 2009 20:08


All times are GMT -4. The time now is 10:20.