-
Notifications
You must be signed in to change notification settings - Fork 125
fix swapped vapor gas properties #1093
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
base: master
Are you sure you want to change the base?
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -26,8 +26,8 @@ | |
| R_uni = 8314 # Universal gas constant - J/kmol/K | ||
| MW_g = 28.0 # Molar weight of the gas - kg/kmol | ||
| MW_v = 18.0 # Molar weight of the vapor - kg/kmol | ||
| gamma_g = 1.4 # Specific heat ratio of the gas | ||
| gamma_v = 1.333 # Specific heat ratio of the vapor | ||
| gam_g = 1.4 # Specific heat ratio of the gas | ||
| gam_v = 1.333 # Specific heat ratio of the vapor | ||
| pv = 2350 # Vapor pressure of the host - Pa | ||
| cp_g = 1.0e3 # Specific heat of the gas - J/kg/K | ||
| cp_v = 2.1e3 # Specific heat of the vapor - J/kg/K | ||
|
|
@@ -128,6 +128,8 @@ | |
| # Lagrangian Bubbles | ||
| "bubbles_lagrange": "T", | ||
| "bubble_model": 2, # Keller-Miksis model | ||
| "thermal": 3, | ||
| "polytropic": "F", | ||
| "lag_params%nBubs_glb": 1194, # Number of bubbles | ||
| "lag_params%solver_approach": 2, | ||
| "lag_params%cluster_type": 2, | ||
|
|
@@ -139,33 +141,34 @@ | |
| "lag_params%valmaxvoid": 0.9, | ||
| "lag_params%write_bubbles": "F", | ||
| "lag_params%write_bubbles_stats": "F", | ||
| "lag_params%c0": c0, | ||
| "lag_params%rho0": rho0, | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Missing charwidth parameter in 2D Lagrangian bubble exampleThe 2D Lagrangian bubble example no longer sets |
||
| "lag_params%T0": T0, | ||
| "lag_params%x0": x0, | ||
| "lag_params%diffcoefvap": diffVapor, | ||
| "lag_params%Thost": T_host, | ||
| "lag_params%charwidth": z_virtual / x0, | ||
| # Bubble parameters | ||
| "bub_pp%R0ref": 1.0, | ||
| "bub_pp%p0ref": 1.0, | ||
| "bub_pp%rho0ref": 1.0, | ||
| "bub_pp%T0ref": 1.0, | ||
| "bub_pp%ss": sigBubble / (rho0 * x0 * c0 * c0), | ||
| "bub_pp%pv": pv / p0, | ||
| "bub_pp%vd": diffVapor / (x0 * c0), | ||
| "bub_pp%mu_l": mu_host / (rho0 * x0 * c0), | ||
| "bub_pp%gam_v": gam_v, | ||
| "bub_pp%gam_g": gam_g, | ||
| "bub_pp%M_v": MW_v, | ||
| "bub_pp%M_g": MW_g, | ||
| "bub_pp%k_v": k_v * (T0 / (x0 * rho0 * c0 * c0 * c0)), | ||
| "bub_pp%k_g": k_g * (T0 / (x0 * rho0 * c0 * c0 * c0)), | ||
| "bub_pp%cp_v": cp_v * (T0 / (c0 * c0)), | ||
| "bub_pp%cp_g": cp_g * (T0 / (c0 * c0)), | ||
| "bub_pp%R_v": (R_uni / MW_v) * (T0 / (c0 * c0)), | ||
| "bub_pp%R_g": (R_uni / MW_g) * (T0 / (c0 * c0)), | ||
| # Fluids Physical Parameters | ||
| # Host medium | ||
| "fluid_pp(1)%gamma": 1.0 / (gamma_host - 1.0), | ||
| "fluid_pp(1)%pi_inf": gamma_host * (pi_inf_host / p0) / (gamma_host - 1.0), | ||
| "fluid_pp(1)%Re(1)": 1.0 / (mu_host / (rho0 * c0 * x0)), | ||
| "fluid_pp(1)%mul0": mu_host, | ||
| "fluid_pp(1)%ss": sigBubble, | ||
| "fluid_pp(1)%pv": pv, | ||
| "fluid_pp(1)%gamma_v": gamma_v, | ||
| "fluid_pp(1)%M_v": MW_v, | ||
| "fluid_pp(1)%k_v": k_v, | ||
| "fluid_pp(1)%cp_v": cp_v, | ||
| # Bubble gas state | ||
| "fluid_pp(2)%gamma": 1.0 / (gamma_g - 1.0), | ||
| "fluid_pp(2)%gamma": 1.0 / (gam_g - 1.0), | ||
| "fluid_pp(2)%pi_inf": 0.0e00, | ||
| "fluid_pp(2)%Re(1)": 1.0 / (mu_g / (rho0 * c0 * x0)), | ||
| "fluid_pp(2)%gamma_v": gamma_g, | ||
| "fluid_pp(2)%M_v": MW_g, | ||
| "fluid_pp(2)%k_v": k_g, | ||
| "fluid_pp(2)%cp_v": cp_g, | ||
| } | ||
| ) | ||
| ) | ||
Uh oh!
There was an error while loading. Please reload this page.