|
[Sponsors] |
April 1, 2020, 17:32 |
ERRORmessage of InjectionModel in DPMFoam
|
#1 |
Member
Sereff
Join Date: Jan 2019
Posts: 49
Rep Power: 7 |
Hi everyone,
I am trying to implement patchFlowRateInjection for a DPM simulation on a boundary flow and I would like to inject some particles ramdomly into the domain. However there is really not a whole lot on how to setup the injectionModel{} in the kinematicProperties dictionary other than the source files. I have modified the kinematicProperties dictionary from the tutorial case but its giving the follwoing ERROR message. Code:
T--> FOAM FATAL ERROR: request for surfaceScalarField phi from objectRegistry region0 failed available objects of type surfaceScalarField are 3(phi.air alphaPhi.air alphacf) Does anyone have idea on how to solve this issue? Following is my the injectionModels{} part of the kinematicProperties dictionary file. Code:
injectionModels { model1 { type patchFlowRateInjection; patch inlet; SOI 0; duration 0.5; massTotal 0.1; // total mass to be injected (kg) parcelBasisType fixed; // options of representing particles.(fixed, number, mass) parcelsPerSecond 10; nParticle 10; // number of particles to be injected concentration 0.6; // parcel concentration in fluid ??? parcelConcentration 10; //positionsFile "kinematicCloudPositions"; //U0 (0 0 0); sizeDistribution { type fixedValue; fixedValueDistribution { value 0.0025; } } } } |
|
April 2, 2020, 01:41 |
|
#2 |
Senior Member
Yogesh Bapat
Join Date: Oct 2010
Posts: 102
Rep Power: 16 |
The injection is looking for default flux field phi as no flux field is provided. Check if injection provides options to specify flux field name then you can specify flux field name as phi.air.
|
|
April 2, 2020, 04:53 |
|
#3 |
Member
Sereff
Join Date: Jan 2019
Posts: 49
Rep Power: 7 |
Hi ybapat,
Yes, i tried your advise and included phi option in injectionModels{} and it fixed the problem. Apparently having phi.air in /0 folder is not enough and the user has to specify it in the injectionModels{} as well. For those who are having similar issues on patchFlowRateInjection, I have the following injectionModels options to make it run, with U.continuousPhaseName, phi.continuousPhaseName, p, k.continuousPhaseName and nut.continuousPhaseName (LES kEqn model) in /0 folder, Code:
injectionModels { model1 { type patchFlowRateInjection; patch inlet; SOI 0; duration 0.5; massTotal 0.1; // total mass to be injected (kg) parcelBasisType fixed; // options of representing particles.(fixed, number, mass) parcelsPerSecond 10; nParticle 10; // number of particles to be injected concentration 0.6; // parcel concentration in fluid ??? parcelConcentration 10; phi phi.air; sizeDistribution { type fixedValue; fixedValueDistribution { value 0.0025; } } } } Last edited by Sereff; April 2, 2020 at 11:28. |
|
May 21, 2021, 06:18 |
|
#4 |
Senior Member
Join Date: Jun 2020
Posts: 100
Rep Power: 6 |
Hey Sereff
I wanted to use the patchFlowRateInjection model for my case. I tried to set up the parameters for it but I am not able to get particles injected. I guess, I don't provide correct inputs as I really don't understand the meaning of certain keyword, especially the keyword "concentration" and parcelConcentration", can you please help me to understand the injection model? Best Regards Atul |
|
June 16, 2021, 10:08 |
|
#5 |
Member
Sereff
Join Date: Jan 2019
Posts: 49
Rep Power: 7 |
Hi atul1018,
Sorry for the late reply. It has been a while since I last worked on DPMFoam and particle injuction model. Did you try the setup I provided in the thread, with different parameters of course? Also, may I see your setup file for injection model? To answer your question, as far as I remember, Code:
concentration > controls the distribution of parcel injection rate over a period of time. > So by setting it up to 1.0 means that the injection rate is uniform over > the injection period. Code:
parcelConcentration > is based on local volumetric flow rate. And this is what actually controls > how much/fast parcels are injected. kind regards, |
|
June 17, 2021, 12:32 |
|
#6 |
Senior Member
Join Date: Jun 2020
Posts: 100
Rep Power: 6 |
Hello
here you can find the settings I provide for my patchFlowRateInjection model: Code:
injectionModels { model1 { type patchFlowRateInjection; phi alphaPhi.air; patch inlet; duration 1; massTotal 5.257e-3; //won't be considered as parcelBasisType is fixed parcelBasisType fixed; nParticle 1; //in each parcel there will be only one particle SOI 0; concentration 1; parcelConcentration 77515609; sizeDistribution { type normal; normalDistribution { expectation 6.82e-5; variance 1.09e-5; minValue 3.55e-5; maxValue 10.09e-5; } } } } I looked into the source code of the model and I also thing the concentration keyword determines temporal variation of particle injection and setting it to 1 means the injection rate won't change over time. So the parcelConcentration is the term which one needs to calculate for this model, which in number of particles (or parcels) in 1 m3 of fluid flow in 1 sec. Best Regards Atul |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Adding heat generation and transfer to DPMFoam inc. buoyancy of fluid | dussa | OpenFOAM Programming & Development | 4 | July 8, 2022 13:35 |
DESHybrid with DPMFoam / DPMDyMFoam | jairoandres | OpenFOAM Running, Solving & CFD | 2 | February 28, 2020 19:15 |
Mass loading - InjectionModel DPMFoam | scrubber | OpenFOAM Running, Solving & CFD | 0 | November 14, 2018 10:28 |
particle time-step in DPMFoam | Shuai_W | OpenFOAM Running, Solving & CFD | 11 | May 24, 2018 12:49 |
DPMFoam and splitting bouncing parcels | HenrikJohansson | OpenFOAM Programming & Development | 3 | April 10, 2018 10:40 |