[GiDlist] Setting Precision in Exported GiD Mesh / Plotting

Moderator: GiD Team

Post Reply
Jeramy Ashlock

[GiDlist] Setting Precision in Exported GiD Mesh / Plotting

Post by Jeramy Ashlock »

1.) Setting Precision in Exported GiD Mesh

When I export a mesh as a GiD Mesh text file (Files--Export--GiD Mesh), coordinates of 0.00000 are written as a very small number
with a random mantissa, for example; 1.2343224e-016. As a result, my analysis program does not find that the input mesh is
symmetric, so computation time is increased.

I discovered that I could write the project as an Ascii Project (Files--Export--Ascii project), then re-open the Ascii project
file in GiD and regenerate the GiD Mesh file and the coordinates are then written as 0.0000000.

Is there a way to set the precision so that I don't have to play this game when exporting a GiD Mesh?



2.) Plotting Quadratic elements

I have been following the past discussions about how the mid-nodes of quadratic triangles and quadrilaterals are placed correctly,
but the elements are drawn with straight lines connecting the corner nodes rather than curved lines that go through the mid-nodes.
By plotting the mesh using the 'patch' function in matlab, I am able to see the correct curved element surface. Is there any way to
do this in GiD yet?

Does GiD behave this way when postprocessing? If so, I was planning on purchasing GiD and using it for postprocessing, but I will
keep using matlab until this feature is introduced, as I will not see the true displacement profile in GiD.

thanks for your help
Ramon Ribó

[GiDlist] Setting Precision in Exported GiD Mesh / Plotting

Post by Ramon Ribó »

Hello,

You can write the mesh by using the customization capabilities
of GiD (the .bas file in the problemtype).

There, you can use commands like:

*RealFormat %.3g or
*Format %15.5f

To begin to create a problemtype, check one of the problemtypes
included in the distribution as a example, and modify it to suit your
needs. Read also: Help-Customization help

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 Jeramy Ashlock
Enviado el: viernes, 20 de septiembre de 2002 19:26
Para: gidlist at gatxan.cimne.upc.es
Asunto: [GiDlist] Setting Precision in Exported GiD Mesh / Plotting
Quadratic elements


1.) Setting Precision in Exported GiD Mesh

When I export a mesh as a GiD Mesh text file (Files--Export--GiD Mesh),
coordinates of 0.00000 are written as a very small number
with a random mantissa, for example; 1.2343224e-016. As a result, my
analysis program does not find that the input mesh is
symmetric, so computation time is increased.

I discovered that I could write the project as an Ascii Project
(Files--Export--Ascii project), then re-open the Ascii project
file in GiD and regenerate the GiD Mesh file and the coordinates are then
written as 0.0000000.

Is there a way to set the precision so that I don't have to play this game
when exporting a GiD Mesh?



2.) Plotting Quadratic elements

I have been following the past discussions about how the mid-nodes of
quadratic triangles and quadrilaterals are placed correctly,
but the elements are drawn with straight lines connecting the corner nodes
rather than curved lines that go through the mid-nodes.
By plotting the mesh using the 'patch' function in matlab, I am able to see
the correct curved element surface. Is there any way to
do this in GiD yet?

Does GiD behave this way when postprocessing? If so, I was planning on
purchasing GiD and using it for postprocessing, but I will
keep using matlab until this feature is introduced, as I will not see the
true displacement profile in GiD.

thanks for your help
_______________________________________________
GiDlist mailing list
GiDlist at gid.cimne.upc.es
http://gid.cimne.upc.es/mailman/listinfo/gidlist
Enrique Escolano

[GiDlist] Setting Precision in Exported GiD Mesh / Plotting

Post by Enrique Escolano »

1) Only is possible to specify a format if you write a template .bas (see
help on files-Export-Using Template, and Customization-Template file)

2) For the next beta version, the quadratic elements are drawn as linear,
with straight lines, or with curved edges, this can be changed inside the
preference window.

Enrique

----- Original Message -----
From: "Jeramy Ashlock" ashlock at bechtel.Colorado.EDU
To: gidlist at gatxan.cimne.upc.es
Sent: Friday, September 20, 2002 7:26 PM
Subject: [GiDlist] Setting Precision in Exported GiD Mesh / Plotting
Quadratic elements


1.) Setting Precision in Exported GiD Mesh

When I export a mesh as a GiD Mesh text file (Files--Export--GiD Mesh),
coordinates of 0.00000 are written as a very small number
with a random mantissa, for example; 1.2343224e-016. As a result, my
analysis program does not find that the input mesh is
symmetric, so computation time is increased.

I discovered that I could write the project as an Ascii Project
(Files--Export--Ascii project), then re-open the Ascii project
file in GiD and regenerate the GiD Mesh file and the coordinates are then
written as 0.0000000.

Is there a way to set the precision so that I don't have to play this game
when exporting a GiD Mesh?



2.) Plotting Quadratic elements

I have been following the past discussions about how the mid-nodes of
quadratic triangles and quadrilaterals are placed correctly,
but the elements are drawn with straight lines connecting the corner nodes
rather than curved lines that go through the mid-nodes.
By plotting the mesh using the 'patch' function in matlab, I am able to
see the correct curved element surface. Is there any way to
do this in GiD yet?

Does GiD behave this way when postprocessing? If so, I was planning on
purchasing GiD and using it for postprocessing, but I will
keep using matlab until this feature is introduced, as I will not see the
true displacement profile in GiD.

thanks for your help
_______________________________________________
GiDlist mailing list
GiDlist at gid.cimne.upc.es
http://gid.cimne.upc.es/mailman/listinfo/gidlist

Post Reply