View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0003108 | OpenFOAM | Bug | public | 2018-11-13 14:54 | 2018-11-14 10:21 |
Reporter | shildenbrand | Assigned To | will | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | no change required | ||
Platform | HP Workstation Z640 | OS | Debian | OS Version | 9.5 |
Product Version | dev | ||||
Summary | 0003108: New combined cone nozzle injection does not work as specified | ||||
Description | We 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". | ||||
Tags | No tags attached. | ||||
|
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? |
|
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. |
|
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. |
|
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. |
|
Ok. Never used substitions in the nozzle context so far. I can change names easily, please close this report. |
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 |