[GiDlist] Batch file problem

Hello,

it is no problem to import an IGES file in GiD using Files-Import-IGES

But when I try start GiD with “gid -b batchfile”
where batchfile contains the following two lines

Files IGESRead
./s_bauteil_6k.igs

no geometry will b imported. Does anybody know a reason for that behavior?

Your help would be appreciated.

Best Regards,
Alex

It can be that the file iges is not located, try to use the absolute path for the iges file in the batch file, for example
Files IGESRead
“C:/public/s_bauteil_6k.igs”
Also is possible that the file is correctly readed, but it is not centered in screen (in batch mode, some graphic operations, as redraws, are disabled)
After import, use the menu View-Zoom-Frame to center the piece in screen.
You can also start the batch file, with the flag +g to activate graphic operations: gid -b+g batchfile (see help, Invoking GiD)
Enrique Escolano
----- Original Message -----
From: “Alexander Muthler” alex at muthler.de
To: “GiD-list” gidlist at gatxan.cimne.upc.es
Sent: Tuesday, October 08, 2002 3:35 PM
Subject: [GiDlist] Batch file problem


Hello,
it is no problem to import an IGES file in GiD using Files-Import-IGES
But when I try start GiD with “gid -b batchfile”
where batchfile contains the following two lines
Files IGESRead
./s_bauteil_6k.igs
no geometry will b imported. Does anybody know a reason for that behavior?
Your help would be appreciated.
Best Regards,
Alex


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/20021009/cefdf46a/attachment.htm

Enrique,

Regarding your attached discussion of Menu manipulations, is there any documentation discussing the internal structure of GiD’s menus and which files are associated with which menus? In addition, is there documentation which describes how to perform manipulations such as you’ve recommended below? I would like to add the file type *.nid to the default list for Export-Calculation but have no idea where to begin.

Randy

-----Original Message-----
From: Enrique Escolano [SMTP:escolano at cimne.upc.es]
Sent: Monday, October 07, 2002 1:35 PM
To: gidlist at gatxan.cimne.upc.es
Subject: Re: [GiDlist] Length of the fields in ProblemType
This code is tested and it works. Add a menu named “NewMenu” before “Calculate”,
and add a submenu calling a window to show the classical message “hello world”.
proc InitGIDProject { dir } {
MytTestCreateMenu “NewMenu”
InsertMenuOption “NewMenu” “Hello” 0 “WarnWin "Hello world!"” “PRE”
UpdateMenus
}
proc MytTestCreateMenu {new_menu_name} {
global MenuNames MenuEntries MenuCommands MenuAcceler
set last [llength $MenuNames]
set pos1 [expr $last-1]
set pos2 [expr $last-2]
set MenuNames [linsert $MenuNames $pos2 “$new_menu_name”]
set MenuEntries($last) $MenuEntries($pos1)
set MenuCommands($last) $MenuCommands($pos1)
set MenuAcceler($last) $MenuAcceler($pos1)
set MenuEntries($pos1) $MenuEntries($pos2)
set MenuCommands($pos1) $MenuCommands($pos2)
set MenuAcceler($pos1) $MenuAcceler($pos2)
set MenuEntries($pos2) [list “”]
set MenuCommands($pos2) [list “”]
set MenuAcceler($pos2) [list “”]
}

In general unrecommended the use of too large names or excesive mumber of fields
(for problems of limitation of some internal data, and for visualization pourposes)
The names of materials and conditions are internally limited to 300 characters,
and the number of fields of a material is limited to 100 in some old procedures.
The lenght of a field is unlimited, but if it is too large, cannot be showed inside a window.
Some internal limits (e.j. the limit of 100 fields for a material) can be removed for the
next GiD 7.1.1-beta version.
The aspect of a window can change from a computer to another one, because it does not have
fixed size, It is packed dynamically. The aesthetic change can be due to the use of a different font.
Enrique

It not exist aditional information about the tcl code of GiD, but all tcl files
(located in the directory /scripts) are ascii files. Any user can read it to learn.
It is higthly unrecommended to modify this files (if update GiD are overwritten),
instead is best to change GiD with tcl scripts loaded with the problem type.

To learn to customize, see also the code of another good problemtypes, as RamSeries or Nastran.

The file GrDataMenus.tcl contain the standard values filling the arrays
of the menus ( MenuNames MenuEntries MenuCommands MenuAcceler)
The file tclfileP.tcl, contain the code to create the menus from the array (proc CreateTopMenus, etc)

The file dev_kit.tcl contain some procedures to facilitate the use to a problemtype developer
(as explained in help-Tcl-Tk extension-Managing menus)


To change the use of the menu Export-Calculation, see the value of the arrays to define this option (in GrDataMenus.tcl):

set MenuEntries(0,5) [list [_ IGES…] [_ DXF…] — [_ GiD mesh…] —
[_ Text data report…] [_ Ascii project…] [_ ON layers…] —
[_ Calculation file…] [_ Using Template .bas (only mesh)] ]

set MenuCommands(0,5) { {Files IgesWrite} {Files DXFWrite} “” {Files WriteMesh} “”
{Files WriteAscii} {Files SaveAsciiProj} {Files SaveLayer} “”
{Files WriteCalcFile} {-np- SetTemplatesMenu %W }}

set MenuAcceler(0,5) { “” “” “” “” “” “” “” “” “” “Control-x Control-c” “”}

You can change this values an call UpdateMenus

for example,
set MenuCommands(0,5) { {Files IgesWrite} {Files DXFWrite} “” {Files WriteMesh} “”
{Files WriteAscii} {Files SaveAsciiProj} {Files SaveLayer} “”
{-np- MyWriteCalc} {-np- SetTemplatesMenu %W }}

UpdateMenus

-np- is for not process MyWriteCalc as a .central.s process order, instead is a tcl order

You must define this new tcl procedure.

The common dialog to open a file used is the proc Browser-ramR (tclfileP.tcl)
(this procedure facilitate the use of tkFDialog, defined in tkfbox.tcl)

proc MyWriteCalc { } {
set ChooseType file
set OpenMode write
set w .gid
#parent witget
set title {Write nid file}
set DefaultFile {}
#set filetypes {{{Output nid data} {.nid}} {{All files} {.*}}}
#set defaultextension “”
set filetypes {{{Output nid data} {.nid}}}
set defaultextension “.nid”

to force allwais this extension

set filename [Browser-ramR $ChooseType $OpenMode $w $title $DefaultFile $filetypes $defaultextension]

if { $filename != “” } {
.central.s process Files WriteCalcFile “$filename”
}
}

Regards
Enrique Escolano

----- Original Message -----
From: “LEWIS, RANDEL E” rlewis at oppd.com
To: gidlist at gatxan.cimne.upc.es
Sent: Tuesday, October 08, 2002 4:54 PM
Subject: RE: [GiDlist] Length of the fields in ProblemType


Enrique,
Regarding your attached discussion of Menu manipulations, is there any documentation discussing the internal structure of GiD’s menus and which files are associated with which menus? In addition, is there documentation which describes how to perform manipulations such as you’ve recommended below? I would like to add the file type *.nid to the default list for Export-Calculation but have no idea where to begin.
Randy
-----Original Message-----
From: Enrique Escolano [SMTP:escolano at cimne.upc.es]
Sent: Monday, October 07, 2002 1:35 PM
To: gidlist at gatxan.cimne.upc.es
Subject: Re: [GiDlist] Length of the fields in ProblemType
This code is tested and it works. Add a menu named “NewMenu” before “Calculate”,
and add a submenu calling a window to show the classical message “hello world”.
proc InitGIDProject { dir } {
MytTestCreateMenu “NewMenu”
InsertMenuOption “NewMenu” “Hello” 0 “WarnWin "Hello world!"” “PRE”
UpdateMenus
}
proc MytTestCreateMenu {new_menu_name} {
global MenuNames MenuEntries MenuCommands MenuAcceler
set last [llength $MenuNames]
set pos1 [expr $last-1]
set pos2 [expr $last-2]
set MenuNames [linsert $MenuNames $pos2 “$new_menu_name”]
set MenuEntries($last) $MenuEntries($pos1)
set MenuCommands($last) $MenuCommands($pos1)
set MenuAcceler($last) $MenuAcceler($pos1)
set MenuEntries($pos1) $MenuEntries($pos2)
set MenuCommands($pos1) $MenuCommands($pos2)
set MenuAcceler($pos1) $MenuAcceler($pos2)
set MenuEntries($pos2) [list “”]
set MenuCommands($pos2) [list “”]
set MenuAcceler($pos2) [list “”]
}

In general unrecommended the use of too large names or excesive mumber of fields
(for problems of limitation of some internal data, and for visualization pourposes)
The names of materials and conditions are internally limited to 300 characters,
and the number of fields of a material is limited to 100 in some old procedures.
The lenght of a field is unlimited, but if it is too large, cannot be showed inside a window.
Some internal limits (e.j. the limit of 100 fields for a material) can be removed for the
next GiD 7.1.1-beta version.
The aspect of a window can change from a computer to another one, because it does not have
fixed size, It is packed dynamically. The aesthetic change can be due to the use of a different font.
Enrique


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/20021009/04960bd2/attachment.htm

Hi Enrique
Thanks so much for the last advice. I have some
problems with bas file..I didn’t know what GiD wrote
out in my bas file. The message is such:

name 0:Global_Constraints/Local_Constraintsacte
0:63type 0:1name 1:Local_Constraintsacte 1:63type 1:0


What this message means?? This is written out from
Inside GiD itself and I didn’t assign or give any
commands to write this out. I think some commands in
my bas file are not properly arranged??

Bes Regards.


\


Yahoo! - We Remember
9-11: A tribute to the more than 3,000 lives lost
http://dir.remember.yahoo.com/tribute

Send us a zip file with your problemtype and the sample model, to check it.

Enrique Escolano

----- Original Message -----
From: “VSayako Willy” vilaysako at yahoo.com
To: gidlist at gatxan.cimne.upc.es
Sent: Monday, October 14, 2002 12:32 PM
Subject: [GiDlist] Some message written out in Bas file from GiD itself


Hi Enrique
Thanks so much for the last advice. I have some
problems with bas file..I didn’t know what GiD wrote
out in my bas file. The message is such:
-----------------------------------------------------------
name 0:Global_Constraints/Local_Constraintsacte
0:63type 0:1name 1:Local_Constraintsacte 1:63type 1:0
-----------------------------------------------------------
What this message means?? This is written out from
Inside GiD itself and I didn’t assign or give any
commands to write this out. I think some commands in
my bas file are not properly arranged??
Bes Regards.

\


Yahoo! - We Remember
9-11: A tribute to the more than 3,000 lives lost
_http://dir.remember.yahoo.com/tribute_


GiDlist mailing list
GiDlist at gid.cimne.upc.es
_http://gid.cimne.upc.es/mailman/listinfo/gidlist_

Hi Enrique
With the commands written out automatically in bas
file I just found out that there were some unarrange
of using *set Cond and now I sorted out already.
My others question ar:

  1. How can we solve the problem with comments in field
    HELP:? in this line we can not even skip the line and
    some comments with HELP: is TOO LONG?? Any further
    implementation on this??
  2. When running the program inside GiD it will save
    the DATA file whenever we click the Calculate. Why
    didn’t GiD recognize the data I’ve changed in the DATA
    file through the WINDOWS EXPLORER?


    Best Regards



    \

Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos & More
http://faith.yahoo.com

I’ not understand your questions, i do not know if my answers will answer their doubts.

  1. You can use \n inside the help string to visualize this information in multiple lines.
    for example:
    HELP: Use this condition to prescribe the displacement of selected points.\nEvery marked flag will prescribe the movement for that degree of freedom.\nThe values fields permmit to set a prescribed displacement for that degree.\nUnits in International System for values are:\n\t (m) for the displacements.

  2. The calculation file data (.dat file written with calculate) for GiD is only an output file, it cannot be reloaded by GiD.
    If you modify this file externally with some ASCII editor, then you must run your code or the bat file externally, to use
    this modified file as input. (pressing calculate your modified file is overwritten)

----- Original Message -----
From: “VSayako Willy” vilaysako at yahoo.com
To: gidlist at gatxan.cimne.upc.es
Sent: Wednesday, October 16, 2002 10:05 AM
Subject: [GiDlist] Comment line in field HELP: in problemType.cnc, mat,prb


Hi Enrique
With the commands written out automatically in bas
file I just found out that there were some unarrange
of using *set Cond and now I sorted out already.
My others question ar:
1. How can we solve the problem with comments in field
HELP:? in this line we can not even skip the line and
some comments with HELP: is TOO LONG?? Any further
implementation on this??
2. When running the program inside GiD it will save
the DATA file whenever we click the Calculate. Why
didn’t GiD recognize the data I’ve changed in the DATA
file through the WINDOWS EXPLORER?

Best Regards


\


Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos & More
http://faith.yahoo.com


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/20021016/708ef3fa/attachment.htm

Hi Enrique
You got my point but what I mean it’s not the
OUTPUT of the comment in HELP: Yes we can use the \n
to skip the line for out put (visualization) but in
the file itself, I mean, we should write only one
line. In your example, we should write only one single
line instead of 3-4 or more lines otherwise GiD will
give an ERROR message.
in bas file we use *\ to maintain the commands lines.

Regards.

— Enrique Escolano escolano at cimne.upc.es wrote:
I’ not understand your questions, i do not know if
my answers will answer their doubts.
1) You can use \n inside the help string to
visualize this information in multiple lines.
for example:
HELP: Use this condition to prescribe the
displacement of selected points.\nEvery marked flag
will prescribe the movement for that degree of
freedom.\nThe values fields permmit to set a
prescribed displacement for that degree.\nUnits in
International System for values are:\n\t (m) for the
displacements.


2) The calculation file data (.dat file written with
calculate) for GiD is only an output file, it cannot
be reloaded by GiD.
If you modify this file externally with some ASCII
editor, then you must run your code or the bat file
externally, to use
this modified file as input. (pressing calculate
your modified file is overwritten)
----- Original Message -----
From: “VSayako Willy” vilaysako at yahoo.com
To: gidlist at gatxan.cimne.upc.es
Sent: Wednesday, October 16, 2002 10:05 AM
Subject: [GiDlist] Comment line in field HELP: in
problemType.cnc, mat,prb

Hi Enrique
With the commands written out automatically in
bas
file I just found out that there were some
unarrange
of using *set Cond and now I sorted out already.
My others question ar:
1. How can we solve the problem with comments in
field
HELP:? in this line we can not even skip the line
and
some comments with HELP: is TOO LONG?? Any further
implementation on this??
2. When running the program inside GiD it will
save
the DATA file whenever we click the Calculate.
Why
didn’t GiD recognize the data I’ve changed in the
DATA
file through the WINDOWS EXPLORER?

Best Regards


\


Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos & More
http://faith.yahoo.com


GiDlist mailing list
GiDlist at gid.cimne.upc.es
_http://gid.cimne.upc.es/mailman/listinfo/gidlist_


\


Yahoo! - We Remember
9-11: A tribute to the more than 3,000 lives lost
http://dir.remember.yahoo.com/tribute

Hi Willy
It not exists a order as *\ in the files .cnd, .mat or *.prb,
It does not seem essential, since a line can be as long as it is desired.

In which case would be absolutely necessary?

Enrique
----- Original Message -----
From: “VSayako Willy” vilaysako at yahoo.com
To: gidlist at gatxan.cimne.upc.es
Sent: Thursday, October 17, 2002 4:02 AM
Subject: Re: [GiDlist] Comment line in field HELP: in problemType.cnc,
mat,prb



Hi Enrique
You got my point but what I mean it’s not the
OUTPUT of the comment in HELP: Yes we can use the \n
to skip the line for out put (visualization) but in
the file itself, I mean, we should write only one
line. In your example, we should write only one single
line instead of 3-4 or more lines otherwise GiD will
give an ERROR message.
in bas file we use *\ to maintain the commands lines.
Regards.
— Enrique Escolano escolano at cimne.upc.es wrote:
I’ not understand your questions, i do not know if
my answers will answer their doubts.
1) You can use \n inside the help string to
visualize this information in multiple lines.
for example:
HELP: Use this condition to prescribe the
displacement of selected points.\nEvery marked flag
will prescribe the movement for that degree of
freedom.\nThe values fields permmit to set a
prescribed displacement for that degree.\nUnits in
International System for values are:\n\t (m) for the
displacements.


2) The calculation file data (.dat file written with
calculate) for GiD is only an output file, it cannot
be reloaded by GiD.
If you modify this file externally with some ASCII
editor, then you must run your code or the bat file
externally, to use
this modified file as input. (pressing calculate
your modified file is overwritten)
----- Original Message -----
From: “VSayako Willy” vilaysako at yahoo.com
To: gidlist at gatxan.cimne.upc.es
Sent: Wednesday, October 16, 2002 10:05 AM
Subject: [GiDlist] Comment line in field HELP: in
problemType.cnc, mat,prb

Hi Enrique
With the commands written out automatically in
bas
file I just found out that there were some
unarrange
of using *set Cond and now I sorted out already.
My others question ar:
1. How can we solve the problem with comments in
field
HELP:? in this line we can not even skip the line
and
some comments with HELP: is TOO LONG?? Any further
implementation on this??
2. When running the program inside GiD it will
save
the DATA file whenever we click the Calculate.
Why
didn’t GiD recognize the data I’ve changed in the
DATA
file through the WINDOWS EXPLORER?

Best Regards


\


Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos & More
http://faith.yahoo.com


GiDlist mailing list
GiDlist at gid.cimne.upc.es
_http://gid.cimne.upc.es/mailman/listinfo/gidlist_


\


Yahoo! - We Remember
9-11: A tribute to the more than 3,000 lives lost
_http://dir.remember.yahoo.com/tribute_


GiDlist mailing list
GiDlist at gid.cimne.upc.es
_http://gid.cimne.upc.es/mailman/listinfo/gidlist_

Dear Gid members,

I have a problem with visualisation on gauss points
for hexahedra (GID 7.0)

My example:

net.test.flavia.msh :

mesh “net.test” dimension 3 elemtype hexahedra nnode 8
coordinates
1 0.0 0.0 0.0
2 1.0 0.0 0.0
3 1.0 1.0 0.0
4 0.0 1.0 0.0
5 0.0 0.0 1.0
6 1.0 0.0 1.0
7 1.0 1.0 1.0
8 0.0 1.0 1.0
end coordinates

elements
1 1 2 3 4 5 6 7 8 1
end elements


net.test.flavia.res :


GiD Post Results File 1.0
GaussPoints “res_giv” elemtype hexahedra “net.test”
Number of Gauss Points: 8
Natural Coordinates: Given
-0.577350269189626 -0.577350269189626 -0.577350269189626
0.577350269189626 -0.577350269189626 -0.577350269189626
0.577350269189626 0.577350269189626 -0.577350269189626
-0.577350269189626 0.577350269189626 -0.577350269189626
-0.577350269189626 -0.577350269189626 0.577350269189626
0.577350269189626 -0.577350269189626 0.577350269189626
0.577350269189626 0.577350269189626 0.577350269189626
-0.577350269189626 0.577350269189626 0.577350269189626
End gausspoints

result “RESULT_GIV” “TIME ANALYSIS” 1 Scalar OnGaussPoints “res_giv”
values
1 100
100
100
100
-100
-100
-100
-100
end values


What is false???

Thanks

Hi,

in formerly versions of GiD, the program was only able to process 1 GP per
Hex.
Perhaps this might be the cause. Try to use the actual version 7.1 of GiD
which can process 1 to 3 GP per dimension and Hex.

Best Regards,
Alex

-----Original Message-----
From: gidlist-admin at gatxan.cimne.upc.es
[mailto:gidlist-admin at gatxan.cimne.upc.es]On Behalf Of Natalia Yalovenko
Sent: Monday, October 14, 2002 12:30 PM
To: gidlist at gatxan.cimne.upc.es
Subject: [GiDlist] results on gauss points for hexahedra

Dear Gid members,
I have a problem with visualisation on gauss points
for hexahedra (GID 7.0)
My example:
net.test.flavia.msh :
------------------------------------------------------------------
-------------------
mesh “net.test” dimension 3 elemtype hexahedra nnode 8
coordinates
1 0.0 0.0 0.0
2 1.0 0.0 0.0
3 1.0 1.0 0.0
4 0.0 1.0 0.0
5 0.0 0.0 1.0
6 1.0 0.0 1.0
7 1.0 1.0 1.0
8 0.0 1.0 1.0
end coordinates
elements
1 1 2 3 4 5 6 7 8 1
end elements
-------------------------------
net.test.flavia.res :
---------------------------------------------------------------
GiD Post Results File 1.0
GaussPoints “res_giv” elemtype hexahedra “net.test”
Number of Gauss Points: 8
Natural Coordinates: Given
-0.577350269189626 -0.577350269189626 -0.577350269189626
0.577350269189626 -0.577350269189626 -0.577350269189626
0.577350269189626 0.577350269189626 -0.577350269189626
-0.577350269189626 0.577350269189626 -0.577350269189626
-0.577350269189626 -0.577350269189626 0.577350269189626
0.577350269189626 -0.577350269189626 0.577350269189626
0.577350269189626 0.577350269189626 0.577350269189626
-0.577350269189626 0.577350269189626 0.577350269189626
End gausspoints
result “RESULT_GIV” “TIME ANALYSIS” 1 Scalar OnGaussPoints “res_giv”
values
1 100
100
100
100
-100
-100
-100
-100
end values
---------------------------------------------------
What is false???
Thanks



\


GiDlist mailing list
GiDlist at gid.cimne.upc.es
_http://gid.cimne.upc.es/mailman/listinfo/gidlist_

This is a known bug.
Today or tomorrow is released a corrected GiD beta version (7.1.1b)

We will send an announcement to the GiDlist as soon is available.

Enrique Escolano.

----- Original Message -----
From: “Natalia Yalovenko” Natalia.Yalovenko at ruhr-uni-bochum.de
To: gidlist at gatxan.cimne.upc.es
Sent: Monday, October 14, 2002 12:29 PM
Subject: [GiDlist] results on gauss points for hexahedra


Dear Gid members,
I have a problem with visualisation on gauss points
for hexahedra (GID 7.0)
My example:
net.test.flavia.msh :
--------------------------------------------------------------------------

mesh “net.test” dimension 3 elemtype hexahedra nnode 8
coordinates
1 0.0 0.0 0.0
2 1.0 0.0 0.0
3 1.0 1.0 0.0
4 0.0 1.0 0.0
5 0.0 0.0 1.0
6 1.0 0.0 1.0
7 1.0 1.0 1.0
8 0.0 1.0 1.0
end coordinates
elements
1 1 2 3 4 5 6 7 8 1
end elements
-------------------------------
net.test.flavia.res :
---------------------------------------------------------------
GiD Post Results File 1.0
GaussPoints “res_giv” elemtype hexahedra “net.test”
Number of Gauss Points: 8
Natural Coordinates: Given
-0.577350269189626 -0.577350269189626 -0.577350269189626
0.577350269189626 -0.577350269189626 -0.577350269189626
0.577350269189626 0.577350269189626 -0.577350269189626
-0.577350269189626 0.577350269189626 -0.577350269189626
-0.577350269189626 -0.577350269189626 0.577350269189626
0.577350269189626 -0.577350269189626 0.577350269189626
0.577350269189626 0.577350269189626 0.577350269189626
-0.577350269189626 0.577350269189626 0.577350269189626
End gausspoints
result “RESULT_GIV” “TIME ANALYSIS” 1 Scalar OnGaussPoints “res_giv”
values
1 100
100
100
100
-100
-100
-100
-100
end values
---------------------------------------------------
What is false???
Thanks



\


GiDlist mailing list
GiDlist at gid.cimne.upc.es
_http://gid.cimne.upc.es/mailman/listinfo/gidlist_