生成正激波表的代码

news2024/12/27 9:30:42

k=1.4

import math
import numpy as np
import pandas as pd
#Ma1到p之比
def Ma2p(Ma1,k):
    return 2*k*Ma1**2/(k+1)-(k-1)/(k+1)
def Ma2rho(Ma1,k):
    return (k+1)*Ma1**2/(2+(k-1)*Ma1**2)
def Ma2T(Ma1,k):
    return 1/Ma1**2*(2/(k+1))**2*(k*Ma1**2-(k-1)/2)*(1+(k-1)/2*Ma1**2)
def Ma2Ma(Ma1,k):
    return math.sqrt((Ma1**2+2/(k-1))/(2*k*Ma1**2/(k-1)-1))
def Ma2sigma(Ma1,k):
    #Ma到总压比
    rho=Ma2rho(Ma1,k)
    p=Ma2p(Ma1,k)
    return rho**(k/(k-1))/p**(1/(k-1))
N=302
N1=6
dMa1=0.01
Ma1min=1
B=np.zeros([N,N1])
k=1.4
for i in range(0,N):
    Ma1=Ma1min+i*dMa1
    B[i,0]=Ma1
    B[i,1]=Ma2Ma(Ma1,k)
    B[i,2]=Ma2p(Ma1,k)
    B[i,3]=Ma2rho(Ma1,k)
    B[i,4]=Ma2T(Ma1,k)
    B[i,5]=Ma2sigma(Ma1,k)
df=pd.DataFrame(B)
# 将DataFrame写入Excel文件
df.to_excel('output.xlsx', index=False, header=False)

绘制相关图像的代码

import numpy as np
import matplotlib.pyplot as plt
import math
# 设置字体为支持中文的字体,例如:
plt.rcParams['font.sans-serif'] = ['SimHei']  # 使用黑体
plt.rcParams['axes.unicode_minus'] = False  # 用来正常显示负号
def Ma2p(Ma1,k):
    return 2*k*Ma1**2/(k+1)-(k-1)/(k+1)
def Ma2rho(Ma1,k):
    return (k+1)*Ma1**2/(2+(k-1)*Ma1**2)
def Ma2T(Ma1,k):
    return 1/Ma1**2*(2/(k+1))**2*(k*Ma1**2-(k-1)/2)*(1+(k-1)/2*Ma1**2)
def Ma2Ma(Ma1,k):
    return math.sqrt((Ma1**2+2/(k-1))/(2*k*Ma1**2/(k-1)-1))
def Ma2sigma(Ma1,k):
    #Ma到总压比
    rho=Ma2rho(Ma1,k)
    p=Ma2p(Ma1,k)
    return rho**(k/(k-1))/p**(1/(k-1))

Ma1_values = np.linspace(1, 3, 100)  
k=1.4
Ma2=[Ma2Ma(Ma1,k) for Ma1 in Ma1_values]
Ma2T_values = [Ma2T(Ma1,k) for Ma1 in Ma1_values]
p=[Ma2p(Ma1,k) for Ma1 in Ma1_values]
rho=[Ma2rho(Ma1,k) for Ma1 in Ma1_values]
sigma=[Ma2sigma(Ma1,k) for Ma1 in Ma1_values]

# 绘制图像
plt.figure()
plt.plot(Ma1_values,Ma2,label='Ma2')
plt.plot(Ma1_values, Ma2T_values, label='温度比')
plt.plot(Ma1_values,p,label='压力比')
plt.plot(Ma1_values,rho,label='密度比(速度比)')
plt.plot(Ma1_values,sigma,label='总压比')

plt.xlabel('Ma1')
plt.ylabel('正激波参数')
plt.title('正激波参数与Ma1的关系')
plt.legend()
plt.grid(True)
plt.show()

图像示例

相关表格

Ma1Ma2静压比p2/p1密度比(速度比静温比总压比
111111
1.010.990131581.023451.0166940751.0066449930.999998729
1.020.9805194931.0471333331.0334414941.013248780.999990032
1.030.9711539061.071051.0502400631.0198144570.999967006
1.040.9620254991.09521.0670876091.026344970.999923282
1.050.9531254291.1195833331.0839819751.0328431280.99985299
1.060.9444453011.14421.1009210271.0393116060.999750717
1.070.9359771391.169051.1179026511.0457529540.999611481
1.080.9277133591.1941333331.1349247541.0521696080.9994307
1.090.9196467441.219451.1519852621.058563890.999204164
1.10.9117704211.2451.1690821261.0649380170.998928015
1.110.9040778441.2707833331.1862133151.0712941060.99859872
1.120.8965627691.29681.2033768231.0776341840.998213053
1.130.889219241.323051.2205706641.0839601830.997768074
1.140.8820415711.3495333331.2377928761.0902739540.997261115
1.150.8750243281.376251.2550415181.0965772680.996689759
1.160.8681623211.40321.2723146751.1028718190.996051828
1.170.8614505831.4303833331.2896104511.1091592290.995345371
1.180.8548843631.45781.3069269761.1154410510.994568644
1.190.8484591111.485451.3242624021.1217187750.993720104
1.20.842170471.5133333331.3416149071.1279938270.992798398
1.210.8360142631.541451.3589826891.1342675760.991802346
1.220.8299864841.56981.3763639731.1405413330.990730937
1.230.8240832911.5983833331.3937570051.1468163580.989583318
1.240.8183009951.62721.4111600591.1530938610.988358784
1.250.8126360551.656251.4285714291.1593750.98705677
1.260.8070850681.6855333331.4459894351.1656608910.985676846
1.270.8016447631.715051.4634124211.1719526060.984218705
1.280.7963119941.74481.4808387561.1782511720.982682159
1.290.7910837371.7747833331.4982668331.184557580.98106713
1.30.785957081.8051.5156950671.1908727810.979373649
1.310.7809292191.835451.5331219011.1971976910.977601842
1.320.7759974541.8661333331.55054581.203533190.975751932
1.330.7711591841.897051.5679652531.2098801270.973824229
1.340.76641191.92821.5853787751.2162393180.971819125
1.350.7617531851.9595833331.6027849031.2226115490.969737093
1.360.7571807051.99121.62018221.2289975780.967578677
1.370.752692212.023051.6375692541.2353981340.965344492
1.380.7482855262.0551333331.6549446731.2418139210.963035217
1.390.7439585572.087451.6723070931.2482456170.960651592
1.40.7397092752.121.6896551721.2546938780.958194415
1.410.7355357212.1527833331.7069875931.2611593320.955664536
1.420.7314360042.18581.7243030611.2676425910.953062855
1.430.7274082922.219051.7416003071.2741442410.950390319
1.440.7234508152.2525333331.7588780821.2806648490.947647919
1.450.7195618622.286251.7761351641.2872049640.944836685
1.460.7157397742.32021.7933703521.2937651150.941957685
1.470.7119829472.3543833331.8105824691.3003458140.93901202
1.480.7082898282.38881.827770361.3069475530.936000823
1.490.7046589122.423451.8449328961.3135708110.932925257
1.50.7010887422.4583333331.8620689661.3202160490.929786512
1.510.6975779032.493451.8791774841.3268837150.926585801
1.520.6941250282.52881.8962573871.3335742380.923324357
1.530.6907287872.5643833331.9133076331.3402880380.920003437
1.540.6873878932.60021.9303272021.3470255190.916624313
1.550.6841010962.636251.9473150961.3537870710.913188272
1.560.6808671852.6725333331.964270341.3605730730.909696617
1.570.6776849822.709051.9811919781.3673838930.906150661
1.580.6745533452.74581.9980790781.3742198850.902551727
1.590.6714711652.7827833332.0149307261.3810813930.898901147
1.60.6684373652.822.0317460321.387968750.89520026
1.610.6654508972.857452.0485241241.394882280.891450411
1.620.6625107452.8951333332.0652641521.4018222950.887652948
1.630.659615922.933052.0819652861.4087890990.88380922
1.640.6567654622.97122.0986267171.4157829860.879920579
1.650.6539584363.0095833332.1152476531.4228042420.875988377
1.660.6511939343.04822.1318273251.4298531430.872013963
1.670.6484710723.087052.1483649811.4369299570.867998684
1.680.6457889893.1261333332.164859891.4440349460.863943886
1.690.6431468513.165452.1813113381.4511683620.859850906
1.70.6405438413.2052.1977186311.458330450.855721079
1.710.6379791673.2447833332.2140810941.4655214490.851555731
1.720.6354520583.28482.230398071.472741590.847356182
1.730.6329617623.325052.2466689191.4799910980.843123742
1.740.6305075463.3655333332.2628930191.4872701910.838859715
1.750.6280886983.406252.2790697671.4945790820.834565392
1.760.6257045233.44722.2951985771.5019179750.830242055
1.770.6233543433.4883833332.311278881.5092870720.825890975
1.780.6210374983.52982.3273101221.5166865670.82151341
1.790.6187533463.571452.3432917691.524116650.817110607
1.80.6165012583.6133333332.3592233011.5315775030.8126838
1.810.6142806223.655452.3751042161.5390693070.808234207
1.820.6120908433.69782.3909340261.5465922350.803763035
1.830.6099313383.7403833332.4067122611.5541464570.799271476
1.840.6078015393.78322.4224384661.5617321360.794760706
1.850.6057008923.826252.4381121991.5693494340.790231887
1.860.6036288563.8695333332.4537330371.5769985060.785686165
1.870.6015849043.913052.4693005681.5846795040.78112467
1.880.599568523.95682.4848143981.5923925760.776548517
1.890.5975792014.0007833332.5002741451.6001378650.771958803
1.90.5956164554.0452.5156794431.6079155120.767356609
1.910.5936798044.089452.5310299371.6157256540.762743
1.920.5917687774.1341333332.546325291.6235684220.758119022
1.930.5898829184.179052.5615651761.6314439470.753485706
1.940.588021784.22422.5767492811.6393523540.748844065
1.950.5861849244.2695833332.5918773081.6472937670.744195092
1.960.5843719244.31522.6069489691.6552683050.739539766
1.970.5825823624.361052.621963991.6632760850.734879047
1.980.580815834.4071333332.6369221111.671317220.730213877
1.990.5790719294.453452.6518230821.6793918230.725545179
20.5773502694.52.6666666671.68750.720873861
2.010.5756504684.5467833332.6814526391.6956418580.716200812
2.020.5739721544.59382.6961807851.7038174980.7115269
2.030.572314964.641052.7108509031.7120270230.706852981
2.040.570678534.6885333332.7254628011.7202705280.702179888
2.050.5690625154.736252.74001631.7285481110.697508439
2.060.5674665724.78422.7545112291.7368598640.692839434
2.070.5658903674.8323833332.7689474311.7452058780.688173655
2.080.5643335734.88082.7833247561.7535862430.683511866
2.090.5627958694.929452.7976430651.7620010430.678854813
2.10.5612769414.9783333332.8119022321.7704503650.674203227
2.110.5597764825.027452.8261021361.7789342910.66955782
2.120.5582941925.07682.8402426691.7874529010.664919286
2.130.5568297755.1263833332.8543237321.7960062750.660288304
2.140.5553829445.17622.8683452341.8045944890.655665534
2.150.5539534155.226252.8823070931.8132176180.651051622
2.160.5525409135.2765333332.8962092371.8218757350.646447194
2.170.5511451655.327052.9100516021.8305689140.641852863
2.180.5497659075.37782.9238341331.8392972220.637269222
2.190.5484028785.4287833332.9375567831.848060730.632696852
2.20.5470558235.482.9512195121.8568595040.628136314
2.210.5457244915.531452.964822291.8656936090.623588155
2.220.5444086395.5831333332.9783650941.874563110.619052908
2.230.5431080255.635052.9918479081.8834680680.614531088
2.240.5418224155.68723.0052707241.8924085460.610023196
2.250.5405515775.7395833333.018633541.9013846020.605529717
2.260.5392952855.79223.0319363651.9103962960.601051124
2.270.5380533185.845053.045179211.9194436840.596587871
2.280.5368254575.8981333333.0583620961.9285268220.592140402
2.290.535611495.951453.071485051.9376457650.587709143
2.30.5344112066.0053.0845481051.9468005670.583294508
2.310.5332244016.0587833333.0975513011.955991280.578896897
2.320.5320508736.11283.1104946831.9652179550.574516697
2.330.5308904246.167053.1233783051.9744806420.57015428
2.340.529742866.2215333333.1362022221.9837793910.565810005
2.350.5286079926.276253.14896651.9931142490.561484221
2.360.5274856326.33123.1616712082.0024852630.557177259
2.370.5263755976.3863833333.174316422.011892480.552889443
2.380.5252777076.44183.1869022172.0213359440.548621081
2.390.5241917856.497453.1994286832.03081570.54437247
2.40.5231176596.5533333333.2118959112.040331790.540143895
2.410.5220551586.609453.2243039942.0498842580.53593563
2.420.5210041156.66583.2366530342.0594731440.531747937
2.430.5199643666.7223833333.2489431362.0690984890.527581066
2.440.5189357496.77923.2611744082.0787603330.523435258
2.450.5179181086.836253.2733469672.0884587150.519310741
2.460.5169112856.8935333333.2854609292.0981936730.515207734
2.470.5159151296.951053.2975164182.1079652440.511126445
2.480.514929497.00883.309513562.1177734650.507067071
2.490.5139542217.0667833333.3214524872.1276183720.503029801
2.50.5129891767.1253.3333333332.13750.499014812
2.510.5120342147.183453.3451562382.1474183830.495022273
2.520.5110891967.2421333333.3569213422.1573735560.491052343
2.530.5101539837.301053.3686287922.1673655510.487105172
2.540.5092284417.36023.3802787382.1773944010.483180901
2.550.5083124397.4195833333.3918713322.1874601380.479279662
2.560.5074058447.47923.403406732.1975627930.475401579
2.570.5065085317.539053.4148850922.2077023960.471546767
2.580.5056203727.5991333333.4263065782.2178789780.467715334
2.590.5047412447.659453.4376713562.2280925680.463907379
2.60.5038710267.723.4489795922.2383431950.460122992
2.610.5030095977.7807833333.4602314582.2486308870.456362258
2.620.5021568427.84183.4714271272.2589556730.452625253
2.630.5013126437.903053.4825667752.2693175780.448912046
2.640.5004768887.9645333333.4936505812.2797166310.445222699
2.650.4996494648.026253.5046787272.2901528570.441557267
2.660.4988302638.08823.5156513962.3006262820.437915798
2.670.4980191758.1503833333.5265687742.3111369310.434298335
2.680.4972160968.21283.5374310482.321684830.430704912
2.690.4964209198.275453.5482384092.3322700010.427135558
2.70.4956335428.3383333333.558991052.3428924710.423590298
2.710.4948538658.401453.5696891632.3535522610.420069147
2.720.4940817888.46483.5803329462.3642493940.416572118
2.730.4933172128.5283833333.5909225962.3749838950.413099217
2.740.4925600428.59223.6014583132.3857557830.409650443
2.750.4918101838.656253.6119402992.3965650830.406225793
2.760.4910675428.7205333333.6223687552.4074118140.402825255
2.770.4903320268.785053.6327438872.4182959970.399448816
2.780.4896035468.84983.64306592.4292176540.396096455
2.790.4888820128.9147833333.6533350022.4401768050.392768148
2.80.4881673388.983.6635514022.4511734690.389463866
2.810.4874594379.045453.6737153092.4622076670.386183576
2.820.4867582249.1111333333.6838269362.4732794160.38292724
2.830.4860636169.177053.6938864932.4843887370.379694815
2.840.4853755319.24323.7038941952.4955356480.376486257
2.850.4846938889.3095833333.7138502572.5067201660.373301514
2.860.4840186089.37623.7237548942.517942310.370140535
2.870.4833496129.443053.7336083222.5292020980.367003261
2.880.4826868239.5101333333.7434107592.5404995460.363889631
2.890.4820301649.577453.7531624242.5518346710.360799581
2.90.4813795629.6453.7628635352.5632074910.357733045
2.910.4807349439.7127833333.7725143122.5746180220.354689951
2.920.4800962339.78083.7821149752.5860662790.351670225
2.930.4794633629.849053.7916657472.5975522790.34867379
2.940.4788362599.9175333333.8011668472.6090760370.345700568
2.950.4782148559.986253.81061852.6206375680.342750475
2.960.47759908210.05523.8200209282.6322368880.339823426
2.970.47698887210.124383333.8293743532.6438740120.336919335
2.980.47638415910.19383.8386790012.6555489530.33403811
2.990.47578487710.263453.8479350942.6672617260.331179659
30.47519096310.333333333.8571428572.6790123460.328343888
3.010.47460235310.403453.8663025162.6908008250.3255307
3.020.47401898510.47383.8754142942.7026271790.322739994
3.030.47344079710.544383333.8844784182.7144914190.319971672
3.040.47286772910.61523.8934951132.726393560.317225628
3.050.4722997210.686253.9024646042.7383336130.314501759
3.060.47173671210.757533333.9113871172.7503115930.311799958
3.070.47117864710.829053.9202628792.7623275110.309120117
3.080.47062546810.90083.9290921142.774381380.306462125
3.090.47007711810.972783333.9378750492.7864732110.303825871
3.10.46953354211.0453.946611912.7986030180.301211242
3.110.46899468611.117453.9553029222.8107708110.298618124
3.120.46846049411.190133333.9639483112.8229766020.296046402
3.130.46793091411.263053.9725483042.8352204020.293495957
3.140.46740589411.33623.9811031252.8475022230.290966673
3.150.46688538211.409583333.9896130012.8598220760.288458429
3.160.46636932611.48323.9980781552.8721799710.285971107
3.170.46585767711.557054.0064988142.884575920.283504583
3.180.46535038511.631133334.0148752022.8970099310.281058737
3.190.46484740111.705454.0232075432.9094820170.278633444
3.20.46434867811.784.0314960632.9219921880.276228582
3.210.46385416611.854783334.0397409842.9345404520.273844025
3.220.46336382111.92984.0479425312.947126820.271479647
3.230.46287759412.005054.0561009272.9597513020.269135324
3.240.46239544212.080533334.0642163952.9724139070.266810927
3.250.46191731912.156254.0722891572.9851146450.26450633
3.260.4614431812.23224.0803194352.9978535250.262221405
3.270.46097298212.308383334.0883074513.0106305560.259956024
3.280.46050668212.38484.0962534273.0234457470.257710058
3.290.46004423712.461454.1041575823.0362991060.255483377
3.30.45958560512.538333334.1120201383.0491906440.253275853
3.310.45913074612.615454.1198413153.0621203670.251087356
3.320.45867961712.69284.127621333.0750882860.248917755
3.330.45823217912.770383334.1353604043.0880944070.246766921
3.340.45778839212.84824.1430587543.1011387390.244634724
3.350.45734821712.926254.1507165973.1142212910.242521032
3.360.45691161613.004533334.1583341523.127342070.240425716
3.370.45647854913.083054.1659116343.1405010840.238348643
3.380.45604897913.16184.1734492583.153698340.236289685
3.390.4556228713.240783334.1809472413.1669338470.23424871
3.40.45520018413.324.1884057973.1802076120.232225587
3.410.45478088513.399454.1958251393.1935196430.230220186
3.420.45436493813.479133334.2032054813.2068699460.228232377
3.430.45395230713.559054.2105470363.2202585280.226262028
3.440.45354295713.63924.2178500143.2336853980.22430901
3.450.45313685513.719583334.2251146283.2471505610.222373192
3.460.45273396613.80024.2323410873.2606540250.220454445
3.470.45233425713.881054.2395296023.2741957960.218552639
3.480.45193769413.962133334.2466803823.2877758810.216667645
3.490.45154424614.043454.2537936333.3013942870.214799333
3.50.4511538814.1254.2608695653.315051020.212947574
3.510.45076656314.206783334.2679083843.3287460870.211112241
3.520.45038226614.28884.2749102953.3424794940.209293204
3.530.45000095714.371054.2818755053.3562512460.207490337
3.540.44962260514.453533334.2888042163.3700613510.20570351
3.550.4492471814.536254.2956966343.3839098150.203932599
3.560.44887465214.61924.302552963.3977966420.202177475
3.570.44850499314.702383334.3093733973.4117218390.200438012
3.580.44813817214.78584.3161581463.4256854120.198714086
3.590.44777416214.869454.3229074083.4396873670.19700557
3.60.44741293314.953333334.3296213813.4537277090.19531234
3.610.44705445815.037454.3363002653.4678064440.193634271
3.620.4466987115.12184.3429442573.4819235770.191971239
3.630.4463456615.206383334.3495535543.4960791130.190323122
3.640.44599528315.29124.3561283533.5102730590.188689796
3.650.44564755115.376254.362668853.5245054180.18707114
3.660.44530243815.461533334.3691752383.5387761970.185467031
3.670.44495991915.547054.375647713.5530854010.183877349
3.680.44461996715.63284.3820864613.5674330340.182301973
3.690.44428255715.718783334.3884916823.5818191020.180740783
3.70.44394766415.8054.3948635633.5962436080.17919366
3.710.44361526415.891454.4012022963.610706560.177660485
3.720.44328533215.978133334.4075080693.625207960.17614114
3.730.44295784416.065054.413781073.6397478140.174635509
3.740.44263277716.15224.4200214883.6543261260.173143473
3.750.44231010616.239583334.4262295083.6689429010.171664917
3.760.44198980816.32724.4324053173.6835981440.170199725
3.770.44167186116.415054.43854913.6982918590.168747783
3.780.44135624116.503133334.444661043.713024050.167308976
3.790.44104292716.591454.450741323.7277947210.165883191
3.80.44073189616.684.4567901233.7426038780.164470315
3.810.44042312616.768783334.4628076313.7574515240.163070237
3.820.44011659616.85784.4687940223.7723376630.161682843
3.830.43981228416.947054.4747494783.78726230.160308025
3.840.4395101717.036533334.4806741763.8022254390.158945672
3.850.43921023117.126254.4865682943.8172270830.157595674
3.860.43891244917.21624.4924320093.8322672370.156257923
3.870.43861680117.306383334.4982654973.8473459040.154932311
3.880.43832326917.39684.5040689333.8624630890.153618731
3.890.43803183117.487454.509842493.8776187940.152317076
3.90.4377424717.578333334.5155863433.8928130250.151027241
3.910.43745516417.669454.5213006643.9080457840.149749121
3.920.43716989517.76084.5269856233.9233170760.14848261
3.930.43688664417.852383334.5326413923.9386269040.147227607
3.940.43660539217.94424.538268143.9539752710.145984007
3.950.43632612118.036254.5438660363.9693621820.144751709
3.960.43604881218.128533334.5494352473.9847876380.143530611
3.970.43577344618.221054.554975944.0002516450.142320613
3.980.43550000718.31384.5604882824.0157542060.141121615
3.990.43522847618.406783334.5659724384.0312953230.139933517
40.43495883618.54.5714285714.0468750.138756221
4.010.4346910718.593454.5768568464.0624932410.137589629

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.coloradmin.cn/o/2197726.html

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈,一经查实,立即删除!

相关文章

【陪诊系统】打包问题

使用vite打包后,点击打开index.html是空白的,然后查阅了一些资料,原来是路径问题 【解决办法】:在vite.config.js中去添加base:‘./’ ok,完美解决,再打开打包好后的index.html可以看到界面了

CoppeliaSim和Matlab建立远程连接教程

CoppeliaSim和Matlab建立远程连接教程 Matlab通过调用CoppeliaSim的远程API和库函数实现远程连接,为实现Matlab和CoppeliaSim的联合仿真做准备。 一、获取并查看版本信息 点击 Help 查看版本信息 使用的CoppeliaSim Edu版本为:4.4.0 位数:64bit 二、拷贝API函数和库文件…

Ngx+Lua+Redis 实时IP黑名单系统

实时黑名单系统,如果用php脚本实现很容易,但是效率惨不忍睹呀。 要想速度快还的在nginx层实现阻塞。如果iptables 层阻塞速度更快,但是黑名单列表如果有更新就必须要重载配置,实现还是有难度的。php管理后台把黑名单ip写入到redis…

【数据分享】全国地级市2000-2022年公路里程数据(Shp/Excel格式)

公路里程是表征城市建设的重要指标!我们发现在各省市统计年鉴、经济社会发展统计中有公路里程数据,例如下图为2022年南京统计年鉴中统计的2021年和2020年的南京市公路里程数据: 我们特地从2001-2023年各省级/市级年鉴中汇总整理了全国地级市的…

PCL 将点云的曲率数据保存至txt

目录 一、概述 1.1原理 1.2实现步骤 1.3应用场景 二、代码实现 2.1关键函数 2.1.1 计算点云曲率 2.1.2 将曲率保存到txt文件 2.2完整代码 三、实现效果 PCL点云算法汇总及实战案例汇总的目录地址链接: PCL点云算法与项目实战案例汇总(长期更新…

【论文速看】DL最新进展20241008-多模态、医学图像分割、扩散模型

目录 【多模态】【医学图像分割】【扩散模型】 【多模态】 PaliGemma: A versatile 3B VLM for transfer 研究机构:google 论文链接:https://arxiv.org/pdf/2407.07726 模型及其说明链接:https://huggingface.co/google/paligemma-3b-pt-22…

leetcode68:文本左右对齐

给定一个单词数组 words 和一个长度 maxWidth ,重新排版单词,使其成为每行恰好有 maxWidth 个字符,且左右两端对齐的文本。 你应该使用 “贪心算法” 来放置给定的单词;也就是说,尽可能多地往每行中放置单词。必要时可…

RWKV-7 预览版、大量新论文...RWKV 社区 9 月动态速览

欢迎大家收看《RWKV 社区最新动态》第五期,本期内容收录了 RWKV 社区 2024 年 9 月的最新动态。 9 月动态省流版(TL;DR) RWKV 官方新闻动态 RWKV-7 发布预览版RWKV-7 论文撰写已面向社区开放RWKV 官网上线 Bad Case 收集页面RWKV 中文文档已…

攻防世界---->sherlock

做题笔记。 下载。 单词中出现大写很可疑。因为大写最多出现在开头等。 猜测是隐写术。 进行筛选。 借助python实现 with open(C:\\Users\\Acer\\Downloads\\f590c0f99c014b01a5ab8b611b46c57c.txt, r) as file:text file.read() uppercase_letters [char for char in text…

手撕数据结构 —— 顺序表(C语言讲解)

目录 1.顺序表简介 什么是顺序表 顺序表的分类 2.顺序表的实现 SeqList.h中接口总览 具体实现 顺序表的定义 顺序表的初始化 顺序表的销毁 打印顺序表 ​编辑 检查顺序表的容量 尾插 尾删 ​编辑 头插 头删 查找 在pos位置插入元素 删除pos位置的值 ​…

内核驱动-如何编译内核以及给内核中添加新文件

1.编译内核 想要编译内核,首先需要先下载内核源代码。可以在官方网站下载源代码压缩包,然后放在Ubuntu的目录下,然后解压(解压的指令为:sudo tar -xvf xxxx.gz)。解压之后在当前目录下可以看到解压之后的文…

java8 双冒号(::)使用方法

双冒号(::)运算符是跟函数式接口相关的运算符,作为函数式接口的赋值操作。 双冒号用于静态方法 使用方法:将类的静态方法赋值给一个函数式接口,静态方法的参数个数、类型要跟函数式的接口一致。调用这个函数式接口就…

数字化转型:别让技术迷了眼,战略觉醒才是关键。新媒体营销大客户销售AIGC大模型创新思维专家培训讲师谈数字化转型商业模式短视频内容社私域数字经济人工智能

​数字化转型从根本上讲不是关于技术,而是关于战略。 数字化转型使用新的数字技术来实现重大的业务改进,如增强客户体验、精简运营或创建新的商业模式。数字化转型描述了一家公司试图为数字时代做好准备的旅程。 数字化转型不是关于技术或获取新的技术技能。事实上,它是关于获得…

永磁同步电机环路反步法(backstepping)控制

文章目录 1、反步控制原理1.1 李雅普诺夫稳定性定理1.2 严格反馈系统1.3 一般设计流程 2、永磁同步电机反步控制2.1 反步控制器设计2.2 反步控制仿真 参考 写在前面:本人能力、时间、技术有限,没有对一些细节进行深入研究和分析,也难免有不足…

简易CPU设计入门:取指令(四)

项目代码下载 还是请大家首先准备好本项目所用的源代码。如果已经下载了,那就不用重复下载了。如果还没有下载,那么,请大家点击下方链接,来了解下载本项目的CPU源代码的方法。 下载本项目代码 准备好了项目源代码以后&#xff…

SOMEIP_ETS_174: SD_Unknown_Option_type

测试目的: 验证DUT能够拒绝一个引用了未知选项类型的SubscribeEventgroup消息,并以SubscribeEventgroupNAck作为响应。 描述 本测试用例旨在确保DUT遵循SOME/IP协议,当接收到一个引用了未知选项类型的SubscribeEventgroup消息时&#xff0…

Solidedge二次开发(C#)-将dft文件转换为dwg格式文件

提示:文章写完后,目录可以自动生成,如何生成可参考右边的帮助文档 文章目录 1、前言2、在Solid Edge中创建一个par文件3、通过二次开发将dft转换为dwg4、结果显示1、前言 Solid Edge提供了将dft转换为dwg的接口,也即是保存功能。有时在不显示Solid Edge界面的情况下,将其…

【C语言刷力扣】1436.旅行终点站

题目: 解题思路: 两层循环查找,第一次循环中初始化 destination 为 path中每次旅行的终点作为最终的终点。二次循环查找当前 destination ,若是作为某次旅行的起点,说明不是最后的终点。 char* destCity(char ***paths…

[Linux#62][TCP] 首位长度:封装与分用 | 序号:可靠性原理 | 滑动窗口:流量控制

目录 一. 认识TCP协议的报头 1.TCP头部格式 2. TCP协议的特点 二. TCP如何封装与分用 TCP 报文封装与解包 如何封装解包,如何分用 分离有效载荷 隐含问题:TCP 与 UDP 报头的区别 封装和解包的逆向过程 如何分用 TCP 报文 如何通过端口号找到绑…

多功能快捷回复软件

各位亲爱的客服宝宝们,每天面对大量的客户咨询,您是否还在手动一个一个地打字回复呢?别担心,我们为您带来了一款多功能快捷回复软件——客服宝。有了它,您的工作将变得无比轻松! 客服宝是一款集成了内容存储…