[GiDlist] Node Numbering convention in GiD

Moderator: GiD Team

Vilaysak Sayakoummane

[GiDlist] Node Numbering convention in GiD

Post by Vilaysak Sayakoummane »

Hi Guys
If any of you happened to know about node numbering
convention for element connectivity in GiD..especially
for 4 node and 8 node shell element..I'm still
confused with that..My previous FEM is such:

.s .s
2............1 2....5.....1
. . . . . .
. .........r 6. .....8...r
. . . .
3............4 3....7.....4
4 node 8 node
How we could make it satisfied with our own previous
Convention??

Thanks


__________________________________________________
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com
Miguel A. de Riera Pasenau

[GiDlist] Node Numbering convention in GiD

Post by Miguel A. de Riera Pasenau »

hi,
the conectivities are the ones described in:

http://gid.cimne.com/support/gid_16.subst#cuad4.gif
http://gid.cimne.com/support/gid_16.subst#cuad8.gif
http://gid.cimne.com/support/gid_16.subst#cuad9.gif

you can also create a quadratic quadrilateral mesh
example in gid(pre), do a label all nodes and
list one of the elements (utilities-list-elements)
and you'll get the ordering of the nodes in gid.
i think this match with your description, or not?

miguel

Vilaysak Sayakoummane wrote:

Hi Guys
If any of you happened to know about node numbering
convention for element connectivity in GiD..especially
for 4 node and 8 node shell element..I'm still
confused with that..My previous FEM is such:

.s .s
2............1 2....5.....1
. . . . . .
. .........r 6. .....8...r
. . . .
3............4 3....7.....4
4 node 8 node
How we could make it satisfied with our own previous
Convention??

Thanks

__________________________________________________
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com
_______________________________________________
GiDlist mailing list
GiDlist at gid.cimne.upc.es
http://gid.cimne.upc.es/mailman/listinfo/gidlist

--
--------------------------------------------------------------------------------
Miguel A. de Riera Pasenau miguel at cimne.upc.es http://gid.cimne.upc.es
Vilaysak Sayakoummane

[GiDlist] Want to move my own problem type to a new menu

Post by Vilaysak Sayakoummane »

Hi Guys..
Thank Miguel for your response..
Another thing for me that I want to know is: We can
create a new menu inserted into the main menu of
GiD..What about if after having created the new menu
name for example "Fanthom" then I want to move all my
problem type to this menu..HOw we can make it work..
Usually the problemtype_name(Fanthom.gid) is working
only when it is contained in Problemtype directory of
original gid.

Regards..

Willy.

__________________________________________________
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com
Miguel A. de Riera Pasenau

[GiDlist] Want to move my own problem type to a new menu

Post by Miguel A. de Riera Pasenau »

Hi,

How to create and modify the GiD menus are described in our web site,
under 'Support-On-line Manual-TclTk Extensions: Managing menus':
http://gid.cimne.com/support/gid_17.subst#SEC255

To do so, a file called, in your case, 'Fanthom.tcl' should be present
inside the 'Fanthom.gid' problem-type directory.
To modify/create the menus when you problem type is loaded, you should
define the function

proc InitGIDProject { dir } {
...body(1)...
}

which will be executed when the problem type is selected from within GiD,
or when called like 'gid -p fanthom.gid' to load the problem type
automatically when starting GiD, ( do 'gid -help' for more information).

Inside the 'InitGIDProject' procedure you have to call following functions:

· reateMenu new_menu_name PRE/POST/PREPOST -------- to create the menu
· InsertMenuOption menu_name option_name position command PRE/POST/PREPOST ------ to add options
· RemoveMenuOption menu_name option_name PRE/POST/PREPOST -------- to delete a menu option
· UpdateMenus ------- so the menu bar is rebuild to reflect the changes made before.

hope it helps,

miguel

Vilaysak Sayakoummane wrote:

Hi Guys..
Thank Miguel for your response..
Another thing for me that I want to know is: We can
create a new menu inserted into the main menu of
GiD..What about if after having created the new menu
name for example "Fanthom" then I want to move all my
problem type to this menu..HOw we can make it work..
Usually the problemtype_name(Fanthom.gid) is working
only when it is contained in Problemtype directory of
original gid.

Regards..

Willy.

__________________________________________________
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com
_______________________________________________
GiDlist mailing list
GiDlist at gid.cimne.upc.es
http://gid.cimne.upc.es/mailman/listinfo/gidlist

--
--------------------------------------------------------------------------------
Miguel A. de Riera Pasenau miguel at cimne.upc.es http://gid.cimne.upc.es
Vilaysak Sayakoummane

[GiDlist] All submenus didn't work in the new menu

Post by Vilaysak Sayakoummane »

Hi Miguel
Thanks so much for replying. I have done with the
new menu and all submenu but when clicking on those
submenus it didn't work at all..Not like when clicking
under Problemtype. How can we make it work. How can
those submenu communicate with GiD???


--- "Miguel A. de Riera Pasenau" miguel at cimne.upc.es
wrote:
Hi,

How to create and modify the GiD menus are described
in our web site,
under 'Support-On-line Manual-TclTk Extensions:
Managing menus':
http://gid.cimne.com/support/gid_17.subst#SEC255

To do so, a file called, in your case, 'Fanthom.tcl'
should be present
inside the 'Fanthom.gid' problem-type directory.
To modify/create the menus when you problem type is
loaded, you should
define the function

proc InitGIDProject { dir } {
...body(1)...
}

which will be executed when the problem type is
selected from within GiD,
or when called like 'gid -p fanthom.gid' to load the
problem type
automatically when starting GiD, ( do 'gid -help'
for more information).

Inside the 'InitGIDProject' procedure you have to
call following functions:

· reateMenu new_menu_name PRE/POST/PREPOST --------
to create the menu
· InsertMenuOption menu_name option_name position
command PRE/POST/PREPOST ------ to add options
· RemoveMenuOption menu_name option_name
PRE/POST/PREPOST -------- to delete a menu option
· UpdateMenus ------- so the menu bar is rebuild to
reflect the changes made before.

hope it helps,

miguel

Vilaysak Sayakoummane wrote:

Hi Guys..
Thank Miguel for your response..
Another thing for me that I want to know is: We
can
create a new menu inserted into the main menu of
GiD..What about if after having created the new
menu
name for example "Fanthom" then I want to move all
my
problem type to this menu..HOw we can make it
work..
Usually the problemtype_name(Fanthom.gid) is
working
only when it is contained in Problemtype directory
of
original gid.

Regards..

Willy.

__________________________________________________
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com
_______________________________________________
GiDlist mailing list
GiDlist at gid.cimne.upc.es
http://gid.cimne.upc.es/mailman/listinfo/gidlist

--

--------------------------------------------------------------------------------
Miguel A. de Riera Pasenau miguel at cimne.upc.es
http://gid.cimne.upc.es
_______________________________________________
GiDlist mailing list
GiDlist at gid.cimne.upc.es
http://gid.cimne.upc.es/mailman/listinfo/gidlist


__________________________________________________
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com
Miguel A. de Riera Pasenau

[GiDlist] All submenus didn't work in the new menu

Post by Miguel A. de Riera Pasenau »

Hello,

here you have an example: TclTkExample.tgz
which add a menu, with two options:
'Window popup' with show a window that creates a quadrilateral
'status' which gets the number of lines from gid.

more information about the Tcltk GiD commands can be found
under
GiD online manual-Tcl-Tk extension-Control functions
at
http://gid.cimne.com/support/gid_17.subst#SEC252.

You can find also TclTk man pages and tutorials at
http://gid.cimne.com/ManHtml/index.html

hope it helps,

miguel

Vilaysak Sayakoummane wrote:

Hi Miguel
Thanks so much for replying. I have done with the
new menu and all submenu but when clicking on those
submenus it didn't work at all..Not like when clicking
under Problemtype. How can we make it work. How can
those submenu communicate with GiD???

--- "Miguel A. de Riera Pasenau" miguel at cimne.upc.es
wrote:
Hi,

How to create and modify the GiD menus are described
in our web site,
under 'Support-On-line Manual-TclTk Extensions:
Managing menus':
http://gid.cimne.com/support/gid_17.subst#SEC255

To do so, a file called, in your case, 'Fanthom.tcl'
should be present
inside the 'Fanthom.gid' problem-type directory.
To modify/create the menus when you problem type is
loaded, you should
define the function

proc InitGIDProject { dir } {
...body(1)...
}

which will be executed when the problem type is
selected from within GiD,
or when called like 'gid -p fanthom.gid' to load the
problem type
automatically when starting GiD, ( do 'gid -help'
for more information).

Inside the 'InitGIDProject' procedure you have to
call following functions:

· reateMenu new_menu_name PRE/POST/PREPOST --------
to create the menu
· InsertMenuOption menu_name option_name position
command PRE/POST/PREPOST ------ to add options
· RemoveMenuOption menu_name option_name
PRE/POST/PREPOST -------- to delete a menu option
· UpdateMenus ------- so the menu bar is rebuild to
reflect the changes made before.

hope it helps,

miguel

Vilaysak Sayakoummane wrote:

Hi Guys..
Thank Miguel for your response..
Another thing for me that I want to know is: We
can
create a new menu inserted into the main menu of
GiD..What about if after having created the new
menu
name for example "Fanthom" then I want to move all
my
problem type to this menu..HOw we can make it
work..
Usually the problemtype_name(Fanthom.gid) is
working
only when it is contained in Problemtype directory
of
original gid.

Regards..

Willy.

__________________________________________________
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com
_______________________________________________
GiDlist mailing list
GiDlist at gid.cimne.upc.es
http://gid.cimne.upc.es/mailman/listinfo/gidlist

--

--------------------------------------------------------------------------------
Miguel A. de Riera Pasenau miguel at cimne.upc.es
http://gid.cimne.upc.es
_______________________________________________
GiDlist mailing list
GiDlist at gid.cimne.upc.es
http://gid.cimne.upc.es/mailman/listinfo/gidlist

__________________________________________________
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com
_______________________________________________
GiDlist mailing list
GiDlist at gid.cimne.upc.es
http://gid.cimne.upc.es/mailman/listinfo/gidlist

--
--------------------------------------------------------------------------------
Miguel A. de Riera Pasenau miguel at cimne.upc.es http://gid.cimne.upc.es
-------------- next part --------------
A non-text attachment was scrubbed...
Name: TclTkExample.tgz
Type: application/x-tgz-compressed
Size: 77826 bytes
Desc: not available
Url : http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20020802/5f516f2d/attachment.bin
Ramon Ribó

[GiDlist] Want to move my own problem type to a new menu

Post by Ramon Ribó »

Hello,

The best way of learning is by example. Make a:

Data-Problemtypes-Internet retrieve-RamSeries4

and investigate rambshell.tcl

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 Vilaysak
Sayakoummane
Enviado el: jueves, 01 de agosto de 2002 7:07
Para: gidlist at gatxan.cimne.upc.es
Asunto: [GiDlist] Want to move my own problem type to a new menu


Hi Guys..
Thank Miguel for your response..
Another thing for me that I want to know is: We can
create a new menu inserted into the main menu of
GiD..What about if after having created the new menu
name for example "Fanthom" then I want to move all my
problem type to this menu..HOw we can make it work..
Usually the problemtype_name(Fanthom.gid) is working
only when it is contained in Problemtype directory of
original gid.

Regards..

Willy.

__________________________________________________
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com
_______________________________________________
GiDlist mailing list
GiDlist at gid.cimne.upc.es
http://gid.cimne.upc.es/mailman/listinfo/gidlist
Vilaysak Sayakoummane

[GiDlist] Re: [GiDlist]Still Files in New Menu.

Post by Vilaysak Sayakoummane »

Hi there
Thank Miguel and Ramon for your replying. Miguel
thank again for your attached files. In addition, what
I need to know more are:
1. How all the files,refer to your ProblemType
tclTkExample files, (TclTkExample.cnd,
TcltkExample.prb, clTkExample.mat, TclTkExample.bas,
and so on. These files are standard file in
problemtype_name) work in this new Menu
TclTkExample.
2. Can we have TclTk file in the Problemtype_name more
than 1? in case I need to create more windows and more
modifications? if this file could be only 1 name then
it would be to big to get lost easily.
3. How can we make ProblemType_name files as hidden
files,. in case we don't want the Users see our source
codes.
4. How could we avoid having all the files like files
.cnd, *.prb, *.mat, *.unit rewritten again in the
project_name files. For example, I run my project
problem in my problemType_name (Fanthom.gid) and I
save the project problem as "cantilever.gid".. After
clicking Calculate then I got the results..In this
folder cantilever.gid, why I still have those files
cantilever.cnd, cantilever.prb, cantilever.mat
actullay those files are unnecessary to be written out
again. This is waste of computer memories. Do you have
any option to avoid having those files written out
again?

Regards

__________________________________________________
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com
Miguel A. de Riera Pasenau

[GiDlist] Re: [GiDlist]Still Files in New Menu.

Post by Miguel A. de Riera Pasenau »

hello,

1. i just put an empty .prb file so that gid recognizes
the TclTkExample.gid as a problem type.
I didn't define any condition, materials nor problem
data, so the other files are not needed.
( .cnd, .bas, .mat, .bas)
2. Sure, you can have as many tcl files as you want, but
remember to use the 'source' tcl-command in your
'proc InitGidProject {}' routine. For examle:

YourProblemType.tcl:
(...)
proc InitGIDProject { dir } {
(...)
set YourProblemTypeDirectory $dir
source [ file join $YourProblemTypeDirectory AnotherTclFile1.tcl]
source [ file join $YourProblemTypeDirectory AnotherTclFile2.tcl]
source [ file join $YourProblemTypeDirectory AnotherTclFile3.tcl]
(...)
}
(...)

This 'source' command reads and executes the contents of these files,
so if you define procedures/functions/commands inside these files,
after the 'source' command you can use them.

3. by now there is no way to make tcl-files hidden to the user, or to
encrypt them.
One way is to have the tcl-files encrypted and let the 'InitGIDProject'
call an external program do unencrypt them, make the 'source', and
delete the unencrypted files. Once the 'source' command is issued,
the other tcl-files are not longer needed, so you can delete them.


YourProblemType.tcl:
(...)
proc InitGIDProject { dir } {
(...)
set YourProblemTypeDirectory $dir
set old_dir [ pwd]
cd TemporaryDirectory "YourTemporalDirectory"
foreach file "AnotherTclFile1.tcl AnotherTclFile2.tcl AnotherTclFile3.tcl" {
set abs_file [ file join $YourProblemTypeDirectory $file]
set tmp_file [ file join $TemporaryDirectory $file.tmp]
exec [ file join $YourProblemTypeDirectory Unencrypt] $abs_file $tmp_file
source $tmp_file
file delete $tmp_file
}
cd $old_dir
(...)
}
(...)

4. the reason for the files to be present is to allow user to view, mesh the
project on another machine, or pass the example to another colegue,
to view the materials assignement, conditions, problem data, and so on,
with no need to copy the whole problem type.
Also avoids compatibility problems which surely appears when something
is changed in the conditions, materials or problem data of the problem
type and the data from the project can not be matched with the new rules.
Instead of having a useless project, with this method you still have a
useful and working project. There is a posibility to change, actualize
the problem type of an old project inside GiD.
Note that nor the .tcl files, nor the calculation executable are copied
to the project.gid directory.
beside this, the size of these files is insignificant to the sizes of
the .msh, .geo or the .dat file of a big project ( thousand of surfaces
or millions of elements).

hope it helps.

miguel

Vilaysak Sayakoummane wrote:

Hi there
Thank Miguel and Ramon for your replying. Miguel
thank again for your attached files. In addition, what
I need to know more are:
1. How all the files,refer to your ProblemType
tclTkExample files, (TclTkExample.cnd,
TcltkExample.prb, clTkExample.mat, TclTkExample.bas,
and so on. These files are standard file in
problemtype_name) work in this new Menu
TclTkExample.
2. Can we have TclTk file in the Problemtype_name more
than 1? in case I need to create more windows and more
modifications? if this file could be only 1 name then
it would be to big to get lost easily.
3. How can we make ProblemType_name files as hidden
files,. in case we don't want the Users see our source
codes.
4. How could we avoid having all the files like files
.cnd, *.prb, *.mat, *.unit rewritten again in the
project_name files. For example, I run my project
problem in my problemType_name (Fanthom.gid) and I
save the project problem as "cantilever.gid".. After
clicking Calculate then I got the results..In this
folder cantilever.gid, why I still have those files
cantilever.cnd, cantilever.prb, cantilever.mat
actullay those files are unnecessary to be written out
again. This is waste of computer memories. Do you have
any option to avoid having those files written out
again?

Regards

__________________________________________________
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com
_______________________________________________
GiDlist mailing list
GiDlist at gid.cimne.upc.es
http://gid.cimne.upc.es/mailman/listinfo/gidlist

--
--------------------------------------------------------------------------------
Miguel A. de Riera Pasenau miguel at cimne.upc.es http://gid.cimne.upc.es
Vilaysak Sayakoummane

[GiDlist] Re: [GiDlist]New Menu

Post by Vilaysak Sayakoummane »

Hi
Thank Miguel for your last reply. YOu didn't get my
point but your reply is so valuable anyway. I attached
file for you so that you may understand how I would
like to do..

Best regards



__________________________________________________
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: New Problemtype menu.zip
Type: application/x-zip-compressed
Size: 62063 bytes
Desc: New Problemtype menu.zip
Url : http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20020807/684fa658/attachment.bin
Post Reply