This serves as an example of cavitation modelling with the multiphaseEuler module. This case also contains validation of the pressure profile along the hydrofoil against experimental data. Based on a case contributed by Petteri Peltonen, VTT.
150 lines
4.0 KiB
C++
150 lines
4.0 KiB
C++
/*--------------------------------*- C++ -*----------------------------------*\
|
|
========= |
|
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
|
\\ / O peration | Website: https://openfoam.org
|
|
\\ / A nd | Version: dev
|
|
\\/ M anipulation |
|
|
\*---------------------------------------------------------------------------*/
|
|
|
|
type sets;
|
|
libs ("libsampling.so");
|
|
|
|
writeControl writeTime;
|
|
|
|
interpolationScheme cellPoint;
|
|
|
|
setFormat raw;
|
|
|
|
fields (p);
|
|
|
|
axis xyz;
|
|
|
|
sets
|
|
(
|
|
lower
|
|
{
|
|
type boundaryPoints;
|
|
axis xyz;
|
|
points
|
|
(
|
|
(0 0 0)
|
|
(0.003 -0.0003 0)
|
|
(0.006 -0.0006 0)
|
|
(0.009 -0.0009 0)
|
|
(0.012 -0.0012 0)
|
|
(0.015 -0.0015 0)
|
|
(0.018 -0.0018 0)
|
|
(0.021 -0.0021 0)
|
|
(0.024 -0.0024 0)
|
|
(0.027 -0.0027 0)
|
|
(0.03 -0.003 0)
|
|
(0.033 -0.0033 0)
|
|
(0.036 -0.0036 0)
|
|
(0.039 -0.0039 0)
|
|
(0.042 -0.0042 0)
|
|
(0.045 -0.0045 0)
|
|
(0.048 -0.0048 0)
|
|
(0.051 -0.0051 0)
|
|
(0.054 -0.0054 0)
|
|
(0.057 -0.0057 0)
|
|
(0.06 -0.006 0)
|
|
(0.063 -0.0063 0)
|
|
(0.066 -0.0066 0)
|
|
(0.069 -0.0069 0)
|
|
(0.072 -0.0072 0)
|
|
(0.075 -0.0075 0)
|
|
(0.078 -0.0078 0)
|
|
(0.081 -0.0081 0)
|
|
(0.084 -0.0084 0)
|
|
(0.087 -0.0087 0)
|
|
(0.09 -0.009 0)
|
|
(0.093 -0.0093 0)
|
|
(0.096 -0.0096 0)
|
|
(0.099 -0.0099 0)
|
|
(0.102 -0.0102 0)
|
|
(0.105 -0.0105 0)
|
|
(0.108 -0.0108 0)
|
|
(0.111 -0.0111 0)
|
|
(0.114 -0.0114 0)
|
|
(0.117 -0.0117 0)
|
|
(0.12 -0.012 0)
|
|
(0.123 -0.0123 0)
|
|
(0.126 -0.0126 0)
|
|
(0.129 -0.0129 0)
|
|
(0.132 -0.0132 0)
|
|
(0.135 -0.0135 0)
|
|
(0.138 -0.0138 0)
|
|
(0.141 -0.0141 0)
|
|
(0.144 -0.0144 0)
|
|
(0.147 -0.0147 0)
|
|
(0.15 -0.015 0)
|
|
);
|
|
patches (hydrofoil);
|
|
maxDistance 1;
|
|
}
|
|
upper
|
|
{
|
|
type boundaryPoints;
|
|
axis xyz;
|
|
points
|
|
(
|
|
(0 0.015 0)
|
|
(0.003 0.0147 0)
|
|
(0.006 0.0144 0)
|
|
(0.009 0.0141 0)
|
|
(0.012 0.0138 0)
|
|
(0.015 0.0135 0)
|
|
(0.018 0.0132 0)
|
|
(0.021 0.0129 0)
|
|
(0.024 0.0126 0)
|
|
(0.027 0.0123 0)
|
|
(0.03 0.012 0)
|
|
(0.033 0.0117 0)
|
|
(0.036 0.0114 0)
|
|
(0.039 0.0111 0)
|
|
(0.042 0.0108 0)
|
|
(0.045 0.0105 0)
|
|
(0.048 0.0102 0)
|
|
(0.051 0.0099 0)
|
|
(0.054 0.0096 0)
|
|
(0.057 0.0093 0)
|
|
(0.06 0.009 0)
|
|
(0.063 0.0087 0)
|
|
(0.066 0.0084 0)
|
|
(0.069 0.0081 0)
|
|
(0.072 0.0078 0)
|
|
(0.075 0.0075 0)
|
|
(0.078 0.0072 0)
|
|
(0.081 0.0069 0)
|
|
(0.084 0.0066 0)
|
|
(0.087 0.0063 0)
|
|
(0.09 0.006 0)
|
|
(0.093 0.0057 0)
|
|
(0.096 0.0054 0)
|
|
(0.099 0.0051 0)
|
|
(0.102 0.0048 0)
|
|
(0.105 0.0045 0)
|
|
(0.108 0.0042 0)
|
|
(0.111 0.0039 0)
|
|
(0.114 0.0036 0)
|
|
(0.117 0.0033 0)
|
|
(0.12 0.003 0)
|
|
(0.123 0.0027 0)
|
|
(0.126 0.0024 0)
|
|
(0.129 0.0021 0)
|
|
(0.132 0.0018 0)
|
|
(0.135 0.0015 0)
|
|
(0.138 0.0012 0)
|
|
(0.141 0.0009 0)
|
|
(0.144 0.0006 0)
|
|
(0.147 0.0003 0)
|
|
(0.15 0 0)
|
|
);
|
|
patches (hydrofoil);
|
|
maxDistance 1;
|
|
}
|
|
);
|
|
|
|
|
|
// ************************************************************************* //
|