...
Code Block |
---|
GiD_fBeginResultGroup(fd,"Analysis", 1.0d0, GiD_OnNodes, NULL);
GiD_fResultDescription(fd,"ScalarNodes", GiD_Scalar);
GiD_fResultDescription(fd,"VectorNodes", GiD_Vector);
GiD_fResultDescription(fd,"Matrix", GiD_Matrix);
GiD_fResultDescription(fd,"Local Axes", GiD_LocalAxes);
GiD_fResultDescription(fd,"A complex Scalar", GiD_ComplexScalar);
GiD_fResultDescription(fd,"A complex Vector", GiD_ComplexVector);
GiD_fResultDescription(fd,"A complex Matrix", GiD_ComplexMatrix);
for (int i = 0; i < 9; i++ ) {
GiD_fWriteScalar(fd,nodes[i].id, Random());
GiD_fWriteVector(fd,nodes[i].id, Random(), Random(), Random());
GiD_fWrite3DMatrix(fd,nodes[i].id, Random(), Random(), Random(), Random(), Random(), Random());
GiD_fWriteComplexScalar(fd,nodes[i].id, Random(), Random());
GiD_fWriteComplexVector(fd,nodes[i].id, Random(), Random(), Random(), Random(), Random(), Random());
GiD_fWrite3DMatrix(fd,nodes[i].id, Random(), Random(), Random(), Random(), Random(), Random(),
Random(), Random(), Random(), Random(), Random(), Random());
}
GiD_EndResult(fd); |
...