Commit 6072ab7e authored by 杨雷达's avatar 杨雷达

初始化提交

parents
Pipeline #236 failed with stages
This diff is collapsed.
(0.000000, 848191.620125),(0.231500, 844215.403833),(0.463000, 840239.187542),(0.694500, 836262.971251),(0.926000, 832286.754960),(1.157500, 828310.538669),(1.389000, 824334.322377),(1.620500, 820358.106086),(1.852000, 816381.889795),(2.083500, 812405.673504),(2.315000, 808429.457213),(2.546500, 804453.240921),(2.778000, 800477.024630),(3.009500, 796500.808339),(3.241000, 792524.592048),(3.472500, 788548.375757),(3.704000, 784572.159466),(3.935500, 780595.943174),(4.167000, 776619.726883),(4.398500, 772643.510592),(4.630000, 768667.294301),(4.861500, 764691.078010),(5.093000, 760714.861718),(5.324500, 756738.645427),(5.556000, 752762.429136),(5.787500, 748786.212845),(6.019000, 744809.996554),(6.250500, 740833.780262),(6.482000, 736857.563971),(6.713500, 732881.347680),(6.945000, 728905.131389),(7.176500, 724928.915098),(7.408000, 720952.698806),(7.639500, 716976.482515),(7.871000, 713000.266224),(8.102500, 709024.049933),(8.334000, 705047.833642),(8.565500, 701071.617350),(8.797000, 697095.401059),(9.028500, 693119.184768),(9.260000, 689142.968477),(9.491500, 685166.752186),(9.723000, 681190.535895),(9.954500, 677214.319603),(10.186000, 673238.103312),(10.417500, 669261.887021),(10.649000, 665285.670730),(10.880500, 661309.454439),(11.112000, 657333.238147),(11.343500, 653357.021856),(11.575000, 649380.805565),(11.806500, 645404.589274),(12.038000, 641428.372983),(12.269500, 637452.156691),(12.501000, 633475.940400),(12.732500, 629499.724109),(12.964000, 625523.507818),(13.195500, 621547.291527),(13.427000, 617571.075235),(13.658500, 613594.858944),(13.890000, 609618.642653),(14.121500, 605642.426362),(14.353000, 601666.210071),(14.584500, 597689.993780),(14.816000, 593713.777488),(15.047500, 589737.561197),(15.279000, 585761.344906),(15.510500, 581785.128615),(15.742000, 577808.912324),(15.973500, 573832.696032),(16.205000, 569856.479741),(16.436500, 565880.263450),(16.668000, 561904.047159),(16.899500, 557927.830868),(17.131000, 553951.614576),(17.362500, 549975.398285),(17.594000, 545999.181994),(17.825500, 542022.965703),(18.057000, 538046.749412),(18.288500, 534070.533120),(18.520000, 530094.316829),(18.751500, 526118.100538),(18.983000, 522141.884247),(19.214500, 518165.667956),(19.446000, 514189.451664),(19.677500, 510213.235373),(19.909000, 506237.019082),(20.140500, 502260.802791),(20.372000, 498284.586500),(20.603500, 494308.370209),(20.835000, 490332.153917),(21.066500, 486355.937626),(21.298000, 482379.721335),(21.529500, 478403.505044),(21.761000, 474427.288753),(21.992500, 470451.072461),(22.224000, 466474.856170),(22.455500, 462498.639879),(22.687000, 458522.423588),(22.918500, 454546.207297),(23.150000, 450569.991005),(23.381500, 446593.774714),(23.613000, 442617.558423),(23.844500, 438641.342132),(24.076000, 434665.125841),(24.307500, 430688.909549),(24.539000, 426712.693258),(24.770500, 422736.476967),(25.002000, 418760.260676),(25.233500, 414784.044385),(25.465000, 410807.828094),(25.696500, 406831.611802),(25.928000, 402855.395511),(26.159500, 398879.179220),(26.391000, 394902.962929),(26.622500, 390926.746638),(26.854000, 386950.530346),(27.085500, 382974.314055),(27.317000, 378998.097764),(27.548500, 375021.881473),(27.780000, 371045.665182),(28.011500, 367069.448890),(28.243000, 363093.232599),(28.474500, 359117.016308),(28.706000, 355140.800017),(28.937500, 351164.583726),(29.169000, 347188.367434),(29.400500, 343212.151143),(29.632000, 339235.934852),(29.863500, 335259.718561),(30.095000, 331283.502270),(30.326500, 327307.285978),(30.558000, 323331.069687),(30.789500, 319354.853396),(31.021000, 315378.637105),(31.252500, 311402.420814),(31.484000, 307426.204523),(31.715500, 303449.988231),(31.947000, 299473.771940),(32.178500, 295497.555649),(32.410000, 291521.339358),(32.641500, 287545.123067),(32.873000, 283568.906775),(33.104500, 279592.690484),(33.336000, 275616.474193),(33.567500, 271640.257902),(33.799000, 267664.041611),(34.030500, 263687.825319),(34.262000, 259711.609028),(34.493500, 255735.392737),(34.725000, 251759.176446),(34.956500, 247782.960155),(35.188000, 243806.743863),(35.419500, 239830.527572),(35.651000, 235854.311281),(35.882500, 231878.094990),(36.114000, 227901.878699),(36.345500, 223925.662408),(36.577000, 219949.446116),(36.808500, 215973.229825),(37.040000, 211997.013534),(37.271500, 208020.797243),(37.503000, 204044.580952),(37.734500, 200068.364660),(37.966000, 196092.148369),(38.197500, 192115.932078),(38.429000, 188139.715787),(38.660500, 184163.499496),(38.892000, 180187.283204),(39.123500, 176211.066913),(39.355000, 172234.850622),(39.586500, 168258.634331),(39.818000, 164282.418040),(40.049500, 160306.201748),(40.281000, 156329.985457),(40.512500, 152353.769166),(40.744000, 148377.552875),(40.975500, 144401.336584),(41.207000, 140425.120292),(41.438500, 136448.904001),(41.670000, 132472.687710),(41.901500, 128496.471419),(42.133000, 124520.255128),(42.364500, 120544.038837),(42.596000, 116567.822545),(42.827500, 112591.606254),(43.059000, 108615.389963),(43.290500, 104639.173672),(43.522000, 100662.957381),(43.753500, 96686.741089),(43.985000, 92710.524798),(44.216500, 88734.308507),(44.448000, 84758.092216),(44.679500, 80781.875925),(44.911000, 76805.659633),(45.142500, 72829.443342),(45.374000, 68853.227051),(45.605500, 64877.010760),(45.837000, 60900.794469),(46.068500, 56924.578177),(46.300000, 52948.361886),(46.531500, 48972.145595),(46.763000, 44995.929304),(46.994500, 41019.713013),(47.226000, 37043.496722),(47.457500, 33067.280430),(47.689000, 29091.064139),(47.920500, 25114.847848),(48.152000, 21138.631557),(48.383500, 17162.415266),(48.615000, 13186.198974),(48.846500, 9209.982683),(49.078000, 5233.766392),(49.309500, 1257.550101),(49.400000, 0.000000)
\ No newline at end of file
(0.000000, 105.000000),(0.231500, 104.671849),(0.463000, 104.343697),(0.694500, 104.015546),(0.926000, 103.687395),(1.157500, 103.359244),(1.389000, 103.031092),(1.620500, 102.702941),(1.852000, 102.374790),(2.083500, 102.046639),(2.315000, 101.718488),(2.546500, 101.390336),(2.778000, 101.062185),(3.009500, 100.734034),(3.241000, 100.405883),(3.472500, 100.077731),(3.704000, 99.749580),(3.935500, 99.421429),(4.167000, 99.093278),(4.398500, 98.765126),(4.630000, 98.436975),(4.861500, 98.108824),(5.093000, 97.780673),(5.324500, 97.452521),(5.556000, 97.124370),(5.787500, 96.796219),(6.019000, 96.468068),(6.250500, 96.139916),(6.482000, 95.811765),(6.713500, 95.483614),(6.945000, 95.155462),(7.176500, 94.827311),(7.408000, 94.499160),(7.639500, 94.171009),(7.871000, 93.842858),(8.102500, 93.514706),(8.334000, 93.186555),(8.565500, 92.858404),(8.797000, 92.530253),(9.028500, 92.202101),(9.260000, 91.873950),(9.491500, 91.545799),(9.723000, 91.217647),(9.954500, 90.889496),(10.186000, 90.561345),(10.417500, 90.233194),(10.649000, 89.905043),(10.880500, 89.576891),(11.112000, 89.248740),(11.343500, 88.920589),(11.575000, 88.592437),(11.806500, 88.264286),(12.038000, 87.936135),(12.269500, 87.607984),(12.501000, 87.279832),(12.732500, 86.951681),(12.964000, 86.623530),(13.195500, 86.295379),(13.427000, 85.967228),(13.658500, 85.639076),(13.890000, 85.310925),(14.121500, 84.982774),(14.353000, 84.654623),(14.584500, 84.326471),(14.816000, 83.998320),(15.047500, 83.670169),(15.279000, 83.342017),(15.510500, 83.013866),(15.742000, 82.685715),(15.973500, 82.357564),(16.205000, 82.029413),(16.436500, 81.701261),(16.668000, 81.373110),(16.899500, 81.044959),(17.131000, 80.716808),(17.362500, 80.388656),(17.594000, 80.060505),(17.825500, 79.732354),(18.057000, 79.404202),(18.288500, 79.076051),(18.520000, 78.747900),(18.751500, 78.419749),(18.983000, 78.091598),(19.214500, 77.763446),(19.446000, 77.435295),(19.677500, 77.107144),(19.909000, 76.778993),(20.140500, 76.450841),(20.372000, 76.122690),(20.603500, 75.794539),(20.835000, 75.466387),(21.066500, 75.138236),(21.298000, 74.810085),(21.529500, 74.481934),(21.761000, 74.153782),(21.992500, 73.825631),(22.224000, 73.497480),(22.455500, 73.169329),(22.687000, 72.841178),(22.918500, 72.513026),(23.150000, 72.184875),(23.381500, 71.856724),(23.613000, 71.528572),(23.844500, 71.200421),(24.076000, 70.872270),(24.307500, 70.544119),(24.539000, 70.215968),(24.770500, 69.887816),(25.002000, 69.559665),(25.233500, 69.231514),(25.465000, 68.903363),(25.696500, 68.575211),(25.928000, 68.247060),(26.159500, 67.918909),(26.391000, 67.590757),(26.622500, 67.262606),(26.854000, 66.934455),(27.085500, 66.606304),(27.317000, 66.278153),(27.548500, 65.950001),(27.780000, 65.621850),(28.011500, 65.293699),(28.243000, 64.965547),(28.474500, 64.637396),(28.706000, 64.309245),(28.937500, 63.981094),(29.169000, 63.652943),(29.400500, 63.324791),(29.632000, 62.996640),(29.863500, 62.668489),(30.095000, 62.340337),(30.326500, 62.012186),(30.558000, 61.684035),(30.789500, 61.355884),(31.021000, 61.027732),(31.252500, 60.699581),(31.484000, 60.371430),(31.715500, 60.043279),(31.947000, 59.715128),(32.178500, 59.386976),(32.410000, 59.058825),(32.641500, 58.730674),(32.873000, 58.402522),(33.104500, 58.074371),(33.336000, 57.746220),(33.567500, 57.418069),(33.799000, 57.089917),(34.030500, 56.761766),(34.262000, 56.433615),(34.493500, 56.105464),(34.725000, 55.777313),(34.956500, 55.449161),(35.188000, 55.121010),(35.419500, 54.792859),(35.651000, 54.464707),(35.882500, 54.136556),(36.114000, 53.808405),(36.345500, 53.480254),(36.577000, 53.152102),(36.808500, 52.823951),(37.040000, 52.495800),(37.271500, 52.167649),(37.503000, 51.839498),(37.734500, 51.511346),(37.966000, 51.183195),(38.197500, 50.855044),(38.429000, 50.526892),(38.660500, 50.198741),(38.892000, 49.870590),(39.123500, 49.542439),(39.355000, 49.214287),(39.586500, 48.886136),(39.818000, 48.557985),(40.049500, 48.229834),(40.281000, 47.901683),(40.512500, 47.573531),(40.744000, 47.245380),(40.975500, 46.917229),(41.207000, 46.589078),(41.438500, 46.260926),(41.670000, 45.932775),(41.901500, 45.604624),(42.133000, 45.276472),(42.364500, 44.948321),(42.596000, 44.620170),(42.827500, 44.292019),(43.059000, 43.963867),(43.290500, 43.635716),(43.522000, 43.307565),(43.753500, 42.979414),(43.985000, 42.651263),(44.216500, 42.323111),(44.448000, 41.994960),(44.679500, 41.666809),(44.911000, 41.338657),(45.142500, 41.010506),(45.374000, 40.682355),(45.605500, 40.354204),(45.837000, 40.026053),(46.068500, 39.697901),(46.300000, 39.369750),(46.531500, 39.041599),(46.763000, 38.713448),(46.994500, 38.385296),(47.226000, 38.057145),(47.457500, 37.728994),(47.689000, 37.400843),(47.920500, 37.072691),(48.152000, 36.744540),(48.383500, 36.416389),(48.615000, 36.088238),(48.846500, 35.760086),(49.078000, 35.431935),(49.309500, 35.103784),(49.400000, 35.000000)
\ No newline at end of file
G:/case_1/codeTdata_V0.1/
G:/case_1/Models/
TSTRESS-Test-D1-add_5_Sets-V0.4
G:/case_1/cae/
49.4
'(0.000000, 105.000000),(0.231500, 104.671849),(0.463000, 104.343697)'
'(0.000000, 105.000000),(0.231500, 104.671849),(0.463000, 104.343697)'
0.01
0.0001
10.0
100000
Surf-Film-Disc
Surf-Flux
40.0
0.8
6
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
@echo off
abaqus cae noGUI=G:\case_1\codeTdata_V0.1\MainFunction-V1.6.2.py
\ No newline at end of file
This diff is collapsed.
G:/case_1/codeTdata_V0.1/
G:/case_1/Models/
TSTRESS-Test-D1-add_5_Sets-V0.4
G:/case_1/cae/
49.4
(0.000000, 105.000000),(0.231500, 104.671849),(0.463000, 104.343697)
(0.000000, 105.000000),(0.231500, 104.671849),(0.463000, 104.343697)
0.01
0.0001
10.0
100000
Surf-Film-Disc
Surf-Flux
40.0
0.8
6
\ No newline at end of file
(0.000000, 848191.620125),(0.231500, 844215.403833),(0.463000, 840239.187542),(0.694500, 836262.971251),(0.926000, 832286.754960),(1.157500, 828310.538669),(1.389000, 824334.322377),(1.620500, 820358.106086),(1.852000, 816381.889795),(2.083500, 812405.673504),(2.315000, 808429.457213),(2.546500, 804453.240921),(2.778000, 800477.024630),(3.009500, 796500.808339),(3.241000, 792524.592048),(3.472500, 788548.375757),(3.704000, 784572.159466),(3.935500, 780595.943174),(4.167000, 776619.726883),(4.398500, 772643.510592),(4.630000, 768667.294301),(4.861500, 764691.078010),(5.093000, 760714.861718),(5.324500, 756738.645427),(5.556000, 752762.429136),(5.787500, 748786.212845),(6.019000, 744809.996554),(6.250500, 740833.780262),(6.482000, 736857.563971),(6.713500, 732881.347680),(6.945000, 728905.131389),(7.176500, 724928.915098),(7.408000, 720952.698806),(7.639500, 716976.482515),(7.871000, 713000.266224),(8.102500, 709024.049933),(8.334000, 705047.833642),(8.565500, 701071.617350),(8.797000, 697095.401059),(9.028500, 693119.184768),(9.260000, 689142.968477),(9.491500, 685166.752186),(9.723000, 681190.535895),(9.954500, 677214.319603),(10.186000, 673238.103312),(10.417500, 669261.887021),(10.649000, 665285.670730),(10.880500, 661309.454439),(11.112000, 657333.238147),(11.343500, 653357.021856),(11.575000, 649380.805565),(11.806500, 645404.589274),(12.038000, 641428.372983),(12.269500, 637452.156691),(12.501000, 633475.940400),(12.732500, 629499.724109),(12.964000, 625523.507818),(13.195500, 621547.291527),(13.427000, 617571.075235),(13.658500, 613594.858944),(13.890000, 609618.642653),(14.121500, 605642.426362),(14.353000, 601666.210071),(14.584500, 597689.993780),(14.816000, 593713.777488),(15.047500, 589737.561197),(15.279000, 585761.344906),(15.510500, 581785.128615),(15.742000, 577808.912324),(15.973500, 573832.696032),(16.205000, 569856.479741),(16.436500, 565880.263450),(16.668000, 561904.047159),(16.899500, 557927.830868),(17.131000, 553951.614576),(17.362500, 549975.398285),(17.594000, 545999.181994),(17.825500, 542022.965703),(18.057000, 538046.749412),(18.288500, 534070.533120),(18.520000, 530094.316829),(18.751500, 526118.100538),(18.983000, 522141.884247),(19.214500, 518165.667956),(19.446000, 514189.451664),(19.677500, 510213.235373),(19.909000, 506237.019082),(20.140500, 502260.802791),(20.372000, 498284.586500),(20.603500, 494308.370209),(20.835000, 490332.153917),(21.066500, 486355.937626),(21.298000, 482379.721335),(21.529500, 478403.505044),(21.761000, 474427.288753),(21.992500, 470451.072461),(22.224000, 466474.856170),(22.455500, 462498.639879),(22.687000, 458522.423588),(22.918500, 454546.207297),(23.150000, 450569.991005),(23.381500, 446593.774714),(23.613000, 442617.558423),(23.844500, 438641.342132),(24.076000, 434665.125841),(24.307500, 430688.909549),(24.539000, 426712.693258),(24.770500, 422736.476967),(25.002000, 418760.260676),(25.233500, 414784.044385),(25.465000, 410807.828094),(25.696500, 406831.611802),(25.928000, 402855.395511),(26.159500, 398879.179220),(26.391000, 394902.962929),(26.622500, 390926.746638),(26.854000, 386950.530346),(27.085500, 382974.314055),(27.317000, 378998.097764),(27.548500, 375021.881473),(27.780000, 371045.665182),(28.011500, 367069.448890),(28.243000, 363093.232599),(28.474500, 359117.016308),(28.706000, 355140.800017),(28.937500, 351164.583726),(29.169000, 347188.367434),(29.400500, 343212.151143),(29.632000, 339235.934852),(29.863500, 335259.718561),(30.095000, 331283.502270),(30.326500, 327307.285978),(30.558000, 323331.069687),(30.789500, 319354.853396),(31.021000, 315378.637105),(31.252500, 311402.420814),(31.484000, 307426.204523),(31.715500, 303449.988231),(31.947000, 299473.771940),(32.178500, 295497.555649),(32.410000, 291521.339358),(32.641500, 287545.123067),(32.873000, 283568.906775),(33.104500, 279592.690484),(33.336000, 275616.474193),(33.567500, 271640.257902),(33.799000, 267664.041611),(34.030500, 263687.825319),(34.262000, 259711.609028),(34.493500, 255735.392737),(34.725000, 251759.176446),(34.956500, 247782.960155),(35.188000, 243806.743863),(35.419500, 239830.527572),(35.651000, 235854.311281),(35.882500, 231878.094990),(36.114000, 227901.878699),(36.345500, 223925.662408),(36.577000, 219949.446116),(36.808500, 215973.229825),(37.040000, 211997.013534),(37.271500, 208020.797243),(37.503000, 204044.580952),(37.734500, 200068.364660),(37.966000, 196092.148369),(38.197500, 192115.932078),(38.429000, 188139.715787),(38.660500, 184163.499496),(38.892000, 180187.283204),(39.123500, 176211.066913),(39.355000, 172234.850622),(39.586500, 168258.634331),(39.818000, 164282.418040),(40.049500, 160306.201748),(40.281000, 156329.985457),(40.512500, 152353.769166),(40.744000, 148377.552875),(40.975500, 144401.336584),(41.207000, 140425.120292),(41.438500, 136448.904001),(41.670000, 132472.687710),(41.901500, 128496.471419),(42.133000, 124520.255128),(42.364500, 120544.038837),(42.596000, 116567.822545),(42.827500, 112591.606254),(43.059000, 108615.389963),(43.290500, 104639.173672),(43.522000, 100662.957381),(43.753500, 96686.741089),(43.985000, 92710.524798),(44.216500, 88734.308507),(44.448000, 84758.092216),(44.679500, 80781.875925),(44.911000, 76805.659633),(45.142500, 72829.443342),(45.374000, 68853.227051),(45.605500, 64877.010760),(45.837000, 60900.794469),(46.068500, 56924.578177),(46.300000, 52948.361886),(46.531500, 48972.145595),(46.763000, 44995.929304),(46.994500, 41019.713013),(47.226000, 37043.496722),(47.457500, 33067.280430),(47.689000, 29091.064139),(47.920500, 25114.847848),(48.152000, 21138.631557),(48.383500, 17162.415266),(48.615000, 13186.198974),(48.846500, 9209.982683),(49.078000, 5233.766392),(49.309500, 1257.550101),(49.400000, 0.000000)
\ No newline at end of file
(0.000000, 105.000000),(0.231500, 104.671849),(0.463000, 104.343697),(0.694500, 104.015546),(0.926000, 103.687395),(1.157500, 103.359244),(1.389000, 103.031092),(1.620500, 102.702941),(1.852000, 102.374790),(2.083500, 102.046639),(2.315000, 101.718488),(2.546500, 101.390336),(2.778000, 101.062185),(3.009500, 100.734034),(3.241000, 100.405883),(3.472500, 100.077731),(3.704000, 99.749580),(3.935500, 99.421429),(4.167000, 99.093278),(4.398500, 98.765126),(4.630000, 98.436975),(4.861500, 98.108824),(5.093000, 97.780673),(5.324500, 97.452521),(5.556000, 97.124370),(5.787500, 96.796219),(6.019000, 96.468068),(6.250500, 96.139916),(6.482000, 95.811765),(6.713500, 95.483614),(6.945000, 95.155462),(7.176500, 94.827311),(7.408000, 94.499160),(7.639500, 94.171009),(7.871000, 93.842858),(8.102500, 93.514706),(8.334000, 93.186555),(8.565500, 92.858404),(8.797000, 92.530253),(9.028500, 92.202101),(9.260000, 91.873950),(9.491500, 91.545799),(9.723000, 91.217647),(9.954500, 90.889496),(10.186000, 90.561345),(10.417500, 90.233194),(10.649000, 89.905043),(10.880500, 89.576891),(11.112000, 89.248740),(11.343500, 88.920589),(11.575000, 88.592437),(11.806500, 88.264286),(12.038000, 87.936135),(12.269500, 87.607984),(12.501000, 87.279832),(12.732500, 86.951681),(12.964000, 86.623530),(13.195500, 86.295379),(13.427000, 85.967228),(13.658500, 85.639076),(13.890000, 85.310925),(14.121500, 84.982774),(14.353000, 84.654623),(14.584500, 84.326471),(14.816000, 83.998320),(15.047500, 83.670169),(15.279000, 83.342017),(15.510500, 83.013866),(15.742000, 82.685715),(15.973500, 82.357564),(16.205000, 82.029413),(16.436500, 81.701261),(16.668000, 81.373110),(16.899500, 81.044959),(17.131000, 80.716808),(17.362500, 80.388656),(17.594000, 80.060505),(17.825500, 79.732354),(18.057000, 79.404202),(18.288500, 79.076051),(18.520000, 78.747900),(18.751500, 78.419749),(18.983000, 78.091598),(19.214500, 77.763446),(19.446000, 77.435295),(19.677500, 77.107144),(19.909000, 76.778993),(20.140500, 76.450841),(20.372000, 76.122690),(20.603500, 75.794539),(20.835000, 75.466387),(21.066500, 75.138236),(21.298000, 74.810085),(21.529500, 74.481934),(21.761000, 74.153782),(21.992500, 73.825631),(22.224000, 73.497480),(22.455500, 73.169329),(22.687000, 72.841178),(22.918500, 72.513026),(23.150000, 72.184875),(23.381500, 71.856724),(23.613000, 71.528572),(23.844500, 71.200421),(24.076000, 70.872270),(24.307500, 70.544119),(24.539000, 70.215968),(24.770500, 69.887816),(25.002000, 69.559665),(25.233500, 69.231514),(25.465000, 68.903363),(25.696500, 68.575211),(25.928000, 68.247060),(26.159500, 67.918909),(26.391000, 67.590757),(26.622500, 67.262606),(26.854000, 66.934455),(27.085500, 66.606304),(27.317000, 66.278153),(27.548500, 65.950001),(27.780000, 65.621850),(28.011500, 65.293699),(28.243000, 64.965547),(28.474500, 64.637396),(28.706000, 64.309245),(28.937500, 63.981094),(29.169000, 63.652943),(29.400500, 63.324791),(29.632000, 62.996640),(29.863500, 62.668489),(30.095000, 62.340337),(30.326500, 62.012186),(30.558000, 61.684035),(30.789500, 61.355884),(31.021000, 61.027732),(31.252500, 60.699581),(31.484000, 60.371430),(31.715500, 60.043279),(31.947000, 59.715128),(32.178500, 59.386976),(32.410000, 59.058825),(32.641500, 58.730674),(32.873000, 58.402522),(33.104500, 58.074371),(33.336000, 57.746220),(33.567500, 57.418069),(33.799000, 57.089917),(34.030500, 56.761766),(34.262000, 56.433615),(34.493500, 56.105464),(34.725000, 55.777313),(34.956500, 55.449161),(35.188000, 55.121010),(35.419500, 54.792859),(35.651000, 54.464707),(35.882500, 54.136556),(36.114000, 53.808405),(36.345500, 53.480254),(36.577000, 53.152102),(36.808500, 52.823951),(37.040000, 52.495800),(37.271500, 52.167649),(37.503000, 51.839498),(37.734500, 51.511346),(37.966000, 51.183195),(38.197500, 50.855044),(38.429000, 50.526892),(38.660500, 50.198741),(38.892000, 49.870590),(39.123500, 49.542439),(39.355000, 49.214287),(39.586500, 48.886136),(39.818000, 48.557985),(40.049500, 48.229834),(40.281000, 47.901683),(40.512500, 47.573531),(40.744000, 47.245380),(40.975500, 46.917229),(41.207000, 46.589078),(41.438500, 46.260926),(41.670000, 45.932775),(41.901500, 45.604624),(42.133000, 45.276472),(42.364500, 44.948321),(42.596000, 44.620170),(42.827500, 44.292019),(43.059000, 43.963867),(43.290500, 43.635716),(43.522000, 43.307565),(43.753500, 42.979414),(43.985000, 42.651263),(44.216500, 42.323111),(44.448000, 41.994960),(44.679500, 41.666809),(44.911000, 41.338657),(45.142500, 41.010506),(45.374000, 40.682355),(45.605500, 40.354204),(45.837000, 40.026053),(46.068500, 39.697901),(46.300000, 39.369750),(46.531500, 39.041599),(46.763000, 38.713448),(46.994500, 38.385296),(47.226000, 38.057145),(47.457500, 37.728994),(47.689000, 37.400843),(47.920500, 37.072691),(48.152000, 36.744540),(48.383500, 36.416389),(48.615000, 36.088238),(48.846500, 35.760086),(49.078000, 35.431935),(49.309500, 35.103784),(49.400000, 35.000000)
\ No newline at end of file
G:/case_1/codeTdata_V0.1/
G:/case_1/Models/
TSTRESS-Test-D1-add_5_Sets-V0.4
G:/case_1/cae/
49.4
'(0.000000, 105.000000),(0.231500, 104.671849),(0.463000, 104.343697)'
'(0.000000, 105.000000),(0.231500, 104.671849),(0.463000, 104.343697)'
0.01
0.0001
10.0
100000
Surf-Film-Disc
Surf-Flux
40.0
0.8
6
\ No newline at end of file
@echo off
abaqus cae noGUI=G:\case_1\codeTdata_V0.1\MainFunction-V1.6.2.py
\ No newline at end of file
[0.0, 0.00999999977648258, 0.0199999995529652, 0.0350000001490116, 0.0575000010430813, 0.0912500023841858, 0.141874998807907, 0.217812493443489, 0.317812502384186, 0.417812496423721, 0.517812490463257, 0.617812514305115, 0.717812478542328, 0.817812502384186, 0.917812526226044, 1.0]
\ No newline at end of file
[0.0, 0.00164020014926791, 0.0126259010285139, 0.063784658908844, 0.258026957511902, 0.891800105571747, 2.64364504814148, 6.35650825500488, 10.2239923477173, 10.899359703064, 10.300874710083, 8.1142749786377, 4.84567213058472, 1.83085834980011, 0.225788787007332, 3.34989854309242e-05]
\ No newline at end of file
from abaqusConstants import *
mdb.models['THERMAL-SHXJC-V160-2UB-Copy'].HeatTransferStep(name = 'Heat Transfer', previous = 'Initial', timePeriod = 49.4, maxNumInc = 100000, initialInc = 0.01, minInc = 0.0001, maxInc = 49.4*0.01, deltmx = 10.0)
mdb.models['THERMAL-SHXJC-V160-2UB-Copy'].TabularAmplitude(name = 'HT_Film_Table', timeSpan=STEP, smooth = SOLVER_DEFAULT, data =((0.000000, 105.000000),(0.231500, 104.671849),(0.463000, 104.343697)))
a = mdb.models['THERMAL-SHXJC-V160-2UB-Copy'].rootAssembly
region = a.surfaces['Surf-Film-Disc']
mdb.models['THERMAL-SHXJC-V160-2UB-Copy'].FilmCondition(name= 'HT_Film', createStepName = 'Heat Transfer', surface = region, definition = EMBEDDED_COEFF, filmCoeff = 1.0, filmCoeffAmplitude = 'HT_Film_Table', sinkTemperature = 40.0, sinkAmplitude = '', sinkDistributionType = UNIFORM, sinkFieldName = '')
mdb.models['THERMAL-SHXJC-V160-2UB-Copy'].TabularAmplitude(name = 'HT_Flux_Table', timeSpan=STEP, smooth = SOLVER_DEFAULT, data =((0.000000, 105.000000),(0.231500, 104.671849),(0.463000, 104.343697)))
a = mdb.models['THERMAL-SHXJC-V160-2UB-Copy'].rootAssembly
region = a.surfaces['Surf-Flux']
mdb.models['THERMAL-SHXJC-V160-2UB-Copy'].SurfaceHeatFlux(name = 'HT_Flux', createStepName = 'Heat Transfer', region = region, magnitude = 1.0, amplitude = 'HT_Flux_Table')
a = mdb.models['THERMAL-SHXJC-V160-2UB-Copy'].rootAssembly
region = a.surfaces['Surf-Film-Disc']
mdb.models['THERMAL-SHXJC-V160-2UB-Copy'].RadiationToAmbient(name='HT_Radiation', createStepName='Heat Transfer', surface = region, radiationType = AMBIENT, distributionType = UNIFORM, field = '', emissivity = 0.8, ambientTemperature = 40.0, ambientTemperatureAmp = '')
# Heat Transfer Analysis for transient response
#
# Parameters files for all PY script vision 0.0.1
#
#
# INPUT FLUX FILE
fo = open("Amp_BrakeLoad_data.txt", "r")
array_FLUX = fo.readlines()
fo.close()
array_FLUX_str=''.join(array_FLUX)
# INPUT FILM FILE
fo = open("Amp_Film_data.txt", "r")
array_FILM = fo.readlines()
fo.close()
array_FILM_str=''.join(array_FILM)
# INPUT VELOCITY FILE
fo = open("Para_V0.3.txt", "r")
array = fo.readlines()
# close file
fo.close()
v=array
#print v
#v1=map(float,v)
# print v1
# length=len(v1) #length=4
# print length
# k=length-1
M0_Dtbc=v[0].strip()
M1_Dtbc=v[1].strip()
M2_Dtbc=v[2].strip()
M3_Dtbc=v[3].strip()
C1_Dtbc=v[4].strip()
C2_Dtbc=array_FILM_str
C3_Dtbc=array_FLUX_str
C4_Dtbc=v[7].strip()
C5_Dtbc=v[8].strip()
C6_Dtbc=v[9].strip()
C7_Dtbc=v[10].strip()
C8_Dtbc=v[11].strip()
C9_Dtbc=v[12].strip()
C10_Dtbc=v[13].strip()
C11_Dtbc=v[14].strip()
AA1_Dtbc=v[15].strip()
print 'M0_Dtbc=',M0_Dtbc
print 'M1_Dtbc=',M1_Dtbc
print 'M2_Dtbc=',M2_Dtbc
print 'M3_Dtbc=',M3_Dtbc
print 'C1_Dtbc=',C1_Dtbc
print 'C2_Dtbc=',C2_Dtbc
print 'C3_Dtbc=',C3_Dtbc
print 'C4_Dtbc=',C4_Dtbc
print 'C5_Dtbc=',C5_Dtbc
print 'C6_Dtbc=',C6_Dtbc
print 'C7_Dtbc=',C7_Dtbc
print 'C8_Dtbc=',C8_Dtbc
print 'C9_Dtbc=',C9_Dtbc
print 'C10_Dtbc=',C10_Dtbc
print 'C11_Dtbc=',C11_Dtbc
print 'AA1_Dtbc=',AA1_Dtbc
'''
fo = open("Amp_BrakeLoad_data.txt", "r")
array_a0 = fo.readlines()
fo.close()
a_str=''.join(array_a0)
UB_Amp_Film_data=a_str
'''
'''
#INPUT UB_Amp_Film_data FILE
def InputUB_Amp_Film_data(a0):
s='{name1}{name2}'
FileName_N=s.format(name1=a0,name2='_data.txt')
str_temp_a0=FileName_N
fo = open(str_temp_a0, "r")
array_a0 = fo.readlines()
fo.close()
a_str=''.join(array_a0)
UB_Amp_Film_data=a_str
return UB_Amp_Film_data
#INPUT UB_Amp_Flux_data FILE
def InputUB_Amp_Flux_data(b0):
s='{name1}{name2}'
FileName_N=s.format(name1=b0,name2='_data.txt')
str_temp_b0=FileName_N
fo = open(str_temp_b0, "r")
array_b0 = fo.readlines()
fo.close()
b_str=''.join(array_b0)
UB_Amp_Flux_data=b_str
return UB_Amp_Flux_data
'''
'''
#
# MainFunction-V1.6.1.py
# Software Installation Position
M0_Dtbc='E:/Case1/Heat_transfer/DEF/codeTdata_V0.0/'
# database_path='E:/Case1/A1 ZEMT-fric/A1.2 work/A1.2.4 MODELs/'
M1_Dtbc='E:/Case1/Models/'
# caefile_name='Test-D1-add_5_Sets.cae'
M2_Dtbc='TSTRESS-Test-D1-add_5_Sets-V0.4'
# current_work_directory='E:/Case1/A1 ZEMT-fric/A1.3 coupled-TS/A1.3.4 PY_Script-TS-V1.1/A1. Heat transfer/'
M3_Dtbc='E:/Case1/Heat_transfer/A4/BK1/'
#
# CreateABAQUS_SETTING-V1.2.py
#
# Form DM
# define total time period data from Doctor Ma's data
# TOTAL_Time_Period=49.4
C1_Dtbc=49.4
# define Film coefficeint amplitude data from Doctor Ma's data
# FilmTable_data_FromDM='(0.000000, 105.000000),(0.231500, 104.671849),(0.463000, 104.343697)'
C2_Dtbc='(0.000000, 105.000000),(0.231500, 104.671849),(0.463000, 104.343697)'
# define HFL amplitude data from Doctor Ma's data
# FluxTable_data_FromDM='(0.000000, 105.000000),(0.231500, 104.671849),(0.463000, 104.343697)'
C3_Dtbc='(0.000000, 105.000000),(0.231500, 104.671849),(0.463000, 104.343697)'
# Set data from platform
#
# UB_1_Step_initiallnc=0.01
C4_Dtbc=0.01
# UB_1_Step_minlnc=0.0001
C5_Dtbc=0.0001
# UB_1_Step_deltmx=10.0
C6_Dtbc=10.0
# UB_1_Step_maxNumInc=100000
C7_Dtbc=100000
#DEFINE ALL SURFACES
# Surface_Name_Film='Surf-Film-Disc'
C8_Dtbc='Surf-Film-Disc'
# Surface_Name_Flux='Surf-Flux'
C9_Dtbc='Surf-Flux'
#DEFINE REFERENCE TEMPERATURE
# Reference_Temperature=40.0
C10_Dtbc=40.0
#DEFINE EMISSIVITY COEFFICIENT
# Radiation_COEF_Emissivity=0.8
C11_Dtbc=0.8
#
# ABAQUS_SUBMIT-V1.4.py
#
# define the number of cpus to be used by ABAQUS/Standard solver
AA1_Dtbc=6
'''
@echo off
abaqus cae noGUI=G:\case_1\v0\MainFunction-V1.6.1.py
\ No newline at end of file
#ABAQUS_SUBNIT-V1.3 updated
#remove the ability to kill a analysis.
#ABAQUS_SUBNIT-V1.2 updated
#add the ability to kill a analysis.
#ABAQUS_SUBNIT-V1.1 updated
#THE STATUS OF JOBS SUBMITED TO ABAQUS WILL BE CHECKED.
#
#
#The userSubroutine can be defined
#used_model_name
s='{name1}{name2}'
JobName=s.format(name1='Job-',name2=used_model_name)
str_temp_job_A=JobName
# used_Cpus_num=6
used_Cpus_num=AA1_Dtbc
#SAVE THE FILE BEFORE SUBMITED
mdb.saveAs(pathName=str_temp_job_A)
mdb.Job(name=str_temp_job_A, model=used_model_name, description='', type=ANALYSIS,
atTime=None, waitMinutes=0, waitHours=0, queue=None, memory=90,
memoryUnits=PERCENTAGE, getMemoryFromAnalysis=True,
explicitPrecision=SINGLE, nodalOutputPrecision=SINGLE, echoPrint=OFF,
modelPrint=OFF, contactPrint=OFF, historyPrint=OFF, userSubroutine='',
scratch='', resultsFormat=ODB, multiprocessingMode=DEFAULT, numCpus=used_Cpus_num,
numDomains=used_Cpus_num, numGPUs=0)
mdb.jobs[str_temp_job_A].submit(consistencyChecking=OFF)
print str_temp_job_A, ': the job is submitted and please wait...'
mdb.jobs[str_temp_job_A].waitForCompletion()
print 'The job is completed:', str_temp_job_A
print 'Please click the button to create the analysis report'
This diff is collapsed.
#Main PY script vision 1.6.1
# merge the data and functions
#
#
#Main PY script vision 1.6.0
# add SetPara.py
#
#Main PY script vision 1.5.0
# change as only one step
#
#Main PY script vision 1.4.6
# change as paramters to set names and paths of files
#
#Main PY script vision 1.4.3
#remove the current process id :os.getpid()
#
#Main PY script vision 1.4.2
#get the current process id :os.getpid()
#get the father process id :os.getppid()
#Main PY script vision 1.3
#FOR ABAQUS_SUBNIT-V1.1 updated
#THE STATUS OF JOBS SUBMITED TO ABAQUS WILL BE CHECKED.
#
#
#Main PY script vision 1.2
#FOR THE FINAL VISION, TO DELETE THE USELESS CODES
#
#
#Main PY script vision 1.0
## According to file V1.0, Updated the script
#4.1.4 Step Create: maxNumInc = 100000; initialInc = 0.01, minInc = 0.0001, maxInc = Terminal time*0.01;
#
#
#
from abaqus import*
# import multiprocessing
# import time
# import os
# set the current work directory, be careful about '/', there a error may occur
# set the para get from the platform
#run the PY file: SetPara-V1.0.py to set the para get from the platform
execfile('G:/case_1/codeTdata_V0.1/SetPara-V1.4.py')
#OPEN THE ORIGINAL FILE:TEST.CAE FROM MODEL BASE
# database_path='E:/Case1/A1 ZEMT-fric/A1.2 work/A1.2.4 MODELs/'
database_path=M1_Dtbc
# caefile_name='Test-D1-add_5_Sets.cae'
caefile_name=M2_Dtbc
databasefile_path=database_path+caefile_name
openMdb(pathName=databasefile_path)
# current_work_directory='E:/Case1/A1 ZEMT-fric/A1.3 coupled-TS/A1.3.4 PY_Script-TS-V1.1/A1. Heat transfer/'
current_work_directory=M3_Dtbc
caefile_path=current_work_directory+caefile_name
#SAVE AS A COPY FILE TO THE WORK DIRECTORY
mdb.saveAs(pathName=caefile_path)
#get the model name
getModel_name=mdb.models.keys()
# get the type of Variable: getModel_name
print 'the type of Variable: getModel_name=', type(getModel_name)
length_list=len(getModel_name)
for i in range(0,length_list):
str_temp=getModel_name[i]
str_temp_1=str_temp[0:8]
print 'str_temp_1=', str_temp_1
used_model_name=''
if (str_temp_1=='THERMAL-'):
used_model_name=str_temp
print 'used_model_name=', used_model_name
break
else:
continue
print 'used_model_name=',used_model_name
#SWITCH THE MODELS TO used_model
a = mdb.models[used_model_name].rootAssembly
session.viewports['Viewport: 1'].setValues(displayedObject=a)
#run the PY file: CreateABAQUS_SETTING-V1.0.py to create the ABAQUS_SETTING.py
execfile('G:/case_1/codeTdata_V0.1/CreateABAQUS_SETTING-V1.2.py')
#run the PY file: ABAQUS_SETTING.py to set the steps, film, flux, output, etc.
execfile('ABAQUS_SETTING.py')
#run the PY file: ABAQUS_SUBMIT.py to submit job
execfile('G:/case_1/codeTdata_V0.1/ABAQUS_SUBMIT-V1.4.py')
# Heat Transfer Analysis for transient response
#
# Parameters files for all PY script vision 0.0.1
#
#
# INPUT FLUX FILE
fo = open("Amp_BrakeLoad_data.txt", "r")
array_FLUX = fo.readlines()
fo.close()
array_FLUX_str=''.join(array_FLUX)
# INPUT FILM FILE
fo = open("Amp_Film_data.txt", "r")
array_FILM = fo.readlines()
fo.close()
array_FILM_str=''.join(array_FILM)
# INPUT VELOCITY FILE
fo = open("Para_V0.3.txt", "r")
array = fo.readlines()
# close file
fo.close()
v=array
#print v
#v1=map(float,v)
# print v1
# length=len(v1) #length=4
# print length
# k=length-1
M0_Dtbc=v[0].strip()
M1_Dtbc=v[1].strip()
M2_Dtbc=v[2].strip()
M3_Dtbc=v[3].strip()
C1_Dtbc=v[4].strip()
C2_Dtbc=array_FILM_str
C3_Dtbc=array_FLUX_str
C4_Dtbc=v[7].strip()
C5_Dtbc=v[8].strip()
C6_Dtbc=v[9].strip()
C7_Dtbc=v[10].strip()
C8_Dtbc=v[11].strip()
C9_Dtbc=v[12].strip()
C10_Dtbc=v[13].strip()
C11_Dtbc=v[14].strip()
AA1_Dtbc=int(v[15].strip())
print 'M0_Dtbc=',M0_Dtbc
print 'M1_Dtbc=',M1_Dtbc
print 'M2_Dtbc=',M2_Dtbc
print 'M3_Dtbc=',M3_Dtbc
print 'C1_Dtbc=',C1_Dtbc
print 'C2_Dtbc=',C2_Dtbc
print 'C3_Dtbc=',C3_Dtbc
print 'C4_Dtbc=',C4_Dtbc
print 'C5_Dtbc=',C5_Dtbc
print 'C6_Dtbc=',C6_Dtbc
print 'C7_Dtbc=',C7_Dtbc
print 'C8_Dtbc=',C8_Dtbc
print 'C9_Dtbc=',C9_Dtbc
print 'C10_Dtbc=',C10_Dtbc
print 'C11_Dtbc=',C11_Dtbc
print 'AA1_Dtbc=',AA1_Dtbc
'''
fo = open("Amp_BrakeLoad_data.txt", "r")
array_a0 = fo.readlines()
fo.close()
a_str=''.join(array_a0)
UB_Amp_Film_data=a_str
'''
'''
#INPUT UB_Amp_Film_data FILE
def InputUB_Amp_Film_data(a0):
s='{name1}{name2}'
FileName_N=s.format(name1=a0,name2='_data.txt')
str_temp_a0=FileName_N
fo = open(str_temp_a0, "r")
array_a0 = fo.readlines()
fo.close()
a_str=''.join(array_a0)
UB_Amp_Film_data=a_str
return UB_Amp_Film_data
#INPUT UB_Amp_Flux_data FILE
def InputUB_Amp_Flux_data(b0):
s='{name1}{name2}'
FileName_N=s.format(name1=b0,name2='_data.txt')
str_temp_b0=FileName_N
fo = open(str_temp_b0, "r")
array_b0 = fo.readlines()
fo.close()
b_str=''.join(array_b0)
UB_Amp_Flux_data=b_str
return UB_Amp_Flux_data
'''
'''
#
# MainFunction-V1.6.1.py
# Software Installation Position
M0_Dtbc='E:/Case1/Heat_transfer/DEF/codeTdata_V0.0/'
# database_path='E:/Case1/A1 ZEMT-fric/A1.2 work/A1.2.4 MODELs/'
M1_Dtbc='E:/Case1/Models/'
# caefile_name='Test-D1-add_5_Sets.cae'
M2_Dtbc='TSTRESS-Test-D1-add_5_Sets-V0.4'
# current_work_directory='E:/Case1/A1 ZEMT-fric/A1.3 coupled-TS/A1.3.4 PY_Script-TS-V1.1/A1. Heat transfer/'
M3_Dtbc='E:/Case1/Heat_transfer/A4/BK1/'
#
# CreateABAQUS_SETTING-V1.2.py
#
# Form DM
# define total time period data from Doctor Ma's data
# TOTAL_Time_Period=49.4
C1_Dtbc=49.4
# define Film coefficeint amplitude data from Doctor Ma's data
# FilmTable_data_FromDM='(0.000000, 105.000000),(0.231500, 104.671849),(0.463000, 104.343697)'
C2_Dtbc='(0.000000, 105.000000),(0.231500, 104.671849),(0.463000, 104.343697)'
# define HFL amplitude data from Doctor Ma's data
# FluxTable_data_FromDM='(0.000000, 105.000000),(0.231500, 104.671849),(0.463000, 104.343697)'
C3_Dtbc='(0.000000, 105.000000),(0.231500, 104.671849),(0.463000, 104.343697)'
# Set data from platform
#
# UB_1_Step_initiallnc=0.01
C4_Dtbc=0.01
# UB_1_Step_minlnc=0.0001
C5_Dtbc=0.0001
# UB_1_Step_deltmx=10.0
C6_Dtbc=10.0
# UB_1_Step_maxNumInc=100000
C7_Dtbc=100000
#DEFINE ALL SURFACES
# Surface_Name_Film='Surf-Film-Disc'
C8_Dtbc='Surf-Film-Disc'
# Surface_Name_Flux='Surf-Flux'
C9_Dtbc='Surf-Flux'
#DEFINE REFERENCE TEMPERATURE
# Reference_Temperature=40.0
C10_Dtbc=40.0
#DEFINE EMISSIVITY COEFFICIENT
# Radiation_COEF_Emissivity=0.8
C11_Dtbc=0.8
#
# ABAQUS_SUBMIT-V1.4.py
#
# define the number of cpus to be used by ABAQUS/Standard solver
AA1_Dtbc=6
'''
#Main PY script vision 1.6.1
# merge the data and functions
#
#
#Main PY script vision 1.6.0
# add SetPara.py
#
#Main PY script vision 1.5.0
# change as only one step
#
#Main PY script vision 1.4.6
# change as paramters to set names and paths of files
#
#Main PY script vision 1.4.3
#remove the current process id :os.getpid()
#
#Main PY script vision 1.4.2
#get the current process id :os.getpid()
#get the father process id :os.getppid()
#Main PY script vision 1.3
#FOR ABAQUS_SUBNIT-V1.1 updated
#THE STATUS OF JOBS SUBMITED TO ABAQUS WILL BE CHECKED.
#
#
#Main PY script vision 1.2
#FOR THE FINAL VISION, TO DELETE THE USELESS CODES
#
#
#Main PY script vision 1.0
## According to file V1.0, Updated the script
#4.1.4 Step Create: maxNumInc = 100000; initialInc = 0.01, minInc = 0.0001, maxInc = Terminal time*0.01;
#
#
#
from abaqus import*
# import multiprocessing
# import time
# import os
# set the current work directory, be careful about '/', there a error may occur
# set the para get from the platform
#run the PY file: SetPara-V1.0.py to set the para get from the platform
execfile('E:/Case1/Heat_transfer/DEF/codeTdata_V0.0/SetPara-V1.1.py')
#OPEN THE ORIGINAL FILE:TEST.CAE FROM MODEL BASE
# database_path='E:/Case1/A1 ZEMT-fric/A1.2 work/A1.2.4 MODELs/'
database_path=M1_Dtbc
# caefile_name='Test-D1-add_5_Sets.cae'
caefile_name=M2_Dtbc
databasefile_path=database_path+caefile_name
openMdb(pathName=databasefile_path)
# current_work_directory='E:/Case1/A1 ZEMT-fric/A1.3 coupled-TS/A1.3.4 PY_Script-TS-V1.1/A1. Heat transfer/'
current_work_directory=M3_Dtbc
caefile_path=current_work_directory+caefile_name
#SAVE AS A COPY FILE TO THE WORK DIRECTORY
mdb.saveAs(pathName=caefile_path)
#get the model name
getModel_name=mdb.models.keys()
# get the type of Variable: getModel_name
print 'the type of Variable: getModel_name=', type(getModel_name)
length_list=len(getModel_name)
for i in range(0,length_list):
str_temp=getModel_name[i]
str_temp_1=str_temp[0:8]
print 'str_temp_1=', str_temp_1
used_model_name=''
if (str_temp_1=='THERMAL-'):
used_model_name=str_temp
print 'used_model_name=', used_model_name
break
else:
continue
print 'used_model_name=',used_model_name
#SWITCH THE MODELS TO used_model
a = mdb.models[used_model_name].rootAssembly
session.viewports['Viewport: 1'].setValues(displayedObject=a)
#run the PY file: CreateABAQUS_SETTING-V1.0.py to create the ABAQUS_SETTING.py
execfile('E:/Case1/Heat_transfer/DEF/codeTdata_V0.0/CreateABAQUS_SETTING-V1.2.py')
#run the PY file: ABAQUS_SETTING.py to set the steps, film, flux, output, etc.
execfile('ABAQUS_SETTING.py')
#run the PY file: ABAQUS_SUBMIT.py to submit job
# execfile('E:/Case1/Heat_transfer/DEF/codeTdata_V0.0/ABAQUS_SUBMIT-V1.4.py')
\ No newline at end of file
# Heat Transfer Analysis for transient response
#
# Parameters files for all PY script vision 0.0.1
#
#
# INPUT VELOCITY FILE
fo = open("Para_V0.2.txt", "r")
array = fo.readlines()
# close file
fo.close()
v=array
print v
#v1=map(float,v)
# print v1
# length=len(v1) #length=4
# print length
# k=length-1
M0_Dtbc=v[0].strip()
M1_Dtbc=v[1].strip()
M2_Dtbc=v[2].strip()
M3_Dtbc=v[3].strip()
C1_Dtbc=v[4].strip()
C2_Dtbc=v[5].strip()
C3_Dtbc=v[6].strip()
C4_Dtbc=v[7].strip()
C5_Dtbc=v[8].strip()
C6_Dtbc=v[9].strip()
C7_Dtbc=v[10].strip()
C8_Dtbc=v[11].strip()
C9_Dtbc=v[12].strip()
C10_Dtbc=v[13].strip()
C11_Dtbc=v[14].strip()
AA1_Dtbc=v[15].strip()
print 'M0_Dtbc=',M0_Dtbc
print 'M1_Dtbc=',M1_Dtbc
print 'M2_Dtbc=',M2_Dtbc
print 'M3_Dtbc=',M3_Dtbc
print 'C1_Dtbc=',C1_Dtbc
print 'C2_Dtbc=',C2_Dtbc
print 'C3_Dtbc=',C3_Dtbc
print 'C4_Dtbc=',C4_Dtbc
print 'C5_Dtbc=',C5_Dtbc
print 'C6_Dtbc=',C6_Dtbc
print 'C7_Dtbc=',C7_Dtbc
print 'C8_Dtbc=',C8_Dtbc
print 'C9_Dtbc=',C9_Dtbc
print 'C10_Dtbc=',C10_Dtbc
print 'C11_Dtbc=',C11_Dtbc
print 'AA1_Dtbc=',AA1_Dtbc
'''
#
# MainFunction-V1.6.1.py
# Software Installation Position
M0_Dtbc='E:/Case1/Heat_transfer/DEF/codeTdata_V0.0/'
# database_path='E:/Case1/A1 ZEMT-fric/A1.2 work/A1.2.4 MODELs/'
M1_Dtbc='E:/Case1/Models/'
# caefile_name='Test-D1-add_5_Sets.cae'
M2_Dtbc='TSTRESS-Test-D1-add_5_Sets-V0.4'
# current_work_directory='E:/Case1/A1 ZEMT-fric/A1.3 coupled-TS/A1.3.4 PY_Script-TS-V1.1/A1. Heat transfer/'
M3_Dtbc='E:/Case1/Heat_transfer/A4/BK1/'
#
# CreateABAQUS_SETTING-V1.2.py
#
# Form DM
# define total time period data from Doctor Ma's data
# TOTAL_Time_Period=49.4
C1_Dtbc=49.4
# define Film coefficeint amplitude data from Doctor Ma's data
# FilmTable_data_FromDM='(0.000000, 105.000000),(0.231500, 104.671849),(0.463000, 104.343697)'
C2_Dtbc='(0.000000, 105.000000),(0.231500, 104.671849),(0.463000, 104.343697)'
# define HFL amplitude data from Doctor Ma's data
# FluxTable_data_FromDM='(0.000000, 105.000000),(0.231500, 104.671849),(0.463000, 104.343697)'
C3_Dtbc='(0.000000, 105.000000),(0.231500, 104.671849),(0.463000, 104.343697)'
# Set data from platform
#
# UB_1_Step_initiallnc=0.01
C4_Dtbc=0.01
# UB_1_Step_minlnc=0.0001
C5_Dtbc=0.0001
# UB_1_Step_deltmx=10.0
C6_Dtbc=10.0
# UB_1_Step_maxNumInc=100000
C7_Dtbc=100000
#DEFINE ALL SURFACES
# Surface_Name_Film='Surf-Film-Disc'
C8_Dtbc='Surf-Film-Disc'
# Surface_Name_Flux='Surf-Flux'
C9_Dtbc='Surf-Flux'
#DEFINE REFERENCE TEMPERATURE
# Reference_Temperature=40.0
C10_Dtbc=40.0
#DEFINE EMISSIVITY COEFFICIENT
# Radiation_COEF_Emissivity=0.8
C11_Dtbc=0.8
#
# ABAQUS_SUBMIT-V1.4.py
#
# define the number of cpus to be used by ABAQUS/Standard solver
AA1_Dtbc=6
'''
#ABAQUS_SUBNIT-V1.3 updated
#remove the ability to kill a analysis.
#ABAQUS_SUBNIT-V1.2 updated
#add the ability to kill a analysis.
#ABAQUS_SUBNIT-V1.1 updated
#THE STATUS OF JOBS SUBMITED TO ABAQUS WILL BE CHECKED.
#
#
#The userSubroutine can be defined
#used_model_name
s='{name1}{name2}'
JobName=s.format(name1='Job-',name2=used_model_name)
str_temp_job_A=JobName
# used_Cpus_num=6
used_Cpus_num=AA1_Dtbc
#SAVE THE FILE BEFORE SUBMITED
mdb.saveAs(pathName=str_temp_job_A)
mdb.Job(name=str_temp_job_A, model=used_model_name, description='', type=ANALYSIS,
atTime=None, waitMinutes=0, waitHours=0, queue=None, memory=90,
memoryUnits=PERCENTAGE, getMemoryFromAnalysis=True,
explicitPrecision=SINGLE, nodalOutputPrecision=SINGLE, echoPrint=OFF,
modelPrint=OFF, contactPrint=OFF, historyPrint=OFF, userSubroutine='',
scratch='', resultsFormat=ODB, multiprocessingMode=DEFAULT, numCpus=used_Cpus_num,
numDomains=used_Cpus_num, numGPUs=0)
mdb.jobs[str_temp_job_A].submit(consistencyChecking=OFF)
print str_temp_job_A, ': the job is submitted and please wait...'
mdb.jobs[str_temp_job_A].waitForCompletion()
print 'The job is completed:', str_temp_job_A
print 'Please click the button to create the analysis report'
This diff is collapsed.
#Main PY script vision 1.6.1
# add break command
#
#Main PY script vision 1.6.0
# add SetPara.py
#
#Main PY script vision 1.5.0
# change as only one step
#
#Main PY script vision 1.4.6
# change as paramters to set names and paths of files
#
#Main PY script vision 1.4.3
#remove the current process id :os.getpid()
#
#Main PY script vision 1.4.2
#get the current process id :os.getpid()
#get the father process id :os.getppid()
#Main PY script vision 1.3
#FOR ABAQUS_SUBNIT-V1.1 updated
#THE STATUS OF JOBS SUBMITED TO ABAQUS WILL BE CHECKED.
#
#
#Main PY script vision 1.2
#FOR THE FINAL VISION, TO DELETE THE USELESS CODES
#
#
#Main PY script vision 1.0
## According to file V1.0, Updated the script
#4.1.4 Step Create: maxNumInc = 100000; initialInc = 0.01, minInc = 0.0001, maxInc = Terminal time*0.01;
#
#
#
from abaqus import*
# import multiprocessing
# import time
# import os
# set the current work directory, be careful about '/', there a error may occur
# set the para get from the platform
#run the PY file: SetPara-V1.0.py to set the para get from the platform
execfile('G:/case_1/v0/SetPara-V1.0.py')
#OPEN THE ORIGINAL FILE:TEST.CAE FROM MODEL BASE
# database_path='E:/Case1/A1 ZEMT-fric/A1.2 work/A1.2.4 MODELs/'
database_path=M1_Dtbc
# caefile_name='Test-D1-add_5_Sets.cae'
caefile_name=M2_Dtbc
databasefile_path=database_path+caefile_name
openMdb(pathName=databasefile_path)
# current_work_directory='E:/Case1/A1 ZEMT-fric/A1.3 coupled-TS/A1.3.4 PY_Script-TS-V1.1/A1. Heat transfer/'
current_work_directory=M3_Dtbc
caefile_path=current_work_directory+caefile_name
#SAVE AS A COPY FILE TO THE WORK DIRECTORY
mdb.saveAs(pathName=caefile_path)
#get the model name
getModel_name=mdb.models.keys()
# get the type of Variable: getModel_name
print 'the type of Variable: getModel_name=', type(getModel_name)
length_list=len(getModel_name)
for i in range(0,length_list):
str_temp=getModel_name[i]
str_temp_1=str_temp[0:8]
print 'str_temp_1=', str_temp_1
used_model_name=''
if (str_temp_1=='THERMAL-'):
used_model_name=str_temp
print 'used_model_name=', used_model_name
break
else:
continue
#SWITCH THE MODELS TO used_model
a = mdb.models[used_model_name].rootAssembly
session.viewports['Viewport: 1'].setValues(displayedObject=a)
#run the PY file: CreateABAQUS_SETTING-V1.0.py to create the ABAQUS_SETTING.py
execfile('G:/case_1/v0/CreateABAQUS_SETTING-V1.2.py')
#run the PY file: ABAQUS_SETTING.py to set the steps, film, flux, output, etc.
execfile('ABAQUS_SETTING.py')
#run the PY file: ABAQUS_SUBMIT.py to submit job
execfile('G:/case_1/v0/ABAQUS_SUBMIT-V1.4.py')
# Heat Transfer Analysis for transient response
#
# Parameters files for all PY script vision 0.0.1
#
#
#
# MainFunction-V1.6.0.py
#
# database_path='E:/Case1/A1 ZEMT-fric/A1.2 work/A1.2.4 MODELs/'
M1_Dtbc='G:/case_1/Models/'
# caefile_name='Test-D1-add_5_Sets.cae'
M2_Dtbc='TSTRESS-Test-D1-add_5_Sets-V0.4'
# current_work_directory='E:/Case1/A1 ZEMT-fric/A1.3 coupled-TS/A1.3.4 PY_Script-TS-V1.1/A1. Heat transfer/'
M3_Dtbc='G:/case_1/cae0/'
#
# CreateABAQUS_SETTING-V1.2.py
#
# Form DM
# define total time period data from Doctor Ma's data
# TOTAL_Time_Period=49.4
C1_Dtbc=49.4
# define Film coefficeint amplitude data from Doctor Ma's data
# FilmTable_data_FromDM='(0.000000, 105.000000),(0.231500, 104.671849),(0.463000, 104.343697)'
C2_Dtbc='(0.000000, 105.000000),(0.231500, 104.671849),(0.463000, 104.343697)'
# define HFL amplitude data from Doctor Ma's data
# FluxTable_data_FromDM='(0.000000, 105.000000),(0.231500, 104.671849),(0.463000, 104.343697)'
C3_Dtbc='(0.000000, 105.000000),(0.231500, 104.671849),(0.463000, 104.343697)'
# Set data from platform
#
# UB_1_Step_initiallnc=0.01
C4_Dtbc=0.01
# UB_1_Step_minlnc=0.0001
C5_Dtbc=0.0001
# UB_1_Step_deltmx=10.0
C6_Dtbc=10.0
# UB_1_Step_maxNumInc=100000
C7_Dtbc=100000
#DEFINE ALL SURFACES
# Surface_Name_Film='Surf-Film-Disc'
C8_Dtbc='Surf-Film-Disc'
# Surface_Name_Flux='Surf-Flux'
C9_Dtbc='Surf-Flux'
#DEFINE REFERENCE TEMPERATURE
# Reference_Temperature=40.0
C10_Dtbc=40.0
#DEFINE EMISSIVITY COEFFICIENT
# Radiation_COEF_Emissivity=0.8
C11_Dtbc=0.8
#
# ABAQUS_SUBMIT-V1.4.py
#
# define the number of cpus to be used by ABAQUS/Standard solver
AA1_Dtbc=6
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment