In [1]:
%matplotlib inline
import numpy as np
import matplotlib.pyplot as plt
from simmit import smartplus as sim
import os
In [2]:
v = np.random.rand(6)
trace = sim.tr(v)
print v
print trace
In [3]:
v = np.random.rand(6)
v_dev = sim.dev(v)
print v
print v_dev
In [4]:
v = np.random.rand(6)
Mises_sig = sim.Mises_stress(v)
print v
print Mises_sig
In [5]:
v = np.random.rand(6)
Mises_eps = sim.Mises_strain(v)
print v
print Mises_eps
In [6]:
v = np.random.rand(6)
sigma_f = sim.eta_stress(v)
print v
print sigma_f
In [7]:
v = np.random.rand(6)
eps_f = sim.eta_strain(v)
print v
print eps_f
In [8]:
v = np.random.rand(6)
m = sim.v2t_stress(v);
print v
print m
In [9]:
m = np.random.rand(3,3)
m_symm = (m + m.T)/2
v = sim.t2v_stress(m_symm);
print m_symm
print v
In [10]:
v = np.random.rand(6)
m = sim.v2t_strain(v);
print v
print m
In [11]:
m = np.random.rand(3,3)
m_symm = (m + m.T)/2
v = sim.t2v_strain(m_symm);
print m_symm
print v
In [12]:
v = np.random.rand(6)
J2 = sim.J2_stress(v)
print v
print J2
In [13]:
v = np.random.rand(6)
J2 = sim.J2_strain(v)
print v
print J2
In [14]:
v = np.random.rand(6)
J3 = sim.J3_stress(v)
print v
print J3
In [15]:
v = np.random.rand(6)
J3 = sim.J3_strain(v)
print v
print J3
In [ ]: