예제 #1
0
파일: topology.py 프로젝트: Nasrollah/tmr
 def createElement(self, order, octant, index, weights):
     '''Create the element'''
     rho = 2600.0
     E = 70e9
     nu = 0.3
     stiff = TMR.OctStiffness(rho, E, nu, index, weights, q=8.0)
     elem = elements.Solid(2, stiff)
     return elem
예제 #2
0
파일: cantilever.py 프로젝트: xyuan/tmr
    def createElement(self, order, octant, index, weights):
        """
        Create the element for the given octant.

        This callback provides the global indices for the filter mesh and the weights
        applied to each nodal density value to obtain the element density. The
        local octant is also provided (but not used here).

        Args:
            order (int): Order of the underlying mesh
            octant (Octant): The TMR.Octant class
            index (list): List of the global node numbers referenced by the element
            weights (list): List of weights to compute the element density

        Returns:
            TACS.Element: Element for the given octant
        """
        stiff = TMR.OctStiffness(self.props, index, weights)
        elem = elements.Solid(2, stiff)
        return elem
예제 #3
0
 def createElement(self, order, octant, index, weights):
     '''Create the element'''
     stiff = TMR.OctStiffness(self.props, index, weights)
     elem = elements.Solid(2, stiff)
     return elem