Hi,
I am trying to write stress results using the GiDpost library (in FORTRAN).
The command for writing a Plain Deformation Result is:
Call GiD_WritePlainDefMatrix(id, sxx, syy, szz, sxy) which writes the
result in the following form (the stresses are being written on the nodes so
length of 'sxx' is 4*nelem ):
Sxx Syy Szz Sxy
1 x x x x
2 x x x x
3 x x x x
4 x x x x . and so on
However, this result causes an error when the post.res file is read, because
the stresses should be written in the form of for gauss points:
1 x x x x
x x x x
x x x x
x x x x
2 x x x x . and so on
I am also unable to write the results in between according to my format, as
the post.res file created by GiD is read only and I cannot write to it by
writing to the post.res. Else I could have written in the above manner. One
way I tried was to close the post.res file using GiD_Closeresult command and
write to it. It works, but if I open the post.res again to write more using
the library, then GiD_Openresult command opens a new post.res file and all
the contents are erased.
Let me know how to fix it.
Thanks,
Shriram
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20100205/209e8d73/attachment.htm
[GiDlist] Reg. Writing Results Using GidPost Lib
Moderator: GiD Team
[GiDlist] Reg. Writing Results Using GidPost Lib
I think that the problem has been the 'id' provided to GiD_WritePlainDefMatrix
You must do a loop over the elements, and inside do another loop over the number of gauss points (4 in your case),
and for all 4 gauss points of the element must repeat for id the same element number!!
Enrique
----- Original Message -----
From: Shriram
To: gidlist at gatxan.cimne.upc.edu
Sent: Friday, February 05, 2010 6:09 PM
Subject: [GiDlist] Reg. Writing Results Using GidPost Lib
Hi,
I am trying to write stress results using the GiDpost library (in FORTRAN). The command for writing a Plain Deformation Result is:
Call GiD_WritePlainDefMatrix(id, sxx, syy, szz, sxy) which writes the result in the following form (the stresses are being written on the nodes so length of 'sxx' is 4*nelem ):
Sxx Syy Szz Sxy
1 x x x x
2 x x x x
3 x x x x
4 x x x x . and so on
However, this result causes an error when the post.res file is read, because the stresses should be written in the form of for gauss points:
1 x x x x
x x x x
x x x x
x x x x
2 x x x x . and so on
I am also unable to write the results in between according to my format, as the post.res file created by GiD is read only and I cannot write to it by writing to the post.res. Else I could have written in the above manner. One way I tried was to close the post.res file using GiD_Closeresult command and write to it. It works, but if I open the post.res again to write more using the library, then GiD_Openresult command opens a new post.res file and all the contents are erased.
Let me know how to fix it.
Thanks,
Shriram
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20100205/d0c48311/attachment.htm
You must do a loop over the elements, and inside do another loop over the number of gauss points (4 in your case),
and for all 4 gauss points of the element must repeat for id the same element number!!
Enrique
----- Original Message -----
From: Shriram
To: gidlist at gatxan.cimne.upc.edu
Sent: Friday, February 05, 2010 6:09 PM
Subject: [GiDlist] Reg. Writing Results Using GidPost Lib
Hi,
I am trying to write stress results using the GiDpost library (in FORTRAN). The command for writing a Plain Deformation Result is:
Call GiD_WritePlainDefMatrix(id, sxx, syy, szz, sxy) which writes the result in the following form (the stresses are being written on the nodes so length of 'sxx' is 4*nelem ):
Sxx Syy Szz Sxy
1 x x x x
2 x x x x
3 x x x x
4 x x x x . and so on
However, this result causes an error when the post.res file is read, because the stresses should be written in the form of for gauss points:
1 x x x x
x x x x
x x x x
x x x x
2 x x x x . and so on
I am also unable to write the results in between according to my format, as the post.res file created by GiD is read only and I cannot write to it by writing to the post.res. Else I could have written in the above manner. One way I tried was to close the post.res file using GiD_Closeresult command and write to it. It works, but if I open the post.res again to write more using the library, then GiD_Openresult command opens a new post.res file and all the contents are erased.
Let me know how to fix it.
Thanks,
Shriram
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20100205/d0c48311/attachment.htm