Download Scilab Interface
Transcript
Scilab Interface, Release 4.0 Export a slice to OpenDX. Following the filename, you may use any of the following options: • if ‘ascii’ is not used, the file will contain binary data (non portable, but fast). • if ‘edges’ is used, the edges of the original mesh will be written instead of the slice content. • if ‘append’ is used, the opendx file will not be overwritten, and the new data will be added at the end of the file. More than one dataset may be written, just list them. Each dataset consists of either: • a field interpolated on the slice (scalar, vector or tensor), followed by an optional name. • a mesh_fem and a field, followed by an optional name. gf_slice_get(slice S, ’export to pos’, string filename[, string name][[,mesh_fem mf1], mat U1, string nameU1[[,mesh_fem mf1], mat U2, string nameU2,...]) Export a slice to Gmsh. More than one dataset may be written, just list them. Each dataset consists of either: • a field interpolated on the slice (scalar, vector or tensor). • a mesh_fem and a field. s = gf_slice_get(slice S, ’char’) Output a (unique) string representation of the slice. This can be used to perform comparisons between two different slice objects. This function is to be completed. gf_slice_get(slice S, ’display’) displays a short summary for a slice object. 4.45 gf_slice_set Synopsis gf_slice_set(slice S, ’pts’, mat P) Description : Edition of mesh slices. Command list : gf_slice_set(slice S, ’pts’, mat P) Replace the points of the slice. The new points P are stored in the columns the matrix. Note that you can use the function to apply a deformation to a slice, or to change the dimension of the slice (the number of rows of P is not required to be equal to gf_slice_get(slice S, ‘dim’)). 4.46 gf_spmat Synopsis 4.45. gf_slice_set 75