Hello,
I need the _value_ of z coordinate for a set of nodes: I use this in a
calculus for obtaining the nodal forces for an hydrostatic load.
I try with NodesCoord(3,real), but it doesn't work (I think this is just a
write command for nodes).
Can anyone help me?
Thank you in advance.
Aldo Ghisi
ALDO GHISI
Department of Structural Engineering
Politecnico di Milano
Piazza Leonardo da Vinci 32, 20133 Milano, Italy
Tel.: +39 02 2399 4218
Fax.: +39 02 2399 4220
E_mail: aldo.ghisi at polimi.it
[GiDlist] z coord for nodes
Moderator: GiD Team
[GiDlist] z coord for nodes
To obtain the z coordinate of a node in the *.bas file, the command NodesCoord
must be inside a loop over nodes, for example
*loop nodes
*NodesCoord(3,real)
set var znode=NodesCoord(3,real)
*end nodes
You can also implement the hydrostatic condition whit a #FUNC# field of the condition
the value of this field is auto-calculated for each node/element
(can use x,y,z of the node and another field values)
For example, in the *.cnd file:
NUMBER: 1 CONDITION: Hydrostatic
CONDTYPE: over surfaces
CONDMESHTYPE: over nodes
QUESTION: Fuid_z:
VALUE: 0
QUESTION: Density
VALUE: 0
QUESTION: Pressure#FUNC#((Cond(1,REAL)-z)*Cond(2,REAL))
VALUE: Automatic
END CONDITION
And in the bas file:
*Set Cond Hydrostatic *nodes
*loop nodes *OnlyInCond
*cond(Pressure)
*end nodes
Regards
----- Original Message -----
From: "Aldo Ghisi" ghisi at stru.polimi.it
To: gidlist at gatxan.cimne.upc.es
Sent: Monday, December 17, 2001 10:47 AM
Subject: [GiDlist] z coord for nodes
Hello,
I need the _value_ of z coordinate for a set of nodes: I use this in a
calculus for obtaining the nodal forces for an hydrostatic load.
I try with NodesCoord(3,real), but it doesn't work (I think this is just a
write command for nodes).
Can anyone help me?
Thank you in advance.
Aldo Ghisi
ALDO GHISI
Department of Structural Engineering
Politecnico di Milano
Piazza Leonardo da Vinci 32, 20133 Milano, Italy
Tel.: +39 02 2399 4218
Fax.: +39 02 2399 4220
E_mail: aldo.ghisi at polimi.it
_______________________________________________
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/20011217/3c86c0ea/attachment.htm
must be inside a loop over nodes, for example
*loop nodes
*NodesCoord(3,real)
set var znode=NodesCoord(3,real)
*end nodes
You can also implement the hydrostatic condition whit a #FUNC# field of the condition
the value of this field is auto-calculated for each node/element
(can use x,y,z of the node and another field values)
For example, in the *.cnd file:
NUMBER: 1 CONDITION: Hydrostatic
CONDTYPE: over surfaces
CONDMESHTYPE: over nodes
QUESTION: Fuid_z:
VALUE: 0
QUESTION: Density
VALUE: 0
QUESTION: Pressure#FUNC#((Cond(1,REAL)-z)*Cond(2,REAL))
VALUE: Automatic
END CONDITION
And in the bas file:
*Set Cond Hydrostatic *nodes
*loop nodes *OnlyInCond
*cond(Pressure)
*end nodes
Regards
----- Original Message -----
From: "Aldo Ghisi" ghisi at stru.polimi.it
To: gidlist at gatxan.cimne.upc.es
Sent: Monday, December 17, 2001 10:47 AM
Subject: [GiDlist] z coord for nodes
Hello,
I need the _value_ of z coordinate for a set of nodes: I use this in a
calculus for obtaining the nodal forces for an hydrostatic load.
I try with NodesCoord(3,real), but it doesn't work (I think this is just a
write command for nodes).
Can anyone help me?
Thank you in advance.
Aldo Ghisi
ALDO GHISI
Department of Structural Engineering
Politecnico di Milano
Piazza Leonardo da Vinci 32, 20133 Milano, Italy
Tel.: +39 02 2399 4218
Fax.: +39 02 2399 4220
E_mail: aldo.ghisi at polimi.it
_______________________________________________
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/20011217/3c86c0ea/attachment.htm
[GiDlist] z coord for nodes
Hi Enrique,
sorry, I already try with this (it was already asked by someone other in
the mailing list), but I cannot get the result I expected.
GiD seems not to accept the z-coord. These are my files .cnd and .bas
[...]
NUMBER: 10 CONDITION: Hydrostatic
CONDTYPE: over surfaces
CONDMESHTYPE: over nodes
QUESTION: Z_Water:
VALUE: 1.
QUESTION: Density:
VALUE: 1000.
QUESTION: Pressure#FUNC#((Cond(1,REAL)-z)*Cond(2,REAL))
VALUE: Automatic
END CONDITION
[...]
*set cond Hydrostatic *nodes
*loop nodes *OnlyInCond
*nodesnum *cond(Pressure,real)
*end nodes
I obtain this (first column are node numbers) in output:
[...]
13 1000.000000
19 1000.000000
23 1000.000000
24 1000.000000
26 1000.000000
27 1000.000000
It seems to me that GiD makes at any time only the calculus with z = 0
Where is my error?
Thank you in advance and regards
Aldo
P.S. If you need it, this is my mesh (File-Import/Export-Write mesh):
begin next row
MESH dimension 3 ElemType Hexahedra Nnode 8
Coordinates
1 0 0 0
2 2.5 0 0
3 0 2.5 0
4 0 0 2.5
5 2.5 0 2.5
6 0 2.5 2.5
7 2.5 2.5 0
8 2.5 2.5 2.5
9 5 0 0
10 0 5 0
11 0 0 5
12 2.5 5 0
13 5 2.5 0
14 2.5 0 5
15 0 5 2.5
16 0 2.5 5
17 5 0 2.5
18 2.5 5 2.5
19 5 2.5 2.5
20 2.5 2.5 5
21 0 5 5
22 5 0 5
23 5 5 0
24 5 5 2.5
25 2.5 5 5
26 5 2.5 5
27 5 5 5
end coordinates
Elements
1 8 18 12 7 6 15 10 3
2 5 8 7 2 4 6 3 1
3 20 25 18 8 16 21 15 6
4 14 20 8 5 11 16 6 4
5 19 24 23 13 8 18 12 7
6 17 19 13 9 5 8 7 2
7 26 27 24 19 20 25 18 8
8 22 26 19 17 14 20 8 5
end elements
end previous row
At 12.45 17/12/2001 +0100, you wrote:
To obtain the z coordinate of a node in the *.bas file, the
command NodesCoord
must be inside a loop over nodes, for example
*loop nodes
*NodesCoord(3,real)
set var znode=NodesCoord(3,real)
*end nodes
You can also implement the hydrostatic condition whit a #FUNC# field of
the condition
the value of this field is auto-calculated for each node/element
(can use x,y,z of the node and another field values)
For example, in the *.cnd file:
NUMBER: 1 CONDITION: Hydrostatic
CONDTYPE: over surfaces
CONDMESHTYPE: over nodes
QUESTION: Fuid_z:
VALUE: 0
QUESTION: Density
VALUE: 0
QUESTION: Pressure#FUNC#((Cond(1,REAL)-z)*Cond(2,REAL))
VALUE: Automatic
END CONDITION
And in the bas file:
*Set Cond Hydrostatic *nodes
*loop nodes *OnlyInCond
*cond(Pressure)
*end nodes
Regards
----- Original Message -----
From: "Aldo Ghisi" mailto:ghisi at stru.polimi.itghisi at stru.polimi.it
To: mailto:gidlist at gatxan.cimne.upc.esgidlist at gatxan.cimne.upc.es
Sent: Monday, December 17, 2001 10:47 AM
Subject: [GiDlist] z coord for nodes
Hello,
I need the _value_ of z coordinate for a set of nodes: I use this in a
calculus for obtaining the nodal forces for an hydrostatic load.
I try with NodesCoord(3,real), but it doesn't work (I think this is just a
write command for nodes).
Can anyone help me?
Thank you in advance.
Aldo Ghisi
ALDO GHISI
Department of Structural Engineering
Politecnico di Milano
Piazza Leonardo da Vinci 32, 20133 Milano, Italy
Tel.: +39 02 2399 4218
Fax.: +39 02 2399 4220
E_mail: mailto:aldo.ghisi at polimi.italdo.ghisi at polimi.it
_______________________________________________
GiDlist mailing list
mailto:GiDlist at gid.cimne.upc.esGiDlist at gid.cimne.upc.es
http://gid.cimne.upc.es/mailman/listinfo/gidlist
sorry, I already try with this (it was already asked by someone other in
the mailing list), but I cannot get the result I expected.
GiD seems not to accept the z-coord. These are my files .cnd and .bas
[...]
NUMBER: 10 CONDITION: Hydrostatic
CONDTYPE: over surfaces
CONDMESHTYPE: over nodes
QUESTION: Z_Water:
VALUE: 1.
QUESTION: Density:
VALUE: 1000.
QUESTION: Pressure#FUNC#((Cond(1,REAL)-z)*Cond(2,REAL))
VALUE: Automatic
END CONDITION
[...]
*set cond Hydrostatic *nodes
*loop nodes *OnlyInCond
*nodesnum *cond(Pressure,real)
*end nodes
I obtain this (first column are node numbers) in output:
[...]
13 1000.000000
19 1000.000000
23 1000.000000
24 1000.000000
26 1000.000000
27 1000.000000
It seems to me that GiD makes at any time only the calculus with z = 0
Where is my error?
Thank you in advance and regards
Aldo
P.S. If you need it, this is my mesh (File-Import/Export-Write mesh):
begin next row
MESH dimension 3 ElemType Hexahedra Nnode 8
Coordinates
1 0 0 0
2 2.5 0 0
3 0 2.5 0
4 0 0 2.5
5 2.5 0 2.5
6 0 2.5 2.5
7 2.5 2.5 0
8 2.5 2.5 2.5
9 5 0 0
10 0 5 0
11 0 0 5
12 2.5 5 0
13 5 2.5 0
14 2.5 0 5
15 0 5 2.5
16 0 2.5 5
17 5 0 2.5
18 2.5 5 2.5
19 5 2.5 2.5
20 2.5 2.5 5
21 0 5 5
22 5 0 5
23 5 5 0
24 5 5 2.5
25 2.5 5 5
26 5 2.5 5
27 5 5 5
end coordinates
Elements
1 8 18 12 7 6 15 10 3
2 5 8 7 2 4 6 3 1
3 20 25 18 8 16 21 15 6
4 14 20 8 5 11 16 6 4
5 19 24 23 13 8 18 12 7
6 17 19 13 9 5 8 7 2
7 26 27 24 19 20 25 18 8
8 22 26 19 17 14 20 8 5
end elements
end previous row
At 12.45 17/12/2001 +0100, you wrote:
To obtain the z coordinate of a node in the *.bas file, the
command NodesCoord
must be inside a loop over nodes, for example
*loop nodes
*NodesCoord(3,real)
set var znode=NodesCoord(3,real)
*end nodes
You can also implement the hydrostatic condition whit a #FUNC# field of
the condition
the value of this field is auto-calculated for each node/element
(can use x,y,z of the node and another field values)
For example, in the *.cnd file:
NUMBER: 1 CONDITION: Hydrostatic
CONDTYPE: over surfaces
CONDMESHTYPE: over nodes
QUESTION: Fuid_z:
VALUE: 0
QUESTION: Density
VALUE: 0
QUESTION: Pressure#FUNC#((Cond(1,REAL)-z)*Cond(2,REAL))
VALUE: Automatic
END CONDITION
And in the bas file:
*Set Cond Hydrostatic *nodes
*loop nodes *OnlyInCond
*cond(Pressure)
*end nodes
Regards
----- Original Message -----
From: "Aldo Ghisi" mailto:ghisi at stru.polimi.itghisi at stru.polimi.it
To: mailto:gidlist at gatxan.cimne.upc.esgidlist at gatxan.cimne.upc.es
Sent: Monday, December 17, 2001 10:47 AM
Subject: [GiDlist] z coord for nodes
Hello,
I need the _value_ of z coordinate for a set of nodes: I use this in a
calculus for obtaining the nodal forces for an hydrostatic load.
I try with NodesCoord(3,real), but it doesn't work (I think this is just a
write command for nodes).
Can anyone help me?
Thank you in advance.
Aldo Ghisi
ALDO GHISI
Department of Structural Engineering
Politecnico di Milano
Piazza Leonardo da Vinci 32, 20133 Milano, Italy
Tel.: +39 02 2399 4218
Fax.: +39 02 2399 4220
E_mail: mailto:aldo.ghisi at polimi.italdo.ghisi at polimi.it
_______________________________________________
GiDlist mailing list
mailto:GiDlist at gid.cimne.upc.esGiDlist at gid.cimne.upc.es
http://gid.cimne.upc.es/mailman/listinfo/gidlist
[GiDlist] z coord for nodes
Try to update your GiD version to the last beta in the web page (for windows
actually the last is the 6.2.0b).
Note: The registration code of the 6.1.3 official version is valid for all
6.x betas.
I' tried your files and it works i my version.
I' attach the problem type "Aldo.gid" and your cube test "TestAldo.gid".
The Calculation file output obtained is:
1 1000
2 1000
3 -250
4 1000
5 1000
6 1000
7 -1500
...
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Testaldo.gid.zip
Type: application/x-zip-compressed
Size: 2346 bytes
Desc: not available
Url : http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20011217/a66a9687/attachment.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Aldo.gid.zip
Type: application/x-zip-compressed
Size: 567 bytes
Desc: not available
Url : http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20011217/a66a9687/attachment-0001.bin
actually the last is the 6.2.0b).
Note: The registration code of the 6.1.3 official version is valid for all
6.x betas.
I' tried your files and it works i my version.
I' attach the problem type "Aldo.gid" and your cube test "TestAldo.gid".
The Calculation file output obtained is:
1 1000
2 1000
3 -250
4 1000
5 1000
6 1000
7 -1500
...
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Testaldo.gid.zip
Type: application/x-zip-compressed
Size: 2346 bytes
Desc: not available
Url : http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20011217/a66a9687/attachment.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Aldo.gid.zip
Type: application/x-zip-compressed
Size: 567 bytes
Desc: not available
Url : http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20011217/a66a9687/attachment-0001.bin
[GiDlist] z coord for nodes
I upgrade to GiD6.2.0b and now it works. Thanks, Enrique!
Regards
Aldo
At 17.03 17/12/2001 +0100, you wrote:
Try to update your GiD version to the last beta in the web page (for windows
actually the last is the 6.2.0b).
Note: The registration code of the 6.1.3 official version is valid for all
6.x betas.
I' tried your files and it works i my version.
I' attach the problem type "Aldo.gid" and your cube test "TestAldo.gid".
The Calculation file output obtained is:
1 1000
2 1000
3 -250
4 1000
5 1000
6 1000
7 -1500
...
Regards
Aldo
At 17.03 17/12/2001 +0100, you wrote:
Try to update your GiD version to the last beta in the web page (for windows
actually the last is the 6.2.0b).
Note: The registration code of the 6.1.3 official version is valid for all
6.x betas.
I' tried your files and it works i my version.
I' attach the problem type "Aldo.gid" and your cube test "TestAldo.gid".
The Calculation file output obtained is:
1 1000
2 1000
3 -250
4 1000
5 1000
6 1000
7 -1500
...