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

Starting with LRR/SSG

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 20, 2020, 06:18
Default Starting with LRR/SSG
  #1
New Member
 
Jan
Join Date: Oct 2020
Posts: 10
Rep Power: 3
Kosdalak is on a distinguished road
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?
Kosdalak is offline   Reply With Quote

Old   May 13, 2021, 04:06
Default catch up
  #2
New Member
 
Ali Amarloo
Join Date: Aug 2018
Posts: 9
Rep Power: 6
Ali Amarloo is on a distinguished road
Hi Kosdalak,
I had the same problem.
I removed the "#includefunc R" from the controlDict since this solver saves the R tensor itself.

Last edited by Ali Amarloo; May 13, 2021 at 04:20. Reason: No need for R calculation
Ali Amarloo is offline   Reply With Quote

Old   May 13, 2021, 07:28
Default
  #3
New Member
 
Jan
Join Date: Oct 2020
Posts: 10
Rep Power: 3
Kosdalak is on a distinguished road
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
Kosdalak is offline   Reply With Quote

Old   May 13, 2021, 08:01
Default
  #4
Senior Member
 
Domenico Lahaye
Join Date: Dec 2013
Posts: 449
Blog Entries: 1
Rep Power: 13
dlahaye is on a distinguished road
Possibly this helps?

https://www.cfd-online.com/Forums/op...18-simplefoam-
tutorial-pitzdaily-using-reynolds-stress-tensor-lrr-rasmodel.html
dlahaye is offline   Reply With Quote

Old   May 13, 2021, 19:30
Default
  #5
Senior Member
 
Joachim Herb
Join Date: Sep 2010
Posts: 633
Rep Power: 19
jherb is on a distinguished road
I guess the link is broken. This should work: simpleFoam tutorial PitzDaily using Reynolds stress tensor (LRR RASModel)
jherb is offline   Reply With Quote

Old   June 23, 2021, 16:21
Default
  #6
HPE
Senior Member
 
HPE's Avatar
 
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 932
Rep Power: 10
HPE is on a distinguished road
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?
HPE is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
bash script for pseudo-parallel usage of reconstructPar kwardle OpenFOAM Post-Processing 39 July 1, 2020 09:13
big difference between clockTime and executionTime LM4112 OpenFOAM Running, Solving & CFD 21 February 15, 2019 03:05
bscw cgns wing kocjH SU2 3 May 16, 2017 02:56
Error Message "Stopped in Routine SIG_HANDLER" appears starting CFX-Solver Leuchte CFX 6 July 20, 2016 03:35
[OpenFOAM] XYZ starting points of streamtraces in Paraview deniggo ParaView 3 May 22, 2013 03:02


All times are GMT -4. The time now is 15:57.