diff --git a/tutorials/multiphase/multiphaseEulerFoam/RAS/wallBoiling/0/T.liquid b/tutorials/multiphase/multiphaseEulerFoam/RAS/wallBoiling/0/T.liquid index cac1030529..2b06470aad 100644 --- a/tutorials/multiphase/multiphaseEulerFoam/RAS/wallBoiling/0/T.liquid +++ b/tutorials/multiphase/multiphaseEulerFoam/RAS/wallBoiling/0/T.liquid @@ -17,7 +17,7 @@ FoamFile dimensions [ 0 0 0 1 0 0 0 ]; -internalField uniform 341.65; +internalField uniform 341.67; boundaryField { diff --git a/tutorials/multiphase/multiphaseEulerFoam/RAS/wallBoiling/0/U.gas b/tutorials/multiphase/multiphaseEulerFoam/RAS/wallBoiling/0/U.gas index 627152389d..b0eda43310 100644 --- a/tutorials/multiphase/multiphaseEulerFoam/RAS/wallBoiling/0/U.gas +++ b/tutorials/multiphase/multiphaseEulerFoam/RAS/wallBoiling/0/U.gas @@ -17,7 +17,7 @@ FoamFile dimensions [0 1 -1 0 0 0 0]; -internalField uniform (1.96244 0 0); +internalField uniform (1.75175 0 0); boundaryField { @@ -26,15 +26,15 @@ boundaryField type mapped; field U.gas; setAverage 0; - average (1.96244 0 0); + average (1.75175 0 0); interpolationScheme cell; - value uniform (1.96244 0 0); + value uniform (1.75175 0 0); } outlet { type pressureInletOutletVelocity; phi phi.gas; - value uniform (1.96244 0 0); + value uniform (1.75175 0 0); } wall { diff --git a/tutorials/multiphase/multiphaseEulerFoam/RAS/wallBoiling/0/U.liquid b/tutorials/multiphase/multiphaseEulerFoam/RAS/wallBoiling/0/U.liquid index ccd06c28ac..b28ac36713 100644 --- a/tutorials/multiphase/multiphaseEulerFoam/RAS/wallBoiling/0/U.liquid +++ b/tutorials/multiphase/multiphaseEulerFoam/RAS/wallBoiling/0/U.liquid @@ -17,7 +17,7 @@ FoamFile dimensions [0 1 -1 0 0 0 0]; -internalField uniform (1.96244 0 0); +internalField uniform (1.75175 0 0); boundaryField { @@ -26,15 +26,15 @@ boundaryField type mapped; field U.liquid; setAverage 1; - average (1.96244 0 0); + average (1.75175 0 0); interpolationScheme cell; - value uniform (1.96244 0 0); + value uniform (1.75175 0 0); } outlet { type pressureInletOutletVelocity; phi phi.liquid; - value uniform (1.96244 0 0); + value uniform (1.75175 0 0); } wall { diff --git a/tutorials/multiphase/multiphaseEulerFoam/RAS/wallBoiling/0/omega.gas b/tutorials/multiphase/multiphaseEulerFoam/RAS/wallBoiling/0/omega.gas new file mode 100644 index 0000000000..42f8dc92e3 --- /dev/null +++ b/tutorials/multiphase/multiphaseEulerFoam/RAS/wallBoiling/0/omega.gas @@ -0,0 +1,59 @@ +/*--------------------------------*- C++ -*----------------------------------*\ + ========= | + \\ / F ield | OpenFOAM: The Open Source CFD Toolbox + \\ / O peration | Website: https://openfoam.org + \\ / A nd | Version: dev + \\/ M anipulation | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + location "0"; + object omega.liquid; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 0 -1 0 0 0 0]; + +internalField uniform 0.01; + +boundaryField +{ + inlet + { + type mapped; + field omega.liquid; + setAverage 0; + average 0; + interpolationScheme cell; + value uniform 0.01; + } + outlet + { + type inletOutlet; + phi phi.liquid; + inletValue uniform 0.0015; + value uniform 0.01; + } + wall + { + type omegaWallFunction; + Cmu 0.09; + kappa 0.41; + E 9.8; + value uniform 0.001; + } + front + { + type wedge; + } + back + { + type wedge; + } +} + + +// ************************************************************************* // diff --git a/tutorials/multiphase/multiphaseEulerFoam/RAS/wallBoiling/Allclean b/tutorials/multiphase/multiphaseEulerFoam/RAS/wallBoiling/Allclean new file mode 100755 index 0000000000..cc56f3376b --- /dev/null +++ b/tutorials/multiphase/multiphaseEulerFoam/RAS/wallBoiling/Allclean @@ -0,0 +1,7 @@ +#!/bin/sh + +cd ${0%/*} || exit 1 + +. $WM_PROJECT_DIR/bin/tools/CleanFunctions + +cleanCase && rm -rf validation/*.eps diff --git a/tutorials/multiphase/multiphaseEulerFoam/RAS/wallBoiling/Allrun b/tutorials/multiphase/multiphaseEulerFoam/RAS/wallBoiling/Allrun index c1e8cb9856..48668c20ad 100755 --- a/tutorials/multiphase/multiphaseEulerFoam/RAS/wallBoiling/Allrun +++ b/tutorials/multiphase/multiphaseEulerFoam/RAS/wallBoiling/Allrun @@ -4,23 +4,23 @@ cd ${0%/*} || exit 1 # run from this directory # Source tutorial run functions . $WM_PROJECT_DIR/bin/tools/RunFunctions -application=`getApplication` - runApplication blockMesh runApplication extrudeMesh runApplication decomposePar -runParallel $application +runParallel $(getApplication) -if ! isTest $@ +if ! isTest "$@" then runApplication -a foamDictionary system/controlDict -entry endTime -set 4 runApplication -a foamDictionary system/controlDict -entry startTime -set 0.5 - runParallel -a foamDictionary 0.5/T.liquid -entry boundaryField/wall/q -set "uniform 73900" + runParallel -a foamDictionary 0.5/T.liquid -entry boundaryField/wall/q -set "uniform 73890" runParallel -a foamDictionary 0.5/U.liquid -entry boundaryField/inlet/type -set "fixedValue" - runParallel -a $application + runParallel -a $(getApplication) fi -runApplication -a reconstructPar -latestTime +runApplication reconstructPar -latestTime +runApplication postProcess -func singleGraph -latestTime +./validation/createGraphs #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/multiphaseEulerFoam/RAS/wallBoiling/R12.csv b/tutorials/multiphase/multiphaseEulerFoam/RAS/wallBoiling/R12.csv deleted file mode 100644 index 76529cccd6..0000000000 --- a/tutorials/multiphase/multiphaseEulerFoam/RAS/wallBoiling/R12.csv +++ /dev/null @@ -1,182 +0,0 @@ -Temperature (K);Pressure (MPa);Density (l. kg/m3);Viscosity (l. Pa*s);Therm. Cond. (l. W/m*K);Surf. Tension (l. N/m);Density (v. kg/m3);Viscosity (v. Pa*s);Therm. Cond. (v. W/m*K) -329.351;1.4;1185.7;0.000134252;0.0564358;0.00485756;81.1532;1.33E-05;0.0128043 -329.671;1.41;1184.24;0.000133755;0.0563258;0.00482213;81.7861;1.33E-05;0.0128369 -329.99;1.42;1182.79;0.000133263;0.0562162;0.00478694;82.4205;1.33E-05;0.0128695 -330.307;1.43;1181.34;0.000132773;0.0561073;0.00475199;83.0561;1.33E-05;0.0129022 -330.623;1.44;1179.9;0.000132287;0.0559988;0.00471727;83.6932;1.34E-05;0.0129349 -330.937;1.45;1178.45;0.000131805;0.0558909;0.00468278;84.3316;1.34E-05;0.0129677 -331.249;1.46;1177.01;0.000131325;0.0557834;0.00464852;84.9714;1.34E-05;0.0130006 -331.56;1.47;1175.57;0.000130849;0.0556765;0.00461448;85.6126;1.34E-05;0.0130335 -331.869;1.48;1174.14;0.000130376;0.0555701;0.00458067;86.2552;1.34E-05;0.0130665 -332.177;1.49;1172.71;0.000129906;0.0554642;0.00454708;86.8993;1.35E-05;0.0130995 -332.483;1.5;1171.28;0.000129439;0.0553588;0.0045137;87.5447;1.35E-05;0.0131326 -332.788;1.51;1169.85;0.000128976;0.0552538;0.00448054;88.1917;1.35E-05;0.0131658 -333.091;1.52;1168.43;0.000128515;0.0551493;0.00444759;88.84;1.35E-05;0.013199 -333.393;1.53;1167;0.000128057;0.0550453;0.00441486;89.4899;1.36E-05;0.0132323 -333.693;1.54;1165.58;0.000127602;0.0549418;0.00438233;90.1412;1.36E-05;0.0132657 -333.992;1.55;1164.17;0.00012715;0.0548387;0.00435;90.794;1.36E-05;0.0132992 -334.29;1.56;1162.75;0.000126701;0.054736;0.00431788;91.4484;1.36E-05;0.0133327 -334.586;1.57;1161.34;0.000126255;0.0546338;0.00428597;92.1042;1.36E-05;0.0133663 -334.881;1.58;1159.93;0.000125811;0.0545321;0.00425425;92.7616;1.37E-05;0.0134 -335.174;1.59;1158.52;0.00012537;0.0544307;0.00422272;93.4205;1.37E-05;0.0134338 -335.466;1.6;1157.11;0.000124932;0.0543299;0.0041914;94.0809;1.37E-05;0.0134677 -335.756;1.61;1155.71;0.000124496;0.0542294;0.00416026;94.743;1.37E-05;0.0135016 -336.046;1.62;1154.31;0.000124063;0.0541293;0.00412932;95.4066;1.38E-05;0.0135357 -336.334;1.63;1152.9;0.000123632;0.0540297;0.00409857;96.0717;1.38E-05;0.0135698 -336.621;1.64;1151.51;0.000123204;0.0539305;0.004068;96.7385;1.38E-05;0.013604 -336.906;1.65;1150.11;0.000122778;0.0538317;0.00403762;97.4069;1.38E-05;0.0136384 -337.19;1.66;1148.71;0.000122355;0.0537333;0.00400743;98.0769;1.38E-05;0.0136728 -337.473;1.67;1147.32;0.000121935;0.0536353;0.00397741;98.7486;1.39E-05;0.0137073 -337.755;1.68;1145.93;0.000121516;0.0535376;0.00394758;99.4219;1.39E-05;0.0137419 -338.035;1.69;1144.54;0.0001211;0.0534404;0.00391792;100.097;1.39E-05;0.0137766 -338.314;1.7;1143.15;0.000120686;0.0533435;0.00388844;100.774;1.39E-05;0.0138114 -338.592;1.71;1141.76;0.000120275;0.0532471;0.00385913;101.452;1.40E-05;0.0138464 -338.869;1.72;1140.38;0.000119866;0.053151;0.00383;102.132;1.40E-05;0.0138814 -339.145;1.73;1138.99;0.000119459;0.0530552;0.00380104;102.814;1.40E-05;0.0139165 -339.419;1.74;1137.61;0.000119054;0.0529599;0.00377224;103.497;1.40E-05;0.0139518 -339.692;1.75;1136.23;0.000118652;0.0528649;0.00374362;104.182;1.40E-05;0.0139872 -339.964;1.76;1134.85;0.000118251;0.0527702;0.00371516;104.869;1.41E-05;0.0140227 -340.235;1.77;1133.47;0.000117853;0.0526759;0.00368687;105.558;1.41E-05;0.0140583 -340.505;1.78;1132.09;0.000117456;0.052582;0.00365874;106.249;1.41E-05;0.014094 -340.774;1.79;1130.71;0.000117062;0.0524884;0.00363078;106.941;1.41E-05;0.0141298 -341.042;1.8;1129.34;0.00011667;0.0523951;0.00360297;107.635;1.42E-05;0.0141658 -341.308;1.81;1127.96;0.000116279;0.0523022;0.00357532;108.331;1.42E-05;0.0142019 -341.574;1.82;1126.59;0.000115891;0.0522097;0.00354784;109.029;1.42E-05;0.0142381 -341.838;1.83;1125.21;0.000115505;0.0521174;0.0035205;109.729;1.42E-05;0.0142745 -342.101;1.84;1123.84;0.00011512;0.0520255;0.00349332;110.43;1.43E-05;0.0143109 -342.364;1.85;1122.47;0.000114738;0.0519339;0.0034663;111.134;1.43E-05;0.0143476 -342.625;1.86;1121.1;0.000114357;0.0518427;0.00343943;111.839;1.43E-05;0.0143843 -342.885;1.87;1119.73;0.000113978;0.0517517;0.00341271;112.546;1.43E-05;0.0144212 -343.144;1.88;1118.36;0.000113601;0.0516611;0.00338614;113.256;1.44E-05;0.0144582 -343.402;1.89;1117;0.000113226;0.0515708;0.00335971;113.967;1.44E-05;0.0144954 -343.659;1.9;1115.63;0.000112852;0.0514808;0.00333344;114.68;1.44E-05;0.0145327 -343.915;1.91;1114.26;0.000112481;0.0513911;0.00330731;115.395;1.44E-05;0.0145702 -344.171;1.92;1112.9;0.000112111;0.0513017;0.00328132;116.112;1.44E-05;0.0146078 -344.425;1.93;1111.53;0.000111742;0.0512126;0.00325548;116.831;1.45E-05;0.0146456 -344.678;1.94;1110.17;0.000111376;0.0511238;0.00322978;117.552;1.45E-05;0.0146835 -344.93;1.95;1108.8;0.000111011;0.0510353;0.00320423;118.276;1.45E-05;0.0147216 -345.181;1.96;1107.44;0.000110647;0.0509471;0.00317881;119.001;1.45E-05;0.0147598 -345.432;1.97;1106.08;0.000110285;0.0508592;0.00315353;119.728;1.46E-05;0.0147982 -345.681;1.98;1104.71;0.000109925;0.0507715;0.00312839;120.458;1.46E-05;0.0148368 -345.929;1.99;1103.35;0.000109567;0.0506842;0.00310338;121.189;1.46E-05;0.0148755 -346.177;2;1101.99;0.00010921;0.0505971;0.00307852;121.923;1.46E-05;0.0149144 -346.424;2.01;1100.63;0.000108854;0.0505103;0.00305378;122.659;1.47E-05;0.0149534 -346.669;2.02;1099.26;0.0001085;0.0504238;0.00302918;123.397;1.47E-05;0.0149926 -346.914;2.03;1097.9;0.000108148;0.0503376;0.00300471;124.137;1.47E-05;0.015032 -347.158;2.04;1096.54;0.000107796;0.0502516;0.00298038;124.88;1.47E-05;0.0150716 -347.401;2.05;1095.18;0.000107447;0.0501659;0.00295617;125.624;1.48E-05;0.0151114 -347.643;2.06;1093.82;0.000107099;0.0500805;0.00293209;126.371;1.48E-05;0.0151513 -347.884;2.07;1092.46;0.000106752;0.0499953;0.00290815;127.121;1.48E-05;0.0151914 -348.124;2.08;1091.09;0.000106407;0.0499104;0.00288433;127.872;1.48E-05;0.0152317 -348.364;2.09;1089.73;0.000106063;0.0498258;0.00286063;128.626;1.49E-05;0.0152722 -348.603;2.1;1088.37;0.00010572;0.0497414;0.00283707;129.382;1.49E-05;0.0153129 -348.84;2.11;1087.01;0.000105379;0.0496573;0.00281362;130.141;1.49E-05;0.0153538 -349.077;2.12;1085.65;0.000105039;0.0495734;0.0027903;130.901;1.49E-05;0.0153949 -349.314;2.13;1084.28;0.0001047;0.0494898;0.00276711;131.665;1.50E-05;0.0154362 -349.549;2.14;1082.92;0.000104363;0.0494064;0.00274403;132.43;1.50E-05;0.0154777 -349.783;2.15;1081.56;0.000104027;0.0493233;0.00272108;133.198;1.50E-05;0.0155193 -350.017;2.16;1080.19;0.000103692;0.0492405;0.00269825;133.969;1.50E-05;0.0155612 -350.25;2.17;1078.83;0.000103358;0.0491578;0.00267554;134.742;1.51E-05;0.0156033 -350.482;2.18;1077.47;0.000103026;0.0490754;0.00265294;135.517;1.51E-05;0.0156457 -350.713;2.19;1076.1;0.000102695;0.0489933;0.00263047;136.295;1.51E-05;0.0156882 -350.944;2.2;1074.74;0.000102365;0.0489114;0.00260811;137.076;1.52E-05;0.0157309 -351.173;2.21;1073.37;0.000102036;0.0488297;0.00258587;137.859;1.52E-05;0.0157739 -351.402;2.22;1072.01;0.000101709;0.0487483;0.00256374;138.645;1.52E-05;0.0158171 -351.63;2.23;1070.64;0.000101382;0.0486671;0.00254173;139.433;1.52E-05;0.0158605 -351.858;2.24;1069.27;0.000101057;0.0485861;0.00251983;140.224;1.53E-05;0.0159042 -352.085;2.25;1067.9;0.000100733;0.0485054;0.00249805;141.018;1.53E-05;0.0159481 -352.31;2.26;1066.53;0.00010041;0.0484248;0.00247638;141.814;1.53E-05;0.0159922 -352.536;2.27;1065.16;0.000100088;0.0483446;0.00245482;142.613;1.53E-05;0.0160365 -352.76;2.28;1063.79;9.98E-05;0.0482645;0.00243337;143.415;1.54E-05;0.0160812 -352.984;2.29;1062.42;9.94E-05;0.0481847;0.00241203;144.22;1.54E-05;0.016126 -353.206;2.3;1061.05;9.91E-05;0.0481051;0.0023908;145.027;1.54E-05;0.0161711 -353.429;2.31;1059.68;9.88E-05;0.0480257;0.00236968;145.837;1.55E-05;0.0162165 -353.65;2.32;1058.3;9.85E-05;0.0479465;0.00234867;146.65;1.55E-05;0.0162621 -353.871;2.33;1056.93;9.82E-05;0.0478676;0.00232777;147.466;1.55E-05;0.0163079 -354.091;2.34;1055.55;9.79E-05;0.0477888;0.00230697;148.285;1.55E-05;0.0163541 -354.31;2.35;1054.17;9.75E-05;0.0477103;0.00228628;149.106;1.56E-05;0.0164005 -354.529;2.36;1052.79;9.72E-05;0.047632;0.0022657;149.931;1.56E-05;0.0164471 -354.747;2.37;1051.41;9.69E-05;0.047554;0.00224522;150.759;1.56E-05;0.0164941 -354.964;2.38;1050.03;9.66E-05;0.0474761;0.00222484;151.589;1.57E-05;0.0165413 -355.181;2.39;1048.65;9.63E-05;0.0473984;0.00220457;152.423;1.57E-05;0.0165888 -355.396;2.4;1047.27;9.60E-05;0.047321;0.00218441;153.26;1.57E-05;0.0166365 -355.612;2.41;1045.88;9.57E-05;0.0472438;0.00216434;154.1;1.57E-05;0.0166846 -355.826;2.42;1044.49;9.54E-05;0.0471668;0.00214438;154.943;1.58E-05;0.016733 -356.04;2.43;1043.11;9.51E-05;0.04709;0.00212452;155.789;1.58E-05;0.0167816 -356.253;2.44;1041.72;9.48E-05;0.0470134;0.00210476;156.638;1.58E-05;0.0168306 -356.466;2.45;1040.33;9.45E-05;0.046937;0.0020851;157.491;1.59E-05;0.0168798 -356.678;2.46;1038.93;9.42E-05;0.0468608;0.00206554;158.347;1.59E-05;0.0169294 -356.889;2.47;1037.54;9.39E-05;0.0467848;0.00204608;159.206;1.59E-05;0.0169793 -357.099;2.48;1036.14;9.36E-05;0.0467091;0.00202672;160.068;1.59E-05;0.0170295 -357.309;2.49;1034.75;9.33E-05;0.0466335;0.00200745;160.934;1.60E-05;0.01708 -357.519;2.5;1033.35;9.30E-05;0.0465582;0.00198829;161.803;1.60E-05;0.0171308 -357.727;2.51;1031.95;9.27E-05;0.046483;0.00196922;162.676;1.60E-05;0.017182 -357.935;2.52;1030.54;9.24E-05;0.0464081;0.00195025;163.552;1.61E-05;0.0172335 -358.143;2.53;1029.14;9.21E-05;0.0463333;0.00193137;164.432;1.61E-05;0.0172853 -358.349;2.54;1027.73;9.18E-05;0.0462588;0.00191259;165.315;1.61E-05;0.0173375 -358.555;2.55;1026.32;9.15E-05;0.0461845;0.00189391;166.202;1.62E-05;0.01739 -358.761;2.56;1024.91;9.12E-05;0.0461103;0.00187532;167.092;1.62E-05;0.0174429 -358.966;2.57;1023.5;9.09E-05;0.0460364;0.00185682;167.986;1.62E-05;0.0174961 -359.17;2.58;1022.09;9.06E-05;0.0459627;0.00183842;168.884;1.63E-05;0.0175497 -359.374;2.59;1020.67;9.03E-05;0.0458892;0.00182011;169.786;1.63E-05;0.0176037 -359.577;2.6;1019.25;9.00E-05;0.0458159;0.00180189;170.691;1.63E-05;0.017658 -359.78;2.61;1017.83;8.97E-05;0.0457428;0.00178377;171.6;1.64E-05;0.0177128 -359.981;2.62;1016.41;8.94E-05;0.0456699;0.00176574;172.513;1.64E-05;0.0177679 -360.183;2.63;1014.98;8.91E-05;0.0455972;0.0017478;173.43;1.64E-05;0.0178233 -360.384;2.64;1013.55;8.88E-05;0.0455247;0.00172995;174.351;1.65E-05;0.0178792 -360.584;2.65;1012.12;8.85E-05;0.0454524;0.00171219;175.276;1.65E-05;0.0179355 -360.783;2.66;1010.69;8.82E-05;0.0453804;0.00169452;176.205;1.65E-05;0.0179922 -360.982;2.67;1009.25;8.79E-05;0.0453085;0.00167695;177.138;1.66E-05;0.0180493 -361.181;2.68;1007.81;8.77E-05;0.0452369;0.00165946;178.075;1.66E-05;0.0181068 -361.379;2.69;1006.37;8.74E-05;0.0451654;0.00164206;179.017;1.66E-05;0.0181647 -361.576;2.7;1004.93;8.71E-05;0.0450942;0.00162475;179.962;1.67E-05;0.0182231 -361.773;2.71;1003.48;8.68E-05;0.0450231;0.00160752;180.912;1.67E-05;0.0182819 -361.969;2.72;1002.03;8.65E-05;0.0449523;0.00159039;181.866;1.67E-05;0.0183411 -362.164;2.73;1000.58;8.62E-05;0.0448817;0.00157334;182.825;1.68E-05;0.0184008 -362.359;2.74;999.123;8.59E-05;0.0448113;0.00155638;183.788;1.68E-05;0.018461 -362.554;2.75;997.665;8.57E-05;0.0447412;0.00153951;184.756;1.68E-05;0.0185216 -362.748;2.76;996.203;8.54E-05;0.0446712;0.00152272;185.728;1.69E-05;0.0185827 -362.941;2.77;994.739;8.51E-05;0.0446015;0.00150602;186.705;1.69E-05;0.0186442 -363.134;2.78;993.271;8.48E-05;0.044532;0.00148941;187.686;1.69E-05;0.0187063 -363.327;2.79;991.801;8.45E-05;0.0444627;0.00147288;188.673;1.70E-05;0.0187688 -363.518;2.8;990.327;8.42E-05;0.0443936;0.00145643;189.663;1.70E-05;0.0188318 -363.71;2.81;988.849;8.40E-05;0.0443248;0.00144007;190.659;1.71E-05;0.0188954 -363.901;2.82;987.368;8.37E-05;0.0442561;0.0014238;191.66;1.71E-05;0.0189594 -364.091;2.83;985.884;8.34E-05;0.0441878;0.00140761;192.666;1.71E-05;0.019024 -364.28;2.84;984.397;8.31E-05;0.0441196;0.0013915;193.677;1.72E-05;0.0190891 -364.47;2.85;982.905;8.28E-05;0.0440517;0.00137548;194.692;1.72E-05;0.0191547 -364.658;2.86;981.41;8.25E-05;0.043984;0.00135954;195.713;1.72E-05;0.0192209 -364.846;2.87;979.912;8.23E-05;0.0439165;0.00134368;196.74;1.73E-05;0.0192877 -365.034;2.88;978.409;8.20E-05;0.0438493;0.0013279;197.771;1.73E-05;0.019355 -365.221;2.89;976.903;8.17E-05;0.0437824;0.00131221;198.808;1.74E-05;0.0194229 -365.408;2.9;975.393;8.14E-05;0.0437157;0.0012966;199.851;1.74E-05;0.0194914 -365.594;2.91;973.878;8.12E-05;0.0436492;0.00128107;200.899;1.74E-05;0.0195604 -365.78;2.92;972.36;8.09E-05;0.043583;0.00126563;201.952;1.75E-05;0.0196301 -365.965;2.93;970.838;8.06E-05;0.0435171;0.00125026;203.011;1.75E-05;0.0197004 -366.149;2.94;969.311;8.03E-05;0.0434514;0.00123498;204.076;1.76E-05;0.0197714 -366.334;2.95;967.78;8.00E-05;0.043386;0.00121977;205.147;1.76E-05;0.0198429 -366.517;2.96;966.245;7.98E-05;0.0433208;0.00120465;206.224;1.76E-05;0.0199151 -366.7;2.97;964.706;7.95E-05;0.043256;0.00118961;207.307;1.77E-05;0.019988 -366.883;2.98;963.161;7.92E-05;0.0431914;0.00117465;208.396;1.77E-05;0.0200615 -367.065;2.99;961.613;7.89E-05;0.0431271;0.00115976;209.491;1.78E-05;0.0201358 -367.247;3;960.059;7.87E-05;0.0430631;0.00114496;210.592;1.78E-05;0.0202107 -367.428;3.01;958.501;7.84E-05;0.0429994;0.00113024;211.7;1.78E-05;0.0202863 -367.609;3.02;956.938;7.81E-05;0.0429359;0.0011156;212.814;1.79E-05;0.0203627 -367.789;3.03;955.371;7.78E-05;0.0428728;0.00110103;213.935;1.79E-05;0.0204397 -367.969;3.04;953.798;7.76E-05;0.04281;0.00108655;215.062;1.80E-05;0.0205176 -368.148;3.05;952.22;7.73E-05;0.0427476;0.00107214;216.196;1.80E-05;0.0205962 -368.327;3.06;950.637;7.70E-05;0.0426854;0.00105781;217.337;1.81E-05;0.0206755 -368.505;3.07;949.048;7.67E-05;0.0426236;0.00104356;218.485;1.81E-05;0.0207557 -368.683;3.08;947.455;7.65E-05;0.0425621;0.00102939;219.64;1.82E-05;0.0208367 -368.861;3.09;945.855;7.62E-05;0.042501;0.0010153;220.802;1.82E-05;0.0209185 -369.038;3.1;944.251;7.59E-05;0.0424402;0.00100128;221.972;1.82E-05;0.0210011 -369.214;3.11;942.64;7.56E-05;0.0423798;0.000987344;223.149;1.83E-05;0.0210846 -369.39;3.12;941.024;7.54E-05;0.0423198;0.000973483;224.333;1.83E-05;0.021169 -369.566;3.13;939.402;7.51E-05;0.0422601;0.000959701;225.526;1.84E-05;0.0212542 -369.741;3.14;937.774;7.48E-05;0.0422008;0.000945995;226.726;1.84E-05;0.0213404 -369.916;3.15;936.139;7.45E-05;0.042142;0.000932367;227.934;1.85E-05;0.0214275 -370.09;3.16;934.499;7.43E-05;0.0420835;0.000918816;229.15;1.85E-05;0.0215155 -370.264;3.17;932.852;7.40E-05;0.0420255;0.000905342;230.374;1.86E-05;0.0216045 -370.437;3.18;931.199;7.37E-05;0.0419679;0.000891945;231.606;1.86E-05;0.0216945 -370.61;3.19;929.539;7.35E-05;0.0419107;0.000878624;232.848;1.87E-05;0.0217855 -370.783;3.2;927.873;7.32E-05;0.041854;0.00086538;234.097;1.87E-05;0.0218776 diff --git a/tutorials/multiphase/multiphaseEulerFoam/RAS/wallBoiling/constant/momentumTransport.gas b/tutorials/multiphase/multiphaseEulerFoam/RAS/wallBoiling/constant/momentumTransport.gas index e153bc1385..31424d6c73 100644 --- a/tutorials/multiphase/multiphaseEulerFoam/RAS/wallBoiling/constant/momentumTransport.gas +++ b/tutorials/multiphase/multiphaseEulerFoam/RAS/wallBoiling/constant/momentumTransport.gas @@ -17,12 +17,4 @@ FoamFile simulationType laminar; -RAS -{ - model continuousGasKEpsilon; - - turbulence on; - printCoeffs on; -} - // ************************************************************************* // diff --git a/tutorials/multiphase/multiphaseEulerFoam/RAS/wallBoiling/constant/phaseProperties b/tutorials/multiphase/multiphaseEulerFoam/RAS/wallBoiling/constant/phaseProperties index 0f6085aca2..139efe4a1c 100644 --- a/tutorials/multiphase/multiphaseEulerFoam/RAS/wallBoiling/constant/phaseProperties +++ b/tutorials/multiphase/multiphaseEulerFoam/RAS/wallBoiling/constant/phaseProperties @@ -71,9 +71,7 @@ heatTransfer.gas ( (gas in liquid) { - type constantNu; - Nu 1e1; - residualAlpha 1e-4; + type spherical; } ); @@ -82,7 +80,6 @@ heatTransfer.liquid (gas in liquid) { type RanzMarshall; - residualAlpha 1e-4; } ); @@ -146,24 +143,21 @@ saturation type function1; function scale; - functionCoeffs + + xScale 1e-6; + scale 1; + value { - xScale 1e-6; - scale 1; - value - { - type table; - format csv; - nHeaderLine 1; - refColumn 1; - componentColumns (0); - separator ";"; - mergeSeparators no; - file "R12.csv"; - outOfBounds clamp; - interpolationScheme linear; - } - }; + type tableFile; + format csv; + nHeaderLine 1; + refColumn 1; + componentColumns (0); + mergeSeparators no; + file "$FOAM_ETC/thermoData/refrigerant/R12/saturation.csv"; + outOfBounds clamp; + interpolationScheme linear; + } } ); diff --git a/tutorials/multiphase/multiphaseEulerFoam/RAS/wallBoiling/constant/thermophysicalProperties.gas b/tutorials/multiphase/multiphaseEulerFoam/RAS/wallBoiling/constant/thermophysicalProperties.gas index ec2081a6db..2c2cd71be3 100644 --- a/tutorials/multiphase/multiphaseEulerFoam/RAS/wallBoiling/constant/thermophysicalProperties.gas +++ b/tutorials/multiphase/multiphaseEulerFoam/RAS/wallBoiling/constant/thermophysicalProperties.gas @@ -19,31 +19,20 @@ thermoType { type heRhoThermo; mixture pureMixture; - transport const; - thermo eConst; - equationOfState perfectGas; + transport tabulated; + thermo hTabulated; + equationOfState rhoTabulated; specie specie; - energy sensibleInternalEnergy; + energy sensibleEnthalpy; } mixture { specie { - nMoles 1; - molWeight 195; //Adjusted to match density to reference data - } - thermodynamics - { - Hf 0; - Cv 1252; - Tref 359.981; - Esref 363410; - } - transport - { - mu 1.6374e-5; - Pr 1.19; + molWeight 120.914; } + + #include "$FOAM_ETC/thermoData/refrigerant/R12/vapour" } // ************************************************************************* // diff --git a/tutorials/multiphase/multiphaseEulerFoam/RAS/wallBoiling/constant/thermophysicalProperties.liquid b/tutorials/multiphase/multiphaseEulerFoam/RAS/wallBoiling/constant/thermophysicalProperties.liquid index c5139d1d65..ff757a907f 100644 --- a/tutorials/multiphase/multiphaseEulerFoam/RAS/wallBoiling/constant/thermophysicalProperties.liquid +++ b/tutorials/multiphase/multiphaseEulerFoam/RAS/wallBoiling/constant/thermophysicalProperties.liquid @@ -19,35 +19,20 @@ thermoType { type heRhoThermo; mixture pureMixture; - transport const; - thermo eConst; - equationOfState rhoConst; + transport tabulated; + thermo hTabulated; + equationOfState rhoTabulated; specie specie; - energy sensibleInternalEnergy; + energy sensibleEnthalpy; } mixture { specie { - nMoles 1; molWeight 120.914; } - equationOfState - { - rho 1017.1; - } - thermodynamics - { - Hf 0; - Cv 1394.5; - Tref 359.981; - Esref 290090; - } - transport - { - mu 8.9e-5; - Pr 2.8; - } + + #include "$FOAM_ETC/thermoData/refrigerant/R12/liquid" } // ************************************************************************* // diff --git a/tutorials/multiphase/multiphaseEulerFoam/RAS/wallBoiling/constant/thermophysicalTransport.gas b/tutorials/multiphase/multiphaseEulerFoam/RAS/wallBoiling/constant/thermophysicalTransport.gas new file mode 100644 index 0000000000..9eade51dcd --- /dev/null +++ b/tutorials/multiphase/multiphaseEulerFoam/RAS/wallBoiling/constant/thermophysicalTransport.gas @@ -0,0 +1,23 @@ +/*--------------------------------*- C++ -*----------------------------------*\ + ========= | + \\ / F ield | OpenFOAM: The Open Source CFD Toolbox + \\ / O peration | Website: https://openfoam.org + \\ / A nd | Version: dev + \\/ M anipulation | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + location "constant"; + object thermophysicalTransport; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +laminar +{ + model Fourier; +} + +// ************************************************************************* // diff --git a/tutorials/multiphase/multiphaseEulerFoam/RAS/wallBoiling/constant/thermophysicalTransport.liquid b/tutorials/multiphase/multiphaseEulerFoam/RAS/wallBoiling/constant/thermophysicalTransport.liquid new file mode 100644 index 0000000000..fc1380a19a --- /dev/null +++ b/tutorials/multiphase/multiphaseEulerFoam/RAS/wallBoiling/constant/thermophysicalTransport.liquid @@ -0,0 +1,25 @@ +/*--------------------------------*- C++ -*----------------------------------*\ + ========= | + \\ / F ield | OpenFOAM: The Open Source CFD Toolbox + \\ / O peration | Website: https://openfoam.org + \\ / A nd | Version: dev + \\/ M anipulation | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + location "constant"; + object thermophysicalTransport; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +RAS +{ + model eddyDiffusivity; + + Prt 1; +} + +// ************************************************************************* // diff --git a/tutorials/multiphase/multiphaseEulerFoam/RAS/wallBoiling/system/controlDict.orig b/tutorials/multiphase/multiphaseEulerFoam/RAS/wallBoiling/system/controlDict.orig index 2ebe7e2063..6dd8a2f1d3 100644 --- a/tutorials/multiphase/multiphaseEulerFoam/RAS/wallBoiling/system/controlDict.orig +++ b/tutorials/multiphase/multiphaseEulerFoam/RAS/wallBoiling/system/controlDict.orig @@ -53,7 +53,7 @@ maxDeltaT 0.001; functions { - outflow + outflow { type surfaceFieldValue; functionObjectLibs ( "libfieldFunctionObjects.so" ); @@ -62,7 +62,7 @@ functions regionType patch; name outlet; operation sum; - fields ( alphaRhoPhi.gas alphaRhoPhi.liquid ); + fields ( alphaRhoPhi.gas alphaRhoPhi.liquid); } inflow { @@ -73,7 +73,77 @@ functions regionType patch; name inlet; operation sum; - fields ( alphaRhoPhi.gas alphaRhoPhi.liquid ); + fields ( alphaRhoPhi.gas alphaRhoPhi.liquid); + } + outletGas + { + type surfaceFieldValue; + functionObjectLibs ( "libfieldFunctionObjects.so" ); + log yes; + writeFields false; + regionType patch; + name outlet; + operation weightedSum; + weightField alphaRhoPhi.gas; + fields ( h.gas ); + } + outletLiquid + { + type surfaceFieldValue; + functionObjectLibs ( "libfieldFunctionObjects.so" ); + log yes; + writeFields false; + regionType patch; + name outlet; + operation weightedSum; + weightField alphaRhoPhi.liquid; + fields ( h.liquid ); + } + inletGas + { + type surfaceFieldValue; + functionObjectLibs ( "libfieldFunctionObjects.so" ); + log yes; + writeFields false; + regionType patch; + name inlet; + operation weightedSum; + weightField alphaRhoPhi.gas; + fields ( h.gas ); + } + inletLiquid + { + type surfaceFieldValue; + functionObjectLibs ( "libfieldFunctionObjects.so" ); + log yes; + writeFields false; + regionType patch; + name inlet; + operation weightedSum; + weightField alphaRhoPhi.liquid; + fields ( h.liquid ); + } + + writeObjects1 + { + type writeObjects; + libs ("libutilityFunctionObjects.so"); + + objects + ( + thermo:rho.gas + thermo:mu.gas + thermo:psi.gas + thermo:alpha.gas + thermo:rho.liquid + thermo:mu.liquid + thermo:psi.liquid + thermo:alpha.liquid + h.liquid + h.gas + ); + writeControl writeTime; + writeInterval 1; } } diff --git a/tutorials/multiphase/multiphaseEulerFoam/RAS/wallBoiling/system/fvSchemes b/tutorials/multiphase/multiphaseEulerFoam/RAS/wallBoiling/system/fvSchemes index 25dd315e73..b3039f6269 100644 --- a/tutorials/multiphase/multiphaseEulerFoam/RAS/wallBoiling/system/fvSchemes +++ b/tutorials/multiphase/multiphaseEulerFoam/RAS/wallBoiling/system/fvSchemes @@ -38,12 +38,10 @@ divSchemes "div\(alphaRhoPhi.*,Yi\)" Gauss linearUpwind limited; "div\(alphaRhoPhi.*,(h|e).*\)" Gauss linearUpwind limited; - "div\(alphaRhoPhi.*,f.*\)" Gauss upwind; "div\(alphaRhoPhi.*,K.*\)" Gauss linearUpwind limited; "div\(alphaPhi.*,p\)" Gauss linearUpwind limited; - "div\(phi.*,kappai.*\)" Gauss linearUpwind limited; - "div\(alphaRhoPhi.*,(k|epsilon|omega).*\)" Gauss upwind; - "div\(phim,(k|epsilon)m\)" Gauss upwind; + "div\(alphaRhoPhi.*,(k|epsilon|omega).*\)" Gauss linearUpwind limited; + "div\(phim,(k|epsilon)m\)" Gauss linearUpwind limited; "div\(\(\(\(alpha.*\*thermo:rho.*\)\*nuEff.*\)\*dev2\(T\(grad\(U.*\)\)\)\)\)" Gauss linear; } diff --git a/tutorials/multiphase/multiphaseEulerFoam/RAS/wallBoiling/system/fvSolution b/tutorials/multiphase/multiphaseEulerFoam/RAS/wallBoiling/system/fvSolution index 6a2f5149e8..e441942f3c 100644 --- a/tutorials/multiphase/multiphaseEulerFoam/RAS/wallBoiling/system/fvSolution +++ b/tutorials/multiphase/multiphaseEulerFoam/RAS/wallBoiling/system/fvSolution @@ -23,15 +23,6 @@ solvers nAlphaSubCycles 1; } - bubbles - { - nCorr 1; - tolerance 1e-4; - scale true; - solveOnFinalIterOnly true; - sourceUpdateInterval 20; - } - p_rgh { solver GAMG; @@ -48,19 +39,10 @@ solvers relTol 0; } - "U.*" - { - solver smoothSolver; - smoother symGaussSeidel; - tolerance 1e-6; - relTol 0; - minIter 1; - } - "(e|h).*" { - solver smoothSolver; - smoother symGaussSeidel; + solver PBiCGStab; + preconditioner DILU; tolerance 1e-12; relTol 0.001; minIter 1; @@ -69,30 +51,12 @@ solvers "(k|epsilon|omega).*" { - solver smoothSolver; - smoother symGaussSeidel; + solver PBiCGStab; + preconditioner DILU; tolerance 1e-8; relTol 0; minIter 1; } - - "f.*" - { - solver PBiCGStab; - preconditioner DILU; - tolerance 1e-6; - relTol 0; - } - - Yi - { - solver smoothSolver; - smoother symGaussSeidel; - tolerance 1e-6; - relTol 0; - minIter 1; - residualAlpha 1e-8; - } } PIMPLE @@ -114,7 +78,7 @@ relaxationFactors equations { ".*" 1; - "e\..*" 1.0; + "h\..*" 1.0; } } diff --git a/tutorials/multiphase/multiphaseEulerFoam/RAS/wallBoiling/system/singleGraph b/tutorials/multiphase/multiphaseEulerFoam/RAS/wallBoiling/system/singleGraph new file mode 100644 index 0000000000..bab40148e4 --- /dev/null +++ b/tutorials/multiphase/multiphaseEulerFoam/RAS/wallBoiling/system/singleGraph @@ -0,0 +1,38 @@ +/*--------------------------------*- C++ -*----------------------------------*\ + ========= | + \\ / F ield | OpenFOAM: The Open Source CFD Toolbox + \\ / O peration | Website: https://openfoam.org + \\ / A nd | Version: dev + \\/ M anipulation | +------------------------------------------------------------------------------- +Description + Writes graph data for specified fields along a line, specified by start + and end points. + +\*---------------------------------------------------------------------------*/ + +start (3.4901 0 0); +end (3.4901 0.0096 0); + +fields +( + alpha.gas + T.liquid + T.gas +); + +// Sampling and I/O settings +#includeEtc "caseDicts/postProcessing/graphs/sampleDict.cfg" + +// Override settings here, e.g. + +setConfig +{ + type lineCell; + axis y; +} + +// Must be last entry +#includeEtc "caseDicts/postProcessing/graphs/graph.cfg" + +// ************************************************************************* // diff --git a/tutorials/multiphase/multiphaseEulerFoam/RAS/wallBoiling/validation/createGraphs b/tutorials/multiphase/multiphaseEulerFoam/RAS/wallBoiling/validation/createGraphs new file mode 100755 index 0000000000..410b345236 --- /dev/null +++ b/tutorials/multiphase/multiphaseEulerFoam/RAS/wallBoiling/validation/createGraphs @@ -0,0 +1,73 @@ +#!/bin/sh + +if ! which gnuplot > /dev/null 2>&1 +then + echo 'gnuplot not found - skipping graph creation' >&2 + exit 1 +fi + +graphFile=$(foamListTimes -latestTime)/line_alpha.gas_T.liquid_T.gas.xy +surfaceFile=$(cd postProcessing/inflow && ls -1tr */* | tail -n 1) + +gnuplot< /dev/null 2>&1 +then + echo 'gnuplot not found - skipping graph creation' >&2 + exit 1 +fi + +graphFile=$(foamListTimes -latestTime)/line_alpha.gas_T.liquid_T.gas_d.gas.xy +surfaceFile=$(cd postProcessing/inflow && ls -1tr */* | tail -n 1) + +gnuplot< /dev/null 2>&1 +then + echo 'gnuplot not found - skipping graph creation' >&2 + exit 1 +fi + +graphFile=$(foamListTimes -latestTime)/line_alpha.gas_T.liquid_T.gas_d.gas.xy +surfaceFile=$(cd postProcessing/inflow && ls -1tr */* | tail -n 1) + +gnuplot< /dev/null 2>&1 +then + echo 'gnuplot not found - skipping graph creation' >&2 + exit 1 +fi + +graphFile=$(foamListTimes -latestTime)/line_alpha.gas_alpha.gas2_alpha.liquid_T.liquid_T.gas_d.bubbles.xy +surfaceFile=$(cd postProcessing/inflow && ls -1tr */* | tail -n 1) + +gnuplot<