CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM

Adding Info statement to ReactingParcel.C

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Search this Thread Display Modes
Old   September 28, 2018, 11:15
Default Adding Info statement to ReactingParcel.C
New Member
Nilay Kulkarni
Join Date: May 2018
Posts: 24
Rep Power: 6
neilk is on a distinguished road

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:

     // Update particle density or diameter
    if (
        this->rho_ = mass1/this->volume();
        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


Modified by Tobi: Added code tags

Last edited by Tobi; October 2, 2018 at 01:02.
neilk is offline   Reply With Quote

Old   October 2, 2018, 01:01
Super Moderator
Tobi's Avatar
Tobias Holzmann
Join Date: Oct 2010
Location: Tussenhausen
Posts: 2,657
Blog Entries: 6
Rep Power: 48
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

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
Tobi is offline   Reply With Quote


phase change, reactingparcelfoam

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
conjugateHeatFoam + interFoam farhagim OpenFOAM Programming & Development 15 July 19, 2016 07:55
[Gmsh] 3D coil mesh: can't create the volume? RomainBou OpenFOAM Meshing & Mesh Conversion 3 July 18, 2016 05:09
chtMultiRegionSimpleFoam samiam1000 OpenFOAM Running, Solving & CFD 39 March 31, 2016 08:43
Lack of Info statement blocks the code Phicau OpenFOAM Programming & Development 1 June 1, 2015 05:51
OpenFOAM with Cygwin kitchener OpenFOAM Installation 6 April 24, 2006 23:09

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