ucns3d-team / UCNS3D

Unstructured Compressible Navier Stokes 3D code (UCNS3D)
https://ucns3d.com
GNU General Public License v3.0
244 stars 90 forks source link

How to set periodic boundary condition? #19

Open flyyufei opened 3 years ago

flyyufei commented 3 years ago

I'm studying this solver. Thanks to the team for sharing this code.

I'm trying to compute an airfoil OAT15A with the ILES method. I set 41 grid points in the spanwise direction. The spanwise length is 0.1c. The symmetry boundary condition is set in the Pointwise software like the tutorial. The "Periodic" setting is set to 1 in the UCNS3D.DAT.

But the result is not periodic in the spanwise direction. Is there any other setting to activate the periodic boundary? Thanks.

TakisCFD commented 2 years ago

You are better off exporting the mesh in ugrid format (binary, swap bytes) where you can prescribe the periodic boundary conditions correctly and then use the UGRID translator available. The .msh fluent format might not take the correct periodic boundary condition code.

sea-jack commented 2 years ago

You are better off exporting the mesh in ugrid format (binary, swap bytes) where you can prescribe the periodic boundary conditions correctly and then use the UGRID translator available. The .msh fluent format might not take the correct periodic boundary condition code.

Hello, I also encountered the problem of periodic boundary conditions, have tried for about a week still can not solve, such as setting the boundary conditions of the KHI, you can give some details of how to set the grid?

qhma commented 1 year ago

Thanks to the team for sharing this code. I have a question about the boundary condition. I want to set a temperature boundary condition in the inflow for a determined temperature. I tried to use pressure and density to calculate the temperature with ideal gas equation of states. Are there any methods to set a temperature boundary condition, such as isothermal boundary or adiabatic boundary?

SRkumar97 commented 1 year ago

You are better off exporting the mesh in ugrid format (binary, swap bytes) where you can prescribe the periodic boundary conditions correctly and then use the UGRID translator available. The .msh fluent format might not take the correct periodic boundary condition code.

I am also trying to set periodic boundary condition for a flat plate boundary layer case - for the spanwise directions. After exporting the grid from pointwise in UGRID format, am I supposed to use this "UGRID translator" code by creating an executable? https://github.com/ucns3d-team/UCNS3D/blob/master/scripts/translators/UGRID2NAT.f90

Additionally, are all the BCs listed for UGRID software, supported by UCNS3D? Viz. Inflow (mass), Inflow (fixed), Farfield (Riemann), etc.? Thanks a ton in advance