Changeset 6327 for trunk


Ignore:
Timestamp:
May 13, 2016 11:04:51 PM (8 years ago)
Author:
ldelgass
Message:

Default 4 node elements to tetrahedra in 3D (deprecated) node/element meshes.
This applies only to DX output from prophet, I think. I'm not sure if prophet
outputs tets, I've only seen hexahedra so far.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gui/scripts/mesh.tcl

    r6326 r6327  
    14571457        }
    14581458        set celltype $node2celltype($numNodes)
     1459        if { _$dim == 3 && $numNodes == 4 } {
     1460            # If mesh is 3D, assume a tetrahedron (default is quad)
     1461            # XXX: Does prophet output tets, and if so what is the node order?
     1462            set celltype 10
     1463        }
    14591464        append celltypes "$celltype\n"
    1460         if { $numNodes == 4 } {
     1465        if { $celltype == 9 } {
    14611466            # Fix the node order for quad cells
    14621467            # (this converts from PROPHET convention to VTK convention)
     
    14661471            }
    14671472            set nodeList $newList
    1468         } elseif { $numNodes == 8 } {
     1473        } elseif { $celltype == 12 } {
    14691474            # Fix the node order for hexahedron cells
    14701475            # (this converts from PROPHET convention to VTK convention)
Note: See TracChangeset for help on using the changeset viewer.