CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   Adding Info statement to ReactingParcel.C (https://www.cfd-online.com/Forums/openfoam/207534-adding-info-statement-reactingparcel-c.html)

neilk September 28, 2018 11:15

Adding Info statement to ReactingParcel.C
 
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);
    }

After making the change it complies just fine but it does not print out the statement while I run the code. The case runs just fine with proper particle injection and diameter reduction (due to phase change). Is there anyway to improve to solve this problem?

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

Tobi October 2, 2018 01:01

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.


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