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

Adding Info statement to ReactingParcel.C

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 28, 2018, 12:15
Default Adding Info statement to ReactingParcel.C
  #1
New Member
 
Nilay Kulkarni
Join Date: May 2018
Posts: 24
Rep Power: 8
neilk is on a distinguished road
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

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

Old   October 2, 2018, 02:01
Default
  #2
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 52
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
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
Tobi is offline   Reply With Quote

Reply

Tags
phase change, reactingparcelfoam


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 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


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