% ------------------- EXAMPLE 1 of 2 -------------------------- >> Parametric_1d_line (Echo of msh_remarks.tmp) ============== Begin Application Remarks ==================== Numerical evaluation of the geometric properties of a line from x=2 to x=6 so length is 4, cg is 4, inertia is 69.33 Nodal dof: none (geometry study only) Element type = 1 (a parametric line) Element connection: two nodes per element Element properties: none (later add areas) NOTE: nodal BC_Flag not used here, enter zero for it =============== End Application Remarks ======================= User control variables n_g number of DOF per node = 1 n_n number of nodes per element = 2 n_p dimension of parametric space = 1 n_q number of quadrature points = 2 n_s dimension of physical space = 1 Read 5 nodes. (Echo node, file msh_bc_xyz.tmp) node, bc_flags, 1 coordinates 1, 0 2 2, 0 3 3, 0 4 4, 0 5 5, 0 6 Read 4 elements with type & 2 nodes each. (Echo element number, file msh_typ_nodes.tmp) 1, 1 1 2 2, 1 2 3 3, 1 3 4 4, 1 4 5 % Echo from plot library Read 5 mesh coordinate pairs Read 4 elements with 2 nodes each Straight line results: Length = 4 X-centroid point = 4 Global I_yy = 69.3333 % ------------------- EXAMPLE 2 of 2 -------------------------- >> Parametric_1d_line (Echo of msh_remarks.tmp) ============== Begin Application Remarks ==================== Numerical evaluation of the geometric properties of a line having a 4:3 slope in the xy-plane Nodal dof: none (geometry study only) NOTE: nodal BC_Flag not used here, enter zero for it Element type = 1 (a parametric line) Element connection: two nodes per element Element properties: none (later add areas) =============== End Application Remarks ======================= User control variables n_g number of DOF per node = 1 n_n number of nodes per element = 2 n_p dimension of parametric space = 1 n_q number of quadrature points = 2 n_s dimension of physical space = 1 Read 5 nodes. (Echo node, file msh_bc_xyz.tmp) node, bc_flags, 2 coordinates 1, 0 2 1.5 2, 0 3 2.25 3, 0 4 3 4, 0 5 3.75 5, 0 6 4.5 WARNING: Read 2 coordinates, but expected 1 Read 4 elements with type & 2 nodes each. (Echo element number, file msh_typ_nodes.tmp) 1, 1 1 2 2, 1 2 3 3, 1 3 4 4, 1 4 5 Straight line results: Length = 5 X-centroid point = 4 Y-centroid point = 3 Global I_yy = 86.6667 Global I_xx = 48.75 Global I_xy = -65