CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Community Contributions

[swak4Foam] Lagrangian simulation

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 30, 2014, 18:08
Default Lagrangian simulation
  #1
Member
 
Clint Bedick
Join Date: May 2011
Posts: 43
Rep Power: 15
ecbmxer is on a distinguished road
Guys, had a quick question about swak4Foam. Got it installed and working very well for specifying inlet velocity profiles, etc.

Is there any way I can use the swak4Foam utilities to specify an initial particle velocity profile (U0 in the Lagrangian cloud properties file) similar to how I use it to specify my gas phase velocity boundary condition? Ideally, I would like to set the initial particle velocity to a value that is a function of the gas velocity at that boundary and particle diameter.

If anybody has any ideas other than swak4Foam, let me know as well.

Thanks!

-Clint
ecbmxer is offline   Reply With Quote

Old   July 2, 2014, 19:25
Default
  #2
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by ecbmxer View Post
Guys, had a quick question about swak4Foam. Got it installed and working very well for specifying inlet velocity profiles, etc.

Is there any way I can use the swak4Foam utilities to specify an initial particle velocity profile (U0 in the Lagrangian cloud properties file) similar to how I use it to specify my gas phase velocity boundary condition? Ideally, I would like to set the initial particle velocity to a value that is a function of the gas velocity at that boundary and particle diameter.

If anybody has any ideas other than swak4Foam, let me know as well.

Thanks!

-Clint
Yep. funkySetLagrangianField. See the example case Examples/Lagrangian/parser/simplifiedSiwek (Presentation about it at http://openfoamwiki.net/staticPages/...K_again.html#/ )

This is currently a bit painful as ALL relevant fields have to be created that way.
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   July 3, 2014, 09:30
Default
  #3
Member
 
Clint Bedick
Join Date: May 2011
Posts: 43
Rep Power: 15
ecbmxer is on a distinguished road
Thank you for the response! I will look into the funkySetLagrangianField. Is that compatible with the native OpenFOAM cloud functions for Lagrangian simulations? I thought I recall reading that you can add Lagrangian particles to any simulation using swak4foam.

Either way, I found a work around for my problem. The main thing I wanted was the particles to be injected through a patch at the patch gas velocity (which I specify as a parabolic profile). But that is tough to do normally since you don't know where a given particle will be injected each time.

There is another injection model called patchFlowRateInjection though, which does just that. The only downside is you have to specify the injection rate in terms of a "concentration" (concentration profile of particle volume to carrier volume, non-dimensional) and "parcelConcentration" (parcels to introduce per volume flow rate, n/m3). I just kind of played with the values until I got a reasonable number of particles to inject. It would be tough to actually calculate exact injection rates since I am also using a size distribution and I don't know what size particle will be injected each time.
ecbmxer is offline   Reply With Quote

Old   July 3, 2014, 17:11
Default
  #4
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by ecbmxer View Post
Thank you for the response! I will look into the funkySetLagrangianField. Is that compatible with the native OpenFOAM cloud functions for Lagrangian simulations? I thought I recall reading that you can add Lagrangian particles to any simulation using swak4foam.

Either way, I found a work around for my problem. The main thing I wanted was the particles to be injected through a patch at the patch gas velocity (which I specify as a parabolic profile). But that is tough to do normally since you don't know where a given particle will be injected each time.

There is another injection model called patchFlowRateInjection though, which does just that. The only downside is you have to specify the injection rate in terms of a "concentration" (concentration profile of particle volume to carrier volume, non-dimensional) and "parcelConcentration" (parcels to introduce per volume flow rate, n/m3). I just kind of played with the values until I got a reasonable number of particles to inject. It would be tough to actually calculate exact injection rates since I am also using a size distribution and I don't know what size particle will be injected each time.
funkySetLagrangianField works with all kinds of clouds but I'm afraid in your case it won't help you much (it's good for "pretending" that a cloud is already there). What you'd need is a groovyInjector. There is no such thing. Thought about it but programming that would be weird for various reasons. Sorry
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   July 3, 2014, 17:25
Default
  #5
Member
 
Clint Bedick
Join Date: May 2011
Posts: 43
Rep Power: 15
ecbmxer is on a distinguished road
No problem! Like I said, using that other injection model I was able to accomplish what I wanted, to inject particles at the gas velocity for each injection location.
ecbmxer is offline   Reply With Quote

Old   July 21, 2014, 04:47
Default
  #6
Senior Member
 
sfigato's Avatar
 
Marco Longhitano
Join Date: Jan 2013
Location: Aachen
Posts: 103
Rep Power: 13
sfigato is on a distinguished road
Send a message via Skype™ to sfigato
Hi Foamers,

I am really interested to understand in deepen the patchInjection. My goal is to model an injector that gives a fixed flow rate of particles through a patch. In my case it is 0.02 percentage of the total fluid volume at the inlet. The dispersed phase as fixed diameter distribution. I am using icoUncoupledKInematikParcelFoam in OpenFoam 2.3.0.

- I did not understand what exactly is "parcelPerSecond". How can I calculate it and which is the relation with the number of particles?

- What is particleBasisType?

- What is the duration parameter? How can I set it ?

- What is the flowRateProfile and what does it mean in my simulation?

The simulation should reach a "steady state" and the flow rate of the dispearsed phase injected should constant.

I appreciate any help
Thanks in advance

Marco
sfigato is offline   Reply With Quote

Old   July 22, 2014, 18:20
Default
  #7
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by sfigato View Post
Hi Foamers,

I am really interested to understand in deepen the patchInjection. My goal is to model an injector that gives a fixed flow rate of particles through a patch. In my case it is 0.02 percentage of the total fluid volume at the inlet. The dispersed phase as fixed diameter distribution. I am using icoUncoupledKInematikParcelFoam in OpenFoam 2.3.0.

- I did not understand what exactly is "parcelPerSecond". How can I calculate it and which is the relation with the number of particles?

- What is particleBasisType?

- What is the duration parameter? How can I set it ?

- What is the flowRateProfile and what does it mean in my simulation?

The simulation should reach a "steady state" and the flow rate of the dispearsed phase injected should constant.

I appreciate any help
Thanks in advance

Marco
Spamming the same question in multiple threads doesn't raise the likelyhood of an answer. Especially if the question doesn't fit the thread at all (as it is the case here)
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   July 23, 2014, 02:19
Default
  #8
Senior Member
 
sfigato's Avatar
 
Marco Longhitano
Join Date: Jan 2013
Location: Aachen
Posts: 103
Rep Power: 13
sfigato is on a distinguished road
Send a message via Skype™ to sfigato
I do not think that the question does not fit the thread and I do not think that it is "spamming".
Nevertheless, I trust to an "Assistant Moderator" opinion and I will remove the post.

Regards
Marco
sfigato is offline   Reply With Quote

Old   July 23, 2014, 17:29
Default
  #9
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by sfigato View Post
I do not think that the question does not fit the thread and I do not think that it is "spamming".
Nevertheless, I trust to an "Assistant Moderator" opinion and I will remove the post.

Regards
Marco
With "spamming" I meant: posting the same question in multiple threads (if I counted correctly 4 in the case of this question) just because the title is somewhat related to your question.

And the topic of this thread WAS very specific. Even if someone would answer your question here somebody later looking for keywords related to you question would say when looking at the search results "No. This thread is about swak&lagrangian not about the general lagrangian models. Won't look at it". It would be like putting a sheet of paper with your favourite Chilli-con-carne recipe into a vegetarian cookbook: you'll never find it there 3 years later because you're not going to look for it there.
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Reply


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
Control simulation to apply different fields with chtMultiRegionFoam jmdf OpenFOAM Running, Solving & CFD 0 February 29, 2016 08:05
restarting paused transient simulation using reactingFoam JMDag2004 OpenFOAM Running, Solving & CFD 1 August 10, 2015 11:15
Particle Size in Lagrangian multiphase simulation jhlee9622 STAR-CCM+ 2 July 20, 2015 23:15
about Lagrangian Multiphase Simulation jhlee9622 STAR-CCM+ 0 March 18, 2015 02:38
How to force coalescence in Lagrangian simulation Vinny Siemens 0 December 19, 2007 06:34


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