int GiD_fWriteElement(GiD_FILE fd, int id, int nid[]);
int GiD_fWriteSphere(GiD_FILE fd, int id, int nid, double r);
int GiD_fWriteCircle(GiD_FILE fd, int id, int nid, double r,double nx, double ny, double nz);
Description: Write an element member at the current Elements Block.
Parameters:
GiD_FILE fd the file descriptor
int id Element number identifier
int nid[] connectivities of the element, the vector dimension must be equal to the NNode parameter given in the previous call to GiD_fBeginMesh
r the radius (sphere or circle element only)
nx,ny,nz unitary normal of the circle plane (circle element only)
Example:
C/C++
Code Block |
---|
int id=2; |
...
int nid[3]; |
...
nid[0]=4; nid[1]=7; nid[2]=3; |
...
GiD_fWriteElementMat(fd,id,nid); |
FORTRAN
Code Block |
---|
INTEGER *4 nid(1:3) |
...
INTEGER*4 idx |
...
idx=2 |
...
nid(1)=4 |
...
nid(2)=7 |
...
nid(3)=3 |
...
CALL GID_FWRITEELEMENT(fd,idx,nid) |