CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Programming & Development

Lookup table/particle injection

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   May 16, 2016, 11:18
Default Lookup table/particle injection
  #1
Member
 
Ali
Join Date: Oct 2013
Location: Scotland
Posts: 60
Rep Power: 5
ali.m.1 is on a distinguished road
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.
ali.m.1 is offline   Reply With Quote

Old   May 16, 2016, 14:32
Default
  #2
Senior Member
 
Mahdi Hosseinali
Join Date: Apr 2009
Location: NB, Canada
Posts: 271
Rep Power: 11
anishtain4 is on a distinguished road
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.
anishtain4 is offline   Reply With Quote

Old   May 17, 2016, 07:05
Default
  #3
Member
 
Ali
Join Date: Oct 2013
Location: Scotland
Posts: 60
Rep Power: 5
ali.m.1 is on a distinguished road
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?
ali.m.1 is offline   Reply With Quote

Old   May 23, 2016, 08:14
Default
  #4
Member
 
Ali
Join Date: Oct 2013
Location: Scotland
Posts: 60
Rep Power: 5
ali.m.1 is on a distinguished road
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.
ali.m.1 is offline   Reply With Quote

Old   May 25, 2016, 11:07
Default
  #5
Senior Member
 
Mahdi Hosseinali
Join Date: Apr 2009
Location: NB, Canada
Posts: 271
Rep Power: 11
anishtain4 is on a distinguished road
If you're trying to inject it though a boundary condition try developing your own boundary condition, sometimes it's much faster.
anishtain4 is offline   Reply With Quote

Old   May 25, 2016, 15:55
Default
  #6
Member
 
Ali
Join Date: Oct 2013
Location: Scotland
Posts: 60
Rep Power: 5
ali.m.1 is on a distinguished road
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!
Attached Files
File Type: c InjectionModel.C (18.2 KB, 4 views)
File Type: c KinematicLookupTableInjection.C (6.9 KB, 5 views)
File Type: h kinematicParcelInjectionData.H (5.4 KB, 4 views)
File Type: c kinematicParcelInjectionDataIO.C (2.6 KB, 4 views)
ali.m.1 is offline   Reply With Quote

Old   November 23, 2016, 17:58
Default
  #7
New Member
 
Michael
Join Date: Jul 2011
Posts: 1
Rep Power: 0
turbobluestreak is on a distinguished road
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
turbobluestreak is offline   Reply With Quote

Old   November 24, 2016, 10:08
Default
  #8
Member
 
Ali
Join Date: Oct 2013
Location: Scotland
Posts: 60
Rep Power: 5
ali.m.1 is on a distinguished road
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
ali.m.1 is offline   Reply With Quote

Old   November 24, 2016, 15:07
Default
  #9
Senior Member
 
Join Date: Jan 2010
Location: Stuttgart
Posts: 148
Rep Power: 9
Chrisi1984 is on a distinguished road
How did you compile your new injectionModel?

Kind regards
Chrisi
Chrisi1984 is offline   Reply With Quote

Old   November 25, 2016, 06:19
Default
  #10
Member
 
Ali
Join Date: Oct 2013
Location: Scotland
Posts: 60
Rep Power: 5
ali.m.1 is on a distinguished road
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
ali.m.1 is offline   Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
DPMFoam - Serious Error --particle-laden flow in simple geometric config benz25 OpenFOAM Running, Solving & CFD 26 July 21, 2016 11:44
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 12:59
using injection file and parallel process Cindy Jones FLUENT 0 January 23, 2003 13:40


All times are GMT -4. The time now is 10:37.