2.1. Geometric Optimization Study
An investigation into TV geometry was conducted on a simplified, straight-through main passage variant rather than the traditional kinked main flow path type. An over arching scripting interface was developed integrating automatic geometry generation, computational fluid dynamics (CFD) simulation, and data analysis. Software platforms utilized include SolidWorks
® 2023, Ansys CFX
® 2023 R2, and MATLAB
® 2024 b. A base geometry, found in
Figure 1, was utilized to explore how the performance of a TV changes through geometric variance.
The parameter space was developed by generating a design of experiments (DOE) matrix with the variation of four geometric parameters and a series of Reynold’s Numbers. The DOE was as follows:
Symmetry Ratio () ,
Diameter Ratio () ,
Inlet Angle () ,
Outlet Angle () ,
Reynolds Number .
as seen in
Figure 1 is defined as the symmetry of the TV, where a ratio of zero would be referred to as a symmetric TV and a ratio of 1.0 or higher would be an asymmetric TV. Any values in between would be referred to as a partial asymmetric TV. The length
in
Figure 1 is equal to the Symmetry Ratio multiplied by the length between the inlet and outlet of the first arm.
is the ratio of the diameter of the arm (
d) versus the diameter of the main channel (
D). The main diameter (
D) was set at 4 mm for the entirety of this study.
is defined as the inlet angle at which the fluid is diverted from the main channel. It can also be seen that
is defined as the outlet angle at which the fluid returns to the main channel. Each combination was run over a series of different Reynolds number regimes ranging from laminar flow, based on the main channel velocity and diameter, to turbulent flow. The study overall encompassed a total of 7350 CFD simulations.
Several measurements were automatically stored for later analysis. These included differential pressure
across each valve and the minimum pressure
within each realization of the valve geometry. Minimum pressure was utilized for determination of the onset of cavitation through single-phase CFD simulations, as done in previous work by Ferrarese et al. [
8]. The pressure utilized for onset of cavitation was 0.5 psi, based on the approximate saturation pressure value of water at atmospheric conditions at the outlet [
9].
Meshes for the computational analysis were unstructured tetrahedral based with prism inflation layers. Generally inflation layers for the boundary were generated with a growth rate of 1.2 and five elements, such that the interface with the bulk mesh resulted in a similarly sized element. A mesh sensitivity study was completed prior to commencement of the geometric study. Due to the vast diversity of valve geometries in this study, a simple partial symmetric valve with
,
,
,
, and a Reynolds Number of
was utilized for the mesh sensitivity study. A series of meshes were developed with varying inflation layers, and the differential pressure and minimum pressure throughout the fluid domain were obtained for further analysis.
values were controlled based on defining the first layer height. Results of the study can be found in
Table 1.
The study demonstrated computational expense can be spared to achieve consistent differential pressures from a coarse mesh. The sacrifice in accuracy of minimum pressures was accounted for as a safety factor in the developed design tool discussed later. The decision to utilize the medium mesh consisting of a base mesh size of 0.5 mm and five inflation layers at a smooth transitional growth rate of 1.2 was made resulting in an average of 6.16. The in areas of high shear was approximately 15. The turbulence model for the simulations was SST. The study also found that adding hydraulically insignificant fillets at the sharp corners in the Tesla model better allowed the inflation layers to form within the mesh across all geometries. This was demonstrated by the negligible change in results for converged solutions prior to implementation compared to converged results after implementation.
The overall layout of the automation suite developed can be found in
Figure 2. The base geometry was parameterized and linked to an external text file. The MATLAB
® code then iterates one design at a time by first editing the parameterized text file, and then directing Computer Aided Design (CAD) software, in this case SolidWorks
® 2023, to rebuild. The file is then saved as a parasolid in a known directory. Utilizing a series of Python
® scripts, the code then replaces the geometry of a previously constructed CFD case structure with the rebuilt geometry that maintains all the appropriate volumes and patches/surfaces. For this study, the prebuilt case was an ANSYS CFX
® module within ANSYS Workbench.
The preset mesh settings were selected from the sensitivity study and applied across all models utilized within the study. This was an accepted risk to the results as will vary between models, but the expected overall pressure drop data were anticipated to be marginally unaffected as the majority of the pressure drop occurs due to bulk flow fluid turbulence and not due to wall shear. The fluid was defined as incompressible, with constant property water at 25 °C and the boundaries defined with no slip walls, a velocity defined inlet, and an outlet at atmospheric pressure. The file was then executed to update the new geometry and generate the mesh, run over the six different Reynolds number regimes , and then output the and across the fluid domains. Those outputs are extracted to a Comma Separated Values (CSV) file, where the master code, written in MATLAB, extracts that data and saves it in an array for later processing. The overall study took approximately three weeks of wall clock time to complete the 7350 simulations.
Pressure drop was non-dimensionalized by the average velocity and density into the Euler Number, defined as
where
is the differential pressure,
is the density, and
V is the inlet velocity.
The data were plotted in several combinations to observe data trends. The saved minimum pressure, , often indicated significant negative pressure and was always less than the outlet pressure, as expected. To give physical meaning to this from the incompressible calculation results, a new variable is defined, the required system pressure () to avoid non-physical, or cavitation realizations in a test platform. was defined as the pressure to keep the system above 0.5 psi minimum (or the approximate onset to cavitation pressure at standard temperature and pressure with an engineering margin applied.). The most effective plot method was found to be plotting required system pressure () as a function of the calculated Euler number.
2.2. Machine Learning Model Development and Optimization
An analytical solution to the results was desired to further optimize the TV design for a pressure drop device. Manual development methods utilizing conservation of momentum as well as continuity equations proved to be unreliable and highly inaccurate. The data were observed to have no significant abnormalities or outliers. Data were then formatted accordingly to MATLAB’s required syntax and then utilized to train a machine learning (ML) model within MATLAB’s Regression Learner Application. The Regression Learner Application resides in MATLAB’s Machine Learning Toolbox.
All models available within MATLAB were trained initially to observe which model would be most accurate in valve performance prediction. The best ML model found for the
Reynolds number regime was a Gaussian Process Regression (GPR) model. The design criteria placed the studies focus on the
regime. Focus was put on the
regime, as that was where the design criteria placed the desired fluid domain. That regime’s data were then randomly separated into a train and test set (
and
, respectively), and hyperparameter optimization was then performed on the GPR utilizing a Bayesian Optimization scheme and resulted in the model parameters found in
Table 2. An optimized model was developed using this same process for valve performance predictions across each Reynolds number regime individually, resulting in six different models overall. A fine mesh of the parameter space consisting of 61,000,000 combinations of
,
,
, and
was applied to the
model to find the geometry that yielded the expected maximum pressure drop.
2.3. Series Design Tool
Two designs were chosen to develop an overall design tool in the search for an optimized pressure drop device without inducing cavitation. A generic symmetric Tesla design at , , , , and the ML optimized design were chosen. A series of CFD simulations of each design were run over a range of inlet velocities from 2 to 10 m/s, and the number of valves in series (N) was increased as well. The mesh settings remained the same, and the boundaries and outputs were defined as before in the previous study. As an example, a five-series symmetric valve refers to five symmetric TVs in series. A four-series optimized TV consists of four optimized TVs, from the ML study, in series.
This data were non-dimensionalized again utilizing the Euler number and were plotted with the
for each Series Number (
N). The Series Number (
N) is defined as the number of TVs in a row within a particular flow passage. Two curves were then developed from this data. A relationship between Euler number and
N was found to be linear, which demonstrated the principle of superposition. This was demonstrated across both designs. This linear fit allowed for a relationship to be developed based on the inlet velocity for a given
N and the desired pressure drop required. This inlet velocity was defined as the desired velocity (
) curve. Desired velocity was formally defined as
where
is the Euler number obtained from the linear fit of the Eu versus
N plot as described previously, and
is the desired differential pressure drop of the device.
Another relationship was developed by capturing the inlet velocity that induces onset to cavitation within a given series. A safety factor of two was arbitrarily selected and applied within the design tool to increase the margin to onset of cavitation; this can be easily altered by the user to set a different safety factor or to consider overall system operating pressures that may suppress cavitation. This velocity of onset to cavitation was defined as the critical velocity () and was a function of N.
Finalized designs were developed using , N, and required to achieve the desired pressure drop while avoiding onset of cavitation. The finalized designs determined the number of flow paths in parallel based on the inlet velocity and applying equations of continuity.
Final designs chosen utilized a minimum passage diameter allowed of 0.1 in for guaranteed additive manufacturing resolution and preventing particular particle sizes from clogging passages. This also allows the overall length of the component to be minimized by scaling down the passages to this limit. Parallel flow paths were then distributed axisymmetrically to develop the overall pressure drop device. Design objectives for this study are given in
Table 3.
The valve flow coefficient was used as the primary evaluation metric. Based on the values in
Table 3, and a valve flow coefficient defined as
where flow rate
Q must be in gallons per minute (gpm), the specific gravity
is set at
for this study, as water is the only medium utilized, and
must be in pounds per square inch (psi). The
objective for this research was 6.4.
is solely used in the US Customary System of Units, and the design goals were defined under the same system as well. The entirety of the results will remain in the SI system with the exception of final design lengths or diameters, which will be defined in inches. All data collected, as well as code utilized, are available per request from the corresponding author.