Lookup table/particle injection
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. |
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.
|
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? |
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. |
If you're trying to inject it though a boundary condition try developing your own boundary condition, sometimes it's much faster.
|
4 Attachment(s)
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! |
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 |
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 |
How did you compile your new injectionModel?
Kind regards Chrisi |
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 |
Dear Ali,
Have you solved your problem? I am facing the exactly same problem as yours. Thanks Jasper |
Hi, please find my PhD thesis for more details
|
Quote:
Hi Ali, where can we find your thesis? Thanks |
|
All times are GMT -4. The time now is 04:12. |