[GiDlist] Batch file problem

Moderator: GiD Team

Alexander Muthler

[GiDlist] Batch file problem

Post by Alexander Muthler »

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
LEWIS, RANDEL E

[GiDlist] Length of the fields in ProblemType

Post by LEWIS, RANDEL E »

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

Enrique Escolano

[GiDlist] Batch file problem

Post by Enrique Escolano »

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 Escolano

[GiDlist] Length of the fields in ProblemType

Post by Enrique Escolano »

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
Natalia Yalovenko

[GiDlist] results on gauss points for hexahedra

Post by Natalia Yalovenko »

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
VSayako Willy

[GiDlist] Some message written out in Bas file from GiD itse

Post by VSayako Willy »

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
Alexander Muthler

[GiDlist] results on gauss points for hexahedra

Post by Alexander Muthler »

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
Enrique Escolano

[GiDlist] Some message written out in Bas file from GiD itse

Post by Enrique Escolano »

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

Enrique Escolano

[GiDlist] results on gauss points for hexahedra

Post by Enrique Escolano »

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

VSayako Willy

[GiDlist] Comment line in field <HELP:> in problemType.cnc,

Post by VSayako Willy »

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
Post Reply