|
[Sponsors] |
May 16, 2016, 11:18 |
Lookup table/particle injection
|
#1 |
Member
Ali
Join Date: Oct 2013
Location: Scotland
Posts: 66
Rep Power: 12 |
Hi All
I have a made a kinematicCloudLookupTable which refreshes each timestep. My problem is that the solver does not look at the lookupTable each time step, but rather just takes the first value. Does anyone know how I can force the solver to re-look up the values each time step? The .C files concerned are either InjectionModel.C, or KinematicLookupTableInjetcion.C. I have tried to include some sort of loop in these, (like in the main solver- with pimpleLoop) but with no sucess. Any help would be appreciated. I've been stuck on this for a week now. |
|
May 16, 2016, 14:32 |
|
#2 |
Senior Member
Mahdi Hosseinali
Join Date: Apr 2009
Location: NB, Canada
Posts: 273
Rep Power: 18 |
I haven't done something like that, but I know if the dictionary file's last modified time changes they will be read again. As a workaround you might try resaving dictionaries at each time step and OF will reads it automatically.
|
|
May 17, 2016, 07:05 |
|
#3 |
Member
Ali
Join Date: Oct 2013
Location: Scotland
Posts: 66
Rep Power: 12 |
Hi
The dictionary (constant/kinematicLookupTableInjection) does update every timestep, but the solver does not read this file every time step. It just reads it when you initialise the solver. I need to force the injection method to read this dictionary every timestep. Any ideas? |
|
May 23, 2016, 08:14 |
|
#4 |
Member
Ali
Join Date: Oct 2013
Location: Scotland
Posts: 66
Rep Power: 12 |
I've also tried defining the variable in createFields.H. Although this was refreshing each timestep, the injection wasn't updating.
I'll update if I manage to solve the problem. |
|
May 25, 2016, 11:07 |
|
#5 |
Senior Member
Mahdi Hosseinali
Join Date: Apr 2009
Location: NB, Canada
Posts: 273
Rep Power: 18 |
If you're trying to inject it though a boundary condition try developing your own boundary condition, sometimes it's much faster.
|
|
May 25, 2016, 15:55 |
|
#6 |
Member
Ali
Join Date: Oct 2013
Location: Scotland
Posts: 66
Rep Power: 12 |
Hi
There already is an injection model which does almost what I want it to, so I would rather just edit this so that it reads every timestep (or when I tell it to at least). I've attached 4 of the files which I have changed (I've changed more too, but these should give a good idea. I have added a column to the dataIO.C file, which is called 'numParticles'. In the lookupTable.C file, I have edited the variable on line 155 'parcelsToInject'. So just to state my problem again, the injection model only looks at the table to initialise, whereas I want it to look up every timestep or so. Any help welcome! |
|
November 23, 2016, 16:58 |
|
#7 |
New Member
Michael
Join Date: Jul 2011
Posts: 1
Rep Power: 0 |
Where you ever able to solve this problem? I'm trying to do a similar injection into one of my own codes and was looking for advise.
tbs |
|
November 24, 2016, 09:08 |
|
#8 |
Member
Ali
Join Date: Oct 2013
Location: Scotland
Posts: 66
Rep Power: 12 |
Hi
No I haven't. The same problem still exists: the lookupTable is written every time step, but only read once, before the solver actually starts. Does anyone have any ideas? Ali |
|
November 24, 2016, 14:07 |
|
#9 |
Senior Member
Join Date: Jan 2010
Location: Stuttgart
Posts: 150
Rep Power: 16 |
How did you compile your new injectionModel?
Kind regards Chrisi |
|
November 25, 2016, 05:19 |
|
#10 |
Member
Ali
Join Date: Oct 2013
Location: Scotland
Posts: 66
Rep Power: 12 |
Hi Chrisi
I just edited the current 'kinematicLiookupTableInjection' injection model from OpenFOAM. I added a new column to it, and write a new table every time step using OF stream. Ali |
|
December 26, 2022, 14:46 |
|
#11 |
Member
Huan Zhang
Join Date: Nov 2020
Posts: 55
Rep Power: 5 |
Dear Ali,
Have you solved your problem? I am facing the exactly same problem as yours. Thanks Jasper |
|
December 26, 2022, 17:30 |
|
#12 |
Member
Ali
Join Date: Oct 2013
Location: Scotland
Posts: 66
Rep Power: 12 |
Hi, please find my PhD thesis for more details
|
|
January 5, 2024, 03:49 |
|
#13 |
Member
Marķa Rosales
Join Date: Mar 2023
Location: Spain
Posts: 35
Rep Power: 3 |
||
January 5, 2024, 04:13 |
|
#14 |
Member
Ali
Join Date: Oct 2013
Location: Scotland
Posts: 66
Rep Power: 12 |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
DPMFoam - Serious Error --particle-laden flow in simple geometric config | benz25 | OpenFOAM Running, Solving & CFD | 27 | December 19, 2017 20:47 |
injection problem | Mark New | FLUENT | 0 | August 4, 2013 01:30 |
jou file command for the injection! | asal | FLUENT | 0 | June 4, 2013 04:15 |
Convergence on anisotropic tetahedral meshes | pbo | OpenFOAM Running, Solving & CFD | 12 | December 14, 2010 11:59 |
using injection file and parallel process | Cindy Jones | FLUENT | 0 | January 23, 2003 12:40 |