|
[Sponsors] |
August 8, 2014, 11:17 |
Problem obtaining alphaTurbulent in pisoFoam
|
#1 |
Senior Member
anonymous
Join Date: Aug 2014
Posts: 205
Rep Power: 13 |
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) ); Code:
#include "turbulenceModel.H" #include "createFields.H" ... int main(){ ... alphaT=turbulence->nut()/prandtlTurbulent; alphaT.correctBoundaryConditions(); ... } 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; } } // ************************************************************************* // Code:
prandtlTurbulent prandtlTurbulent [0 0 0 0 0 0 0] 0.85; 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; } } // ************************************************************************* // 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; Thank you very much. |
|
August 10, 2014, 04:36 |
|
#2 |
Senior Member
anonymous
Join Date: Aug 2014
Posts: 205
Rep Power: 13 |
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 |
|
|
|
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 |