[GiDlist] Undesired blank line generated for bas file

Moderator: GiD Team

Post Reply
Alejo Jiménez Chong

[GiDlist] Undesired blank line generated for bas file

Post by Alejo Jiménez Chong »

I have a problem with the output of bas file, it generates a blank line betwen two data sets, I have checked my code but I haven´t found the error, I hope that somebody could help me.

-- This is a part of the bas file (complete file attached) --
*# more bas file up
*#
*# NODOS
*#
*set elems(all)
*Set Cond Restricion_en_Volumenes *nodes *or(1,int) *or(3,int)
*Add Cond Restricion_en_Superficies *nodes *or(1,int) *or(3,int)
*Add Cond Restricion_en_Lineas *nodes *or(1,int) *or(3,int)
*Add Cond Restricion_en_Nodos *nodes *or(1,int) *or(3,int)
*loop nodes
*format "%10.3f%10.3f%10.3f%2i%2i%2i%2i%2i%2i"
*NodesCoord *cond(1) *cond(2) *cond(3) *cond(4) *cond(5) *cond(6)
*end
*#
*# CARGAS
*Set Cond Puntual_X nodes
*loop nodes OnlyInCond
*format "%5i%3i%10.3f"
*NodesNum 1*cond(2)*cond(1)
*end
*Set Cond Puntual_Y nodes
*loop nodes OnlyInCond
*format "%5i%3i%10.3f"
*NodesNum 2*cond(2)*cond(1)
*end
*Set Cond Puntual_Z nodes
*loop nodes OnlyInCond
*format "%5i%3i%10.3f"
*NodesNum 3*cond(2)*cond(1)
*end
*#
*# more bas file down


-- I get a DAT file with a "undesired empty line" (complete file attached) --
more dat file up
64.000 16.667 55.000 1 0 0 1 1 1
55.667 0.000 50.000 0 1 0 1 1 1
64.000 8.333 50.000 1 0 0 1 1 1
55.667 0.000 55.000 0 1 0 1 1 1
64.000 8.333 55.000 1 0 0 1 1 1
64.000 0.000 50.000 1 1 0 1 1 1
64.000 0.000 55.000 1 1 0 1 1 1

354 3 4 -20.000
373 3 4 -20.000
380 3 4 -20.000
389 3 4 -20.000
394 3 4 -20.000
402 3 4 -20.000
404 3 4 -20.000
more dat file down


I attached the ProblemType (test_3d.gid) and a GiD file (gamma.dat)

Thanks in advanced.



Alejo J. Ch.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20020713/9c19946a/attachment.htm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gamma.gid.zip
Type: application/x-zip-compressed
Size: 68258 bytes
Desc: not available
Url : http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20020713/9c19946a/attachment.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test_3d.gid.zip
Type: application/x-zip-compressed
Size: 5249 bytes
Desc: not available
Url : http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20020713/9c19946a/attachment-0001.bin
Enrique Escolano

[GiDlist] Undesired blank line generated for bas file

Post by Enrique Escolano »

This is a bug of GiD in this case (related with a conditions cache):
*set cond A
*add cond B
...
*set cond A

Avoid the use of add cond in this case until this bug is corrected.

Another comment:
The material fields of the sample are different as the material fields of the problem type attached.
Ypu can use Data-ProblemType-Transform to update a sample to a new problemtype version.

----- Original Message -----
From: Alejo Jiménez Chong
To: gidlist at gatxan.cimne.upc.es
Sent: Saturday, July 13, 2002 9:07 PM
Subject: [GiDlist] Undesired blank line generated for bas file


I have a problem with the output of bas file, it generates a blank line betwen two data sets, I have checked my code but I haven´t found the error, I hope that somebody could help me.

-- This is a part of the bas file (complete file attached) --
*# more bas file up
*#
*# NODOS
*#
*set elems(all)
*Set Cond Restricion_en_Volumenes *nodes *or(1,int) *or(3,int)
*Add Cond Restricion_en_Superficies *nodes *or(1,int) *or(3,int)
*Add Cond Restricion_en_Lineas *nodes *or(1,int) *or(3,int)
*Add Cond Restricion_en_Nodos *nodes *or(1,int) *or(3,int)
*loop nodes
*format "%10.3f%10.3f%10.3f%2i%2i%2i%2i%2i%2i"
*NodesCoord *cond(1) *cond(2) *cond(3) *cond(4) *cond(5) *cond(6)
*end
*#
*# CARGAS
*Set Cond Puntual_X nodes
*loop nodes OnlyInCond
*format "%5i%3i%10.3f"
*NodesNum 1*cond(2)*cond(1)
*end
*Set Cond Puntual_Y nodes
*loop nodes OnlyInCond
*format "%5i%3i%10.3f"
*NodesNum 2*cond(2)*cond(1)
*end
*Set Cond Puntual_Z nodes
*loop nodes OnlyInCond
*format "%5i%3i%10.3f"
*NodesNum 3*cond(2)*cond(1)
*end
*#
*# more bas file down


-- I get a DAT file with a "undesired empty line" (complete file attached) --
more dat file up
64.000 16.667 55.000 1 0 0 1 1 1
55.667 0.000 50.000 0 1 0 1 1 1
64.000 8.333 50.000 1 0 0 1 1 1
55.667 0.000 55.000 0 1 0 1 1 1
64.000 8.333 55.000 1 0 0 1 1 1
64.000 0.000 50.000 1 1 0 1 1 1
64.000 0.000 55.000 1 1 0 1 1 1

354 3 4 -20.000
373 3 4 -20.000
380 3 4 -20.000
389 3 4 -20.000
394 3 4 -20.000
402 3 4 -20.000
404 3 4 -20.000
more dat file down


I attached the ProblemType (test_3d.gid) and a GiD file (gamma.dat)

Thanks in advanced.



Alejo J. Ch.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20020715/e568983d/attachment.htm
Post Reply