-
Notifications
You must be signed in to change notification settings - Fork 232
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
Verification/fda nozzle #590
base: master
Are you sure you want to change the base?
Conversation
@YuVirtonomy First the definition of Reynold number. Second, do you have time average of the simulation? Third, how is the new results? |
@YuVirtonomy Another comment. If is the results is very asymmetric near entrance, there is must be something wrong. |
One more thing. It is suggested for channel flow simulation, one always accelerate to entire with gravity first if the inflow condition prescribes velocity profile. |
@YuVirtonomy the fdA case is too large so it triggers timeout. You may do not run full time length or using less resolution. |
@YuVirtonomy or we can make as special user case in a separate repo. |
The recent code changes include the addition of a convergence checker and the TimeDependentAcceleration feature. These changes aim to improve the functionality and accuracy of the code. The commit message follows the established convention of starting with a type (feat for feature) and providing a concise description of the changes made.
The recent code changes refactor the TimeDependentAcceleration feature and convergence checker. This update aims to improve the functionality and accuracy of the code. The commit message follows the established convention of starting with a type (refactor for code refactoring) and providing a concise description of the changes made.
@FengWang3119 can you review this and suggest me some solution? Simulation set upRe = 500 Simulation result with NP = 15
axial velocity near by inlet, nozzle (sudden expansion side), and near by outlet. The convergence is calculated based on the axial velocity at nozzle axial velocity at x = -0.088 IssueAsymmetry Post-Sudden Expansion: The simulation results exhibit unexpected asymmetrical behavior following the sudden expansion area. |
Is this a 3d simulation? Also, do you have obtained results by time average? |
No, this is not the time-averaged data. However, the figure Velocity and Convergence Rate shows the velocity evolution over time. In the graph, the orange line represents the velocity of an observer placed in the axial direction near the inlet. The blue line indicates the velocity of an observer near the throat and sudden expansion region. The green line depicts the velocity of an observer near the outlet. The red lines is the converge rate based on the blue line. As time progresses, we observe that the velocity of observer near the outlet decreases over time. |
Do you mean that the asymmetrical result is converged solution? |
I have updated the simulation result using average velocity data.
The velocity profile at the outlet, as shown, is clearly asymmetric. I will provide the results with a resolution of Np = 10 and 20 at a later time. |
It is very strange that time average results of a symmetrical geometry is not symmetrical. |
The results is very interesting. Do you have other runs which its result gives the same asymmetric bias direction? |
You may use dissipative Riemann solver to have a look. |
One thing I noticed is that with increasing resolution, the simulation tends to become more symmetric. The following results were obtained using the following configuration:
NP = 10 (0.25 million fluid particles)NP = 15 (1 million fluid particles)NP = 20 (2 million fluid particles)Axial Velocity Profiles at Different Resolutions
For NP = 20, the velocity at x = 0.08 (near the outlet) can reach 0.35 m/s, while in experimental data, it is about 0.42 to 0.5 m/s. I will provide more details with NP = 20 later, as this simulation terminates before I can summarize the results. @Xiangyu-Hu any suggestion of what to try next? |
Please have a check whether the biased results is repeatable in different runs. |
@YuVirtonomy could you also check geometry, i.e. the level set? May be there is some defects. I suddenly thought about this when I use new geometry in a recent pull request #626. |
Here are the results showing the overlap of the wall level set shape with the wall mesh: Resolution Np 5Resolution Np 10Resolution Np 15Resolution Np 20Resolution Np 25Overall, aside from the resolution, the 90-degree corner becomes sharper. Otherwise, the level set and mesh almost align perfectly. |
@YuVirtonomy could you have careful check whether there are small solid pieces with the fluid domain (which may pollute the fluid domain). You can check it by cut the level set zero contour. |
I have carefully checked the fluid domain for any small solid pieces that might contaminate it. I inspected the zero level set contour, it appears that there are no solid particles polluting the fluid domain and the fluid and solid level set are perfectly align |
@YuVirtonomy I am more interested on the lower resolution results and wonder why the the simulation results are asymmetric. Basically, I am thinking the possibility of polluted fluid domain if the the asymmetric bias is reproducible. Another thing is that we can use the linear reproducing wall boundary condition when computing viscous force. This may increase the resolution near the wall. |
Please also have a check on the new pull request #629 in which a linear corrected viscous force is implemented. |
Issue Focus: Sudden Expansion Part to OutletTo address the issue between the sudden expansion part and the outlet, the concentrate part has been removed. Below are the details of the simulations and the observed results. The simulation ran for 2 seconds, which is sufficient to consider as convergence. The inlet is set so that the velocity profile at x = 0 aligns with experimental data. Simulation ResultsVelocity Measurements The graphs below show the comparison between the simulation results using
Velocity Measured at x = 0Velocity Measured at x = 0.08Additional AlgorithmsDetails of other algorithms used in the simulations:
SummaryWith the use of |
@YuVirtonomy Another important test you should have a look is using gravity to replace pressure boundary condition and have a look on the results. |
Visualization of Cross Section View at x = 0.08For this setup, I used a resolution of NP = 10 with the second half without a Riemann solver. I created a clip to better visualize the cross-section view at x = 0.08, as shown below: Original Mesh vs. Rotated MeshThe cross-section view where A to C is using the original mesh, and D to F use the mesh rotated 90 degrees along the axial side: SummaryThe results do not exhibit symmetry across different simulations. Details of algorithms
|
Do you meant directly apply acceleration? but over here i only set pressure zero at outlet |
@YuVirtonomy Good. The results show no preference on any asymmetric direction, it just gives unsteady solution. This quite reasonable,like the experimental results. Therefore, you need use temporal average to obtained the flow velocity profiles. |
I mean do not use pressure boundary condition to check whether pressure gradient computing has any serious problem. |
Simulation ResultsIn this simulation, ( N_p = 8 ) was used to verify the asymmetric issue. The simulation runs for a total of 5 seconds, with the inflow velocity increasing from 0 to the target velocity within the first 0.25 seconds. Results are recorded every 0.0005 seconds. The average velocity is calculated over the last 2000 steps, representing the average velocity for the most recent 1-second interval. Simulation Output
Algorithm Used
SummaryAs shown above, although the result is smoother and exhibits some asymmetry, the last figure still does not show significant asymmetry. Question: Hypothesis: To verify this, I set the entire throat channel, plus a bit of extension, with a parabolic inflow velocity and ran exactly the same test as above.
|
I have tried to avoid using the pressure condition by using With ( N_p = 10 ), the simulation failed due to an issue at the outlet. I was unable to capture the last step before the simulation failed. With ( N_p = 15 ), the simulation seemed to work. I set up two cases:
The boundary conditions and algorithms used follow the T-shaped pipe example but utilize For the version where the entire throat channel is assigned with a velocity condition, the simulation failed at 2.9 seconds, likely due to reverse flow issues at the outlet. For the version with a 20-resolution inflow boundary length, the simulation reached 4.6 seconds without issues.
SummaryIt seems that prescribing the entire throat channel with a velocity condition can generally increase asymmetry. It may be worth to repeat the case with |
@YuVirtonomy |
@YuVirtonomy Also, how long time the experiment has used for time average? |
In their study. for the Re =500 condition using Particle Image Velocimetry (PIV), approximately 500 image pairs were captured with intervals between frames varying by region: 1.4 ms for the entrance, 0.395 ms for the throat, and 1.5 ms for the recirculation areas. Thus, the total experiment duration for capturing all images was estimated to be around 750 ms, assuming sequential image capture without overlap. |
(1) The asymmetry does not have a direction preference, and it does not decrease with a longer time average. In fact, the flow always remains unstable at low resolution. (2) Yes, the last two figures are time-averaged results. The average was carried out over 1 second, using 2000 frames in this 1-second period. |
Case Description: FDA Nozzle Benchmark Model for Medical Device Evaluation
This verification test leverages the FDA's nozzle benchmark model, a simplified and idealized construct of a medical device. The model is designed to simulate critical fluid dynamics that may influence blood damage, such as accelerating and decelerating flows, varying shear stresses, velocities, and recirculating flows.
Model Specifications:
The model features an axisymmetric nozzle with a stenotic throat measuring 0.04 meters in length. It includes a 20° connecting cone at one end and a step change in diameter at the other end, facilitating flow from left to right.
The fluid within the model has a density of 1056 kg/m³ and a dynamic viscosity of 3.5 mPa·s.
The Reynolds number, a key parameter in the study, is defined at the throat of the nozzle.
Reference data
Axial velocity along nozzle centerline for throat Reynolds number (a) 500, (b) 2000
Resources and Further Reading:
Numerical Model setup:
Geometry:
Geometry Specification:
The illustration above details the geometry of the FDA nozzle, integral to this experimental setup.
Geometry Specification for the FDA Nozzle Model
In the current model configuration, the FDA nozzle has been deliberately extended by 0.012 meters at both the inlet and outlet to minimize potential numerical artifacts arising from boundary conditions. This modification is crucial for ensuring that the simulation results accurately reflect the fluid dynamics within the device without being unduly influenced by the boundaries.
Orientation and Dimensions:
Illustration of the Extended Nozzle Geometry:
Boundary Condition:
This case will firstly focus on Reynolds number = 500, in which the flowrate Q_f is set to 5e-6
Integration1stHalfWithWallRiemann
Integration2ndHalfWithWallRiemann
Simulation Results: Initial Setup
The duration for all simulations is set to 5 seconds, which exceeds the time necessary to reach a convergent state, ensuring the accuracy and reliability of the results. Following the example, the buffer zone width is set to 5*dp.
Particle Count N = 10
The following images display the simulation results for a particle count of N = 10, showcasing different aspects of fluid dynamics within the model.
Axial Velocity Profiles
Velocity:
Pressure:
Velocity Profile Along the Axial Direction:
Velocity Profile Along the Radial Direction at x = -0.064m:
Particle Count N = 15
The following images display the simulation results for a particle count of N = 15, showcasing different aspects of fluid dynamics within the model.
Axial Velocity Profiles
Velocity:
Pressure:
Velocity Profile Along the Axial Direction:
Velocity Profile Along the Radial Direction at x = -0.064m:
Summary
The peak velocity occurs right at the sudden expansion. For N=15, the velocity at the throat region aligns well with experimental data. However, the fluid velocity between the inlet and throat does not exhibit the expected parabolic flow, but more like turbulent flow, which contrasts with FDA experimental data suggesting a parabolic profile in this region. In the sudden expansion region, the fluid velocity appears slower than experimental data, resembling results from simulations using the k-epsilon turbulent model rather than those from CFD simulations. Notably, the flow near the outlet is less symmetric than expected.
Focus on the velocity between inlet and throat region. (N=10)
Further investigating of the non-parabolic profile between inlet and throat region.
Changing Inflow Buffer Zone Width