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

the error in LRR model (channel flow)

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 18, 2017, 06:12
Question the error in LRR model (channel flow)
  #1
oda
New Member
 
Kazuki ODA
Join Date: Sep 2017
Location: Tokyo
Posts: 9
Rep Power: 8
oda is on a distinguished road
Hi,
It's my first post on this forum. I'm openfoam beginner.

I want to use Reynolds Stress Model (LRR model) in channel flow by using simpleFoam.
But, I get the error. Please give me advice the error.

First, I use k-ε model in channel flow.The model performs ok.
So, "relaxation Factors" change all 0.5.
add Fieldfile (0/R) and change LRR from k-ε.

The result is such as error contents.
I can't understand the cause of error.

-----------------error contents------------------------------------

Time = 0.0001

Courant Number mean: 0 max: 0 velocity magnitude: 0
DILUPBiCG: Solving for Ux, Initial residual = 0.999331, Final residual = 0.000100888, No Iterations 1
DILUPBiCG: Solving for Uy, Initial residual = 0.999331, Final residual = 0.000100888, No Iterations 1
DICPCG: Solving for p, Initial residual = 1, Final residual = 0.00620118, No Iterations 16
time step continuity errors : sum local = 1.38496e-10, global = -1.68073e-25, cumulative = -1.68073e-25
DILUPBiCG: Solving for epsilon, Initial residual = 1, Final residual = 0.000148364, No Iterations 1
DILUPBiCG: Solving for Rxx, Initial residual = 1, Final residual = 5.38634e-05, No Iterations 1
DILUPBiCG: Solving for Rxy, Initial residual = 1, Final residual = 5.38707e-05, No Iterations 1
DILUPBiCG: Solving for Ryy, Initial residual = 1, Final residual = 5.38678e-05, No Iterations 1
DILUPBiCG: Solving for Rzz, Initial residual = 1, Final residual = 5.38636e-05, No Iterations 1
ExecutionTime = 0.1 s ClockTime = 0 s

Time = 0.0002

Courant Number mean: 1.24654e-08 max: 1.97961e-06 velocity magnitude: 6.21442e-06
Segmentation fault (Core dump)
---------------------------------------------------------------------------

--------------------------------------0/R---------------------------------
Code:
FoamFile
{
    version     2.0;
    format      ascii;
    class       volSymmTensorField;
    location    "0";
    object      R;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
dimensions      [0 2 -2 0 0 0 0];

internalField   uniform (0 0 0 0 0 0);

boundaryField
{
    bottomWall
    {
        type            zeroGradient;
    }

    topWall
    {
        type            zeroGradient;
    }

    sides1
    {
        type            empty;
    }

    sides2
    {
        type            empty;
    }

    inout1
    {
        type            cyclic;
    }

    inout2
    {
        type            cyclic;
    }
}
Please forgive me my lousy English.
Your help is highly appreciated.

Thanks!

oda
oda is offline   Reply With Quote

Old   September 18, 2017, 09:19
Default
  #2
Senior Member
 
Timofey Mukha
Join Date: Mar 2012
Location: Stockholm, Sweden
Posts: 118
Rep Power: 14
tiam is on a distinguished road
This probably wont fix the error, but shouldn't you set fixedValue 0 as bc on the walls for the Re-stresses?


Sent from my iPhone using CFD Online Forum mobile app
tiam is offline   Reply With Quote

Old   September 18, 2017, 21:31
Default
  #3
oda
New Member
 
Kazuki ODA
Join Date: Sep 2017
Location: Tokyo
Posts: 9
Rep Power: 8
oda is on a distinguished road
Hi tiam!

Thank you for your advice.
I tried that method. But, the same result has come out.

I think that BC is wrong because one step can be calculated.
Is that correct?

Thanks!
oda
oda is offline   Reply With Quote

Old   September 19, 2017, 01:28
Post
  #4
oda
New Member
 
Kazuki ODA
Join Date: Sep 2017
Location: Tokyo
Posts: 9
Rep Power: 8
oda is on a distinguished road
Hi tiam!

Please forgive my continuous post.
I created a graph of residuals in my calculated channel flow and attached that graph.
But, this graph looks like vibration.
Is this affecting LRR?

Now, relaxationFactors is as follows.


p 0.3;
U 0.7;
k 0.7;
epsilon 0.7;
R 0.7;
nuTilda 0.7;

How should I change it?
Please help me.

oda
Attached Images
File Type: png residual.png (10.6 KB, 31 views)
oda is offline   Reply With Quote

Old   September 19, 2017, 03:07
Default
  #5
Senior Member
 
Timofey Mukha
Join Date: Mar 2012
Location: Stockholm, Sweden
Posts: 118
Rep Power: 14
tiam is on a distinguished road
Sorry, I dont think I can, I have no experience with such models or how they should behave. Regarding the bc at the walls, zero Re-stresses simply follow from the fact that you have no-slip for the velocity.


Sent from my iPhone using CFD Online Forum mobile app
tiam is offline   Reply With Quote

Old   September 19, 2017, 04:57
Default
  #6
oda
New Member
 
Kazuki ODA
Join Date: Sep 2017
Location: Tokyo
Posts: 9
Rep Power: 8
oda is on a distinguished road
Hi tiam!

I appreciate your advice.Thank you very much.
Please tell me if you understand something.

Thank

oda
oda is offline   Reply With Quote

Old   September 21, 2017, 02:21
Default method to run LRR
  #7
New Member
 
CFDfreak
Join Date: Dec 2016
Posts: 15
Rep Power: 9
nandhakumar is on a distinguished road
hello

Recently I have run a problem using LRR. There is a separate thread in this forum how to run LRR/SCG. please read that forum.
I was using openfoam 4.1.
Instead of giving R as a initial condition try to generate R using utility file. It can be found within your openfoam folder. Then run the file using laminar/any other turbulent model. After running for certain timestep change the model to run LRR. Also reduce all the under relaxation to 0.1 to 0.2. If it is compressible flow keep density relaxation as 0.01-0.05.

Last edited by nandhakumar; September 25, 2017 at 05:04.
nandhakumar is offline   Reply With Quote

Reply

Tags
lrr simplefoam channel, rsm


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
Issues on the simulation of high-speed compressible flow within turbomachinery dowlee OpenFOAM Running, Solving & CFD 11 August 6, 2021 06:40
Simulating a Laminar Isothermal Flow in a 2D rectangular Channel HectorRedal Main CFD Forum 1 December 18, 2016 11:41
Question on the boundary condition for open channel flow, please help! ripperjack OpenFOAM Running, Solving & CFD 0 September 13, 2013 11:44
Gravitational water flow in closed channel. Szymon85 CFX 7 September 3, 2013 16:28
[ICEM] Flow channel meshing problems StefanG ANSYS Meshing & Geometry 19 May 15, 2012 06:44


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