


{"id":163666,"date":"2021-11-02T22:46:16","date_gmt":"2021-11-02T22:46:16","guid":{"rendered":"\/forum\/forums\/topic\/assigning-hsfld242-elements-to-enclosed-surfaces-using-apdl-command-objects-in-workbench\/"},"modified":"2021-11-03T06:32:50","modified_gmt":"2021-11-03T06:32:50","slug":"assigning-hsfld242-elements-to-enclosed-surfaces-using-apdl-command-objects-in-workbench","status":"closed","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/assigning-hsfld242-elements-to-enclosed-surfaces-using-apdl-command-objects-in-workbench\/","title":{"rendered":"Assigning HSFLD242 elements to enclosed surfaces using APDL command objects in Workbench"},"content":{"rendered":"<div class=\"Item-Body\">\n<div class=\"Message userContent\">\n<p>Hi, <\/p>\n<p>I am trying to simulate force on a diaphragm that results in a change in pressure of a chamber. I am able to set up this simulation without any fluids inside of the chamber and it returns deformation results. The goal is to place a trapped fluid inside of this chamber so that the change in force on the diaphragm results in a change in pressure of the fluid as the diaphragm deforms slightly.<\/p>\n<p> I am now working to assign HSFLD242 elements to the inside walls of the chamber under the diaphragm. I am not familiar with APDL (trying to learn) and am attempting to add the HSFLD242 elements using a commands object in the workbench static structural tree. I have edited the code from<a href=\"https:\/\/simutechgroup.com\/contained-fluid-in-ansys-mechanical-workbench-fea-model-working-with-hsfld242-elements\/\" rel=\"nofollow\"> this example<\/a> to fit my project the best that I could. Here is the edited version, where the inside walls of the chamber are named &quot;walls&#039;<\/p>\n<p>! Be careful with UNITS because of the material&nbsp;propertites. &lt;&lt;&lt;==========&nbsp;<\/p>\n<p>! It is assumed that NO SYMMETRY effects are in this model.&nbsp;<\/p>\n<p>!&nbsp;<\/p>\n<p>fini&nbsp;<\/p>\n<p>\/prep7&nbsp;<\/p>\n<p>*get,typemax,ETYP,,NUM,MAX&nbsp;! max defined element type&nbsp;<\/p>\n<p>*get,realmax,RCON,,NUM,MAX&nbsp;! max defined real constant&nbsp;<\/p>\n<p>*get,mat_max,MAT,,NUM,MAX&nbsp;! max defined material&nbsp;<\/p>\n<p>*get,nodemax,NODE,,NUM,MAX&nbsp;! highest numbered node in model&nbsp;<\/p>\n<p>! Create a new higher number for element type, real, and material&nbsp;<\/p>\n<p>newnode=nodemax+1000 !&nbsp;number for pressure node for HSFLD242&nbsp;<\/p>\n<p>newnumber=typemax+1&nbsp;<\/p>\n<p>*if,realmax,ge,newnumber,then&nbsp;<\/p>\n<p>newnumber=realmax+1&nbsp;<\/p>\n<p>*endif&nbsp;<\/p>\n<p>*if,mat_max,ge,newnumber,then&nbsp;<\/p>\n<p>newnumber=mat_max+1&nbsp;<\/p>\n<p>*endif&nbsp;<\/p>\n<p>et,newnumber,HSFLD242 !&nbsp;3-D Hydrostatic Fluid Element&nbsp;<\/p>\n<p>keyopt,newnumber,1,0 !&nbsp;UX, UY, UZ, plus HDSP at pressure node&nbsp;<\/p>\n<p>keyopt,newnumber,5,1 !&nbsp;Fluid mass calculated based on the volume of the fluid element&nbsp;<\/p>\n<p>keyopt,newnumber,6,1 !&nbsp;Incompressible&nbsp;<\/p>\n<p>mp,dens,newnumber,1.0e-9 !&nbsp;Density of Water, kg\/mm^3\/1000&nbsp;<\/p>\n<p>! Ignoring thermal expansion in this example&nbsp;<\/p>\n<p>! Ignoring&nbsp;TB,FLUID&nbsp;in this example&nbsp;<\/p>\n<p>r,newnumber&nbsp;! Ignoring Reference pressure for compressible gas&nbsp;<\/p>\n<p>type,newnumber&nbsp;<\/p>\n<p>mat,newnumber&nbsp;<\/p>\n<p>real,newnumber&nbsp;<\/p>\n<p>!&nbsp;<\/p>\n<p>cmsel,s,walls&nbsp;! Select nodes on interior&nbsp;<\/p>\n<p>esln&nbsp;! Select elements that touch these nodes&nbsp;<\/p>\n<p>n,newnode,0,0,0.07&nbsp;!&nbsp;Pressure node at 0,0,400 (automatically moved to centroid?)&nbsp;<\/p>\n<p>ESURF,newnode&nbsp;! ESURF HSFLD242 elements over solid element faces&nbsp;<\/p>\n<p>! Extra node &ldquo;newnode&rdquo; with ESURF with HSFLD242&nbsp;<\/p>\n<p>allsel&nbsp;<\/p>\n<p>fini&nbsp;<\/p>\n<p>\/solu&nbsp;! return to solving&nbsp;<\/p>\n<p><\/p>\n<\/p>\n<p>When I hit solve, the program does not converge and it returns errors. Any help on how to assign the HSFD242 elements to this would be appreciated, I can share more from the workbench project if needed.<\/p>\n","protected":false},"template":"","class_list":["post-163666","topic","type-topic","status-closed","hentry"],"aioseo_notices":[],"acf":[],"custom_fields":[{"0":{"_bbp_author_ip":[""],"_bbp_view_count":["296"],"_bbp_likes_count":["0","0"],"_bbp_forum_subforum_count":["0"],"_btv_view_count":["475"],"_bbp_subscription":["238845"],"_bbp_topic_status":["unanswered"],"_bbp_status":["publish"],"_bbp_topic_id":["163666"],"_bbp_forum_id":["27791"],"_bbp_engagement":["58821","238845"],"_bbp_voice_count":["2"],"_bbp_reply_count":["1"],"_bbp_last_reply_id":["196689"],"_bbp_last_active_id":["196689"],"_bbp_last_active_time":["2021-11-03 06:32:50"]},"test":"joekerchrams-colostate-edu"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/163666","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics"}],"about":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/163666\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=163666"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}