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
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
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
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.
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.
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.
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.
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:
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.
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.
How can we make ProblemType_name files as hidden
files,. in case we don’t want the Users see our source
codes.
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
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)
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:
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.
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
(…)
}
(…)
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
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
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 ------------------------------------------------------------------------------------------------------------------------------------ Name: New Problemtype menu.zip New Problemtype menu.zip Type: Zip Compressed Data (application/x-zip-compressed) Encoding: base64 Description: New Problemtype menu.zip
Hi there
Thank Miguel for your reply. I’ll try it as you
adviced,especially I have to look on TclTk part
deeply.
Another small thing I would like to ask again is:
in my Problemtype.bas file I used *CondNumEntities
to get number of nodes that assigned Loads on it. When
I assigned the different loads on the same one node
then I get number of Point load equals only 1. For
example, on node #53 I assigned Load Fx=10, Fy=20,
Mx=45,My=60 then my data file result is:
Number of Point Load = 1 (usually should be 4)
Node number Fx Fy Fz Mx My Mz
53 10 20 0 45 60 0
I try to use *set cond Point_Load *CanRepeat but I
didn’t get the number of Laods equals 4.
How can we solve this problem?? I am sure that it
should be some command to deal with this??
Regards.
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
Hi there Thank Miguel for your reply. I’ll try it as you adviced,especially I have to look on TclTk part deeply. Another small thing I would like to ask again is: in my Problemtype.bas file I used *CondNumEntities to get number of nodes that assigned Loads on it. When I assigned the different loads on the same one node then I get number of Point load equals only 1. For example, on node #53 I assigned Load Fx=10, Fy=20, Mx=45,My=60 then my data file result is: Number of Point Load = 1 (usually should be 4) Node number Fx Fy Fz Mx My Mz 53 10 20 0 45 60 0 I try to use *set cond Point_Load *CanRepeat but I didn’t get the number of Laods equals 4. How can we solve this problem?? I am sure that it should be some command to deal with this?? Regards.
Hi Enrique
Thanks so much for your immediate reply. I got
ideas from your advice and I’ll apply to other
problems too.
Many thanks..
— Enrique Escolano escolano at cimne.upc.es wrote: *condnumentities count the number of entities with an applied contition, and Fx, Fy, … are fields of the same condition Use an auxiliary loop to count the number of fields with not zero value example: (for a condition named Point-Load, and fields named Fx, Fy, etc) *set var cont=0 *set cond Point-Load *nodes *canrepeat *loop nodes onlyincond *if(cond(Fx,real)!=0) *set var cont=operation(cont+1) *endif *if(cond(Fy,real)!=0) *set var cont=operation(cont+1) *endif *if(cond(Fz,real)!=0) *set var cont=operation(cont+1) *endif *if(cond(Mx,real)!=0) *set var cont=operation(cont+1) *endif *if(cond(My,real)!=0) *set var cont=operation(cont+1) *endif *if(cond(Mz,real)!=0) *set var cont=operation(cont+1) *endif *end nodes Nº total= *cont Regards Enrique Escolano ----- Original Message ----- From: “Vilaysak Sayakoummane” vilaysako at yahoo.com To: gidlist at gatxan.cimne.upc.es Sent: Monday, August 12, 2002 5:01 AM Subject: Re: [GiDlist] Re: [GiDlist]New Menu
Hi there Thank Miguel for your reply. I’ll try it as you adviced,especially I have to look on TclTk part deeply. Another small thing I would like to ask again is: in my Problemtype.bas file I used *CondNumEntities to get number of nodes that assigned Loads on it. When I assigned the different loads on the same one node then I get number of Point load equals only 1. For example, on node #53 I assigned Load Fx=10, Fy=20, Mx=45,My=60 then my data file result is: Number of Point Load = 1 (usually should be 4) Node number Fx Fy Fz Mx My Mz 53 10 20 0 45 60 0 I try to use *set cond Point_Load *CanRepeat but I didn’t get the number of Laods equals 4. How can we solve this problem?? I am sure that it should be some command to deal with this?? Regards.
Hi all GiDs
I have problem with GiD.7 when trying to write the
CalFile. I have no problem when using with GiD6.2 but
when transferring my ProblemType to GiD.7 I noticed
that so many options included.
In problemType_name.mat, in GiD.7 allows only 100
fields. Actually my fields (QUESTION:) are more than
100. My question is:
Do you have any option to ovoid this limitation?
In case I have more fields in this
ProblemType_name.mat file. Can GiD allow to have more
than 1 file of ProblemType_name.mat file?
If not from two listed above how should we solve
this problem?
Best regards.
\
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
The maximum number of fields of a material has not been reduced from version
6.2 to 7.x
Please, send us your problem type, and a small example, to detect the
problem.
(can send if prefers directly to escolano at cimne.upc.es)
Enrique Escolano
----- Original Message -----
From: “Vilaysak Sayakoummane” vilaysako at yahoo.com
To: gidlist at gatxan.cimne.upc.es
Sent: Monday, August 26, 2002 6:47 AM
Subject: Re: [GiDlist] Re: [GiDlist]New Menu
Hi all GiDs I have problem with GiD.7 when trying to write the CalFile. I have no problem when using with GiD6.2 but when transferring my ProblemType to GiD.7 I noticed that so many options included. In problemType_name.mat, in GiD.7 allows only 100 fields. Actually my fields (QUESTION:) are more than 100. My question is: 1. Do you have any option to ovoid this limitation? 2. In case I have more fields in this ProblemType_name.mat file. Can GiD allow to have more than 1 file of ProblemType_name.mat file? 3. If not from two listed above how should we solve this problem? Best regards.
Hi
Thank Enrique, I’ll send the files to you through
your mail later for the Mat file. Now I just want to
check it again whether because of Mat file or bas
file.
Other questions are:
I just want to know if GiD can process the command
DEPENDENCIES across the fields in the BOOK: to
other fields or TITLE in other BOOKs??
as I tried DEPENDENCIES can only be effective inside
the same BOOK by using TITLESTATE:TITLE
command..not BOOK to BOOK
HOw we use the DEPENDENCIES across the Windows to
other windows (BOOK to BOOK) in ProblemType files?
I tried to read the BackgroundMesh but nothing
shows up. HOw this thing really works out? there is
not enough info yet about this in the online document.
Thanks in advance.
Best Regards
Willy
\
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
It is not available at this moment, to access with dependencies across
fields of different materials, conditions or problem data.
This must be enhanced for future versions.
The background mesh is not showed to the user, it is used only to assign
sizes for the new mesh.
To view this background mesh shape, you can read as mesh with
Files-Import-GiD Mesh (mesh sizes are ignored)
To view the assigned sizes for test pourposes, you can write an auxiliar
postprocess result file, with the desired size as scalar result, and read it
in GiD postprocess.
Hi Thank Enrique, I’ll send the files to you through your mail later for the Mat file. Now I just want to check it again whether because of Mat file or bas file. Other questions are: I just want to know if GiD can process the command DEPENDENCIES across the fields in the BOOK: to other fields or TITLE in other BOOKs?? as I tried DEPENDENCIES can only be effective inside the same BOOK by using TITLESTATE:TITLE command..not BOOK to BOOK 1. HOw we use the DEPENDENCIES across the Windows to other windows (BOOK to BOOK) in ProblemType files? 2. I tried to read the BackgroundMesh but nothing shows up. HOw this thing really works out? there is not enough info yet about this in the online document. Thanks in advance. Best Regards Willy
Hi there
Thank Miguel for your reply. I’ll try it as you
adviced,especially I have to look on TclTk part
deeply.
Another small thing I would like to ask again is:
in my Problemtype.bas file I used *CondNumEntities
to get number of nodes that assigned Loads on it. When
I assigned the different loads on the same one node
then I get number of Point load equals only 1. For
example, on node #53 I assigned Load Fx=10, Fy=20,
Mx=45,My=60 then my data file result is:
Number of Point Load = 1 (usually should be 4)
Node number Fx Fy Fz Mx My Mz
53 10 20 0 45 60 0
I try to use *set cond Point_Load *CanRepeat but I
didn’t get the number of Laods equals 4.
How can we solve this problem?? I am sure that it
should be some command to deal with this??
Regards.
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
Hi there
Please give your advice!!!
I’m working on “Pressure Load” for Solid element.
How can we have GiD to select the Face of the solid
element??is there any possibility? in my file .cnd, I
used
CONDTYPE:over surfaces
but when selecting the element it was selected as a
whole element not a surface (or face of element). How
we deal with this kinda problem?
Best regards.
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
The condition must be defined over face elems, not over body elems
CONDTYPE:over surfaces
CONDMESHTYPE:over face elems
It is best assign the conditions over the geometry (surfaces), not over the elements directly.
If you draw this condition only is coloured the selected faces.
You can list the faces in the bas file with *globalnodes or *localnodes (inside a loop elements onlyincondition)
Enrique
----- Original Message -----
From: “Vilaysak Sayakoummane” vilaysako at yahoo.com
To: gidlist at gatxan.cimne.upc.es
Sent: Wednesday, August 14, 2002 1:04 PM
Subject: [GiDlist] HOw to select a face of a Solid element
Hi there Please give your advice!!! I’m working on “Pressure Load” for Solid element. How can we have GiD to select the Face of the solid element??is there any possibility? in my file .cnd, I used CONDTYPE:over surfaces but when selecting the element it was selected as a whole element not a surface (or face of element). How we deal with this kinda problem? Best regards.