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

time varying heat flux boundary condtion

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

Like Tree1Likes
  • 1 Post By jherb

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 19, 2015, 12:02
Default time varying heat flux boundary condtion
  #1
New Member
 
Long
Join Date: Nov 2010
Posts: 2
Rep Power: 0
xishan555 is on a distinguished road
Hi guys,

does anyone has experiences to deal with the time-dependent heat flux boundary condition? Specially, I'm using externalWallHeatFluxTemperature now and defining a heat flux q. Everything works just fine when the heat flux is constant. However, when I try to think about time varying heat flux, I realise that I dont have to much chooses. The tutorial lists following BCs which seem are all about velocites and pressures:

  • flowRateInletVelocity: inlet condition with time-varying flow-rate.
  • oscillatingFixedValue: oscillatory fixed value condition with time-varying amplitude and frequency.
  • rotatingPressureInletOutletVelocity: total pressure condition for a rotating patch with time-varying angular velocity.
  • rotatingTotalPressure: total pressure condition for a rotating patch with time-varying angular velocity.
  • rotatingWallVelocity: velocity condition for a rotating boundary, e.g. a wheel, with time-varying angular velocity.
  • uniformFixedValue: general fixed value condition with time-varying value.
  • uniformTotalPressure: total pressure condition with time-varying pressure.


Does anyone has faced with this problem before or has the experience of implementation of such BCs?


Thanks for your advices!


Long
xishan555 is offline   Reply With Quote

Old   February 26, 2015, 09:33
Default
  #2
Senior Member
 
Joachim Herb
Join Date: Sep 2010
Posts: 650
Rep Power: 21
jherb is on a distinguished road
You have to create your own version of the externalWallHeatFluxTemperature boundary condition, following the example of the uniformValue boundary condition (https://github.com/OpenFOAM/OpenFOAM...formFixedValue). Your internal variable for the heat flux has to be be a DataEntry variable (see http://www.openfoam.org/version2.1.0...conditions.php), something like:
Code:
autoPtr<DataEntry<scalar> > qEntry_;
Then in the updateCoeffs() method of your boundary condition, you can access the time dependent value like here:
https://github.com/OpenFOAM/OpenFOAM...chField.C#L145
parthigcar likes this.
jherb 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
Micro Scale Pore, icoFoam gooya_kabir OpenFOAM Running, Solving & CFD 2 November 2, 2013 13:58
dynamic Mesh is faster than MRF???? sharonyue OpenFOAM Running, Solving & CFD 14 August 26, 2013 07:47
Enforce bounds error with heat loss boundary condition at solid walls Chander CFX 2 May 1, 2012 20:11
Heat Flux Wall Boundary Confusion. Joee FLUENT 1 August 21, 2010 12:20
RPM in Wind Turbine Pankaj CFX 9 November 23, 2009 04:05


All times are GMT -4. The time now is 09:07.