|
[Sponsors] |
turbulentDFSEMInlet boundaryData and U, R, L, generation |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
May 6, 2021, 08:50 |
turbulentDFSEMInlet boundaryData and U, R, L, generation
|
#1 |
New Member
Mario Javier Rincón
Join Date: Dec 2020
Location: Denmark
Posts: 9
Rep Power: 5 |
Hi guys,
I am trying to set up an LES simulation with turbulentDFSEMInlet boundary condition. In order to do so, I run a precursor RANS simulation with uniform inlet conditions and k-omega SST model of the same geometry. During the RANS simulation I extract the data at the outlet with the following code in controlDict: Code:
sampledPlanes { type surfaces; functionObjectLibs ( "libsampling.so" ); outputControl timeStep; outputInterval 1000; enabled true; surfaceFormat boundaryData; fields ( U turbulenceProperties:R turbulenceProperties:L ); interpolationScheme cellPatchConstrained; surfaces ( outlet { type patch ; patches ( outlet ) ; interpolate false ; } ); } Code:
Time = 0 Turbulent DFSEM patch inlet: interpolating field R from "/data/MJRP/fullCases/LES/constant/boundaryData/inlet/0/R" Turbulent DFSEM patch inlet: interpolating field L from "/data/MJRP/fullCases/LES/constant/boundaryData/inlet/0/L" Turbulent DFSEM patch inlet: interpolating field U from "/data/MJRP/fullCases/LES/constant/boundaryData/inlet/0/U" --> FOAM FATAL ERROR: Reynolds stress (2.3018333e-31 7.4816001e-32 -1.3597915e-31 -3.9599454e-32 -2.22473e-32 -1.2211324e-31) at face 1 leads to an invalid Cholesky decomposition due to the constraint R_yy - sqr(a_xy) >= 0 From static bool Foam::turbulentDFSEMInletFvPatchVectorField::checkStresses(const symmTensorField&) in file fields/fvPatchFields/derived/turbulentDFSEMInlet/turbulentDFSEMInletFvPatchVectorField.C at line 992. FOAM exiting Thus, does anyone faced the same problem and knows what is failing here? Thanks in advance! Last edited by mjavrincon; May 6, 2021 at 16:26. Reason: wrong patch |
|
May 10, 2021, 08:35 |
|
#2 |
Senior Member
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 931
Rep Power: 13 |
Hi,
One of the input Reynolds stress tensor element contains only zero-valued elements. That's physically not possible. Therefore, OpenFOAM complains. Hope this helps.
__________________
The OpenFOAM community is the biggest contributor to OpenFOAM: User guide/Wiki-1/Wiki-2/Code guide/Code Wiki/Journal Nilsson/Guerrero/Holzinger/Holzmann/Nagy/Santos/Nozaki/Jasak/Primer Governance Bugs/Features: OpenFOAM (ESI-OpenCFD-Trademark) Bugs/Features: FOAM-Extend (Wikki-FSB) Bugs: OpenFOAM.org How to create a MWE New: Forkable OpenFOAM mirror |
|
May 17, 2021, 03:59 |
Solved
|
#3 |
New Member
Mario Javier Rincón
Join Date: Dec 2020
Location: Denmark
Posts: 9
Rep Power: 5 |
Thank you for your reply.
I have found the issue and I finally made it work. The main problem is that I was extracting the data exactly at the inlet patch, where the Reynolds Stress tensor is zero. I had to extract the simulation data from RANS at a certain distance from the inlet, where the flow is fully developed in my case. Doing so and then adjusting the case before running the LES in constant/boundaryData gives no problems when decomposing the case. Here you can see the function in controlDict to sample a plane: Code:
sampledSurface { type surfaces; executeControl runTime; executeInterval 0.15; writeControl runTime; writeInterval 500; enabled true; surfaceFormat boundaryData; interpolationScheme none; interpolate false; triangulate false; fields ( U turbulenceProperties:R turbulenceProperties:L UPrime2Mean ); surfaces ( inletSurface { type plane ; planeType pointAndNormal ; pointAndNormalDict { point ( -0.07 0 0 ) ; normal ( 1 0 0 ) ; interpolate false ; triangulate false ; } } ); } Last edited by mjavrincon; May 17, 2021 at 05:46. Reason: picture not attached |
|
June 12, 2021, 00:58 |
|
#4 |
New Member
Sandeep
Join Date: Apr 2017
Location: IIT Delhi, New Delhi, India
Posts: 13
Rep Power: 9 |
hi Mario Javier Rincón, It is of great help for me. Thanks for sharing.
|
|
June 12, 2021, 10:10 |
|
#5 |
Senior Member
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 931
Rep Power: 13 |
- sorry posted as a mistake -
__________________
The OpenFOAM community is the biggest contributor to OpenFOAM: User guide/Wiki-1/Wiki-2/Code guide/Code Wiki/Journal Nilsson/Guerrero/Holzinger/Holzmann/Nagy/Santos/Nozaki/Jasak/Primer Governance Bugs/Features: OpenFOAM (ESI-OpenCFD-Trademark) Bugs/Features: FOAM-Extend (Wikki-FSB) Bugs: OpenFOAM.org How to create a MWE New: Forkable OpenFOAM mirror |
|
August 12, 2022, 13:07 |
|
#6 |
New Member
Xiangjie Wang
Join Date: Jul 2019
Posts: 26
Rep Power: 7 |
Hi Mario,
Thanks for sharing. I also found a problem in the old version of OpenFOAM.com For example in v1912, OpenFOAM-v1912/src/finiteVolume/fields/fvPatchFields/derived/turbulentDFSEMInlet/turbulentDFSEMInletFvPatchVectorField.C line 995: Code:
scalar a_yz = (R.yz() - a_xy*a_xz)*a_yy; Code:
scalar a_yz = (R.yz() - a_xy*a_xz)/a_yy; Hope this will be helpful if other foamers encounter this problem. |
|
Tags |
boundarydata, les, les inlet conditions, turbulentdfseminlet |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Imposing PIV (2D) experimental data at turbulentDFSEMInlet for LES | t.teschner | OpenFOAM Running, Solving & CFD | 7 | April 25, 2024 05:50 |
Creation of boundaryData for turbulentDigitalFilterInlet | Bazinga | OpenFOAM Pre-Processing | 1 | July 15, 2021 08:20 |
turbulentDFSEMInlet and boundaryFoam | hconel | OpenFOAM Running, Solving & CFD | 1 | September 14, 2020 11:34 |
generation of boundaryData files for timeVaryingMappedFixedValue | MartinEB | OpenFOAM Programming & Development | 5 | June 3, 2020 20:11 |
Creating boundaryData folder for timeVaryingMappedFixedValue boundary condition | Sid! | OpenFOAM Running, Solving & CFD | 2 | October 4, 2017 02:44 |