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

Problem obtaining alphaTurbulent in pisoFoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 8, 2014, 11:17
Default Problem obtaining alphaTurbulent in pisoFoam
  #1
Senior Member
 
anonymous
Join Date: Aug 2014
Posts: 205
Rep Power: 13
ssss is on a distinguished road
Hi,

I've implemented a scalar Transport equation to pisoFoam, but I cannot obtain some values from it

Let's start with it:

In createFields.H I add the following:

Code:
   
Info<< "Reading field alphaT\n" << endl;
volScalarField alphaT
(
    IOobject
        (
            "alphaT",
            runTime.timeName(),
            mesh,
            IOobject::MUST_READ,
            IOobject::AUTO_WRITE
        ),
        mesh
);

dimensionedScalar prandtlTurbulent(laminarTransport.lookup("prandtlTurbulent"));

singlePhaseTransportModel laminarTransport(U, phi);

    autoPtr<incompressible::turbulenceModel> turbulence
    (
        incompressible::turbulenceModel::New(U, phi, laminarTransport)
    );
In my_pisoFoam.C

Code:
#include "turbulenceModel.H"
#include "createFields.H"
...
int main(){
...
        alphaT=turbulence->nut()/prandtlTurbulent;
        alphaT.correctBoundaryConditions();
...
}
In 0/alphaT

Code:

/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  2.1.0                                 |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       volScalarField;
    location    "0";
    object      alphaT;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions      [0 2 -1 0 0 0 0];

internalField   uniform 0;

boundaryField
{
    inlet 
    {
        type            calculated; //search for it
        //value           uniform 0;

    }
    outlet
    {
        type            calculated; //search for it
        //value           uniform 0;
    }
    channelWall
    {
        type            zeroGradient;
    }
    symmetry
    {
        type            symmetryPlane;
    }

    frontAndBack
    {
        type            empty;
    }
}


// ************************************************************************* //
In constant/transportProperties

Code:
prandtlTurbulent prandtlTurbulent [0 0 0 0 0 0 0] 0.85;
But whenever I open alphaT in every folderIteration I only see:

Code:
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  2.1.0                                 |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       volScalarField;
    location    "0.003";
    object      alphaT;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions      [0 2 -1 0 0 0 0];

internalField   uniform 0;

boundaryField
{
    channelWall
    {
        type            zeroGradient;
    }
    symmetry
    {
        type            symmetryPlane;
    }
    inlet
    {
        type            calculated;
        value           uniform 0;
    }
    outlet
    {
        type            calculated;
        value           uniform 0;
    }
    frontAndBack
    {
        type            empty;
    }
}


// ************************************************************************* //
It only repeats the alphaT which is in 0/ . It doesn write anything.

Maybe it is because I choose this?

Code:
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    location    "constant";
    object      RASProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

RASModel        laminar;

turbulence      on;

printCoeffs     on;
RASModel = laminar.

Thank you very much.
ssss is offline   Reply With Quote

Old   August 10, 2014, 04:36
Default
  #2
Senior Member
 
anonymous
Join Date: Aug 2014
Posts: 205
Rep Power: 13
ssss is on a distinguished road
I found the problem, if I choose the turbulence as laminar, he would assume that nut is 0. I will try to see how could I make a dns simulation with pisoFoam and then get nut somewhere

Thank you
ssss 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
area does not match neighbour by ... % -- possible face ordering problem St.Pacholak OpenFOAM 11 September 4, 2024 05:28
UDF compiling problem Wouter Fluent UDF and Scheme Programming 6 June 6, 2012 05:43
Problem in implementing cht tilek CFX 3 May 8, 2011 09:39
natural convection problem for a CHT problem Se-Hee CFX 2 June 10, 2007 07:29
Adiabatic and Rotating wall (Convection problem) ParodDav CFX 5 April 29, 2007 20:13


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