CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Pre-Processing (https://www.cfd-online.com/Forums/openfoam-pre-processing/)
-   -   Starting with LRR/SSG (https://www.cfd-online.com/Forums/openfoam-pre-processing/231073-starting-lrr-ssg.html)

Kosdalak October 20, 2020 06:18

Starting with LRR/SSG
 
Hello my friends,

I recently decided to join the OF family and finished my simulations with the SST model quite well.
Now, I want to run my case with an RSM model (LRR or SSG) but I'm stucked here. My case is a 3D closed channel flow with cyclic BC at the inlet/outlet.


I implemented my R file in /0 like this:
Code:



/*--------------------------------*- C++ -*----------------------------------*\
  =========                |
  \\      /  F ield        | OpenFOAM: The Open Source CFD Toolbox
  \\    /  O peration    | Website:  https://openfoam.org
    \\  /    A nd          | Version:  8
    \\/    M anipulation  |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version    2.0;
    format      ascii;
    class      volSymmTensorField;
    location    "0";
    object      R;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

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

internalField  uniform (1.5625 -0 -0 1.5625 -0 1.5625);


boundaryField
{
    CWALL
    {
        type            kqRWallFunction;
        value          uniform (1.5625 -0 -0 1.5625 -0 1.5625);
    }
    INLET
    {
        type            cyclic;
    }
    OUTLET
    {
        type            cyclic;
    }
}


After trying to start my simulation with simpleFoam I get this error:

Code:

...


Starting time loop


turbulenceFields turbulenceFields1: storing fields:
  "R"




--> FOAM FATAL ERROR:
attempted assignment to self


Unfortunatly, I didn't find any tutorials about LRR/SSG which could help me, neither a solution for my error.

Does anybody have an idea why/where I did a mistake?

Ali Amarloo May 13, 2021 04:06

catch up
 
Hi Kosdalak,
I had the same problem.
I removed the "#includefunc R" from the controlDict since this solver saves the R tensor itself.

Kosdalak May 13, 2021 07:28

Hi Ali,

yes I solved my problem and managed to get some simulations running with these models.

Can you be more specific about your problem?

Is the R file missing or is there any other error message?

Greetings
Jan

dlahaye May 13, 2021 08:01

Possibly this helps?

https://www.cfd-online.com/Forums/op...18-simplefoam-
tutorial-pitzdaily-using-reynolds-stress-tensor-lrr-rasmodel.html

jherb May 13, 2021 19:30

I guess the link is broken. This should work: https://www.cfd-online.com/Forums/op...-rasmodel.html

HPE June 23, 2021 16:21

I think the error was due to the "turbulenceFields" function object. At least the boundary condition file for "R" does not contain any problematic content, it seems.

Could you switch off this function object, and rerun the case of yours?


All times are GMT -4. The time now is 01:19.