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

ConeNozzleInjection.C how it calculates "parcelsToInject"

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

LinkBack Thread Tools Search this Thread Display Modes
Old   October 11, 2018, 16:12
Question ConeNozzleInjection.C how it calculates "parcelsToInject"
New Member
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_);
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,

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


conenozzleinjection.c, injectionmodel, time0, time1

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 On
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 09:02
CFX calculates wrong secondary flows feizaghaee CFX 15 April 9, 2018 03:01
Simple calculates pressure Friendly OpenFOAM Running, Solving & CFD 2 November 19, 2017 17:11
how chtMultiRegionFoam calculates the convective heat transfer coefficient turbulencious OpenFOAM 9 September 9, 2013 09:02
How Fluent calculates the C_Centroid for 3D cell yiphome Fluent UDF and Scheme Programming 3 May 27, 2013 20:50

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