{"id":1448,"date":"2022-04-19T01:47:45","date_gmt":"2022-04-19T08:47:45","guid":{"rendered":"https:\/\/gantovnik.com\/bio-tips\/?p=1448"},"modified":"2022-04-19T01:47:45","modified_gmt":"2022-04-19T08:47:45","slug":"210-parametric-curve-in-3d-2-2-2-2-2-2-2-2-2-2-2-2-2-3-2-2-2-2-2-2-2-2-2-3-2-2-2","status":"publish","type":"post","link":"https:\/\/gantovnik.com\/bio-tips\/2022\/04\/210-parametric-curve-in-3d-2-2-2-2-2-2-2-2-2-2-2-2-2-3-2-2-2-2-2-2-2-2-2-3-2-2-2\/","title":{"rendered":"#279 Get the elements adjacent to the selected element"},"content":{"rendered":"<p>Get the elements adjacent to element 12<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">\r\n*createmark elements 1 12\r\n*findmark elements 1 1 1 elements 0 2\r\nset elementIDs &#x5B;hm_getmark elements 2]\r\nputs $elementIDs\r\n<\/pre>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">\r\n5 6 9 10 11 25 33 35\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Get the elements adjacent to element 12 *createmark elements 1 12 *findmark elements 1 1 1 elements 0 2 set elementIDs &#x5B;hm_getmark elements 2] puts $elementIDs 5 6 9 10 11 25 33 35<\/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":[27],"tags":[],"class_list":["post-1448","post","type-post","status-publish","format-standard","hentry","category-tcl"],"modified_by":"gantovnik","jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8bH0k-nm","jetpack_likes_enabled":true,"jetpack-related-posts":[{"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":1448,"position":0},"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":2235,"url":"https:\/\/gantovnik.com\/bio-tips\/2024\/06\/432-hypermesh-tcl-script-to-mark-and-print-all-adjacent-element-ids\/","url_meta":{"origin":1448,"position":1},"title":"#432 Hypermesh tcl script to mark and print all adjacent element IDs","author":"gantovnik","date":"2024-06-30","format":false,"excerpt":"[code language=\"python\"] *createmark elements 1 \"all\" *numbersmark elements 1 0 *clearmark elems 1 *clearmark elems 2 *createmarkpanel elems 1 \"Select elements\" set selected [hm_getmark elems 1] *setoption force_text_black=1 *setoption element_color_mode=2 *numbersmark elements 1 1 foreach ID $selected { puts \"Selected elements ID: $ID\" #select attached *createmark elems 1 $ID *findmark\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\/06\/ex432.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/gantovnik.com\/bio-tips\/wp-content\/uploads\/2024\/06\/ex432.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/gantovnik.com\/bio-tips\/wp-content\/uploads\/2024\/06\/ex432.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/gantovnik.com\/bio-tips\/wp-content\/uploads\/2024\/06\/ex432.png?resize=700%2C400&ssl=1 2x, https:\/\/i0.wp.com\/gantovnik.com\/bio-tips\/wp-content\/uploads\/2024\/06\/ex432.png?resize=1050%2C600&ssl=1 3x"},"classes":[]},{"id":1573,"url":"https:\/\/gantovnik.com\/bio-tips\/2022\/10\/210-parametric-curve-in-3d-2-2-2-2-2-2-2-2-2-2-2-2-2-3-3-2-2-3-2-2-2\/","url_meta":{"origin":1448,"position":2},"title":"#303 Stress calculations in QUAD elements (Gaussian points and nodal points): Elemental stress, Nodal stress","author":"gantovnik","date":"2022-10-10","format":false,"excerpt":"For QUAD elements with shapes deviating significantly from perfect rectangle stresses are indeed most realistic at Gauss points. The primary purpose of using Gauss integration points is numerical integration. These points are chosen so that the results for a particular numerical integration scheme are the most accurate. (the Gauss Quadrature\u2026","rel":"","context":"In &quot;fem&quot;","block_context":{"text":"fem","link":"https:\/\/gantovnik.com\/bio-tips\/category\/fem\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/gantovnik.com\/bio-tips\/wp-content\/uploads\/2022\/10\/ex303_2.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/gantovnik.com\/bio-tips\/wp-content\/uploads\/2022\/10\/ex303_2.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/gantovnik.com\/bio-tips\/wp-content\/uploads\/2022\/10\/ex303_2.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/gantovnik.com\/bio-tips\/wp-content\/uploads\/2022\/10\/ex303_2.png?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":632,"url":"https:\/\/gantovnik.com\/bio-tips\/2020\/09\/question-1-param-cards-in-nastran\/","url_meta":{"origin":1448,"position":3},"title":"#99: PARAM cards in Nastran","author":"gantovnik","date":"2020-09-25","format":false,"excerpt":"#99: PARAM cards in Nastran 1) K6ROT specifies the stiffness to be added to the normal rotation for CQUAD4 and CTRIA3 elements. This is an alternate method to suppress the grid point singularities and is intended primarily for geometric nonlinear analysis. A value between 1.0 and 100.0 is recommended to\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":3616,"url":"https:\/\/gantovnik.com\/bio-tips\/2024\/08\/445-hypermesh-python-script-for-renumbering-the-elements-and-nodes\/","url_meta":{"origin":1448,"position":4},"title":"#445 HyperMesh python script for renumbering the elements and nodes","author":"gantovnik","date":"2024-08-13","format":false,"excerpt":"import hm import hm.entities as ent elems = hm.Collection(model,ent.Element) model.renumbersolverid(collection=elems,start_id=1,incr_val=1,offset_val=1,offset_flag=0,reserved_1=0,reserved_2=0,reserved_3=0) nodes = hm.Collection(model,ent.Node) model.renumbersolverid(collection=nodes,start_id=1000,incr_val=1,offset_val=1,offset_flag=0,reserved_1=0,reserved_2=0,reserved_3=0)","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":671,"url":"https:\/\/gantovnik.com\/bio-tips\/2020\/09\/114-python-script-for-remove-offsets-from-cbar-elements\/","url_meta":{"origin":1448,"position":5},"title":"#114: Python script for remove offsets from CBAR elements","author":"gantovnik","date":"2020-09-28","format":false,"excerpt":"#114: Python script for remove offsets from CBAR elements SOL 106 does not allow offsets in CBAR elements. [code language=\"python\"] print \"-------------------------------------\" print \"remove_cbush_offsets_v1.0\" print \"Vladimir Gantovnik\" print \"March 15 2016\" print \"-------------------------------------\" #input file inName='test.bdf' inFile=open(inName) #output file outName='stripped.bdf' outFile=open(outName,'w') import string while 1 : line=inFile.readline() if not line\u2026","rel":"","context":"In &quot;nastran&quot;","block_context":{"text":"nastran","link":"https:\/\/gantovnik.com\/bio-tips\/category\/nastran\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/gantovnik.com\/bio-tips\/wp-json\/wp\/v2\/posts\/1448","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=1448"}],"version-history":[{"count":0,"href":"https:\/\/gantovnik.com\/bio-tips\/wp-json\/wp\/v2\/posts\/1448\/revisions"}],"wp:attachment":[{"href":"https:\/\/gantovnik.com\/bio-tips\/wp-json\/wp\/v2\/media?parent=1448"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gantovnik.com\/bio-tips\/wp-json\/wp\/v2\/categories?post=1448"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gantovnik.com\/bio-tips\/wp-json\/wp\/v2\/tags?post=1448"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}