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

ConeNozzleInjection.C how it calculates "parcelsToInject"

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 11, 2018, 17:12
Question ConeNozzleInjection.C how it calculates "parcelsToInject"
  #1
New Member
 
Pippo
Join Date: Mar 2018
Posts: 1
Rep Power: 0
PippoSicily is on a distinguished road
Hello everyone,


I'm using the sprayFoam solver, and i need to understand how it calculates in detail the parcelsToInject at every time step.
The parcelToInject variable is calculated within ConeNozzleInjection.C (or in the equivalent file for other injection models) through the following lines:


template<class CloudType>
Foam::label Foam::ConeNozzleInjection<CloudType> parcelsToInject
(
const scalar time0,
const scalar time1
)
{
if ((time0 >= 0.0) && (time0 < duration_))
{
return floor((time1 - time0)*parcelsPerSecond_);
}
else
{
return 0;
}
}


my problem now it's that i'm not able at all to find how the codes calculates time0 and time1.
I looked for these variables throughout the whole foam folders, but they aren't calculated anywhere in a simple form such as:

time0 = ____


i don't really know how to find out how are calculated these variables.
Is anyone able to help me?


Thanks a lot,
Pippo

Last edited by PippoSicily; October 11, 2018 at 17:14. Reason: misstaping
PippoSicily is offline   Reply With Quote

Reply

Tags
conenozzleinjection.c, injectionmodel, time0, time1


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
[ANSYS Meshing] How Fluent calculates layers in First layer thickness asking ANSYS Meshing & Geometry 0 August 10, 2018 10:02
CFX calculates wrong secondary flows feizaghaee CFX 15 April 9, 2018 04:01
Simple calculates pressure Friendly OpenFOAM Running, Solving & CFD 2 November 19, 2017 18:11
how chtMultiRegionFoam calculates the convective heat transfer coefficient turbulencious OpenFOAM 9 September 9, 2013 10:02
How Fluent calculates the C_Centroid for 3D cell yiphome Fluent UDF and Scheme Programming 3 May 27, 2013 21:50


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