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

Sample case of simplified energy transport simulation for incompressible flow

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 20, 2020, 08:42
Default Sample case of simplified energy transport simulation for incompressible flow
  #1
Senior Member
 
fumiya's Avatar
 
Fumiya Nozaki
Join Date: Jun 2010
Location: Yokohama, Japan
Posts: 266
Blog Entries: 1
Rep Power: 19
fumiya is on a distinguished road
I've attached a simplified energy transport simulation case for incompressible flow with the following functionality in OpenFOAM v2006:
  • energyTransport: to solve a simplified energy transport equation
  • readFields: to read kappa value to be able to use externalWallHeatFluxTemperature boundary condition
  • externalWallHeatFluxTemperature: to set heat flux boundary condition

Settings of readFields and energyTransport function objects in system/controlDict
Code:
    readKappaFields
    {
        type        readFields;
        libs        (fieldFunctionObjects);

        fields      (kappaField);

        readOnStart true;
    }

    energyTransport
    {
        type            energyTransport;
        libs             (solverFunctionObjects);

        enabled         true;
        writeControl    outputTime;
        writeInterval   1;

        field           T;
        phi             phi;

        // Thermal properties
        Cp              Cp    [J/kg/K]  1e3;
        kappa           kappa [W/m/K]   0.0257;
        rhoInf          rho   [kg/m^3]  1.2;

        write           true;

        fvOptions
        {
        }
    }
Settings of heat flux boundary condition(q=500[W/m^2]) in 0.orig/T
Code:
    hole
    {
        type            externalWallHeatFluxTemperature;
        mode            flux;
        q               uniform 500;
        kappaMethod     lookup;
        kappa           kappaField;
        value           uniform 300;
    }
where kappa value is read from 0.orig/kappaField
Code:
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  v2006                                 |
|   \\  /    A nd           | Website:  www.openfoam.com                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       volScalarField;
    object      kappaField;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions      [1 1 -3 -1 0 0 0];

internalField   uniform 0.0257;

boundaryField
{
    inlet
    {
        type             fixedValue;
        value            $internalField;
    }

    outlet
    {
        type             fixedValue;
        value            $internalField;
    }

    up
    {
        type            symmetry;
    }

    hole
    {
        type             fixedValue;
        value            $internalField;
    }

    frontAndBack
    {
        type            empty;
    }
}
Hope this helps,
Fumiya
Attached Images
File Type: png T.png (56.7 KB, 16 views)
Attached Files
File Type: zip ellipsekkLOmega_energyTransport.zip (19.4 KB, 10 views)
__________________
[Personal]
fumiya 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
Energy balance in conjugative/ porous simulation; Domain Energy is greater than Input Vishnu_bharathi CFX 2 June 27, 2018 11:08
[General] Calculation of Cp in case of dynamic simulation. Metikurke ParaView 1 May 30, 2018 10:52
flow simulation across a small fan jane luo Main CFD Forum 15 April 12, 2004 18:49
fluid flow fundas ram Main CFD Forum 5 June 17, 2000 22:31
Why FVM for high-Re flows? Zhong Lei Main CFD Forum 23 May 14, 1999 14:22


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