x

ADONIS:
Version 3.90.9 (Released at 10/19/2024)
- Minor bugs in mesh generation module has been fixed.
- Gmsh is upgraded to version 4.13.1.

HYRCAN:
Version 2.0.18 (Released at 10/26/2024)
- Minor bug in translation has been fixed.
- Minor bug in geometry creation is fixed.


Extract Boundary Forces(Read 20303 times)
Extract Boundary Forces 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



Re: Extract Boundary Forces Reply #1 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



Re: Extract Boundary Forces Reply #2 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

Greetings
Arno
« Last Edit: February 12, 2017, 09:17:04 am by ahofm8485 »



Re: Extract Boundary Forces Reply #3 on: February 12, 2017, 08:19:12 am
thank you, and nice job..