turbulentDFSEMInlet boundaryData and U, R, L, generation
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 Code:
Time = 0 Thus, does anyone faced the same problem and knows what is failing here? Thanks in advance! |
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. |
Solved
1 Attachment(s)
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 |
hi Mario Javier Rincón, It is of great help for me. Thanks for sharing.
|
- sorry posted as a mistake -
|
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. |
All times are GMT -4. The time now is 19:41. |