[GiDlist] InitGIDProject-LoadGIDProject

Moderator: GiD Team

Enrique Escolano

[GiDlist] Still..How to write data out for #MAT#('BookNa

Post by Enrique Escolano »

This is a sample (also attached) to inquire the fields of a material from the bas file with a *tcl command

Copy this tcl procedure inside the file "problemtypename".tcl

proc WriteMatFields { matname } {
set ret ""
set fields [.central.s info material $matname]
set n [lindex $fields 0]
for { set i 0 } { $i $n } { incr i } {
append ret [lindex $fields [expr $i*2+1]]
append ret " "
append ret [lindex $fields [expr $i*2+2]]
append ret "\n"
}
return $ret
}

To call from the "problemtypename".bas file use *tcl(order_tcl parameter) :

- USED MATERIALS -
*loop materials
[*MatProp(0)]
*tcl(WriteMatFields *MatProp(0))

*end materials

- UNUSED MATERIALS -
*loop materials *NotUsed
[*MatProp(0)]
*tcl(WriteMatFields *MatProp(0))

*end materials

For more info about the standard tcl languaje, visit http://tcl.activestate.com
For more info about specific GiD tcl commands, see Help-TCL-TK Extension

Enrique Escolano

----- Original Message -----
From: "VSayako Willy" vilaysako at yahoo.com
To: gidlist at gatxan.cimne.upc.es
Sent: Thursday, September 26, 2002 4:08 AM
Subject: [GiDlist] Still..How to write data out for #MAT#('BookName') Option in .bas file


Hi Enrique
Thanks for your reply. I got your point but what I
need to write out is the fields in the material name,
for example.
in my mat file:
BOOK:Material_Properties
NUMBER:1 MATERIAL:ISO~PLASTIC
QUESTION:Young_Modulus_E
VALUE:1e4
QUESTION:Poisson_ratio
VALUE:0.3
...
END MATERIAL
NUMBER:2 MATERIAL:COMPOSITE
QUESTION:Young_Modulus_Ex
VALUE:1e6
QUESTION:Poisson_ratio_vx
VALUE:0.33
...
END MATERIAL
BOOK:Geometry_Properties
NUMBER:3 MATERIAL:Element_Thickness
QUESTION:Thickness
VALUE:0.1
QUESTION:Assigned_Material#MAT#(Material_Properties)
VALUE:ISOTROPIC
END MATERIAL
---------------------------------------
and in my data file I want to list the fields as
follows:
ISOTROPIC CASE:
Young_Modulus_E Poisson_ratio thickness
......
COMPOSITE CASE:
Young_Modulus_Ex Poisson_ratio_vx thicness
......

I tried to write out as usual way but fields in Book
Material Properties are not regconized.

Regards






--- Enrique Escolano escolano at cimne.upc.es wrote:
If you use for example as a field of a material
(book Geometry) a field with another material (book
Material)
QUESTION:Composition_Material#MAT#(Material)
VALUE:AISI_4340_STEEL

Then, in the bas file, the name of the selected
material is obtained with *MatProp
*matprop(Composition_Material)
The number of this material is obtained with
*matnum(matprop(Composition_Material))
for example:

*loop materials
*set var MID=matnum(matprop(Composition_Material))
*set var PID=matnum()
Geometry material num=*PID Compition Material
number=*MID
*end materials

Download the problemtype Nastran to see a god sample
with #MAT# fields
(download directly from the menu Data-Problem
Type-Internet Retrieve, Retrieve list)

Enrique

----- Original Message -----
From: "VSayako Willy" vilaysako at yahoo.com
To: gidlist at gatxan.cimne.upc.es
Sent: Wednesday, September 25, 2002 11:29 AM
Subject: [GiDlist] How to write data out for
#MAT#('BookName') Option in .bas file


Hi Enrique and all
Continue to ask about the following question:
Please advice the #MAT#('BookName')option.
When we use this option how we write the bas file
out?

in my .mat file I seperated as your advice, which
is
before I had more than 100 fields. I now have
Material Properties and Geometry Properties.
Now
how to write the Material properties out??in bas
file
by using #MAT# option. Hope you got my point.

Best regards.


__________________________________________________
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
http://sbc.yahoo.com
_______________________________________________
GiDlist mailing list
GiDlist at gid.cimne.upc.es
http://gid.cimne.upc.es/mailman/listinfo/gidlist




__________________________________________________
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
http://sbc.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/20020926/951e66d4/attachment.htm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: SampleTclMatFields.gid.zip
Type: application/x-zip-compressed
Size: 940 bytes
Desc: not available
Url : http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20020926/951e66d4/attachment.bin
VSayako Willy

[GiDlist] Material, Property and .gif files in mat file

Post by VSayako Willy »

Hi Enrique
Many thanks for your advice.For USING WITH THE ID
defining the type of material or property is very good
IDEAS.I have tried to work it out. Actually, in my
case I have Material Property and Geometry
Property in one file,(Mat file), same as in Nastran.
In Nastran the Material Property is not to be
assigned(I don't know also how you worked it out and
how we can get the mat prop in data file). In my case
when I put the values of the material in the field
boxes then GiD ask to assign then I assigned. Then I
go for Geometry Property did the same way, select
and assign. Then write the data file out. The fields
in Material Property were not written out but only
the fields in Geometry Property. I realized that GiD
recognizes only the last assignment in Mat file. What
I did now is like that: Copy the whole fields in
Material property to the Geometry property and make
both property as one Material then it works with no
problem, but it seems idiot because I have to repeat
the same material again and again.
--------------
Gif files
--------------
In my mat file I included a lot of IMAGE:***.gif. Now
I would like to have those gif file in seperate
folder. How should we write in problemtype.tcl to
control those gif files?? I looked at those examples
attached with GiD.7 but still could not figure out.
--------------

Thanks so much again

Best regards

--- Enrique Escolano escolano at cimne.upc.es wrote:
This is a sample (also attached) to inquire the
fields of a material from the bas file with a *tcl
command

Copy this tcl procedure inside the file
"problemtypename".tcl

proc WriteMatFields { matname } {
set ret ""
set fields [.central.s info material $matname]
set n [lindex $fields 0]
for { set i 0 } { $i $n } { incr i } {
append ret [lindex $fields [expr $i*2+1]]
append ret " "
append ret [lindex $fields [expr $i*2+2]]
append ret "\n"
}
return $ret
}

To call from the "problemtypename".bas file use
*tcl(order_tcl parameter) :

- USED MATERIALS -
*loop materials
[*MatProp(0)]
*tcl(WriteMatFields *MatProp(0))

*end materials

- UNUSED MATERIALS -
*loop materials *NotUsed
[*MatProp(0)]
*tcl(WriteMatFields *MatProp(0))

*end materials

For more info about the standard tcl languaje, visit
http://tcl.activestate.com
For more info about specific GiD tcl commands, see
Help-TCL-TK Extension

Enrique Escolano

----- Original Message -----
From: "VSayako Willy" vilaysako at yahoo.com
To: gidlist at gatxan.cimne.upc.es
Sent: Thursday, September 26, 2002 4:08 AM
Subject: [GiDlist] Still..How to write data out for
#MAT#('BookName') Option in .bas file


Hi Enrique
Thanks for your reply. I got your point but
what I
need to write out is the fields in the material
name,
for example.
in my mat file:
BOOK:Material_Properties
NUMBER:1 MATERIAL:ISO~PLASTIC
QUESTION:Young_Modulus_E
VALUE:1e4
QUESTION:Poisson_ratio
VALUE:0.3
...
END MATERIAL
NUMBER:2 MATERIAL:COMPOSITE
QUESTION:Young_Modulus_Ex
VALUE:1e6
QUESTION:Poisson_ratio_vx
VALUE:0.33
...
END MATERIAL
BOOK:Geometry_Properties
NUMBER:3 MATERIAL:Element_Thickness
QUESTION:Thickness
VALUE:0.1

QUESTION:Assigned_Material#MAT#(Material_Properties)
VALUE:ISOTROPIC
END MATERIAL
---------------------------------------
and in my data file I want to list the fields as
follows:
ISOTROPIC CASE:
Young_Modulus_E Poisson_ratio thickness
......
COMPOSITE CASE:
Young_Modulus_Ex Poisson_ratio_vx thicness
......

I tried to write out as usual way but fields in
Book
Material Properties are not regconized.

Regards








--- Enrique Escolano escolano at cimne.upc.es
wrote:
If you use for example as a field of a material
(book Geometry) a field with another material
(book
Material)
QUESTION:Composition_Material#MAT#(Material)
VALUE:AISI_4340_STEEL

Then, in the bas file, the name of the selected
material is obtained with *MatProp
*matprop(Composition_Material)
The number of this material is obtained with
*matnum(matprop(Composition_Material))
for example:

*loop materials
*set var
MID=matnum(matprop(Composition_Material))
*set var PID=matnum()
Geometry material num=*PID Compition Material
number=*MID
*end materials

Download the problemtype Nastran to see a god
sample
with #MAT# fields
(download directly from the menu Data-Problem
Type-Internet Retrieve, Retrieve list)

Enrique

----- Original Message -----
From: "VSayako Willy" vilaysako at yahoo.com
To: gidlist at gatxan.cimne.upc.es
Sent: Wednesday, September 25, 2002 11:29 AM
Subject: [GiDlist] How to write data out for
#MAT#('BookName') Option in .bas file


Hi Enrique and all
Continue to ask about the following
question:
Please advice the #MAT#('BookName')option.
When we use this option how we write the bas
file
out?

in my .mat file I seperated as your advice,
which
is
before I had more than 100 fields. I now have
Material Properties and Geometry
Properties.
Now
how to write the Material properties out??in
bas
file
by using #MAT# option. Hope you got my point.

Best regards.



__________________________________________________
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
http://sbc.yahoo.com

_______________________________________________
GiDlist mailing list
GiDlist at gid.cimne.upc.es

http://gid.cimne.upc.es/mailman/listinfo/gidlist




__________________________________________________
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
http://sbc.yahoo.com
_______________________________________________
GiDlist mailing list
GiDlist at gid.cimne.upc.es
http://gid.cimne.upc.es/mailman/listinfo/gidlist



ATTACHMENT part 2 application/x-zip-compressed
name=SampleTclMatFields.gid.zip



__________________________________________________
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
http://sbc.yahoo.com
Aleix Valls

[GiDlist] Material, Property and .gif files in mat file

Post by Aleix Valls »

Hi,

At the moment in GiD it is only possible assigns one material to every
geometric entity, it means that if you assign more than one material to a
geometric entity, GiD only takes care of the last one.
I know two possible solutions for your question:

1- Using #MAT#(Book Name) command, with this command is possible
create links between different materials. In your case you have to divide
your mat file in two books: material properties and geometry properties and
only allow to the user assign one of them. You can take a look to
Nastran-Interface like an example.

2- Defining your materials likes conditions; in this case you can
assign so many materials as you want to any geometric entity. The problem
associated to this option is that you cannot save the materials parameters.
To solve this problem you can use the tcl-tk extension of GiD to create some
kind of file to save the values of the material. You can take a look to
Ram-Series (Steel sections window) like an example.

I hope this information can help you

Best Regards

Aleix Valls ( Nastran-Interface developer)

-----------------
Compass Ing. y Sistemas Aleix Valls
http://www.compassis.com aleix at compassis.com
c/ Manuel Girona, 61 bajos tel. +34 93 204 10 82
08034 Barcelona, Spain fax. +34 93 204 19 09

----- Original Message -----
From: "VSayako Willy" vilaysako at yahoo.com
To: gidlist at gatxan.cimne.upc.es
Sent: Friday, September 27, 2002 5:07 AM
Subject: [GiDlist] Material, Property and .gif files in mat file


Hi Enrique
Many thanks for your advice.For USING WITH THE ID
defining the type of material or property is very good
IDEAS.I have tried to work it out. Actually, in my
case I have Material Property and Geometry
Property in one file,(Mat file), same as in Nastran.
In Nastran the Material Property is not to be
assigned(I don't know also how you worked it out and
how we can get the mat prop in data file). In my case
when I put the values of the material in the field
boxes then GiD ask to assign then I assigned. Then I
go for Geometry Property did the same way, select
and assign. Then write the data file out. The fields
in Material Property were not written out but only
the fields in Geometry Property. I realized that GiD
recognizes only the last assignment in Mat file. What
I did now is like that: Copy the whole fields in
Material property to the Geometry property and make
both property as one Material then it works with no
problem, but it seems idiot because I have to repeat
the same material again and again.
--------------
Gif files
--------------
In my mat file I included a lot of IMAGE:***.gif. Now
I would like to have those gif file in seperate
folder. How should we write in problemtype.tcl to
control those gif files?? I looked at those examples
attached with GiD.7 but still could not figure out.
--------------

Thanks so much again

Best regards

--- Enrique Escolano escolano at cimne.upc.es wrote:
This is a sample (also attached) to inquire the
fields of a material from the bas file with a *tcl
command

Copy this tcl procedure inside the file
"problemtypename".tcl

proc WriteMatFields { matname } {
set ret ""
set fields [.central.s info material $matname]
set n [lindex $fields 0]
for { set i 0 } { $i $n } { incr i } {
append ret [lindex $fields [expr $i*2+1]]
append ret " "
append ret [lindex $fields [expr $i*2+2]]
append ret "\n"
}
return $ret
}

To call from the "problemtypename".bas file use
*tcl(order_tcl parameter) :

- USED MATERIALS -
*loop materials
[*MatProp(0)]
*tcl(WriteMatFields *MatProp(0))

*end materials

- UNUSED MATERIALS -
*loop materials *NotUsed
[*MatProp(0)]
*tcl(WriteMatFields *MatProp(0))

*end materials

For more info about the standard tcl languaje, visit
http://tcl.activestate.com
For more info about specific GiD tcl commands, see
Help-TCL-TK Extension

Enrique Escolano

----- Original Message -----
From: "VSayako Willy" vilaysako at yahoo.com
To: gidlist at gatxan.cimne.upc.es
Sent: Thursday, September 26, 2002 4:08 AM
Subject: [GiDlist] Still..How to write data out for
#MAT#('BookName') Option in .bas file


Hi Enrique
Thanks for your reply. I got your point but
what I
need to write out is the fields in the material
name,
for example.
in my mat file:
BOOK:Material_Properties
NUMBER:1 MATERIAL:ISO~PLASTIC
QUESTION:Young_Modulus_E
VALUE:1e4
QUESTION:Poisson_ratio
VALUE:0.3
...
END MATERIAL
NUMBER:2 MATERIAL:COMPOSITE
QUESTION:Young_Modulus_Ex
VALUE:1e6
QUESTION:Poisson_ratio_vx
VALUE:0.33
...
END MATERIAL
BOOK:Geometry_Properties
NUMBER:3 MATERIAL:Element_Thickness
QUESTION:Thickness
VALUE:0.1

QUESTION:Assigned_Material#MAT#(Material_Properties)
VALUE:ISOTROPIC
END MATERIAL
---------------------------------------
and in my data file I want to list the fields as
follows:
ISOTROPIC CASE:
Young_Modulus_E Poisson_ratio thickness
......
COMPOSITE CASE:
Young_Modulus_Ex Poisson_ratio_vx thicness
......

I tried to write out as usual way but fields in
Book
Material Properties are not regconized.

Regards








--- Enrique Escolano escolano at cimne.upc.es
wrote:
If you use for example as a field of a material
(book Geometry) a field with another material
(book
Material)
QUESTION:Composition_Material#MAT#(Material)
VALUE:AISI_4340_STEEL

Then, in the bas file, the name of the selected
material is obtained with *MatProp
*matprop(Composition_Material)
The number of this material is obtained with
*matnum(matprop(Composition_Material))
for example:

*loop materials
*set var
MID=matnum(matprop(Composition_Material))
*set var PID=matnum()
Geometry material num=*PID Compition Material
number=*MID
*end materials

Download the problemtype Nastran to see a god
sample
with #MAT# fields
(download directly from the menu Data-Problem
Type-Internet Retrieve, Retrieve list)

Enrique

----- Original Message -----
From: "VSayako Willy" vilaysako at yahoo.com
To: gidlist at gatxan.cimne.upc.es
Sent: Wednesday, September 25, 2002 11:29 AM
Subject: [GiDlist] How to write data out for
#MAT#('BookName') Option in .bas file


Hi Enrique and all
Continue to ask about the following
question:
Please advice the #MAT#('BookName')option.
When we use this option how we write the bas
file
out?

in my .mat file I seperated as your advice,
which
is
before I had more than 100 fields. I now have
Material Properties and Geometry
Properties.
Now
how to write the Material properties out??in
bas
file
by using #MAT# option. Hope you got my point.

Best regards.



__________________________________________________
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
http://sbc.yahoo.com

_______________________________________________
GiDlist mailing list
GiDlist at gid.cimne.upc.es

http://gid.cimne.upc.es/mailman/listinfo/gidlist




__________________________________________________
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
http://sbc.yahoo.com
_______________________________________________
GiDlist mailing list
GiDlist at gid.cimne.upc.es
http://gid.cimne.upc.es/mailman/listinfo/gidlist



ATTACHMENT part 2 application/x-zip-compressed
name=SampleTclMatFields.gid.zip



__________________________________________________
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
http://sbc.yahoo.com
_______________________________________________
GiDlist mailing list
GiDlist at gid.cimne.upc.es
http://gid.cimne.upc.es/mailman/listinfo/gidlist

Enrique Escolano

[GiDlist] Material, Property and .gif files in mat file

Post by Enrique Escolano »

In GiD, a entity can be only of a single material, therefore if a material is assigned, the previous one is overwritten.
You can use a condition instead a material if you need multiple assignation to the same entity.

In the Nastran problemtype, only permit to assign the materials of type "Property", not the type "Material", but this
propertie include implicit the composition material, it is unneeded to assing another time.
(This limitation of the assignation of materials to entities is programmed with tcl, inside "nastran.tcl")

In the problem type "RamSeries4/Rambshell" it exists a sample of customization of the condition window, to show the steel properties, but it is not easy to learn.



I unknown exactly your problem with the pictures, it seems a possible bug if the material or contition contain "TITLES".
The pictures are visible for all titles?.

Enrique

----- Original Message -----
From: "VSayako Willy" vilaysako at yahoo.com
To: gidlist at gatxan.cimne.upc.es
Sent: Friday, September 27, 2002 5:07 AM
Subject: [GiDlist] Material, Property and .gif files in mat file


Hi Enrique
Many thanks for your advice.For USING WITH THE ID
defining the type of material or property is very good
IDEAS.I have tried to work it out. Actually, in my
case I have Material Property and Geometry
Property in one file,(Mat file), same as in Nastran.
In Nastran the Material Property is not to be
assigned(I don't know also how you worked it out and
how we can get the mat prop in data file). In my case
when I put the values of the material in the field
boxes then GiD ask to assign then I assigned. Then I
go for Geometry Property did the same way, select
and assign. Then write the data file out. The fields
in Material Property were not written out but only
the fields in Geometry Property. I realized that GiD
recognizes only the last assignment in Mat file. What
I did now is like that: Copy the whole fields in
Material property to the Geometry property and make
both property as one Material then it works with no
problem, but it seems idiot because I have to repeat
the same material again and again.
--------------
Gif files
--------------
In my mat file I included a lot of IMAGE:***.gif. Now
I would like to have those gif file in seperate
folder. How should we write in problemtype.tcl to
control those gif files?? I looked at those examples
attached with GiD.7 but still could not figure out.
--------------

Thanks so much again

Best regards

--- Enrique Escolano escolano at cimne.upc.es wrote:
This is a sample (also attached) to inquire the
fields of a material from the bas file with a *tcl
command

Copy this tcl procedure inside the file
"problemtypename".tcl

proc WriteMatFields { matname } {
set ret ""
set fields [.central.s info material $matname]
set n [lindex $fields 0]
for { set i 0 } { $i $n } { incr i } {
append ret [lindex $fields [expr $i*2+1]]
append ret " "
append ret [lindex $fields [expr $i*2+2]]
append ret "\n"
}
return $ret
}

To call from the "problemtypename".bas file use
*tcl(order_tcl parameter) :

- USED MATERIALS -
*loop materials
[*MatProp(0)]
*tcl(WriteMatFields *MatProp(0))

*end materials

- UNUSED MATERIALS -
*loop materials *NotUsed
[*MatProp(0)]
*tcl(WriteMatFields *MatProp(0))

*end materials

For more info about the standard tcl languaje, visit
http://tcl.activestate.com
For more info about specific GiD tcl commands, see
Help-TCL-TK Extension

Enrique Escolano

----- Original Message -----
From: "VSayako Willy" vilaysako at yahoo.com
To: gidlist at gatxan.cimne.upc.es
Sent: Thursday, September 26, 2002 4:08 AM
Subject: [GiDlist] Still..How to write data out for
#MAT#('BookName') Option in .bas file


Hi Enrique
Thanks for your reply. I got your point but
what I
need to write out is the fields in the material
name,
for example.
in my mat file:
BOOK:Material_Properties
NUMBER:1 MATERIAL:ISO~PLASTIC
QUESTION:Young_Modulus_E
VALUE:1e4
QUESTION:Poisson_ratio
VALUE:0.3
...
END MATERIAL
NUMBER:2 MATERIAL:COMPOSITE
QUESTION:Young_Modulus_Ex
VALUE:1e6
QUESTION:Poisson_ratio_vx
VALUE:0.33
...
END MATERIAL
BOOK:Geometry_Properties
NUMBER:3 MATERIAL:Element_Thickness
QUESTION:Thickness
VALUE:0.1

QUESTION:Assigned_Material#MAT#(Material_Properties)
VALUE:ISOTROPIC
END MATERIAL
---------------------------------------
and in my data file I want to list the fields as
follows:
ISOTROPIC CASE:
Young_Modulus_E Poisson_ratio thickness
......
COMPOSITE CASE:
Young_Modulus_Ex Poisson_ratio_vx thicness
......

I tried to write out as usual way but fields in
Book
Material Properties are not regconized.

Regards








--- Enrique Escolano escolano at cimne.upc.es
wrote:
If you use for example as a field of a material
(book Geometry) a field with another material
(book
Material)
QUESTION:Composition_Material#MAT#(Material)
VALUE:AISI_4340_STEEL

Then, in the bas file, the name of the selected
material is obtained with *MatProp
*matprop(Composition_Material)
The number of this material is obtained with
*matnum(matprop(Composition_Material))
for example:

*loop materials
*set var
MID=matnum(matprop(Composition_Material))
*set var PID=matnum()
Geometry material num=*PID Compition Material
number=*MID
*end materials

Download the problemtype Nastran to see a god
sample
with #MAT# fields
(download directly from the menu Data-Problem
Type-Internet Retrieve, Retrieve list)

Enrique

----- Original Message -----
From: "VSayako Willy" vilaysako at yahoo.com
To: gidlist at gatxan.cimne.upc.es
Sent: Wednesday, September 25, 2002 11:29 AM
Subject: [GiDlist] How to write data out for
#MAT#('BookName') Option in .bas file


Hi Enrique and all
Continue to ask about the following
question:
Please advice the #MAT#('BookName')option.
When we use this option how we write the bas
file
out?

in my .mat file I seperated as your advice,
which
is
before I had more than 100 fields. I now have
Material Properties and Geometry
Properties.
Now
how to write the Material properties out??in
bas
file
by using #MAT# option. Hope you got my point.

Best regards.



__________________________________________________
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
http://sbc.yahoo.com

_______________________________________________
GiDlist mailing list
GiDlist at gid.cimne.upc.es

http://gid.cimne.upc.es/mailman/listinfo/gidlist




__________________________________________________
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
http://sbc.yahoo.com
_______________________________________________
GiDlist mailing list
GiDlist at gid.cimne.upc.es
http://gid.cimne.upc.es/mailman/listinfo/gidlist



ATTACHMENT part 2 application/x-zip-compressed
name=SampleTclMatFields.gid.zip



__________________________________________________
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
http://sbc.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/20020927/f6cca34a/attachment.htm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/gif
Size: 17231 bytes
Desc: not available
Url : http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20020927/f6cca34a/attachment.gif
kenji furui

[GiDlist] GiD for mac

Post by kenji furui »

Dear GiD users,

Can we install GiD to a mac?

kenji furui
The University of Texas at Austin

__________________________________________________
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
http://sbc.yahoo.com
VSayako Willy

[GiDlist] Material, Property and .gif files in mat file

Post by VSayako Willy »

Hi Enrique and Aleix
Thanks so much for your advice. I think the option
to put the material as a condition is also good idea
but in my case I only need to write the material
properties in one single line, not to every element
assigned, I think you know what I mean. To write in
condition all fields should be repeated over loop
elements right then all the fields of material have to
be written out as same number as element assigned.For
example, in bas file:
--------------------------------
*set Cond Material_Properties
*loop elems *OnlyIncond
*Cond(Young_Modulus_E,real) *Cond(Poisson_ratio,real)
*end elems
--------------------------------
if I assign to 10 elements then the Young_Modulus_E
and Poisson_ratio will be written out 10 times.
How can I get only one line (1 time) of
Material_Properties written out?? I think in this case
we have to set sum of count with *if condition?
--------------------------------
*****Gif files*****
In my ProblemType.gid directory there are more than 10
Gif files used in mat file by command
IMAGE:'FigureName'.gif. Now I create the directory
under problemType.gid Dir and put all the gif files in
that. But GiD didn't recognize those files. I know
that we should write something in problemType.tcl file
to control it but didn't know how? I looked over those
Ramshell and Nastran and whatever you included with
GiD but still not clear.
It would be great if you put more online information
about Advanced GiD. To work with pure Tcl/Tk is not a
problem but to combine or interface the Tcl/Tk with
GiD and its components is still confused. Please give
more examples to expose those problems.


With my best regards..






--- Aleix Valls aleix at compassis.com wrote:
Hi,

At the moment in GiD it is only possible assigns one
material to every
geometric entity, it means that if you assign more
than one material to a
geometric entity, GiD only takes care of the last
one.
I know two possible solutions for your question:

1- Using #MAT#(Book Name) command, with this
command is possible
create links between different materials. In your
case you have to divide
your mat file in two books: material properties and
geometry properties and
only allow to the user assign one of them. You can
take a look to
Nastran-Interface like an example.

2- Defining your materials likes conditions;
in this case you can
assign so many materials as you want to any
geometric entity. The problem
associated to this option is that you cannot save
the materials parameters.
To solve this problem you can use the tcl-tk
extension of GiD to create some
kind of file to save the values of the material. You
can take a look to
Ram-Series (Steel sections window) like an example.

I hope this information can help you

Best Regards

Aleix Valls ( Nastran-Interface developer)

-----------------
Compass Ing. y Sistemas Aleix Valls
http://www.compassis.com aleix at compassis.com
c/ Manuel Girona, 61 bajos tel. +34 93 204 10
82
08034 Barcelona, Spain fax. +34 93 204 19
09

----- Original Message -----
From: "VSayako Willy" vilaysako at yahoo.com
To: gidlist at gatxan.cimne.upc.es
Sent: Friday, September 27, 2002 5:07 AM
Subject: [GiDlist] Material, Property and .gif files
in mat file


Hi Enrique
Many thanks for your advice.For USING WITH THE
ID
defining the type of material or property is very
good
IDEAS.I have tried to work it out. Actually, in my
case I have Material Property and Geometry
Property in one file,(Mat file), same as in
Nastran.
In Nastran the Material Property is not to be
assigned(I don't know also how you worked it out
and
how we can get the mat prop in data file). In my
case
when I put the values of the material in the field
boxes then GiD ask to assign then I assigned. Then
I
go for Geometry Property did the same way,
select
and assign. Then write the data file out. The
fields
in Material Property were not written out but
only
the fields in Geometry Property. I realized that
GiD
recognizes only the last assignment in Mat file.
What
I did now is like that: Copy the whole fields in
Material property to the Geometry property and
make
both property as one Material then it works with
no
problem, but it seems idiot because I have to
repeat
the same material again and again.
--------------
Gif files
--------------
In my mat file I included a lot of IMAGE:***.gif.
Now
I would like to have those gif file in seperate
folder. How should we write in problemtype.tcl to
control those gif files?? I looked at those
examples
attached with GiD.7 but still could not figure
out.
--------------

Thanks so much again

Best regards



--- Enrique Escolano escolano at cimne.upc.es
wrote:
This is a sample (also attached) to inquire the
fields of a material from the bas file with a
*tcl
command

Copy this tcl procedure inside the file
"problemtypename".tcl

proc WriteMatFields { matname } {
set ret ""
set fields [.central.s info material $matname]
set n [lindex $fields 0]
for { set i 0 } { $i $n } { incr i } {
append ret [lindex $fields [expr $i*2+1]]
append ret " "
append ret [lindex $fields [expr $i*2+2]]
append ret "\n"
}
return $ret
}

To call from the "problemtypename".bas file use
*tcl(order_tcl parameter) :

- USED MATERIALS -
*loop materials
[*MatProp(0)]
*tcl(WriteMatFields *MatProp(0))

*end materials

- UNUSED MATERIALS -
*loop materials *NotUsed
[*MatProp(0)]
*tcl(WriteMatFields *MatProp(0))

*end materials

For more info about the standard tcl languaje,
visit
http://tcl.activestate.com
For more info about specific GiD tcl commands,
see
Help-TCL-TK Extension

Enrique Escolano

----- Original Message -----
From: "VSayako Willy" vilaysako at yahoo.com
To: gidlist at gatxan.cimne.upc.es
Sent: Thursday, September 26, 2002 4:08 AM
Subject: [GiDlist] Still..How to write data out
for
#MAT#('BookName') Option in .bas file


Hi Enrique
Thanks for your reply. I got your point but
what I
need to write out is the fields in the
material
name,
for example.
in my mat file:
BOOK:Material_Properties
NUMBER:1 MATERIAL:ISO~PLASTIC
QUESTION:Young_Modulus_E
VALUE:1e4
QUESTION:Poisson_ratio
VALUE:0.3
...
END MATERIAL
NUMBER:2 MATERIAL:COMPOSITE
QUESTION:Young_Modulus_Ex
VALUE:1e6
QUESTION:Poisson_ratio_vx
VALUE:0.33
...
END MATERIAL
BOOK:Geometry_Properties
NUMBER:3 MATERIAL:Element_Thickness
QUESTION:Thickness
VALUE:0.1


QUESTION:Assigned_Material#MAT#(Material_Properties)
VALUE:ISOTROPIC
END MATERIAL
---------------------------------------
and in my data file I want to list the fields
as
follows:

=== message truncated ===


__________________________________________________
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
http://sbc.yahoo.com
Enrique Escolano

[GiDlist] GiD for mac

Post by Enrique Escolano »

Not exist any version of GiD for Mac.

Enrique Escolano
----- Original Message -----
From: "kenji furui" petrocowboy at yahoo.com
To: gidlist at gatxan.cimne.upc.es
Sent: Sunday, September 29, 2002 3:17 AM
Subject: [GiDlist] GiD for mac


Dear GiD users,

Can we install GiD to a mac?

kenji furui
The University of Texas at Austin

__________________________________________________
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
http://sbc.yahoo.com
_______________________________________________
GiDlist mailing list
GiDlist at gid.cimne.upc.es
http://gid.cimne.upc.es/mailman/listinfo/gidlist

Enrique Escolano

[GiDlist] Material, Property and .gif files in mat file

Post by Enrique Escolano »

1) You can use a break inside the loop to write only once.

*set Cond Material_Properties
*loop elems *OnlyIncond
*Cond(Young_Modulus_E,real) *Cond(Poisson_ratio,real)
*break
*end elems

2) It seems some bug of GiD, packing the pictures of the special field image: "imgname".gif
(depending of the window size, only a brief splash of the image is showed).


----- Original Message -----
From: "VSayako Willy" vilaysako at yahoo.com
To: gidlist at gatxan.cimne.upc.es
Sent: Sunday, September 29, 2002 5:25 AM
Subject: [GiDlist] Material, Property and .gif files in mat file


Hi Enrique and Aleix
Thanks so much for your advice. I think the option
to put the material as a condition is also good idea
but in my case I only need to write the material
properties in one single line, not to every element
assigned, I think you know what I mean. To write in
condition all fields should be repeated over loop
elements right then all the fields of material have to
be written out as same number as element assigned.For
example, in bas file:
--------------------------------
*set Cond Material_Properties
*loop elems *OnlyIncond
*Cond(Young_Modulus_E,real) *Cond(Poisson_ratio,real)
*end elems
--------------------------------
if I assign to 10 elements then the Young_Modulus_E
and Poisson_ratio will be written out 10 times.
How can I get only one line (1 time) of
Material_Properties written out?? I think in this case
we have to set sum of count with *if condition?
--------------------------------
*****Gif files*****
In my ProblemType.gid directory there are more than 10
Gif files used in mat file by command
IMAGE:'FigureName'.gif. Now I create the directory
under problemType.gid Dir and put all the gif files in
that. But GiD didn't recognize those files. I know
that we should write something in problemType.tcl file
to control it but didn't know how? I looked over those
Ramshell and Nastran and whatever you included with
GiD but still not clear.
It would be great if you put more online information
about Advanced GiD. To work with pure Tcl/Tk is not a
problem but to combine or interface the Tcl/Tk with
GiD and its components is still confused. Please give
more examples to expose those problems.


With my best regards..






--- Aleix Valls aleix at compassis.com wrote:
Hi,

At the moment in GiD it is only possible assigns one
material to every
geometric entity, it means that if you assign more
than one material to a
geometric entity, GiD only takes care of the last
one.
I know two possible solutions for your question:

1- Using #MAT#(Book Name) command, with this
command is possible
create links between different materials. In your
case you have to divide
your mat file in two books: material properties and
geometry properties and
only allow to the user assign one of them. You can
take a look to
Nastran-Interface like an example.

2- Defining your materials likes conditions;
in this case you can
assign so many materials as you want to any
geometric entity. The problem
associated to this option is that you cannot save
the materials parameters.
To solve this problem you can use the tcl-tk
extension of GiD to create some
kind of file to save the values of the material. You
can take a look to
Ram-Series (Steel sections window) like an example.

I hope this information can help you

Best Regards

Aleix Valls ( Nastran-Interface developer)

-----------------
Compass Ing. y Sistemas Aleix Valls
http://www.compassis.com aleix at compassis.com
c/ Manuel Girona, 61 bajos tel. +34 93 204 10
82
08034 Barcelona, Spain fax. +34 93 204 19
09

----- Original Message -----
From: "VSayako Willy" vilaysako at yahoo.com
To: gidlist at gatxan.cimne.upc.es
Sent: Friday, September 27, 2002 5:07 AM
Subject: [GiDlist] Material, Property and .gif files
in mat file


Hi Enrique
Many thanks for your advice.For USING WITH THE
ID
defining the type of material or property is very
good
IDEAS.I have tried to work it out. Actually, in my
case I have Material Property and Geometry
Property in one file,(Mat file), same as in
Nastran.
In Nastran the Material Property is not to be
assigned(I don't know also how you worked it out
and
how we can get the mat prop in data file). In my
case
when I put the values of the material in the field
boxes then GiD ask to assign then I assigned. Then
I
go for Geometry Property did the same way,
select
and assign. Then write the data file out. The
fields
in Material Property were not written out but
only
the fields in Geometry Property. I realized that
GiD
recognizes only the last assignment in Mat file.
What
I did now is like that: Copy the whole fields in
Material property to the Geometry property and
make
both property as one Material then it works with
no
problem, but it seems idiot because I have to
repeat
the same material again and again.
--------------
Gif files
--------------
In my mat file I included a lot of IMAGE:***.gif.
Now
I would like to have those gif file in seperate
folder. How should we write in problemtype.tcl to
control those gif files?? I looked at those
examples
attached with GiD.7 but still could not figure
out.
--------------

Thanks so much again

Best regards



--- Enrique Escolano escolano at cimne.upc.es
wrote:
This is a sample (also attached) to inquire the
fields of a material from the bas file with a
*tcl
command

Copy this tcl procedure inside the file
"problemtypename".tcl

proc WriteMatFields { matname } {
set ret ""
set fields [.central.s info material $matname]
set n [lindex $fields 0]
for { set i 0 } { $i $n } { incr i } {
append ret [lindex $fields [expr $i*2+1]]
append ret " "
append ret [lindex $fields [expr $i*2+2]]
append ret "\n"
}
return $ret
}

To call from the "problemtypename".bas file use
*tcl(order_tcl parameter) :

- USED MATERIALS -
*loop materials
[*MatProp(0)]
*tcl(WriteMatFields *MatProp(0))

*end materials

- UNUSED MATERIALS -
*loop materials *NotUsed
[*MatProp(0)]
*tcl(WriteMatFields *MatProp(0))

*end materials

For more info about the standard tcl languaje,
visit
http://tcl.activestate.com
For more info about specific GiD tcl commands,
see
Help-TCL-TK Extension

Enrique Escolano

----- Original Message -----
From: "VSayako Willy" vilaysako at yahoo.com
To: gidlist at gatxan.cimne.upc.es
Sent: Thursday, September 26, 2002 4:08 AM
Subject: [GiDlist] Still..How to write data out
for
#MAT#('BookName') Option in .bas file


Hi Enrique
Thanks for your reply. I got your point but
what I
need to write out is the fields in the
material
name,
for example.
in my mat file:
BOOK:Material_Properties
NUMBER:1 MATERIAL:ISO~PLASTIC
QUESTION:Young_Modulus_E
VALUE:1e4
QUESTION:Poisson_ratio
VALUE:0.3
...
END MATERIAL
NUMBER:2 MATERIAL:COMPOSITE
QUESTION:Young_Modulus_Ex
VALUE:1e6
QUESTION:Poisson_ratio_vx
VALUE:0.33
...
END MATERIAL
BOOK:Geometry_Properties
NUMBER:3 MATERIAL:Element_Thickness
QUESTION:Thickness
VALUE:0.1


QUESTION:Assigned_Material#MAT#(Material_Properties)
VALUE:ISOTROPIC
END MATERIAL
---------------------------------------
and in my data file I want to list the fields
as
follows:

=== message truncated ===


__________________________________________________
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
http://sbc.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/20020930/879ff33f/attachment.htm
VSayako Willy

[GiDlist] .gif files in mat,cnd file

Post by VSayako Willy »

Thanks so much Enrique
I just found from Nastran how to locate the **.gif
files in mat file or cnd..just like this:
IMAGE:images/Gpic.gif
where images is a subfolder in ProblemType.gid

Best regards




__________________________________________________
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
http://sbc.yahoo.com
Miguel A. de Riera Pasenau

[GiDlist] GiD for mac

Post by Miguel A. de Riera Pasenau »

Hi,

by now there is no Mac, over OS X, version of GiD.

miguel

kenji furui wrote:

Dear GiD users,

Can we install GiD to a mac?

kenji furui
The University of Texas at Austin

__________________________________________________
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
http://sbc.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
Post Reply