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

Use transient gradient as BC- timeVaryingUniformFixedGradient?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 7, 2011, 03:08
Default Use transient gradient as BC- timeVaryingUniformFixedGradient?
  #1
New Member
 
Join Date: Jun 2011
Posts: 12
Rep Power: 14
homerun4711 is on a distinguished road
Hello!

I have yet another question and hope that you can help me.

To simulate a heat flux into a wall (heat transfer in solid, laplacianFoam) I
need to apply a transient gradient to a patch (simulating sun shine).

The values I need to apply are listed in a text file and I would like to
apply them the same way timeVaryingUniformFixedValue is working.

Code:
SecondFace
    {
    type         timeVaryingUniformFixedValue;
    fileName     "SecondFace.dat";
    }
Some sort of timeVaryingUniformFixedGradient would be working fine.
Is there something like that or do you have other ideas how this
could be done?

Kind regards,
Walter
homerun4711 is offline   Reply With Quote

Old   June 7, 2011, 03:23
Default
  #2
New Member
 
Join Date: Jun 2011
Posts: 12
Rep Power: 14
homerun4711 is on a distinguished road
One thought that came to my mind right now:

In the time step folders there are files listing the boundary conditions and start values for each step. Is it possible to create a part of these files beforehand?

E.g. OpenFOAM finds an already existing temperature file T in the time step directory just listing a new boundaryField-section for that step. The values
for T are written in there automatically during the calculation of the first step.
homerun4711 is offline   Reply With Quote

Old   June 7, 2011, 11:20
Default
  #3
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 homerun4711 View Post
One thought that came to my mind right now:

In the time step folders there are files listing the boundary conditions and start values for each step. Is it possible to create a part of these files beforehand?

E.g. OpenFOAM finds an already existing temperature file T in the time step directory just listing a new boundaryField-section for that step. The values
for T are written in there automatically during the calculation of the first step.
<the sound of Bernhard unashamedly beating the drum of his latest project>

No. Prefeeding the directories with BCs is not possible. But both the things you're trying to do (calculated gradient AKA heatFlux and/or timelines) can be done with groovyBC/swak4Foam
gschaider is offline   Reply With Quote

Old   June 7, 2011, 14:24
Default
  #4
New Member
 
Join Date: Jun 2011
Posts: 12
Rep Power: 14
homerun4711 is on a distinguished road
Thanks for your answer!

groovyBC looks good.
akidess has already beaten the drums in another thread http://www.cfd-online.com/Forums/ope...tml#post310585

Kind regards,
Walter
homerun4711 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
specified shear at wall - temperature gradient - UDF - access violation error senD Fluent UDF and Scheme Programming 9 September 18, 2014 07:29
Best practice for transient simulations? siw CFX 5 October 30, 2010 05:45
transient simulation of a rotating rectangle icesniffer CFX 1 August 8, 2009 07:25
Transient vs Steady State Adam CFX 1 April 12, 2007 11:34
How to compute gradient for non-orthogonal grids? Paul Hsieh Main CFD Forum 3 November 11, 2003 04:52


All times are GMT -4. The time now is 17:13.