Ansys Assistant will be unavailable on the Learning Forum starting January 30. An upgraded version is coming soon. We apologize for any inconvenience and appreciate your patience. Stay tuned for updates.
Preprocessing

Preprocessing

Topics related to geometry, meshing, and CAD.

ICEM CFD Scripting Issues

    • jainanup27
      Subscriber

      Hi, 


      I am creating a script for meshing in ICEM CFD for parametric study.
      I want a point on the curve which is at a parameter of 0.4 and 0.8 on the curve. I create this point (In script editor these points are point pt.00 and pt.01) [image 1 and image 2] I then assign vertex ( vertex/node 67 and vertex/node 66) [image 2] to these points respectively. Now when I change the curve dimension (for optimization) and update ICEM CFD the points defined by parameter 0.4 and 0.8 are created but their names are changed on update (pt 04 and pt 05) [image 3]. The problem is that in the script the vertices were assigned to pt.00 and pt.01 and As a result, ICEM CFD throws an error 

      "Update failed for the Model component in ICEM CFD. Update of the Model component in ICEM CFD did not mark the component as updated due to a change made to the ANSYS Geometry component during the update"


      Along with pt.04 and pt.05 it creates pt.01 and pt.00 if I forcefully run the script (the vertices remain attached to pt.00 and pt.01) with warning as shown in image 3
      (I want the vertices now attached to the points that are located at parameters 0.4 and 0.8 of the curve) 

      Can someone please help,


      Thanks,


      Anup


       


      Image 1


       


      Image 2


      Image 3

    • jcooper
      Ansys Employee

      Hi Anup:


      ICEM will name points sequentially as each new version of the geometry comes in.  In the second instance, since you already have points 0,1,2,3, points 4,5,6,7 will be created.  A crude fix would be to have a command that just forces the names back one step each time.


      For instance, the first time through, there will be no points 4,5,6,7, but you can still issue commands to rename these to 0,1,2,3 (ICEM should just issue a warning that the points to be renamed couldn't be found)


      On subseqent passes, point numbers will be bumped  up to 4,5,6,7, so the command:


      ic_geo_set_name point pnt.04 pnt.01 1 0  etc ...


      should rename them to the originals and then the script could proceed as usual.


      Best Regards,


      Judy


       

    • jainanup27
      Subscriber

      Hi Judy,


       


      Thanks for your reply. I will try doing that. However, I have bumped into another issue. I would really appreciate your help. You can find the link here: 


       


      /forum/forums/topic/geometry-not-imported-to-icem-cfd-upon-update-of-design-point-ansys-2019-r2/?postbadges=true


       


      Thanks,


      Anup

Viewing 2 reply threads
  • The topic ‘ICEM CFD Scripting Issues’ is closed to new replies.
[bingo_chatbox]