Skip to content

Instantly share code, notes, and snippets.

@crmccreary
crmccreary / odbPrinStressAngle.py
Created February 22, 2013 18:25
Python script for use within Abaqus to create a fieldOutput of the angle between a specified vector and the normal to the maximum principal stress plane
import sys, getopt, os, string
import math
from odbAccess import *
from abaqusConstants import *
import numpy as np
from numpy import linalg as LA
def get_p1_vector(s):
'''
11, 22, 33, 12, 13, 23