{"id":1290,"date":"2021-12-15T02:50:02","date_gmt":"2021-12-15T10:50:02","guid":{"rendered":"https:\/\/gantovnik.com\/bio-tips\/?p=1290"},"modified":"2021-12-15T02:50:15","modified_gmt":"2021-12-15T10:50:15","slug":"133-create-vectors-and-planes-using-tcl-in-hypermesh-2-2","status":"publish","type":"post","link":"https:\/\/gantovnik.com\/bio-tips\/2021\/12\/133-create-vectors-and-planes-using-tcl-in-hypermesh-2-2\/","title":{"rendered":"#228 Example with *loadcreateonentity_curve"},"content":{"rendered":"<p>To apply a temperature of 140.0 to all the nodes of a set, using the curve with ID 9 to vary this magnitude over time:<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">\r\n*createmark sets 1 &quot;temperaturenodes&quot;\r\n*loadcreateonentity_curve sets 1 5 1 140 0 0 0 0 0 0 0 0 0 9 1.0\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>To apply a temperature of 140.0 to all the nodes of a set, using the curve with ID 9 to vary this magnitude over time: *createmark sets 1 &quot;temperaturenodes&quot; *loadcreateonentity_curve sets 1 5 1 140 0 0 0 0 0 0 0 0 0 9 1.0<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"nf_dc_page":"","_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","_lmt_disableupdate":"yes","_lmt_disable":"","jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[24,27],"tags":[],"class_list":["post-1290","post","type-post","status-publish","format-standard","hentry","category-hypermesh","category-tcl"],"modified_by":"gantovnik","jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8bH0k-kO","jetpack_likes_enabled":true,"jetpack-related-posts":[{"id":1853,"url":"https:\/\/gantovnik.com\/bio-tips\/2023\/05\/347-operations-with-sets-in-python\/","url_meta":{"origin":1290,"position":0},"title":"#347 Operations with sets in python","author":"gantovnik","date":"2023-05-21","format":false,"excerpt":"ex347.py [code language=\"python\"] # Operations with sets in python set1 = {-1,0,4,5,6} set2 = {-5,0,4,7,8} # Finding the differences between two sets print(set1.difference(set2)) print(set2.difference(set1)) # Finding the duplicate items in two sets print(set1.intersection(set2)) # Combining sets print(set1.union(set2)) print(set2.union(set1)) # Determining whether one set is a superset of another set1 =\u2026","rel":"","context":"In &quot;python&quot;","block_context":{"text":"python","link":"https:\/\/gantovnik.com\/bio-tips\/category\/python\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":2017,"url":"https:\/\/gantovnik.com\/bio-tips\/2024\/01\/402-find-edge-nodes-of-mesh-and-create-node-sets-for-each-edge-using-tcl-script-in-hypermesh\/","url_meta":{"origin":1290,"position":1},"title":"#402 Find edge nodes of mesh and create node sets for each edge loop using tcl script in HyperMesh","author":"gantovnik","date":"2024-01-07","format":false,"excerpt":"Assume we have this model: The script will find all edges and create set of nodes for each edge: [code language=\"python\"] *clearmark comps 1 *clearmark elems 1 *createmark elems 1 \"by comps\" 1 # hm_getedgeloops = Returns surface and element entities of specific connection types. # looptype=2 get all closed\u2026","rel":"","context":"In &quot;HyperMesh&quot;","block_context":{"text":"HyperMesh","link":"https:\/\/gantovnik.com\/bio-tips\/category\/hypermesh\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/gantovnik.com\/bio-tips\/wp-content\/uploads\/2024\/01\/ex402_3.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/gantovnik.com\/bio-tips\/wp-content\/uploads\/2024\/01\/ex402_3.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/gantovnik.com\/bio-tips\/wp-content\/uploads\/2024\/01\/ex402_3.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":996,"url":"https:\/\/gantovnik.com\/bio-tips\/2021\/10\/178-fractal-tree-using-python-turtle\/","url_meta":{"origin":1290,"position":2},"title":"#178 Fractal tree using python turtle","author":"gantovnik","date":"2021-10-06","format":false,"excerpt":"#178 Fractal tree using python turtle [code language=\"python\"] import turtle # Set up 'constants' # image size IMAGE_SIZE_X = 500 IMAGE_SIZE_Y = 500 # Determines depth of tree - try 2 and 1.25 as alternatives FACTOR = 1.45 def draw_tree(length, width=9): color = 'brown' if length < 1: return elif\u2026","rel":"","context":"In &quot;python&quot;","block_context":{"text":"python","link":"https:\/\/gantovnik.com\/bio-tips\/category\/python\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/gantovnik.com\/bio-tips\/wp-content\/uploads\/2021\/10\/ex178.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":4445,"url":"https:\/\/gantovnik.com\/bio-tips\/2024\/09\/447-command-loadsize-in-tcl-for-hypermesh\/","url_meta":{"origin":1290,"position":3},"title":"#447 Command *loadsize in tcl for HyperMesh","author":"gantovnik","date":"2024-09-16","format":false,"excerpt":"This command is deprecated but can be found in old tcl scripts. It is replaced with setoption load_size_magnitude, *setoption load_size_type,\u00a0setoption load_size_uniform *loadsize Sets the display size of loads. Syntax *loadsize config size option scale Inputs config The load config to set. Valid values are: 1 \u2013 forces 2 \u2013 moments\u2026","rel":"","context":"In &quot;HyperMesh&quot;","block_context":{"text":"HyperMesh","link":"https:\/\/gantovnik.com\/bio-tips\/category\/hypermesh\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":544,"url":"https:\/\/gantovnik.com\/bio-tips\/2020\/05\/how-to-write-a-code-to-know-certain-elements-belongs-to-which-components\/","url_meta":{"origin":1290,"position":4},"title":"How to write a code to know certain elements belongs to which components ?","author":"gantovnik","date":"2020-05-12","format":false,"excerpt":"How to write a code to know certain elements belongs to which components ? set comp_id [hm_getvalue elems id=$elem_id dataname=collector.id]","rel":"","context":"In &quot;python&quot;","block_context":{"text":"python","link":"https:\/\/gantovnik.com\/bio-tips\/category\/python\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":557,"url":"https:\/\/gantovnik.com\/bio-tips\/2020\/06\/getmarkedentity-2017\/","url_meta":{"origin":1290,"position":5},"title":"#80 GetMarkedEntity (2017)","author":"gantovnik","date":"2020-06-11","format":false,"excerpt":"::hwat::utils::GetMarkedEntity \"components\" 1 \"by sets\" set1 Return a list containing the IDs of the entities, 0 if no entity is found and {} if unsuccessful. If any one of the arguments is list in Tcl, like [list 1 2 3] or {1 2 3}, use eval before GetMarkedEntity command. For\u2026","rel":"","context":"In &quot;HyperMesh&quot;","block_context":{"text":"HyperMesh","link":"https:\/\/gantovnik.com\/bio-tips\/category\/hypermesh\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/gantovnik.com\/bio-tips\/wp-json\/wp\/v2\/posts\/1290","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gantovnik.com\/bio-tips\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gantovnik.com\/bio-tips\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gantovnik.com\/bio-tips\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/gantovnik.com\/bio-tips\/wp-json\/wp\/v2\/comments?post=1290"}],"version-history":[{"count":0,"href":"https:\/\/gantovnik.com\/bio-tips\/wp-json\/wp\/v2\/posts\/1290\/revisions"}],"wp:attachment":[{"href":"https:\/\/gantovnik.com\/bio-tips\/wp-json\/wp\/v2\/media?parent=1290"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gantovnik.com\/bio-tips\/wp-json\/wp\/v2\/categories?post=1290"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gantovnik.com\/bio-tips\/wp-json\/wp\/v2\/tags?post=1290"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}