In [1]:
%matplotlib inline
import numpy as np
from numpy.linalg import inv
import pandas as pd
import matplotlib.pyplot as plt
from simmit import smartplus as sim
from simmit import identify as iden
import os
import itertools
dir = os.path.dirname(os.path.realpath('__file__'))
Consider a 2-phase composite, with an Al matrix containing Al2O3 spherical inhomogeneities, with the following elastic constants for each phase:
$E_{Al} = 70000 \quad \nu_{Al} = 0.33$
$E_{Al2O3} = 370000 \quad \nu_{Al2O3} = 0.22$
The volume fraction of the Alumina phase is 0.1
In [2]:
In [16]:
In [41]:
In [30]:
In [47]:
path_data = dir + '/data'
nstatev = 0
psi_rve = 0.
theta_rve = 0.
phi_rve = 0.
umat_name = 'MIMTN'
#Props
nphases = 2 #The number of phases
num_file = 0 #The num of the file that contains the subphases
int1 = 50
int2 = 50
n_matrix = 0
props = np.array([nphases, num_file, int1, int2, n_matrix])
L_eff = sim.L_eff(umat_name, props, nstatev, psi_rve, theta_rve, phi_rve, path_data)
print np.array_str(L_eff, precision=3)
d = sim.L_iso_props(L_eff)
print d[0]
print d[1]
In [ ]: