int FEM_Mesh_default_read(void);
INTEGER function :: FEM_Mesh_default_read()
Return the default reading mesh. This routine is valid:
int FEM_Mesh_default_write(void);
INTEGER function :: FEM_Mesh_default_write()
Return the default writing mesh. This routine is valid:
int FEM_Mesh_get_length(int mesh,int entity);
INTEGER function :: FEM_Mesh_get_length(mesh,entity)
INTEGER, INTENT(IN) :: mesh,entity
Return the number of entitys that exist in this mesh.
This call can be used with any entity. For example, to get the number of nodes,
To get the number of ghost nodes,
To get the number of real elements of type 2,
void FEM_Mesh_data(int mesh,int entity,int attr,
void *data, int first, int length, int datatype,int width);
SUBROUTINE FEM_Mesh_data(mesh,entity,attr,data,first,length,datatype,width)
INTEGER, INTENT(IN) :: mesh,entity,attr,first,length,datatype,width
datatype, intent(inout) :: data(width,length)
This is the one routine for getting or setting entity's attributes on the mesh.
For example, to set the element connectivity, which is stored as 3 integer node indices in nodes, you would:
To add a new node property with 2 double-precision numbers from an array mat (containing, for example, material properties), you would first pick an unused user data "tag", for example 13, and:
January 17, 2008
FEM Homepage
Charm Homepage