View Issue Details

IDProjectCategoryView StatusLast Update
0003108OpenFOAMBugpublic2018-11-14 10:21
Reportershildenbrand Assigned Towill  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionno change required 
PlatformHP Workstation Z640OSDebianOS Version9.5
Product Versiondev 
Summary0003108: New combined cone nozzle injection does not work as specified
DescriptionWe used the old "coneInjection" with massive usage of "positionAxis" - our cases use nozzles with 20+ holes of one diameter which we could combine in one entry.
With the modified version of "coneInjection" this is a bit more complicated so I want to use the entry as shown in the example (https://github.com/OpenFOAM/OpenFOAM-dev/commit/06d8f79814f2ed2e8c476bbdfc47a98093a7529d):

injectionModels
    {
        model1
        {
            type coneInjection;
            SOI 0;
            duration 1;
            position (x y z);
            [...]
         }
        model2
        {
              $model1;
              position (x1 y2 z3);
              [...]
        }
}

This does not work in my case, the error message I get is : "keyword type is undefined in dictionary <file>". I assume that "$model1" does not work in this context.

Side note: In the comment it should read "position" instead of "positions" and "direction" instead of "directions".
TagsNo tags attached.

Activities

will

2018-11-13 15:45

manager   ~0010180

I cannot reproduce the problem. It works on my test case (attached), and on the hotBoxes tutorial. Could you upload a setup which fails please?

will

2018-11-13 15:51

manager   ~0010181

FYI, the reason I got rid of the multiple locations per injector is that it had some serious problems when the number of particles injected was small. The distribution between the locations was not uniform, sometimes to the point of excluding some locations entirely. It was all together simpler and more consistent to limit to one location per injector.

Also, yes, the commit message should say "position" and "direction". Apologies for that; it can't be changed now. The header documentation (and therefore the doxygen) should be correct.

shildenbrand

2018-11-14 06:30

reporter   ~0010182

It comes down to the name of the injector:
If you use a "." in the name of the injector it doesn't work -- I use these kind of names to indicate the hole diameter.

For example:

model1_0.8
{
    type coneInjection;
     [...]
}
model2
{
    $model1_0.8
}

doesn't work.

will

2018-11-14 09:46

manager   ~0010183

Last edited: 2018-11-14 09:46

That's not just a problem with the injectors. You will get that with any dictionary substitution. The "." has a specal meaning. "$a.b" gets the entry "b" from inside the dictionary "a".

You need to find a different way of writing the injector names. Comma decimal separators would work.

shildenbrand

2018-11-14 09:55

reporter   ~0010184

Ok. Never used substitions in the nozzle context so far.
I can change names easily, please close this report.

Issue History

Date Modified Username Field Change
2018-11-13 14:54 shildenbrand New Issue
2018-11-13 15:45 will File Added: coneInjectorTest.tar.gz
2018-11-13 15:45 will Note Added: 0010180
2018-11-13 15:51 will Note Added: 0010181
2018-11-14 06:30 shildenbrand Note Added: 0010182
2018-11-14 09:46 will Note Added: 0010183
2018-11-14 09:46 will Note Edited: 0010183
2018-11-14 09:55 shildenbrand Note Added: 0010184
2018-11-14 10:21 will Assigned To => will
2018-11-14 10:21 will Status new => closed
2018-11-14 10:21 will Resolution open => no change required