 Author Message
karthik.suresh
User

Joined: 29 Oct 2014
Posts: 65 Posted: Mon Jun 22, 2015 1:14 pm Hello all, I am encountering problems with selecting corner nodes in my analysis. is there any function or a process which selects the nearest corner node even if the user asks for data of a node which is a midside node. nc=node((pad_length+curvature_length+(beam_length/3)),beam_width/2-3e-3,(th/2)) here i would add small increments like0.25e-4 to 1e-3 at the y co-ordinate (trial and error way). i tried finding a corner node by adding increaments/decrements to the node where i wanted the stress and strains but to my bad luck all my tries resulted in mid side nodes. i tried searching on google and in the archeives of xansys but found nothing. would be greatful if anybody could help me out with this problem so posting it._________________thanking you karthik suresh student tu chemnitz karthik.suresh
User

Joined: 29 Oct 2014
Posts: 65 Posted: Tue Jun 23, 2015 10:34 am /post1 !takes total number of substeps *get,j,active,0,solu,ncmss !selecting the nodes in an area which includes midside and corner nodes nsel,s,loc,z,0,th nsel,r,loc,x,pad_length+curvature_length+(beam_length/3)-5e-3,pad_length+curvature_length+(beam_length/3)+5e-3 cm,node_y,node !get the total number of nodes *get,ar20,NODE,0,COUNT !get those node numbers *VGET, a_NN, NODE, , NLIST, ,,, 4 !get nodes numbers !label mentioning for the columns s_s1='s_one' s_eppl1='eppl_one' s_epel1='epel_one' s_loc_x='loc_x' s_loc_z='loc_z' s_dis_ux='dis_ux' s_dis_uz='dis_uz' s_f_x='f_x' s_f_y='f_y' s_f_z='f_z' loc_x='loc_x' loc_z='loc_z' dis_ux='dis_ux' dis_uz ='dis_uz' my_fsumz ='my_fsumz' !perform the looping for the toal number of nodes *do, i, 1, ar20, 1 *del, s_one *del, epel_one *del, eppl_one *del, u_x *del, u_z *del, l_x *del, l_z *DIM,s_one,ARRAY, ar20 *DIM,epel_one,ARRAY, ar20 *DIM,eppl_one,ARRAY, ar20 *DIM,u_x,ARRAY, ar20 *DIM,u_z,ARRAY, ar20 *DIM,l_x,ARRAY, ar20 *DIM,l_z,ARRAY, ar20 *cfopen,data_%i%,dat,,append *vwrite,s_s1,s_epel1,s_eppl1,s_loc_x,s_loc_z,s_dis_ux,s_dis_uz (2x,a,2x,a,2x,a,2x,a,2x,2x,a,2x,a,2x,a) *cfclos *cfopen,data_%i%,dat,,append *do,n,1,j,1 set,1,n *VGET, s_one(i), NODE, a_NN(i),s,1 *VGET, epel_one(i), NODE, a_NN(i),epel,1 *VGET, eppl_one(i), NODE, a_NN(i),eppl,1 *VGET, u_x(i), NODE, a_NN(i),U,x *VGET, u_z(i), NODE, a_NN(i),U,z *VGET, l_x(i), NODE, a_NN(i),loc,x *VGET, l_z(i), NODE, a_NN(i),loc,z *VWRITE, s_one(1), epel_one(1), eppl_one(1), u_x(1),u_z(1),l_x(1),l_z(1) (2x,E14.4,4x,E14.4,4x,E14.4,4x,E14.4,2x,E14.4,4x,E14.4,4x,E14.4) *CFCLOS *enddo *enddo i tired this but also not working. in summary: read the nodes in an area which contains both corner and misdside nodes and get the required values of both but the stresses and strains are not calculated in the midside nodes and when the corner nodes are present they re calculated and results are outputed. this was my way of thinking but this is also not working any other way_________________thanking you karthik suresh student tu chemnitz maciej.borkowski
User

Joined: 04 Jul 2014
Posts: 4 Posted: Wed Jul 08, 2015 7:56 am I am not sure if this is what You are asking for, but: nsle,r,corner !this would select only corner nodes node_num=node(x,y,z) !return node number closest to location x,y,z_________________Regards, Maciej Borkowski Lead Engineer GE Oil & Gas /EDC Display posts from previous: All Posts1 Day7 Days2 Weeks1 Month3 Months6 Months1 Year Oldest FirstNewest First
 All times are GMT - 7 Hours Page 1 of 1