~gcg/constrain/trunk

« back to all changes in this revision

Viewing changes to triaxiality.py

  • Committer: GCG at MSI
  • Date: 2021-02-16 18:56:47 UTC
  • Revision ID: gcg@msi-20210216185647-jundceapke4mtvbz
Initial import

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# -*- coding: utf-8 -*-
 
2
"""
 
3
Created on Mon Jan 25 09:02:32 2021
 
4
 
 
5
@author: Georg
 
6
 
 
7
Triaxiality support functions
 
8
"""
 
9
 
 
10
import numpy as np
 
11
 
 
12
def triax_function(D, R):
 
13
    """ Return triaxiality according to Bao and Wirczbiki
 
14
    D = cross section diameter
 
15
    R = neck radius
 
16
    """
 
17
    return 1./3. + np.sqrt(2.0) * np.log(1 + 0.5*D/(2*R))    
 
18
 
 
19
def bridgman_function(D, R):
 
20
    """ Return bridgman function according to Bao and Wirczbiky
 
21
    D = cross section diameter
 
22
    R = neck radius
 
23
    """
 
24
 
 
25
    # GCG best fit function to simulation data
 
26
    ratio = D / (2*R) # note that this is two times the original ratio of Bridgman, he has ratio = 0.5*D/(2*R)
 
27
    return 1./((1 + 1./ratio) * np.log(1 + ratio))
 
28
    
 
29
    ## Gromada et al, eq. 51 in Tu (2020)   
 
30
    #r = 0.5 * D / (4*R) # corresponds to (a/4R); R is diameter/(4*notch_radius)
 
31
    #beta = alpha = 0.5
 
32
    #return 1./(1 + r + r * (1-beta) * alpha / (4 - alpha))
 
33
 
 
34