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

time-varying internalField

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

Reply
 
LinkBack Thread Tools Display Modes
Old   February 8, 2013, 03:50
Default time-varying internalField
  #1
Member
 
Klio
Join Date: Mar 2012
Location: Austria
Posts: 45
Rep Power: 5
klio is on a distinguished road
Hello!

I edited the chtMultiRegionFoam Solver so that it is possible to add a volumetric heat source to a region!

Now I want to implement a circuit where the heat source is switched on and off.
The problem is that the heat source entry has to be changed in the internalField because it is volumetric -> If i change the BC with timeVaryingMappedFixedValue of course it has no effects on the simulation !

Does anyone know how to fix that Problem?

Thanks! Klio
klio is offline   Reply With Quote

Old   February 9, 2013, 19:02
Default
  #2
Senior Member
 
Hisham's Avatar
 
Hisham El Safti
Join Date: Apr 2011
Location: Braunschweig, Germany
Posts: 247
Blog Entries: 10
Rep Power: 8
Hisham is on a distinguished road
Quote:
Originally Posted by klio View Post
Hello!

I edited the chtMultiRegionFoam Solver so that it is possible to add a volumetric heat source to a region!

Now I want to implement a circuit where the heat source is switched on and off.
The problem is that the heat source entry has to be changed in the internalField because it is volumetric -> If i change the BC with timeVaryingMappedFixedValue of course it has no effects on the simulation !

Does anyone know how to fix that Problem?

Thanks! Klio
Hello Klio

If I understood correctly, a single scalar can be multiplied by the source term. This scalar can be your switch: 1 = lights on, 0 = lights off.

You can even make it a volScalarField and turn it on in some cells and off for others.

Hisham
Hisham is offline   Reply With Quote

Old   February 19, 2013, 04:32
Default
  #3
Member
 
Klio
Join Date: Mar 2012
Location: Austria
Posts: 45
Rep Power: 5
klio is on a distinguished road
oh! ok that sounds very simple! Thank you!

how can i implement the switch? is it possible to code it in the controlDict?
klio is offline   Reply With Quote

Old   February 19, 2013, 09:04
Default
  #4
Senior Member
 
Hisham's Avatar
 
Hisham El Safti
Join Date: Apr 2011
Location: Braunschweig, Germany
Posts: 247
Blog Entries: 10
Rep Power: 8
Hisham is on a distinguished road
Quote:
Originally Posted by klio View Post
oh! ok that sounds very simple! Thank you!

how can i implement the switch? is it possible to code it in the controlDict?
Sounds simple but to implement it you need to read the manual (chapter 3 in particular). Other tutorials on programming with OpenFOAM should also be helpful.

However, you need to slightly modify the code not an input for that in (e.g. controlDict) or so.


Hisham
Hisham is offline   Reply With Quote

Old   February 19, 2013, 23:17
Default
  #5
Member
 
Ivor Clifford
Join Date: Mar 2009
Location: Switzerland
Posts: 91
Rep Power: 8
cliffoi is on a distinguished road
Hi Kilo,
My suggestion would be to use the expressionField or manipulateField functionObject in the swak4foam library.
http://openfoamwiki.net/index.php/Contrib/swak4Foam

Hope this helps
Ivor
cliffoi is offline   Reply With Quote

Old   April 12, 2013, 06:10
Default
  #6
Member
 
Marcus Letzel
Join Date: Sep 2012
Location: Aurich
Posts: 35
Rep Power: 4
letzel is on a distinguished road
Hi Kilo,

have you been successful with your solver? I would much appreciate if you could post your modified source code along with an example case that shows how to set up a time-dependent volumetric heat source.

Best regards,
Marcus
letzel 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
AMI speed performance danny123 OpenFOAM 19 October 24, 2012 07:44
Problem with FloatingObject Leech OpenFOAM Running, Solving & CFD 10 March 29, 2012 15:24
Extrusion with OpenFoam problem No. Iterations 0 Lord Kelvin OpenFOAM 6 April 12, 2011 11:24
time varying boundary condition cfd-student CFX 0 April 15, 2008 08:31
Modeling in micron scale using icoFoam m9819348 OpenFOAM Running, Solving & CFD 7 October 27, 2007 00:36


All times are GMT -4. The time now is 22:20.