[GiDlist] Scripts over customized problems

Moderator: GiD Team

Post Reply
Jesús Torrecilla

[GiDlist] Scripts over customized problems

Post by Jesús Torrecilla »

Hi there all,

First of all, in this mail there are some questions about Rambshell. Since
it is very close to GiD I have decided to send them here. Sorry for the
inconvenience.

I have just downloaded the last Rambshell Demo version and am doing a
simulation in which I have several similar models, just differing in the
geometric dimensions (same loads and boundary conditions), so I am writing a
Python script to automatize the preprocessing and (I hope) postprocessing of
the different models. Now, I have some doubts:

1) How can you call a function which is proper of Rambshell and not of GiD?
v.g. In GiD you can create a line by escape escape escape geometry create
line p1 p2, but, how can you, for example assign a load onto a surface in
Rambshell?

2) How can I save Rambshell Graphs made by Integrate-Graphs option?


Thanks in advance,


Jesús Torrecilla
Enrique Escolano

[GiDlist] Scripts over customized problems

Post by Enrique Escolano »

1) How can you call a function which is proper of Rambshell and not of GiD?
v.g. In GiD you can create a line by escape escape escape geometry create
line p1 p2, but, how can you, for example assign a load onto a surface in
Rambshell?

Exist two order types:
a) GiD internal process orders, for example, "escape geometry create line"
b) tcl orders defined by the problem type interface (or standard GiD scripts), for example,
"WarnWinText" to show a message in a tcl window

Only the first type a) can be used directly in a batch file

To see tha syntax or some orders, use this commands, and see the order list of the Undo window
For example, in RamBShell, to assign a condition named "Puctual_Load" with some values (Fx=Fy=Mx=My=Mz=0, and Fz=-5.3) to the nodes 5 and 6 use:

escape escape escape escape data cond assign Punctual_Load change N-m 0.0 0.0 -5.3 0.0 0.0 0.0
5 6
escape

It is possible also try to execute some TCL command (type b) in a batch file with the special order *****TCL
*****TCL tcl_command
Note: If this command is used in batch file and GiD is invoked with option -n it will not work. To make TCL commands execute when GiD is executed without any window, you should use the -n2 option. (see section INVOKING GiD)

If the tcl command is defined in the problem type, this problemtype must be loaded before using this procedure.

2) How can I save Rambshell Graphs made by Integrate-Graphs option?

This graphs are created in tcl by RamBShell interface without GiD intervention, It is not possiblo to save this graphs.
Only is available to copy the graph data points to the clipboard (menu copy) to past manually in a text file, and create the graph
for example with Microsoft Excel.


Regards
Enrique Escolano

----- Original Message -----
From: "Jesús Torrecilla" jtorine at ciccp.es
To: gidlist at gatxan.cimne.upc.es
Sent: Tuesday, September 17, 2002 1:58 PM
Subject: [GiDlist] Scripts over customized problems


Hi there all,

First of all, in this mail there are some questions about Rambshell. Since
it is very close to GiD I have decided to send them here. Sorry for the
inconvenience.

I have just downloaded the last Rambshell Demo version and am doing a
simulation in which I have several similar models, just differing in the
geometric dimensions (same loads and boundary conditions), so I am writing a
Python script to automatize the preprocessing and (I hope) postprocessing of
the different models. Now, I have some doubts:

1) How can you call a function which is proper of Rambshell and not of GiD?
v.g. In GiD you can create a line by escape escape escape geometry create
line p1 p2, but, how can you, for example assign a load onto a surface in
Rambshell?

2) How can I save Rambshell Graphs made by Integrate-Graphs option?


Thanks in advance,


Jesús Torrecilla

_______________________________________________
GiDlist mailing list
GiDlist at gid.cimne.upc.es
http://gid.cimne.upc.es/mailman/listinfo/gidlist

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20020918/0a9e5ed1/attachment.htm
Ramon Ribó

[GiDlist] Scripts over customized problems

Post by Ramon Ribó »

Hello,

In addition to all the good advide that Enrique has already given,
two more details:

- If you use copy in a Rambshell graphs, you can directly paste
into Excel or any other spreadsheet.
- If you use TCL, you have the disadvantage that you need to
learn a new language, but the advantage that you can integrate
your modification code inside GiD and gain total control over
the program. To do so, it is possible to check the TCL files both
inside the Rambshell problemtype and in the scripts section of
GiD.

Best regards,
--
Compass Ing. y Sistemas Dr. Ramon Ribó
http://www.compassis.com ramsan at compassis.com
c/ Manuel Girona, 61 bajos tel. +34 93 204 10 82
08034 Barcelona, Spain fax. +34 93 204 19 09

-----Mensaje original-----
De: gidlist-admin at gatxan.cimne.upc.es
[mailto:gidlist-admin at gatxan.cimne.upc.es]En nombre de Enrique Escolano
Enviado el: miércoles, 18 de septiembre de 2002 19:53
Para: gidlist at gatxan.cimne.upc.es
Asunto: Re: [GiDlist] Scripts over customized problems


1) How can you call a function which is proper of Rambshell and not of
GiD?
v.g. In GiD you can create a line by escape escape escape geometry create
line p1 p2, but, how can you, for example assign a load onto a surface in
Rambshell?

Exist two order types:
a) GiD internal process orders, for example, "escape geometry create line"
b) tcl orders defined by the problem type interface (or standard GiD
scripts), for example,
"WarnWinText" to show a message in a tcl window

Only the first type a) can be used directly in a batch file

To see tha syntax or some orders, use this commands, and see the order
list of the Undo window
For example, in RamBShell, to assign a condition named "Puctual_Load" with
some values (Fx=Fy=Mx=My=Mz=0, and Fz=-5.3) to the nodes 5 and 6 use:

escape escape escape escape data cond assign Punctual_Load change N-m 0.0
0.0 -5.3 0.0 0.0 0.0
5 6
escape

It is possible also try to execute some TCL command (type b) in a batch
file with the special order *****TCL
*****TCL tcl_command
Note: If this command is used in batch file and GiD is invoked with
option -n it will not work. To make TCL commands execute when GiD is
executed without any window, you should use the -n2 option. (see section
INVOKING GiD)

If the tcl command is defined in the problem type, this problemtype must
be loaded before using this procedure.

2) How can I save Rambshell Graphs made by Integrate-Graphs option?

This graphs are created in tcl by RamBShell interface without GiD
intervention, It is not possiblo to save this graphs.
Only is available to copy the graph data points to the clipboard (menu
copy) to past manually in a text file, and create the graph
for example with Microsoft Excel.


Regards
Enrique Escolano

----- Original Message -----
From: "Jesús Torrecilla" jtorine at ciccp.es
To: gidlist at gatxan.cimne.upc.es
Sent: Tuesday, September 17, 2002 1:58 PM
Subject: [GiDlist] Scripts over customized problems


Hi there all,

First of all, in this mail there are some questions about Rambshell.
Since
it is very close to GiD I have decided to send them here. Sorry for the
inconvenience.

I have just downloaded the last Rambshell Demo version and am doing a
simulation in which I have several similar models, just differing in the
geometric dimensions (same loads and boundary conditions), so I am
writing a
Python script to automatize the preprocessing and (I hope)
postprocessing of
the different models. Now, I have some doubts:

1) How can you call a function which is proper of Rambshell and not of
GiD?
v.g. In GiD you can create a line by escape escape escape geometry
create
line p1 p2, but, how can you, for example assign a load onto a surface
in
Rambshell?

2) How can I save Rambshell Graphs made by Integrate-Graphs option?


Thanks in advance,


Jesús Torrecilla

_______________________________________________
GiDlist mailing list
GiDlist at gid.cimne.upc.es
http://gid.cimne.upc.es/mailman/listinfo/gidlist

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20020919/aa3411bf/attachment.htm
Post Reply