Users Forum

ADONIS Category => ADONIS Users => Topic started by: ahofm8485 on February 12, 2017, 02:54:43 am

Title: Extract Boundary Forces
Post by: ahofm8485 on February 12, 2017, 02:54:43 am
Dear Roozbeh,

thank you very much for this Software. It's really nice and quite comfortable to use after a short time.

How can i read the force components from a fixed boundary node in a script? What's the correct keyword/attribute?
So far i can only extract location/displacement/unbalanced force (see following script)

nlist = getnode("boundid")
fh = fopen("demoExcavation.txt", "w")
fprintf(fh, "found "+nlist.length+" boundary nodes\r\n");
for (i = 0; i < nlist.length; i++) {
    var nid = nlist;
   var nCo = getnode("pos", nid);
   var nFu = getnode("unbal", nid);
   var nDs = getnode("disp", nid);
   
   if ((nCo[0] > 15.0 && nCo[0] < 35.0)
    && (nCo[1] > -2.0 && nCo[1] < 30.0)) {
   
      fprintf(fh, "interior boundary node # "+ nid + "\n");
      fprintf(fh, "at pos. " + nCo[0] +"/"+ nCo[1]+ "\n");
      fprintf(fh, "tot. displ. " + nDs[0] +"/"+ nDs[1]+ "\n");
      fprintf(fh, "ubl. force "  + nFu[0] +"/"+ nFu[1]+ "\n");
   }
}
fclose(fh);


Greetings
Arno
Title: Re: Extract Boundary Forces
Post by: Roozbeh on February 12, 2017, 07:58:01 am
Arno,

first of all I'm very impressed with your work. you are clearly experienced scrip programmer.

regarding your question, currently there is no command for extracting the external force. I'll add it for the next release.
meanwhile let me know if any other information is needed to be extracted also be useful for the users.

also, would you please put your script into the "Useful Scripts" board so other users can learn from it?

thanks for the nice work and I look forward to hearing more from you and your works on ADONIS in the future.

-Roozbeh
Title: Re: Extract Boundary Forces
Post by: ahofm8485 on February 12, 2017, 08:16:51 am
Hey Roozbeh... ah, thank you for your reply

but a few hours after i posted my question i found the solution myself  :D
just had to remeber how things were done back in my FLAC scripting days

so i will post one or two useful scripts for ADONIS right away
you really made a quite capable software, thanks a lot

Edit
here's the script: http://geowizard.org/forum/index.php?topic=76.0 (http://geowizard.org/forum/index.php?topic=76.0)

Greetings
Arno
Title: Re: Extract Boundary Forces
Post by: Roozbeh on February 12, 2017, 08:19:12 am
thank you, and nice job..