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

fixedGradient Boundary Condition

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By HenningW

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 26, 2016, 09:47
Post fixedGradient Boundary Condition
  #1
New Member
 
Alberto Karkour
Join Date: Jul 2016
Location: Maracaibo, Venezuela
Posts: 6
Rep Power: 9
albertokarkour is on a distinguished road
Hey guys! I'm new over here (and also in OpenFoam) my name is Alberto I'm from Venezuela.

I'd like some help about in trying to do a conduction heat transfer case of a solid so from what I've investigated the solver used is laplacianFoam. I did the tutorial that has the flange.ans file and everything was ok.

But now the case I'm trying to do instead of two fixed temperatures has fixed temperatures and a heat flux. Here is the case:

Quote:
Consider a rectangular domain in which a=1m and b=0.8m. The thermal conductivity is k=1.2 W/(m*C). A heat flux q=500W/m2 enters the domain from the upper boundary and the temperatures of the other boundaries are all fixed at u1=0 celcius degrees
I think my mistake is in the 0/T boundary condition fixedGradient. Can someone tell me if I'm inserting it the correct way? Thanks in advance!
Code:
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  3.0.x                                 |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       volScalarField;
    object      T;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions      [0 0 0 1 0 0 0];

internalField   uniform 0;

boundaryField
{

        
    fixedWalls
    {
        type            fixedValue;
        value           uniform 0;
    }

    heatWall
    {
        type            fixedGradient;
        value           uniform 416.67;
    }

    frontAndBack
    {
        type            empty;
    }
}

// ************************************************************************* //
albertokarkour is offline   Reply With Quote

Old   July 26, 2016, 10:04
Default
  #2
Member
 
Join Date: Feb 2015
Posts: 39
Rep Power: 11
HenningW is on a distinguished road
First of all: I have not worked with heat transfer or this solver.

Since you posted here, I assume something is not working? What exactly is the problem you are facing that your calculation seems to fail? Do you get an error message? Is the solution unrealistic?
HenningW is offline   Reply With Quote

Old   July 26, 2016, 10:28
Default
  #3
New Member
 
Alberto Karkour
Join Date: Jul 2016
Location: Maracaibo, Venezuela
Posts: 6
Rep Power: 9
albertokarkour is on a distinguished road
Thanks for your reply! Well in the OpenFoam UserGuide says
Quote:
laplacianFoam solves a simple Laplace equation, e.g for thermal diffusion in a solid
so I think is ok.
Yes, I get an error and is when I run the solver:

Quote:
--> FOAM FATAL IO ERROR:
keyword gradient is undefined in dictionary
albertokarkour is offline   Reply With Quote

Old   July 26, 2016, 10:39
Default
  #4
Member
 
Join Date: Feb 2015
Posts: 39
Rep Power: 11
HenningW is on a distinguished road
It already tells you that the keyword gradient is missing in line 34. Try "gradient" instead of "value"

Edit: By the way, this post had the same problem

http://www.cfd-online.com/Forums/ope...tml#post217991

Edit 2: Not sure if it works in a windows environment, but if you can, try to create log files. Makes life a bit easier when posting things here
(For example: "simpleFoam 2>&1 | tee simple.log")

Last edited by HenningW; July 26, 2016 at 10:43. Reason: Additional Information ;)
HenningW is offline   Reply With Quote

Old   July 26, 2016, 14:08
Default
  #5
New Member
 
Alberto Karkour
Join Date: Jul 2016
Location: Maracaibo, Venezuela
Posts: 6
Rep Power: 9
albertokarkour is on a distinguished road
Yes! That was the solution! Put gradient instead of value! Thanks so much!!!
albertokarkour 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
Question about heat transfer coefficient setting for CFX Anna Tian CFX 1 June 16, 2013 06:28
Error finding variable "THERMX" sunilpatil CFX 8 April 26, 2013 07:00
Opening Boundary Condition andreachan Main CFD Forum 11 March 19, 2013 16:46
domain imbalance for enrgy equation happy CFX 14 September 6, 2012 01:54
asking for Boundary condition in FLUENT Destry FLUENT 0 July 27, 2010 00:55


All times are GMT -4. The time now is 16:11.