Function{ DefineFunction[temperature, qSurf, qSurfInt, tref, h, hr, _radiation, _blocker_if_no_checkbox_selected, _convection, h_, hr_, _flux, qSurf_, _flow, qSurfInt_, resistance_thermal, MagneticVectorPotential_2D, qVol, _velocityEffects, Velocity_x, Velocity_y, Velocity_z, Omega_Z, lambda, cp, rho, _maxTempCalculation, _phaseCalculation, ATemp1, ATemp3, MartStart, StartTime, EndTime, mu, BHModel, useBHModel, useTForMagFlux, TCurie, TCurieExponent, useSteinmetzLosses, steinmetz_k, steinmetz_a, steinmetz_b, VoltageLoad_2D, sigma, mu_C, Current_2D, Voltage_2D, ElectricalCircuit, a_litz, Nc, FillFactor, Ds, Fs, Gs, c0, eps0, mu0, nu0, sb_constant, linear_transform]; Ds[] = InterpolationLinear[$1]{0.000000, 0.000000, 0.500000, 0.097477, 1.000000, 1.410010, 1.500000, 5.076740, 2.000000, 9.281730, 2.500000, 12.687200, 3.000000, 15.710500, 3.500000, 18.755100, 4.000000, 21.882500, 4.500000, 25.041500, 5.000000, 28.198500, 5.500000, 31.348300, 6.000000, 34.494700, 6.500000, 37.640300, 7.000000, 40.785700, 7.500000, 43.930900, 8.000000, 47.075600, 8.500000, 50.219900, 9.000000, 53.364000, 9.500000, 56.507800, 10.000000, 59.651400, 15.000000, 91.080100, 20.000000, 122.503000, 25.000000, 153.922000, 30.000000, 185.341000, 35.000000, 216.759000, 40.000000, 248.176000, 45.000000, 279.593000, 50.000000, 311.010000, 55.000000, 342.426000, 60.000000, 373.843000, 65.000000, 405.259000, 70.000000, 436.676000, 75.000000, 468.092000, 80.000000, 499.508000, 85.000000, 530.925000, 90.000000, 562.341000, 95.000000, 593.757000, 100.000000, 625.173000}; Fs[] = InterpolationLinear[$1]{0.000000, 1.000000, 0.500000, 1.000330, 1.000000, 1.005190, 1.500000, 1.025820, 2.000000, 1.078160, 2.500000, 1.175380, 3.000000, 1.318090, 3.500000, 1.492020, 4.000000, 1.677870, 4.500000, 1.862750, 5.000000, 2.042730, 5.500000, 2.218930, 6.000000, 2.393590, 6.500000, 2.568160, 7.000000, 2.743190, 7.500000, 2.918670, 8.000000, 3.094450, 8.500000, 3.270370, 9.000000, 3.446380, 9.500000, 3.622450, 10.000000, 3.798580, 15.000000, 5.562080, 20.000000, 7.327670, 25.000000, 9.094130, 30.000000, 10.861000, 35.000000, 12.628200, 40.000000, 14.395400, 45.000000, 16.162800, 50.000000, 17.930300, 55.000000, 19.697800, 60.000000, 21.465400, 65.000000, 23.233000, 70.000000, 25.000600, 75.000000, 26.768300, 80.000000, 28.535900, 85.000000, 30.303600, 90.000000, 32.071300, 95.000000, 33.839000, 100.000000, 35.606700, 150.000000, 53.283900, 200.000000, 70.961300, 250.000000, 88.638900, 300.000000, 106.316000, 350.000000, 123.994000, 400.000000, 141.672000, 450.000000, 159.349000, 500.000000, 177.027000, 550.000000, 194.705000, 600.000000, 212.382000, 650.000000, 230.060000, 700.000000, 247.738000, 750.000000, 265.415000, 800.000000, 283.093000, 850.000000, 300.771000, 900.000000, 318.448000, 950.000000, 336.126000, 1000.000000, 353.804000, 1500.000000, 530.580000, 2000.000000, 707.357000, 2500.000000, 884.134000, 3000.000000, 1060.910000, 3500.000000, 1237.690000, 4000.000000, 1414.460000, 4500.000000, 1591.240000, 5000.000000, 1768.020000, 5500.000000, 1944.790000, 6000.000000, 2121.570000, 6500.000000, 2298.350000, 7000.000000, 2475.120000, 7500.000000, 2651.900000, 8000.000000, 2828.680000, 8500.000000, 3005.450000, 9000.000000, 3182.230000, 9500.000000, 3359.010000, 10000.000000, 3535.780000, 100000.000000, 35355.600000, 1000000.000000, 353554.000000}; Gs[] = InterpolationLinear[$1]{0.000000, 0.000000, 0.500000, 0.019242, 1.000000, 0.299846, 1.500000, 1.364700, 2.000000, 3.403980, 2.500000, 5.820430, 3.000000, 7.993550, 3.500000, 9.841280, 4.000000, 11.531200, 4.500000, 13.200800, 5.000000, 14.903000, 5.500000, 16.638000, 6.000000, 18.389700, 6.500000, 20.145100, 7.000000, 21.898100, 7.500000, 23.648200, 8.000000, 25.396300, 8.500000, 27.143500, 9.000000, 28.890500, 9.500000, 30.637400, 10.000000, 32.384200, 15.000000, 49.845200, 20.000000, 67.299500, 25.000000, 84.751000, 30.000000, 102.201000, 35.000000, 119.650000, 40.000000, 137.099000, 45.000000, 154.547000, 50.000000, 171.995000, 55.000000, 189.443000, 60.000000, 206.891000, 65.000000, 224.339000, 70.000000, 241.787000, 75.000000, 259.234000, 80.000000, 276.682000, 85.000000, 294.129000, 90.000000, 311.577000, 95.000000, 329.024000, 100.000000, 346.471000, 150.000000, 520.945000, 200.000000, 695.417000, 250.000000, 869.889000, 300.000000, 1044.360000, 350.000000, 1218.830000, 400.000000, 1393.300000, 450.000000, 1567.780000, 500.000000, 1742.250000, 550.000000, 1916.720000, 600.000000, 2091.190000, 650.000000, 2265.660000, 700.000000, 2440.130000, 750.000000, 2614.610000, 800.000000, 2789.080000, 850.000000, 2963.550000, 900.000000, 3138.020000, 950.000000, 3312.490000, 1000.000000, 3486.960000, 1500.000000, 5231.680000, 2000.000000, 6976.400000, 2500.000000, 8721.110000, 3000.000000, 10465.800000, 3500.000000, 12210.500000, 4000.000000, 13955.300000, 4500.000000, 15700.000000, 5000.000000, 17444.700000, 5500.000000, 19189.400000, 6000.000000, 20934.100000, 6500.000000, 22678.800000, 7000.000000, 24423.600000, 7500.000000, 26168.300000, 8000.000000, 27913.000000, 8500.000000, 29657.700000, 9000.000000, 31402.400000, 9500.000000, 33147.100000, 10000.000000, 34891.900000, 100000.000000, 348941.000000, 1000000.000000, 3489430.000000}; c0 = 2.997924e+08; eps0 = 8.854188e-12; mu0 = 1.256600e-06; nu0 = 7.957747e+05; sb_constant = 5.680000e-08; GeomCoeff[] = 6.280000; FreqFunc[] = 1.000000e+04*1.000000; Freq = 1.000000e+04*1.000000; FreqFactor = 1.000000; rmsCoeff[] = Sqrt[2]; _blocker_if_no_checkbox_selected[wp_air] = 0; _convection[wp_air] = 1; _flow[wp_air] = 0; _flux[wp_air] = 0; _radiation[wp_air] = 1; h[wp_air] = 1.000000e+01; hr[wp_air] = 6.000000e-01; qSurfInt[wp_air] = 0.000000e+00; qSurf[wp_air] = 0.000000e+00; tref[wp_air] = 2.200000e+01; Omega_Z[air] = 0.000000e+00; Velocity_x[air] = 0.000000e+00; Velocity_y[air] = 0.000000e+00; Velocity_z[air] = 0.000000e+00; _velocityEffects[air] = 0; qVol[air] = 0.000000e+00; Omega_Z[coil] = 0.000000e+00; Velocity_x[coil] = 0.000000e+00; Velocity_y[coil] = 0.000000e+00; Velocity_z[coil] = 0.000000e+00; _velocityEffects[coil] = 0; qVol[coil] = 0.000000e+00; Omega_Z[wp] = 0.000000e+00; Velocity_x[wp] = 0.000000e+00; Velocity_y[wp] = 0.000000e+00; Velocity_z[wp] = 0.000000e+00; _velocityEffects[wp] = 0; qVol[wp] = 0.000000e+00; ElectricalCircuit[coil] = 0.000000e+00; _current[coil] = 1; _voltage[coil] = 0; ElectricalCircuit[ElectricalCircuit_source0] = 0.000000e+00; _current[ElectricalCircuit_source0] = 1; _voltage[ElectricalCircuit_source0] = 0; area[coil] = 0.00023949; volume[coil] = 7.33744e-05; centroidX[coil] = 0.0487615; centroidY[coil] = -0.056489; centroidZ[coil] = 0; area[air] = 0.013478; volume[air] = 0.00408965; centroidX[air] = 0.0482927; centroidY[air] = -0.00124514; centroidZ[air] = 0; area[wp] = 0.0012593; volume[wp] = 8.32721e-05; centroidX[wp] = 0.0105243; centroidY[wp] = -0.00200089; centroidZ[wp] = 0; area[ElectricalCircuit_source0] = 0; volume[ElectricalCircuit_source0] = 0; centroidX[ElectricalCircuit_source0] = 0; centroidY[ElectricalCircuit_source0] = 0; centroidZ[ElectricalCircuit_source0] = 0; centroidX[air_symmetry] = 0; centroidY[air_symmetry] = -0.00219208; centroidZ[air_symmetry] = 0; centroidX[Edge25] = 0.0413053; centroidY[Edge25] = -0.056489; centroidZ[Edge25] = 0; centroidX[infinity] = 0.0667393; centroidY[infinity] = -0.00219208; centroidZ[infinity] = 0; centroidX[Edge29] = 0.0562178; centroidY[Edge29] = -0.056489; centroidZ[Edge29] = 0; centroidX[Edge27] = 0.0487615; centroidY[Edge27] = -0.0645188; centroidZ[Edge27] = 0; centroidX[Edge22] = 0.0487615; centroidY[Edge22] = -0.0484592; centroidZ[Edge22] = 0; centroidX[wp_air] = 0.0105243; centroidY[wp_air] = -0.00200089; centroidZ[wp_air] = 0; cp[wp] = InterpolationLinear[$1]{-10000000000.000000, 933.299988, 20.000000, 933.300000, 100.000000, 959.300000, 200.000000, 981.500000, 300.000000, 1003.700000, 400.000000, 1029.600000, 500.000000, 1051.900000, 600.000000, 1070.400000, 700.000000, 929.600000, 800.000000, 896.300000, 900.000000, 829.600000, 10000000000.000000, 829.599976}; lambda[wp] = InterpolationLinear[$1]{-10000000000.000000, 211.000000, 20.000000, 211.000000, 100.000000, 219.000000, 200.000000, 224.000000, 300.000000, 223.000000, 400.000000, 216.000000, 500.000000, 209.000000, 600.000000, 200.000000, 700.000000, 130.000000, 800.000000, 88.000000, 900.000000, 54.000000, 10000000000.000000, 54.000000}; rho[wp] = 2700.000000; nu[air] = 1/(1.000000e+00); nu_nu0[air] = 1/(1.000000e+00 * mu0); nu[coil] = 1/(1.000000e+00); nu_nu0[coil] = 1/(1.000000e+00 * mu0); sigma[coil] = 58823528.000000; nu[wp] = 1/(1.000000e+00); nu_nu0[wp] = 1/(1.000000e+00 * mu0); sigma[wp] = InterpolationLinear[$1]{-10000000000.000000, 37037036.000000, 20.000000, 37037037.000000, 100.000000, 27472527.000000, 200.000000, 20920502.000000, 300.000000, 16694491.000000, 400.000000, 13698630.000000, 500.000000, 11494253.000000, 600.000000, 9615385.000000, 700.000000, 4761905.000000, 800.000000, 4081633.000000, 900.000000, 3407155.000000, 10000000000.000000, 3407155.000000}; radiationNLFlag = 1; cpNLFlag = 1; lambdaNLFlag = 1; bhNLFlag = 0; Flag_MagTherm = 2; meshDim = 2; Breakpoints = {}; }