Skip to content
Snippets Groups Projects
model_small_tetraeder.py 421 B
Newer Older
  • Learn to ignore specific revisions
  • 
    """
    This is an empty docstring
    """
    
    from oofem_classes import Constraint, Force, Node, Element, Structure, Visualizer
    
    
    struct = Structure()
    
    n1 = Node([0, 0, 0])
    n2 = Node([1, 1, 0])
    
    e1 = Element(1, 1, n1, n2)
    
    c1 = Constraint([False, True, True])
    
    n1.set_constraint(c1)
    
    eqn = n1.enumerate_dofs(0)
    eqn = n2.enumerate_dofs(eqn)
    
    e1.enumerate_dofs()
    
    A= n1.get_dof_numbers()
    B=n2.get_dof_numbers()
    
    print(e1.get_dofs())