Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deviations in Simulation Outcomes for Long Channel Configurations from Analytical Results #605

Open
YuVirtonomy opened this issue Jun 28, 2024 · 8 comments

Comments

@YuVirtonomy
Copy link
Collaborator

YuVirtonomy commented Jun 28, 2024

Issue/Question: Deviations in Simulation Outcomes for Long Channel Flow Configurations from Analytical Results

Description

When simulating fluid flow in long channel configurations, deviations in the velocity field from analytical results are observed. The simulation setup includes a parabolic velocity inlet with a maximum velocity of 1.0 and an outlet pressure set to 0. The Reynolds number (Re) is 100, with viscosity calculated accordingly. The resolution is set to DH/40. For the same setup, if DL = 10 DH, the results fit the analytical results very well.

Simulation Setup

  • Inlet Velocity Profile: Parabolic, maximum velocity = 1.0
  • Outlet Pressure: 0
  • Reynolds Number (Re): 100
  • Viscosity: Calculated based on Re
  • Resolution: DH/40
  • Simulation time: 1000s
  • Boundary length: 5* resolution_ref (no difference between using 3 * resolution_ref and 5 * resolution_ref )
  • Function employed: Integration1stHalfWithWallRiemann, Integration2ndHalfWithWallRiemann

Observations

  1. Velocity Field:

    • The velocity field deviates from the expected analytical results as the channel length increases.

    Velocity Field
    Velocity field visualization

  2. Pressure Field:

    • The pressure field shows significant variations along the length of the channel instead of a steady pressure gradient toward the outlet.

    Pressure Field
    Pressure field visualization

  3. Velocity Profile at Mid-Channel:

    • The velocity at the radial direction measured from X = DL*0.5 (where DL = DH * 50) shows deviations from the analytical profile.

    Velocity Profile
    Velocity at radial direction measured from X = 0.5DL

    The velocity profile obtained from an observer at the last time step demonstrates that the maximum velocity is slower than the analytical result.

Steps to Reproduce

Check out the branch: issue/velocity_inlet.

Straight Channel Simulations

This section summarizes the results of simulations, focusing on various configurations within a straight channel each configuration details the parameters used, including domain length (DL), resolution, and corrections applied.

Parameters and Configurations

Each simulation varied the domain length (DL), transport correction, linear correction, and resolution (DH/40), with Riemann solvers consistently applied. Observer in this section is located at 0.5DL.

Simulations with DL = 10*DH

  • No Corrections
    • No Corrections DL=10
  • Linear Correction Only
    • Linear Correction Only DL=10
  • Transport Correction Only
    • Transport Correction Only DL=10
  • Both Corrections
    • Both Corrections DL=10

Simulations with DL = 30*DH

  • No Corrections
    • No Corrections DL=30
  • Linear Correction Only
    • Linear Correction Only DL=30
  • Transport Correction Only
    • Transport Correction Only DL=30
  • Both Corrections
    • Both Corrections DL=30

Simulations with DL = 40*DH

  • No Corrections
    • No Corrections DL=40
  • Linear Correction Only
    • Linear Correction Only DL=40
  • Transport Correction Only
    • Transport Correction Only DL=40
  • Both Corrections
    • Both Corrections DL=40

Summary with Straight Channel

  • Without Transport Correction: Simulations are closer to analytical solutions but show particle clumping leading to crashes in simulations.
    • Clumping Issue
  • With Transport and Linear Corrections: Results exhibit strong agreement with the analytical solution.

FDA Geometry Simulations

Simulations in FDA geometries with DL = 30*DH and DL = 40*DH were conducted, focusing on the effectiveness of different correction strategies. Observer in this section is located at 0.5 L_in.
image

DL = 30*DH

  • Linear Correction Only
    • FDA Linear Correction Only DL=30
  • Both Corrections
    • FDA Both Corrections DL=30

DL = 40*DH

  • Linear Correction Only
    • FDA Linear Correction Only DL=40
  • Both Corrections
    • FDA Both Corrections DL=40

Summary with FDA Channel

Observations Without Transport Correction

Without using transport correction, the particle distribution is uneven in the sudden expansion region of the nozzle-type channel. This uneven distribution is particularly problematic in simulations of channels with sudden changes in geometry.

Visual Examples of Particle Clamping due to without Transport Correction

  • Resolution = DH/40

  • Particle Distribution Issue 1

  • Particle Distribution Issue 2

Results with Transport and Linear Corrections

Using both transport and linear corrections, the results in the FDA simulations align well with predictions. The velocity profiles between the inlet and the shrinking region (DH) form an effective parabolic shape. However, the flow at sudden expansion region's flow is asymmetric.

Visual of asymmetric flow at sudden expansion region

  • Resolution = DH/40

    • FDA Simulation at DH/40
    • Parabolic Profile Formation DH/40
  • Resolution = DH/60

    • Improved Particle Distribution DH/60
    • Enhanced Parabolic Profile DH/60
      image
@Xiangyu-Hu
Copy link
Owner

@FengWang3119 Could you also have this issue. It may related to the transport formulation too.

@FengWang3119
Copy link
Collaborator

OK I will check it.
Maybe measuring velocity from X = 0.9DL will make a difference

@YuVirtonomy
Copy link
Collaborator Author

@Xiangyu-Hu @FengWang3119
With transport and linear corrections applied, the velocity profile fits analytically very well. In the FDA geometry, a parabolic flow forms between the inlet and the nozzle region. However, the flow becomes asymmetric after the sudden expansion in the FDA geometry.

@FengWang3119
Copy link
Collaborator

@YuVirtonomy Did you add a constant time-reducing gravity to avoid the start-up instability? Similar in the case, free stream flow around cynlinder.
I also meet this kind of problem for the long channel case.

@Xiangyu-Hu
Copy link
Owner

Xiangyu-Hu commented Jul 2, 2024

https://www.mdpi.com/2311-5521/6/1/4#B33-fluids-06-00004
in 2d, you can see the instant flow is no symmetric even when Re is much less that 500.

@Xiangyu-Hu
Copy link
Owner

@Xiangyu-Hu @FengWang3119 With transport and linear corrections applied, the velocity profile fits analytically very well. In the FDA geometry, a parabolic flow forms between the inlet and the nozzle region. However, the flow becomes asymmetric after the sudden expansion in the FDA geometry.

https://www.mdpi.com/fluids/fluids-06-00004/article_deploy/html/images/fluids-06-00004-g003-550.jpg

@YuVirtonomy
Copy link
Collaborator Author

@Xiangyu-Hu @FengWang3119 With transport and linear corrections applied, the velocity profile fits analytically very well. In the FDA geometry, a parabolic flow forms between the inlet and the nozzle region. However, the flow becomes asymmetric after the sudden expansion in the FDA geometry.

https://www.mdpi.com/fluids/fluids-06-00004/article_deploy/html/images/fluids-06-00004-g003-550.jpg

With transport and linear corrections applied, the velocity profile fits analytically very well. In the FDA geometry, a parabolic flow forms between the inlet and the nozzle region. However, the flow becomes asymmetric after the sudden expansion in the FDA geometry.

Based on the same setup, the results are almost exact. The referenced study uses the average velocity at the inlet to calculate the Reynolds number, while in this test case, the Reynolds number is defined using the maximum velocity at the inlet. Therefore, for the test case, Re = 100 corresponds to their Re = 50.

image
The result was converted to grid-based for streamlined visualization
image

@Xiangyu-Hu @FengWang3119 Any suggestion to wrap up this branch?

@Xiangyu-Hu
Copy link
Owner

@YuVirtonomy and @FengWang3119 I suggest that we set user case both in 2d and 3d forms, so that Feng can later test turbulence model here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants