Jump to content

Merula

Members
  • Content Count

    158
  • Joined

  • Last visited

  • Days Won

    9

Everything posted by Merula

  1. That did the trick! Thanks! I didn't think it was necessary as it worked on the first execution of the command. But changing this led to no crashes. You're the best!
  2. Hey guys, I have a .tcl script which causes a segmentation error... I dont know why It is importing a file, move some elements around, write some model file and delete the model and import again a .fem file... Does someone know how to debug this? Thanks and best regards Merula MODEL FILE: Please save to C:/Temp for the code to work CODE hm_answernext yes *deletemodel *feinputwithdata2 "\#optistruct\\optistruct" "C:/temp/cclip10.fem" 0 0 0 0 0 1 8 1 0 *createmark components 1 "displayed" *setvalue comps mark=1 color=2 *createmark loadcols 2 "displayed" *createstringarray 2 "geometry_off" "elements_off" *hideentitybymark 2 1 2 *createmark elems 1 "displayed" set meshSize [hm_getaverageelemsize 1] *createentity comps name=beamCluster_sub_0 *createmark elements 1 393 454 379 428 397 421 457 450 503 481 474 417 352 389 422 462 523 493 557 411 365 385 433 521 459 489 542 408 438 357 384 566 528 535 479 452 425 440 468 353 396 579 509 548 490 460 476 415 504 372 401 577 549 524 483 455 485 432 370 394 623 589 552 513 478 492 463 420 366 391 613 664 586 561 520 480 495 446 416 364 383 559 514 491 445 429 375 400 541 488 465 434 371 399 595 496 458 430 339 374 404 630 487 464 435 346 378 406 650 683 494 449 418 351 377 390 669 705 486 461 413 350 368 380 712 754 477 444 412 343 355 381 795 779 475 443 419 345 362 398 849 805 484 447 424 327 360 382 879 845 332 367 939 877 334 358 929 981 333 388 356 1006 982 386 1052 1008 414 439 1115 1069 470 442 1110 1172 469 497 1206 1161 531 501 564 1270 1210 573 614 533 1320 643 619 570 1368 679 721 638 608 1419 1366 682 730 750 713 634 1420 1477 706 742 668 791 760 711 1475 1536 743 704 782 823 826 783 708 698 1528 1594 781 824 745 865 866 821 784 744 709 667 1635 1583 829 785 868 890 912 949 833 799 757 676 645 1687 1626 825 867 922 919 958 876 996 1040 838 633 600 1684 1756 870 907 968 1018 952 1067 1088 1134 562 1822 1763 909 951 1001 1075 1121 1171 1184 1234 529 1843 1816 994 954 1045 1166 1205 1228 1279 1349 1860 1953 1048 995 1086 1231 1276 1328 1414 1441 1920 1969 1138 1043 1094 1327 1382 1443 1486 1549 2048 1990 1185 1153 1092 1381 1433 1521 1545 1621 1679 2036 2141 1230 1194 1302 1137 1487 1546 1625 1678 1746 1783 2103 2201 1364 1309 1258 1193 1623 1693 1713 1779 1856 1900 2178 1429 1367 1326 1250 1717 1771 1842 1905 1956 2026 2244 1484 1430 1370 1305 1882 1904 1967 2029 2100 2175 2321 1537 1474 1418 1371 1968 2027 2081 2156 2247 2300 2427 2392 1590 1522 1463 1411 2098 2152 2217 2314 2369 2518 2615 2434 1572 1645 1517 1462 2220 2279 2352 2435 2510 2593 2695 2773 2699 1608 1569 1690 1490 2354 2425 2495 2539 2768 2850 2920 2815 2771 1598 1657 1745 1541 2645 2925 2995 3073 2996 2913 2846 1655 1712 1597 1821 2720 2801 2999 3068 3147 3221 3148 1773 1654 1715 1834 2864 2769 2833 2851 2939 3146 3222 3297 3365 3284 1772 1835 1898 1714 3005 2908 2934 2732 2848 3177 3246 3312 3383 3460 1831 1892 1776 1955 3091 3004 2875 2932 2755 2805 3303 3380 3454 3530 1837 1899 1954 2017 3083 3166 3002 2917 2948 2827 2775 3377 3452 3528 3603 1894 1961 2022 2090 3157 3248 3013 2974 2874 2845 2754 3526 3601 3676 2020 1959 2091 2166 3337 3250 3020 2949 2881 2820 2753 3677 3751 2158 2086 2032 2242 3310 3388 3014 3087 2929 2861 2811 3828 3753 3902 2213 2146 2295 2102 3478 3398 3024 3084 2955 2896 2800 3977 3904 4054 3978 2285 2359 2223 2162 3560 3458 3101 3012 2941 2869 2779 4055 4129 4130 4205 4052 2320 2465 2365 2225 3534 3616 3092 3019 2943 2860 2778 4206 4281 4279 4203 4126 4356 2294 2362 2426 2492 3612 3689 3099 3025 2938 2852 2810 4357 4432 4431 4355 4507 2423 2367 2493 2566 3768 3692 3178 3086 3021 2928 2855 2791 4509 4583 4506 4582 4658 2558 2428 2487 2632 3842 3764 3173 3082 3001 2936 2872 4660 4735 4657 4733 4808 2639 2725 2565 2503 3839 3933 3156 3109 3015 2927 2876 4809 4880 4806 4879 4949 2740 2659 2562 4019 3930 3217 3124 3016 2952 2910 4950 5017 4948 5016 5082 2730 2806 2646 3996 4093 3211 3121 3035 2947 2900 5084 5147 5081 5145 5207 2787 2713 2890 2973 4068 4165 3214 3252 3106 3017 2945 2866 5148 5209 5268 5206 5266 5325 2958 2880 2795 4221 4153 3162 3267 3078 3008 2937 2856 5269 5326 5381 5323 5380 5434 2944 2907 4238 4307 3253 3161 3108 3034 2857 5382 5435 5486 5433 5485 5535 3007 2951 4306 4397 3236 3169 3096 3006 5487 5536 5583 5534 5582 5628 3003 4370 4454 3255 3309 3158 3077 5584 5629 5672 5627 5671 5713 3081 4537 4448 3259 3329 3163 5673 5714 5753 5712 5752 5790 3154 3234 4552 4620 3366 3262 3181 5755 5792 5827 3307 3384 4716 4637 3357 3409 3273 5828 5861 3462 3463 3543 4757 4720 3416 5893 5922 3650 3558 3647 3748 4749 4820 3501 3417 5950 5949 5975 3803 3626 3719 3815 3843 4891 4822 3506 6000 3928 3769 3859 3929 3998 4961 4893 6025 5999 4097 3972 4001 4070 4172 5037 4970 6024 6050 4267 4099 4181 4247 4337 5102 5039 6049 6075 4421 4269 4314 4417 4490 5111 5172 6074 6048 6100 4545 4375 4494 4547 4609 5239 5184 6125 6099 6073 4675 4564 4628 4689 4765 5286 5242 6124 6150 6097 4866 4705 4793 4861 4934 5335 5278 6122 6175 6149 6096 4999 4855 4924 4980 5068 5390 5338 6121 6147 6174 6200 6045 5131 4985 5041 5132 5180 5391 5444 6146 6172 6199 6225 6019 5994 5233 5109 5187 5231 5308 5497 5446 6197 6171 6224 6250 6018 5993 5943 5969 5343 5232 5309 5356 5401 5557 5500 6196 6249 6222 6275 5992 5967 5942 5916 5886 5915 5460 5365 5305 5416 5454 5515 5544 5599 6247 6274 6300 5941 5990 5966 5914 5885 5855 5887 5854 5553 5448 5417 5498 5563 5605 5635 5590 6299 6272 6325 5939 5883 5912 5989 5964 5852 5822 5856 5648 5549 5493 5601 5650 5681 5636 5680 6350 6324 6297 5938 5882 5911 5963 5988 5823 5722 5596 5639 5683 5720 5758 5721 5641 5679 6348 6375 6322 5937 5910 5881 5962 5987 5788 5797 5830 5732 5766 6374 6347 6400 5935 5879 5908 5960 5985 5866 5800 5764 6372 6398 6425 5907 5934 5877 5959 5984 5895 5795 5831 6397 6423 6450 5876 5905 5932 5957 5982 5833 5864 6448 6422 6475 5844 5875 5904 5931 5955 5981 6447 6500 6473 6421 5842 5873 5902 5928 5954 5979 6472 6446 6498 6525 5840 5872 5901 5929 5953 5977 6523 6497 6471 6550 5839 5870 5899 5926 5951 5976 6522 6548 6575 6496 5841 5871 5900 5927 5952 5978 6573 6520 6547 6600 5843 5874 5903 5930 5956 5980 6625 6598 6572 6545 5847 5878 5906 5933 5958 6650 6623 6597 6571 5850 5880 5909 5936 5961 6675 6648 6622 6595 5853 5884 5913 6008 6673 6700 6647 6620 6011 6672 6725 6698 6645 6037 6016 6697 6723 6670 6750 6041 6062 6084 5997 6022 6748 6722 6695 6775 6066 6047 6087 6110 6132 6773 6747 6799 6721 6113 6072 6091 6135 6158 6181 6798 6772 6825 6745 6161 6138 6117 6098 6183 6207 6230 6849 6796 6823 6770 6209 6186 6142 6123 6232 6256 6279 6848 6874 6821 6795 6258 6234 6148 6168 6281 6303 6327 6873 6846 6899 6820 6283 6260 6306 6193 6173 6329 6352 6925 6871 6898 6845 6308 6331 6354 6218 6198 6378 6401 6949 6923 6896 6870 6356 6379 6403 6223 6243 6426 6454 6974 6947 6921 6895 6404 6427 6451 6248 6269 6478 6505 7000 6973 6946 6920 6452 6476 6503 6273 6294 6530 6556 7024 6997 6971 6945 6477 6501 6527 6555 6298 6319 6578 6608 7049 7022 6995 6970 6526 6554 6581 6606 6344 6323 6633 7074 7047 7021 6994 6580 6605 6632 6657 6369 6349 6683 7072 7099 7046 6630 6655 6681 6708 6395 6373 6736 7097 7071 7124 6679 6707 6734 6761 6420 6399 6788 7121 7095 7148 7067 6705 6733 6759 6786 6813 6424 6445 6839 7147 7120 7173 6757 6784 6811 6838 6864 6449 6470 6890 7170 7198 6809 6836 6862 6888 6495 6474 6942 7195 7223 6861 6887 6911 6940 6521 6499 7246 6910 6885 6937 6965 6546 6524 7268 6964 6936 6989 6570 6549 7289 7266 6987 7013 7041 6596 6574 7287 7264 7011 7040 7066 6621 6599 7286 7260 7241 7064 6624 6646 7284 7215 7263 7237 7115 7089 6671 6649 7282 7190 7214 7236 7257 7140 6674 6696 7280 7187 7211 7234 7254 6699 6720 7276 7186 7209 7233 7255 6724 6746 7274 7180 7207 7232 7249 6749 6771 7271 7181 7208 7229 7251 6774 6797 7270 7183 7204 7225 7248 6800 6822 7273 7176 7202 7227 7256 6824 6847 7272 7178 7203 7231 7250 6872 6850 7275 7177 7205 7228 7253 6897 6875 7277 7182 7201 7226 7252 6922 6900 7279 7179 7206 7230 7258 6924 6948 7278 7184 7210 7235 7259 6972 6950 7281 7158 7185 7212 7238 7262 6975 6998 7283 7161 7188 7213 7239 7261 6999 7023 7285 7164 7191 7216 7240 7265 7048 7025 7288 7167 7192 7219 7243 7267 7050 7073 7096 7290 7269 7075 7098 7247 7123 7100 7224 7149 7125 7150 7174 *movemark elements 1 "beamCluster_sub_0" *createmark components 1 "beamCluster_sub_0" *setvalue comps mark=1 color=4 *createentity comps name=beamCluster_sub_1 *createmark elements 1 538 569 593 607 659 687 714 685 764 718 807 841 897 880 934 963 1077 1024 1118 1058 1113 1151 1198 1315 1256 1354 1358 1395 1423 1377 1460 1498 1450 1539 1485 1428 1363 1324 1515 1646 1554 1571 1507 1431 1375 1323 1264 1685 1633 1564 1318 1265 1760 1686 1613 1224 1275 1830 1738 1670 1220 1168 1799 1891 1736 1218 1124 1170 1805 1951 1876 1173 1120 1883 1912 1996 1102 1074 1979 1940 2069 1061 1010 2034 2130 1965 967 1020 1046 2149 2087 2018 980 1012 2155 2230 2085 944 986 2218 2292 2150 891 920 2287 2355 2214 835 869 910 2356 2288 828 871 2357 2421 787 830 2420 2490 789 748 831 2572 2496 790 756 2570 2707 2502 759 2575 2904 707 2867 2987 3051 2988 3030 2930 2868 3133 3036 3123 3212 3206 3010 3107 2931 2794 2871 3290 3094 3210 3287 3319 3164 3271 3332 3406 3351 3241 3435 3487 3490 3421 3358 3567 3631 3467 3548 3402 3620 3695 3480 3562 3645 3772 3700 3583 3669 3744 3797 3866 3717 3806 3895 3955 3819 3888 3950 4043 3857 3935 4000 4080 4002 3918 4077 4151 4079 4175 3992 4273 4241 4085 4149 4349 4226 4312 4386 4166 4308 4237 4379 4452 4300 4484 4392 4558 4475 4422 4561 4483 4533 4618 4604 4540 4682 4775 4684 4748 4600 4835 4746 4677 4838 4929 4821 4925 4755 4991 4897 4986 4840 5049 4922 5057 4984 5122 4982 5056 5174 5121 5123 5060 5193 5230 5194 5251 5133 5289 5302 5252 5192 5361 5300 5355 5415 5245 5296 5357 5407 5452 5347 5397 5467 5508 5468 5414 5503 5562 5456 5561 5506 5603 5564 5513 5602 5644 5555 5652 5604 5685 5594 5653 5691 5731 5638 5692 5730 5765 5687 5728 5770 5804 5694 5763 5801 5837 5678 5838 5869 5688 5646 5762 5726 5868 5898 5645 5610 5803 5835 5608 5565 5504 5552 5463 5462 5412 5501 5352 5457 5399 5310 5344 5409 5304 5248 5358 5295 5244 5186 5234 5166 5114 5167 5105 5044 5106 5054 4987 5052 4995 4917 4936 4996 4850 4797 4916 4868 4788 4725 4849 4781 4643 4712 4710 4565 4642 4411 4485 4567 4647 4496 4408 4324 4556 4328 4254 4488 4517 4250 4198 4117 4442 4403 4100 4184 4030 4336 4367 4037 3957 4291 3869 3975 4285 4215 3799 3893 4210 4139 3655 3729 3808 4135 3658 3586 4060 4132 3511 3588 3984 4056 3426 3522 3908 3981 3428 3359 3274 3905 3979 3270 3186 3829 3138 3197 3754 3046 3143 2991 3047 2873 2788 2877 2764 2839 2772 2700 2626 2622 2552 2460 2407 *movemark elements 1 "beamCluster_sub_1" *createmark components 1 "beamCluster_sub_1" *setvalue comps mark=1 color=4 *createentity comps name=linkingCluster_sub_0 *createmark elements 1 441 482 506 473 511 544 502 *movemark elements 1 "linkingCluster_sub_0" *createmark components 1 "linkingCluster_sub_0" *setvalue comps mark=1 color=1 *createentity comps name=linkingCluster_sub_1 *createmark elements 1 409 387 437 456 471 407 508 436 466 500 472 530 410 539 565 499 467 571 599 534 498 646 628 572 532 666 618 677 644 675 *movemark elements 1 "linkingCluster_sub_1" *createmark components 1 "linkingCluster_sub_1" *setvalue comps mark=1 color=1 *createentity comps name=linkingCluster_sub_2 *createmark elements 1 587 609 612 591 647 635 686 640 681 617 722 734 690 672 660 *movemark elements 1 "linkingCluster_sub_2" *createmark components 1 "linkingCluster_sub_2" *setvalue comps mark=1 color=1 *createentity comps name=linkingCluster_sub_3 *createmark elements 1 1259 1307 *movemark elements 1 "linkingCluster_sub_3" *createmark components 1 "linkingCluster_sub_3" *setvalue comps mark=1 color=1 *createentity comps name=linkingCluster_sub_4 *createmark elements 1 766 *movemark elements 1 "linkingCluster_sub_4" *createmark components 1 "linkingCluster_sub_4" *setvalue comps mark=1 color=1 *createentity comps name=linkingCluster_sub_5 *createmark elements 1 2445 2574 2591 2631 2559 2705 2675 2719 2648 2793 2576 2798 2721 2641 2497 2712 2644 2780 2704 2629 2781 *movemark elements 1 "linkingCluster_sub_5" *createmark components 1 "linkingCluster_sub_5" *setvalue comps mark=1 color=1 *createentity comps name=linkingCluster_sub_6 *createmark elements 1 1387 1471 *movemark elements 1 "linkingCluster_sub_6" *createmark components 1 "linkingCluster_sub_6" *setvalue comps mark=1 color=1 *createentity comps name=linkingCluster_sub_7 *createmark elements 1 2234 2310 2376 2332 2397 2438 2477 2535 2505 2598 2546 2627 2697 2696 2766 *movemark elements 1 "linkingCluster_sub_7" *createmark components 1 "linkingCluster_sub_7" *setvalue comps mark=1 color=1 *createentity comps name=linkingCluster_sub_8 *createmark elements 1 4401 4495 *movemark elements 1 "linkingCluster_sub_8" *createmark components 1 "linkingCluster_sub_8" *setvalue comps mark=1 color=1 *createentity comps name=linkingCluster_sub_9 *createmark elements 1 4566 4639 *movemark elements 1 "linkingCluster_sub_9" *createmark components 1 "linkingCluster_sub_9" *setvalue comps mark=1 color=1 *createentity comps name=linkingCluster_sub_10 *createmark elements 1 3678 3752 3827 3826 3901 3903 3976 *movemark elements 1 "linkingCluster_sub_10" *createmark components 1 "linkingCluster_sub_10" *setvalue comps mark=1 color=1 *createentity comps name=linkingCluster_sub_11 *createmark elements 1 5789 5858 5825 5824 5920 5857 5889 5891 5859 5921 5948 5973 5918 5947 5888 5892 5974 5998 5972 5945 5917 5996 6023 5970 5944 5995 6021 6020 6046 6071 *movemark elements 1 "linkingCluster_sub_11" *createmark components 1 "linkingCluster_sub_11" *setvalue comps mark=1 color=1 *createentity comps name=linkingCluster_sub_12 *createmark elements 1 5725 5768 5733 5805 5802 5836 5867 5897 5890 5860 5919 5946 5925 5940 5965 5991 5971 5986 6033 5983 6059 *movemark elements 1 "linkingCluster_sub_12" *createmark components 1 "linkingCluster_sub_12" *setvalue comps mark=1 color=1 *createentity comps name=linkingCluster_sub_13 *createmark elements 1 5968 *movemark elements 1 "linkingCluster_sub_13" *createmark components 1 "linkingCluster_sub_13" *setvalue comps mark=1 color=1 *createentity comps name=linkingCluster_sub_14 *createmark elements 1 3085 3155 3088 *movemark elements 1 "linkingCluster_sub_14" *createmark components 1 "linkingCluster_sub_14" *setvalue comps mark=1 color=1 *createentity comps name=linkingCluster_sub_15 *createmark elements 1 2786 2883 2956 2863 2799 3052 3009 3097 2926 3112 3069 2946 3194 3114 3018 3168 3348 3272 3080 3350 3153 3240 3079 3317 3445 3165 3235 3495 3316 3401 *movemark elements 1 "linkingCluster_sub_15" *createmark components 1 "linkingCluster_sub_15" *setvalue comps mark=1 color=1 *createentity comps name=linkingCluster_sub_16 *createmark elements 1 5649 5684 5682 5723 5769 5724 5761 5798 5832 5799 5865 5894 5924 *movemark elements 1 "linkingCluster_sub_16" *createmark components 1 "linkingCluster_sub_16" *setvalue comps mark=1 color=1 *createentity comps name=linkingCluster_sub_17 *createmark elements 1 6163 6211 6189 *movemark elements 1 "linkingCluster_sub_17" *createmark components 1 "linkingCluster_sub_17" *setvalue comps mark=1 color=1 *createentity comps name=linkingCluster_sub_18 *createmark elements 1 6914 6966 6993 6991 6968 7018 7044 7019 7016 7042 7068 7093 7118 7092 7144 7169 7145 7117 7090 7193 7168 7220 7142 7217 7244 7194 7165 7242 7218 7189 *movemark elements 1 "linkingCluster_sub_18" *createmark components 1 "linkingCluster_sub_18" *setvalue comps mark=1 color=1 *createentity comps name=linkingCluster_sub_19 *createmark elements 1 7200 7175 7199 7222 7197 7245 7221 7196 7172 7146 7171 7143 7122 *movemark elements 1 "linkingCluster_sub_19" *createmark components 1 "linkingCluster_sub_19" *setvalue comps mark=1 color=1 *createentity comps name=linkingCluster_sub_20 *createmark elements 1 1257 1308 *movemark elements 1 "linkingCluster_sub_20" *createmark components 1 "linkingCluster_sub_20" *setvalue comps mark=1 color=1 *createentity comps name=linkingCluster_sub_21 *createmark elements 1 4640 4702 *movemark elements 1 "linkingCluster_sub_21" *createmark components 1 "linkingCluster_sub_21" *setvalue comps mark=1 color=1 hm_answernext yes *writefile "C:/Temp/cclip.hm" 1 hm_answernext yes *deletemodel *feinputwithdata2 "\#optistruct\\optistruct" "C:/temp/cclip10.fem" 0 0 0 0 0 1 8 1 0 #segmentation error cclip10.fem
  3. You have a list of vectors but you want to translate it into one direction. The problem is that the variables are only valid within the for loop... try this set vector [*vectorcreate_twonode 1 2] set vx1 [ hm_getentityvalue vectors $vector "xcomp" 0 ] set vy1 [ hm_getentityvalue vectors $vector "ycomp" 0 ] set vz1 [ hm_getentityvalue vectors $vector "zcomp" 0 ] *createmark nodes 1 1 *duplicatemark nodes 1 25 set r [hm_entitymaxid nodes 1] *createvector 1 $vx1 $vy1 $vz1 *translatemark nodes 1 1 10 I changed the $x and $y that it works for me... also the createmark command after that... Hope this helps
  4. Thank you very much for this. I will try to impliment this on my model and see where it goes from there.
  5. @Hyperman Thanks for the reply. I can see the logic, but how does it help when the solution is not connected to the "SPC"... meaning the center of the model around which everything moves... A little background: I try to model something like this: https://www.volocopter.com And the solution to put mass everywhere where the motors are is not a valid solution for the frame Thanks again for your replies. Merula
  6. Hi, I was trying to do a Topology Optimization (min(comp) with a constrained volume frac). As a loadstep I wanted to use an intertia relief analysis. The model consists of first order quad elements (meshsize =1 ) in a plate of 200 x 200 and the thick ness is 1 mm. The center of the plate is at x=y=z=0. The load case is like the following: Now, I created the inertia relief card in ControlCards - PARAM and set it to -2 .... so I do not need to constrain the model and all should run well. The optimization steps are shown below. Top left is the initial model which seems completely off to me... it has only mass at the loading points and that makes no sense does it? I though, that it could be the low volume frac constraint I used (which is 0.15) ... I increased it to 0.5 and got the second result. Seems a lot better... Next I introduced some min and max member constraints. Min Member: 5, max Member 10. As it tuned out, the model does not really converge into a 1/0 design.. so I tried a few things (which all failed): OptControl - Discrete=2, TopDisc = Yes ... decreased the force magnitude ... all with no effect. Finally with all those changes I also changed the Inertia Relief Parameter to -1 and created a Support1 constraint in the middle of the model... this also resulted in the same design as it can be seen below. I finally made a Optimization with the inertia relief parameter set to 0... which is a constrained optimization, as the support1 constraint actually is a spc constraint and the movement ist blocked. The design looks a lot different. So my questions are: What am I doing wrong setting this up ? Is there an important point I am missing here? Can somebody who did something similar assist me here? Thanks in advance and best regards! Merula
  7. Just to complete this, in case anyone is trying to look it up: its -u<ProfileName> without a space... so for example: -uOptiStruct or -uAnsys SubProfiles is done with -a .... so for example: -uAbaqus -aStandard3d That will save some time :-) All the best to you guys!
  8. Is there a way to change the default user profile to "Optistruct" for example? I looked into the hwsettings.xml but could not find an entry which would change the option with which user profile hypermesh starts... Thanks and best regards Merula
  9. As I see it, there is no easy tcl command like *createmark to solve your issue as the wholes are not of the same shape (like all cylindrical holes could be easily selected with a "by cylinder"). Well, all the elements, you want to select share one property: They are at the boundaries of your element set and they for a closed loop. So to select the elements you want, you have to do the following: - read in all the elements which are there - identify all elements with node ids, that are only referenced once in the entire element set (those are the boundary elements) - identify all closed loops within that element set You can do it with any programming language you like. Files to be processed are: the .fem file for getting the elements and nodes as well as the _des.h3d for getting the element densities. If there is an easy solution for this, I would be greatly interested if someone could share the findings. The above process takes a while (but on the other hand is applicable for 2d and 3d as well) All the best, Merula
  10. I just looked into implementing this. One problem I had is this: When I have to define the shell element to be the element to define how much the beam gets pushed out, I would have to map the diameters to the shell elements (for different diameters). Is there a way to consider the 1D diameter? Thanks in advance and best regards Merula
  11. Just a note ... this command is deprecated I guess, it still works but a problem occured when dealing with large amoung of ids ...to assign to a set.. this way it works! *createmark elems 2 "by collector" 1 *entitysetcreate ELEMS elems 2 *setvalue sets id=2 cardimage="SET_ELEM" *setvalue sets id=2 STATUS=0 5422=LIST set ids [hm_getmark elems 2] eval *setvalue sets id=2 ids={elems $ids} the step with set ids ... is critical.
  12. Good question... I suggest he wants to do it with a location... so all beams with a distance lower than x ...
  13. Did you execute the first two lines? User Profile Optistruct? maybe just copy it into the tcl command console (at the bottom of the window) Hope this helps Merula
  14. You just know everything tinh :-D Exactly what I was looking for the other day! Thanks!
  15. *createmark elements 1 "by config" "bar" set beamIds [hm_getmark elements 1] foreach beamID $beamIds { # Create New Component *createentity comps name=Component_$beamID # create material *createentity mats cardimage=MAT1 name=material_$beamID set materialID [hm_entityinfo id material "material_$beamID"] *setvalue mats id=$materialID STATUS=1 1=210000 *setvalue mats id=$materialID STATUS=1 3=0.3 *setvalue mats id=$materialID STATUS=1 4=7.85e-009 *setvalue mats id=$materialID STATUS=1 2=80769.2 # Create New Property *createentity props cardimage=PBEAM name=property_$beamID set propertyID [hm_entityinfo id property "property_$beamID"] *setvalue props id=$propertyID cardimage="PBEAM" *setvalue props id=$propertyID materialid={mats $materialID} # Assign it to Component ## Assign the property and Material *setvalue comps id=[hm_entityinfo id component "Component_$beamID"] propertyid={props $propertyID} ## Assign BeamSection To Property *setvalue props id=$propertyID STATUS=2 3186={beamsects 1} *createmark properties 1 $propertyID *syncpropertybeamsectionvalues 1 *mergehistorystate "" "" *setvalue props id=$propertyID STATUS=2 500=1 *setvalue props id=$propertyID STATUS=0 36=0 *setvalue props id=$propertyID STATUS=0 37=0 *setvalue props id=$propertyID STATUS=0 38=0 *setvalue props id=$propertyID STATUS=0 39=0 #Move Element *createmark elements 1 $beamID *movemark elements 1 "Component_$beamID" } It for sure is not ideal and it will take a while but I am curious what the experts think about it :-D Best regards Merula
  16. You can solve this with a .tcl script easily. Are you familiar with scripting ? Best regards Merula
  17. Hi guys, Lets say I have a design space modeled as a geometry file. I have a set of cylinders modeled as 1D Beam Elements which should all lie within the design space box. The idea is to use a contact adjustment calculation (=contact initializatio) between the cylinders and the design space. I tried to model it with a two contact surfaces but the elements (1D) are not valid.... is this even possible to do with Hypermesh? I wrote the problem with illustrations into the attached .pdf file. Any help is greatly appreciated! Thanks! Merula contactProblem.hm ContactProblem.pdf contactProblem1D.hm
  18. Sorry, something went wrong with the zip... here it is corrected. study.zip
  19. Hi guys, I ran into a problem recently. Whenever trying to define a discrete variable in the negative range ... e.g. -10 to -1 with stepSize = 1 (which is: -10,-9,-8,-7,-6,-5,-4,-3,-2,-1), I get an exception with the data type Real. Is this a bug? Best regards Merula
  20. Hi @Bakr Amine, in Optistruct, the SIMP Method is used. You can read about it on the following resources: https://www.springer.com/de/book/9783540429920 https://altairuniversity.com/free-ebooks-2/free-ebook-practical-aspects-of-structural-optimization-a-study-guide/ Best regards, Merula
  21. Hey guys, what do you think of the result I got for the CClip. I saw it is not a symmetric result although the input and loadcase is symmetric. Ignore the buckling constraint for now. My question is: Is this procedure correct? The compliance is better than with topology optimization. I attached the following results: 1) Input Deck of the topology optimization (modified version of the cclip tutorial): cclip1.fem 2) Result of the topology optimization (modified version of the cclip tutorial): cclip1_des.h3d 3) Input Deck of the Shape Optimization ShapeOptimization.fem 4) Result of the Shape Optimization ShapeOptimization_des.h3d Best regards, Merula ShapeOptimization_des.h3d ShapeOptimization_des.fem cclip1.fem cclip1_des.h3d
×
×
  • Create New...