def compute_relative_viscosity(self, state):
phi = state.get_crystal_fraction()
if self._strain_rate == 1.0:
# needle-like B particles from Cimarelli et al., 2011
# self.phi_max_2 = 0.44
delta_1 = 4.45
gama_1 = 8.55
phi_star_1 = 0.28
epsilon_1 = 0.001
f = (1. - epsilon_1) * math.erf(min(25., (
(math.sqrt(math.pi) / (2. * (1. - epsilon_1))) * (phi / phi_star_1) * (
1. + (math.pow((phi / phi_star_1), gama_1))))))
relative_viscosity = (1. + math.pow((phi / phi_star_1), delta_1)) / (
math.pow((1. - f), (2.5 * phi_star_1)))
return relative_viscosity
if self._strain_rate == 0.0001:
# needle-like, B particles from Cimarelli et al., 2011
# self.phi_max = 0.36
delta_1 = 7.5
gama_1 = 5.5
phi_star_1 = 0.26
epsilon_1 = 0.0002
f = (1. - epsilon_1) * math.erf(min(25., (
(math.sqrt(math.pi) / (2. * (1. - epsilon_1))) * (phi / phi_star_1) * (
1. + (math.pow((phi / phi_star_1), gama_1))))))
relative_viscosity = (1. + math.pow((phi / phi_star_1), delta_1)) / (
math.pow((1. - f), (2.5 * phi_star_1)))
return relative_viscosity
flowgo_relative_viscosity_model_costa2.py 文件源码
python
阅读 29
收藏 0
点赞 0
评论 0
评论列表
文章目录