|
[Sponsors] |
September 28, 2018, 12:15 |
Adding Info statement to ReactingParcel.C
|
#1 |
New Member
Nilay Kulkarni
Join Date: May 2018
Posts: 24
Rep Power: 8 |
Hello,
I am trying to run a reactingParcelFoam case but I want to note when the code goes through the diameter reduction statements. I have placed an Info statement in reactingParcel.C like this: Code:
// Update particle density or diameter if (td.cloud().constProps().constantVolume()) { this->rho_ = mass1/this->volume(); } else { Info<< "\nDiameter reduction" << endl; this->d_ = cbrt(mass1/this->rho_*6.0/pi); } Also, I was trying to change the equation for diameter reduction there. Again the code complies fine but I don't see the diameter changing accordingly. Could someone please help me out with this problem? Thank you Nilay Modified by Tobi: Added code tags Last edited by Tobi; October 2, 2018 at 02:02. |
|
October 2, 2018, 02:01 |
|
#2 |
Super Moderator
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 52 |
Hi,
if the message is not displayed during the run of your application, it is simply based on the fact, that you are not going through this piece of code. PS: Code-Tags in posts are highly recommended.
__________________
Keep foaming, Tobias Holzmann |
|
Tags |
phase change, reactingparcelfoam |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
conjugateHeatFoam + interFoam | farhagim | OpenFOAM Programming & Development | 15 | July 19, 2016 08:55 |
[Gmsh] 3D coil mesh: can't create the volume? | RomainBou | OpenFOAM Meshing & Mesh Conversion | 3 | July 18, 2016 06:09 |
chtMultiRegionSimpleFoam | samiam1000 | OpenFOAM Running, Solving & CFD | 39 | March 31, 2016 09:43 |
Lack of Info statement blocks the code | Phicau | OpenFOAM Programming & Development | 1 | June 1, 2015 06:51 |
OpenFOAM with Cygwin | kitchener | OpenFOAM Installation | 6 | April 25, 2006 00:09 |