Replies: 4 comments 1 reply
-
Hi, Can you check You don't need to add I suggest to comment all those out. Hope this helps, |
Beta Was this translation helpful? Give feedback.
-
Hello Yu-Hsiang,
I commented all of it out and added boundaryTypeMap = none in my .par file. My box file is pretty much the same as the one in tgv example except for fewer elements (domain is rescled in `.usr` file in the tgv) example. I still get non-periodic results.
How is the mesh in the tgv example generated? from the box file?
With sincere regards,
Makrand
Makrand A. Khanwale
-------------------------------------------
Postdoctoral Fellow,
Center for Turbulence Research,
Department of Mechanical Engineering,
Stanford University
Website: makrandak.github.io<http://makrandak.github.io/>
Email: ***@***.******@***.***>
…________________________________
From: Yu-Hsiang Lan ***@***.***>
Sent: Tuesday, May 7, 2024 10:56 AM
To: Nek5000/nekRS ***@***.***>
Cc: Makrand Khanwale ***@***.***>; Author ***@***.***>
Subject: Re: [Nek5000/nekRS] Triply periodic boundary conditions (Discussion #556)
Hi,
Can you check ldimt in .cache/nek5000/SIZE ?
cbc is of size cbc(6,lelt,0:ldimt1) I think 6 (from (cbc(ifc,iel,6)) is uncommonly large and you could access the memory for other variables.
You don't need to add usersetvert since the periodicity should be directly coming from ma2/parCON.
In fact, I don't think you need to set boundaryID at all. NekRS should read cbc as-is.
I suggest to comment all those out.
Or, it should at least work if you simply replace the mesh in the tgv example.
Hope this helps,
Yu-Hsiang
—
Reply to this email directly, view it on GitHub<#556 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ALCCMN4QTIN52VDGXQYCJYTZBEITNAVCNFSM6AAAAABHLNWFTGVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4TGNBVGE4TC>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Hello Yu-Hsiang,
I am doing exactly that. I am using genbox and then renaming the file to match the .par name. I can see the output in visit and the mesh matches my settings in the box file.
I have commented all of that stuff from the usr file and the udf file is something I wrote. The original effort was to setup a periodic HIT simulation with linear forcing, but I wanted to try Taylor-Green first as I was getting discontinuous solutions when I prescribed the energy spectrum based initial conditions.
Right now the only thing in udf that is interesting is the initial condition, nothing to do with boundary conditions.
I am attaching my case files to the email.
Thanks again for your help.
With sincere regards,
Makrand
Makrand A. Khanwale
-------------------------------------------
Postdoctoral Fellow,
Center for Turbulence Research,
Department of Mechanical Engineering,
Stanford University
Website: makrandak.github.io<http://makrandak.github.io/>
Email: ***@***.******@***.***>
…________________________________
From: Yu-Hsiang Lan ***@***.***>
Sent: Tuesday, May 7, 2024 11:10 AM
To: Nek5000/nekRS ***@***.***>
Cc: Makrand Khanwale ***@***.***>; Author ***@***.***>
Subject: Re: [Nek5000/nekRS] Triply periodic boundary conditions (Discussion #556)
Yes, there is a box file here
https://github.com/Nek5000/nekRS/blob/master/examples/tgv/input.box
I wonder if you are indeed using the re2 from genbox.
The output from genbox should be a box.re2 file and you typically need to rename is to match your .par
—
Reply to this email directly, view it on GitHub<#556 (reply in thread)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ALCCMN5GQYDRWQYM4WKC7ULZBEKJNAVCNFSM6AAAAABHLNWFTGVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4TGNBVGQYTQ>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
I think I found a bug, my domain was from -pi/2 to pi/2 instead of pi to pi.
I will test further and let you know. Thank you very much for your help and time.
With sincere regards,
Makrand
Makrand A. Khanwale
-------------------------------------------
Postdoctoral Fellow,
Center for Turbulence Research,
Department of Mechanical Engineering,
Stanford University
Website: makrandak.github.io<http://makrandak.github.io/>
Email: ***@***.******@***.***>
…________________________________
From: Yu-Hsiang Lan ***@***.***>
Sent: Tuesday, May 7, 2024 11:10 AM
To: Nek5000/nekRS ***@***.***>
Cc: Makrand Khanwale ***@***.***>; Author ***@***.***>
Subject: Re: [Nek5000/nekRS] Triply periodic boundary conditions (Discussion #556)
Yes, there is a box file here
https://github.com/Nek5000/nekRS/blob/master/examples/tgv/input.box
I wonder if you are indeed using the re2 from genbox.
The output from genbox should be a box.re2 file and you typically need to rename is to match your .par
—
Reply to this email directly, view it on GitHub<#556 (reply in thread)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ALCCMN5GQYDRWQYM4WKC7ULZBEKJNAVCNFSM6AAAAABHLNWFTGVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4TGNBVGQYTQ>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Hello,
I am trying to prescribe periodic boundary conditions for all pairs of faces on a box (periodic in x, y, z). I generated the box using genbox. Below is the script for the generation of the box
I also prescribe the following in the
.usr
file to make sure the boundaryIDs are zero for all faces (following the documentation), I skipped the exo2nek step because I generated the mesh using genbox.usrdat2 is as follows.
When I try to run a Taylor-Green vortex case with the setup above, I see non-periodic behaviour for x-velocity in x direction, y-velocity in y direction and so on. Is there something else I have to do to prescribe periodicity?
Also, I found some this routine in the ktauChannel setup saying kludge for periodic in z. I am not sure if this is required for periodicity
I am new to nekRS and I have not used nek5000 in the past. I am not sure what I am doing wrong in the setup. I would really appreciate your help. I would be happy to share all case files if needed to reproduce the problem.
With sincere regards
Beta Was this translation helpful? Give feedback.
All reactions