Open
Conversation
mathrack
reviewed
Mar 4, 2026
…o host, it only does 1, improves execution time 3.68x
…s and pre correction
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds (
m_case_cylinder) for simulating flow around a circular cylinder using the solver's built-in Immersed Boundary Method (IBM).Boundary conditions
u=1, v=0, w=0u, Dirichlet zero onvandwThe outflow BC discretises
du/dt + Uc * du/dx = 0as:The velocity
Ucis computed dynamically each timestep as the global maximum ofuatnx-1, following the approach used in Xcompact3d's cylinder wake case. This prevents blowup that occurs when using a fixedUcThe outflow is applied both in
boundary_conditions(onU^m) and inpre_correction(onU*before the Poisson solve), which is required for the projection method to maintain consistency.Initial conditions
Uniform flow
u=1, v=0, w=0with optional localized random noise (controlled viainit_noisein the namelist)Configuration
init_noise(3)for per-component noise amplitude. Example input:Requires
ibm_on = TandBC_x = 'dirichlet', 'dirichlet'in the solver settings (could work without IBM but it won't create data for visuals)Tested
dt = 0.0075, 30k iterations – stable with dynamicUc.