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

Lookup table/particle injection

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

Like Tree1Likes
  • 1 Post By ali.m.1

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 16, 2016, 12:18
Default Lookup table/particle injection
  #1
Member
 
Ali
Join Date: Oct 2013
Location: Scotland
Posts: 66
Rep Power: 12
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, 15:32
Default
  #2
Senior Member
 
Mahdi Hosseinali
Join Date: Apr 2009
Location: NB, Canada
Posts: 273
Rep Power: 17
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, 08:05
Default
  #3
Member
 
Ali
Join Date: Oct 2013
Location: Scotland
Posts: 66
Rep Power: 12
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, 09:14
Default
  #4
Member
 
Ali
Join Date: Oct 2013
Location: Scotland
Posts: 66
Rep Power: 12
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, 12:07
Default
  #5
Senior Member
 
Mahdi Hosseinali
Join Date: Apr 2009
Location: NB, Canada
Posts: 273
Rep Power: 17
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, 16:55
Default
  #6
Member
 
Ali
Join Date: Oct 2013
Location: Scotland
Posts: 66
Rep Power: 12
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, 20 views)
File Type: c KinematicLookupTableInjection.C (6.9 KB, 29 views)
File Type: h kinematicParcelInjectionData.H (5.4 KB, 14 views)
File Type: c kinematicParcelInjectionDataIO.C (2.6 KB, 12 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: 66
Rep Power: 12
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: 150
Rep Power: 16
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: 66
Rep Power: 12
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

Old   December 26, 2022, 15:46
Default
  #11
Member
 
Huan Zhang
Join Date: Nov 2020
Posts: 55
Rep Power: 5
Jasper Z is on a distinguished road
Dear Ali,

Have you solved your problem? I am facing the exactly same problem as yours.

Thanks
Jasper
Jasper Z is offline   Reply With Quote

Old   December 26, 2022, 18:30
Default
  #12
Member
 
Ali
Join Date: Oct 2013
Location: Scotland
Posts: 66
Rep Power: 12
ali.m.1 is on a distinguished road
Hi, please find my PhD thesis for more details
ali.m.1 is offline   Reply With Quote

Old   January 5, 2024, 04:49
Default
  #13
Member
 
Marķa Rosales
Join Date: Mar 2023
Location: Spain
Posts: 30
Rep Power: 3
MMRC is on a distinguished road
Quote:
Originally Posted by ali.m.1 View Post
Hi, please find my PhD thesis for more details

Hi Ali, where can we find your thesis? Thanks
MMRC is offline   Reply With Quote

Old   January 5, 2024, 05:13
Default
  #14
Member
 
Ali
Join Date: Oct 2013
Location: Scotland
Posts: 66
Rep Power: 12
ali.m.1 is on a distinguished road
https://stax.strath.ac.uk/concern/theses/sq87bt630
dlahaye likes this.
ali.m.1 is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
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 27 December 19, 2017 21:47
injection problem Mark New FLUENT 0 August 4, 2013 02:30
jou file command for the injection! asal FLUENT 0 June 4, 2013 05: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 19:52.