CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Running, Solving & CFD

Change Flow Properties in region

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

Reply
 
LinkBack Thread Tools Display Modes
Old   January 17, 2012, 11:31
Default Change Flow Properties in region
  #1
Member
 
Kevin Hoopes
Join Date: Oct 2010
Posts: 40
Rep Power: 7
khoopes is on a distinguished road
I am not verry familiar with OpenFOAM, but would like to learn more about it. This is just a question to point me in the right direction. I am doing some modeling of Plasma Flow control and will be modeling it as volumetric energy addition. Is there something in OpenFoam that I could use to add energy to a specified volume at specified times in the simulation? In FLUENT, I would use a UDF to accomplish this (I think) what would I look into to do it via OpenFOAM?

Thanks,

Kevin
khoopes is offline   Reply With Quote

Old   January 18, 2012, 04:58
Default
  #2
Senior Member
 
Christian Lucas
Join Date: Aug 2009
Location: Braunschweig, Germany
Posts: 198
Rep Power: 7
Chris Lucas is on a distinguished road
Hi,

I'm not sure if you need the time dependent energy addition at a BC or in the flow field (a few more information would be helpful).

In case of the BC, have a look at funkySetField and at the BC classes in OpenFoam. This should at least give you a clue how to implement the needed function yourself

If your need it in the flow field, I guess you can add a term in the energy equation that does the trick.

Best Regards,
Christian
Chris Lucas is offline   Reply With Quote

Old   January 18, 2012, 17:46
Default
  #3
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,912
Rep Power: 40
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by khoopes View Post
I am not verry familiar with OpenFOAM, but would like to learn more about it. This is just a question to point me in the right direction. I am doing some modeling of Plasma Flow control and will be modeling it as volumetric energy addition. Is there something in OpenFoam that I could use to add energy to a specified volume at specified times in the simulation? In FLUENT, I would use a UDF to accomplish this (I think) what would I look into to do it via OpenFOAM?

Thanks,

Kevin
As you've got access to the whole sources in OpenFOAM you don't need UDFs for such things. You take an existing solver and adapt it to your needs. For the thing you want (a volumetric source term) this is quite easy: just write the additional term into the differential equation (OK. you've got to do some additional stuff like creating fields). If you're still experimenting how the source-term looks like you can use expressionSource from the swak4Foam-package (search the Forum for expressionSource: you'll find a recipe how to include it in an existing solver)
gschaider is offline   Reply With Quote

Old   January 20, 2012, 15:04
Default
  #4
Member
 
Kevin Hoopes
Join Date: Oct 2010
Posts: 40
Rep Power: 7
khoopes is on a distinguished road
Thanks for the feedback, I think OpenFOAM is what I want to use for this project. I have been setting up my system so that I can recompile parts of OpenFOAM that I edit. I did some experimentation and edited laplacianFoam to include a uniform heat source and it seems to work well. I followed another post of the forum. From what I understand I can use funkysetfeilds to get the shape of the source right, but how can I pulse the source in time? I will admit, I havent looked much into any of the set fields things, but I am just trying to think in advance.

Thanks,

Kevin
khoopes is offline   Reply With Quote

Old   January 20, 2012, 16:19
Default
  #5
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,912
Rep Power: 40
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by khoopes View Post
Thanks for the feedback, I think OpenFOAM is what I want to use for this project. I have been setting up my system so that I can recompile parts of OpenFOAM that I edit. I did some experimentation and edited laplacianFoam to include a uniform heat source and it seems to work well. I followed another post of the forum. From what I understand I can use funkysetfeilds to get the shape of the source right, but how can I pulse the source in time? I will admit, I havent looked much into any of the set fields things, but I am just trying to think in advance.

Thanks,

Kevin
Concerning your question about a transient source term: One possible answer is in my previous post: expressionSource from swak4Foam
gschaider 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
problem with Min/max rho tH3f0rC3 OpenFOAM 7 February 23, 2013 06:37
Modelling Supersonic TwoPhase Flow with Phase Change wes OpenFOAM Running, Solving & CFD 6 August 12, 2009 08:13
larminar flow doesn't change into turbulent flow dh Main CFD Forum 4 September 26, 2008 01:29
how to change the material properties Marco CFX 7 September 22, 2005 18:53
Inviscid Drag at subsonic, subcritical Mach # Axel Rohde Main CFD Forum 1 November 19, 2001 13:19


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