x

ADONIS:
Version 3.90.4 (Released at 04/07/2024)
- Bug in interface save/read is fixed.
- Bug in mesh generation action has been fixed.

HYRCAN:
Version 2.0.13 (Released at 02/03/2024)
- To allow users to import CAD files using scripting, the importmodel command is introduced.
- Program's webhelp has been reformatted.


Extract Boundary Forces(Read 16231 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..