|
[Sponsors] |
ConeNozzleInjection.C how it calculates "parcelsToInject" |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
October 11, 2018, 17:12 |
ConeNozzleInjection.C how it calculates "parcelsToInject"
|
#1 |
New Member
Pippo
Join Date: Mar 2018
Posts: 1
Rep Power: 0 |
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 |
|
Tags |
conenozzleinjection.c, injectionmodel, time0, time1 |
|
|
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 |