|
[Sponsors] |
May 8, 2024, 22:49 |
Output values in the log file
|
#1 |
New Member
harshavardhan
Join Date: Nov 2017
Posts: 24
Rep Power: 9 |
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; } |
|
Tags |
openfoam, openfoam 11 |
|
|
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 |