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

error when i change from 1 inlet to 2

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 9, 2019, 09:48
Default error when i change from 1 inlet to 2
  #1
New Member
 
felipe ortega
Join Date: Sep 2019
Posts: 15
Rep Power: 6
flowwwww is on a distinguished road
Hello everyone,


I am stuggling with my simulation and i would like to know if one of you can give me a hand.
I have a gemetry that consist in two ducts that inyect air to a chamber and i would like to study the distribution of temperature inside.
i have started with a more simply geometry that just have one inlet duct. In this case, the simulation ran without any problem and i obtained some reasonable results.
inyector simple 1.png un inyector.png


However, when i add the other duct to the geometry and i tried to simulate with se same boundary conditions to the second inlet (i created a new patch), the simulation can not end. The results stops and i get the next.
inyectordoble1.png inyector doble2.png
The only change is in the domain, that is adapted to the size of the two inlet ducts



If someone can help me i really appreciate it.

Best Regards.


Code:
FoamFile
{
    version     2.0;
    format      ascii;
    class       volScalarField;
    object      p;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

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

internalField   uniform 1e5;

boundaryField
{
    door  //domain
    {
        type            fixedValue;
        value           $internalField;
    }
    walls  //geometry
    {
        type            zeroGradient;
    }
     box  //domain
    {
        type            zeroGradient;
    }
    inlet  //geometry
    {
        type            zeroGradient;
    }
    inlet1  //geometry
    {
        type            zeroGradient;
    }

Code:
FoamFile
{
    version     2.0;
    format      ascii;
    class       volScalarField;
    object      T;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions      [0 0 0 1 0 0 0];

internalField   uniform 450;

boundaryField
{

    door
    {
        type            inletOutlet;
        value           uniform 450;
        inletValue      uniform 450;
    }
    walls
    {
        type            zeroGradient;
    }
 box
    {
        type            zeroGradient;
    }

    inlet
    {
        type            fixedValue;
        value           uniform 610;
    }
    inlet1
    {
        type            fixedValue;
        value           uniform 635;
    }

Code:
FoamFile
{
    version     2.0;
    format      ascii;
    class       volVectorField;
    object      U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

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

internalField   uniform (0 0 0);

boundaryField
{
     door
    {
           type            inletOutlet;
        inletValue      uniform (0 0 0);
        value           $internalField;
    }    
    walls
    {
        type            noSlip;
    }
     box
    {
        type            noSlip;
    }
    inlet
    {
        type            fixedValue;
        value           uniform (0 -6.49 0);
    }
    inlet1
    {
        type            fixedValue;
        value           uniform (0 -6.79 0);
       
    }

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

ddtSchemes
{
    default             steadyState;
}

gradSchemes
{
    default             Gauss linear;
}

divSchemes
{
    default             none;

    div(phi,U)          bounded Gauss upwind;
    div(((rho*nuEff)*dev2(T(grad(U)))))      Gauss linear;
    div(phi,e)          bounded Gauss upwind;
    div(phi,epsilon)    bounded Gauss upwind;
    div(phi,k)          bounded Gauss upwind;

    div(phid,p)         Gauss upwind;
    div(phi,Ekp)        bounded Gauss upwind;
    div((phi|interpolate(rho)),p)  Gauss upwind;
    div((nuEff*dev2(T(grad(U))))) Gauss linear;
}

laplacianSchemes
{
    default         Gauss linear corrected;
}

interpolationSchemes
{
    default         linear;
}

snGradSchemes
{
    default         corrected;
}


// ************************************************************************* //

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

solvers
{
    p
    {
        solver          GAMG;
        tolerance       1e-08;
        relTol          0.1;
        smoother        GaussSeidel;
        nCellsInCoarsestLevel 20;
    }

    Phi
    {
        $p;
    }

    "(U|e|k|epsilon)"
    {
        solver          GAMG;
        tolerance       1e-08;
        relTol          0.1;
        smoother        GaussSeidel;
        nCellsInCoarsestLevel 20;
    }
}

SIMPLE
{
    nNonOrthogonalCorrectors 2;
    pMinFactor      0.1;
    pMaxFactor      2;
    transonic       no;
    consistent      yes;
    pRefCell 0; 
    pRefValue 1e5;

    residualControl
    {
        p               1e-3;
        U               1e-4;
        e               1e-3;

        // possibly check turbulence fields
        "(k|epsilon|omega)" 1e-3;
    }
}

potentialFlow
{
    nNonOrthogonalCorrectors 10;
}


relaxationFactors
{
    fields
    {
        p               0.8;
    }
    equations
    {
        p               0.8;
        U               0.9;
        e               0.8;
        k               0.9;
        epsilon         0.9;
    }
}

// ************************************************************************* //
flowwwww 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
[IHFOAM] The IHFOAM Thread Phicau OpenFOAM Community Contributions 392 September 8, 2023 18:10
please, would anyone help me with this UDF, inlet temperature change with time Juun Fluent UDF and Scheme Programming 2 March 18, 2014 10:03
how to change the inlet flow aoa rushit_31 CFX 2 November 14, 2013 16:40
HUGE change in results between opening and inlet gwheeler CFX 4 October 30, 2013 16:58
Inlet table in STAR-CD Sachin Siemens 1 March 26, 2008 10:22


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