你已经派生过 gprMax
镜像自地址
https://gitee.com/sunhf/gprMax.git
已同步 2025-08-08 07:24:19 +08:00
return gprMax parameters by method run
这个提交包含在:
@@ -64,7 +64,7 @@ class Relaxation(object):
|
|||||||
def __init__(self, sigma, mu, mu_sigma,
|
def __init__(self, sigma, mu, mu_sigma,
|
||||||
material_name, f_n=50,
|
material_name, f_n=50,
|
||||||
number_of_debye_poles=-1,
|
number_of_debye_poles=-1,
|
||||||
plot=True, save=True,
|
plot=True, save=False,
|
||||||
optimizer=PSO_DLS,
|
optimizer=PSO_DLS,
|
||||||
optimizer_options={}):
|
optimizer_options={}):
|
||||||
self.name = 'Relaxation function'
|
self.name = 'Relaxation function'
|
||||||
@@ -213,7 +213,7 @@ class Relaxation(object):
|
|||||||
# Plot the actual and the approximate dielectric properties
|
# Plot the actual and the approximate dielectric properties
|
||||||
if self.plot:
|
if self.plot:
|
||||||
self.plot_result(rl + ee, im)
|
self.plot_result(rl + ee, im)
|
||||||
return err_real + err_imag
|
return err_real + err_imag, properties
|
||||||
|
|
||||||
def print_output(self, tau, weights, ee):
|
def print_output(self, tau, weights, ee):
|
||||||
""" Print out the resulting Debye parameters in a gprMax format.
|
""" Print out the resulting Debye parameters in a gprMax format.
|
||||||
@@ -373,7 +373,7 @@ class HavriliakNegami(Relaxation):
|
|||||||
alpha, beta, e_inf, de, tau_0,
|
alpha, beta, e_inf, de, tau_0,
|
||||||
sigma, mu, mu_sigma, material_name,
|
sigma, mu, mu_sigma, material_name,
|
||||||
number_of_debye_poles=-1, f_n=50,
|
number_of_debye_poles=-1, f_n=50,
|
||||||
plot=False, save=True,
|
plot=False, save=False,
|
||||||
optimizer=PSO_DLS,
|
optimizer=PSO_DLS,
|
||||||
optimizer_options={}):
|
optimizer_options={}):
|
||||||
super(HavriliakNegami, self).__init__(sigma=sigma, mu=mu, mu_sigma=mu_sigma,
|
super(HavriliakNegami, self).__init__(sigma=sigma, mu=mu, mu_sigma=mu_sigma,
|
||||||
@@ -443,7 +443,7 @@ class Jonscher(Relaxation):
|
|||||||
e_inf, a_p, omega_p, n_p,
|
e_inf, a_p, omega_p, n_p,
|
||||||
sigma, mu, mu_sigma,
|
sigma, mu, mu_sigma,
|
||||||
material_name, number_of_debye_poles=-1,
|
material_name, number_of_debye_poles=-1,
|
||||||
f_n=50, plot=False, save=True,
|
f_n=50, plot=False, save=False,
|
||||||
optimizer=PSO_DLS,
|
optimizer=PSO_DLS,
|
||||||
optimizer_options={}):
|
optimizer_options={}):
|
||||||
super(Jonscher, self).__init__(sigma=sigma, mu=mu, mu_sigma=mu_sigma,
|
super(Jonscher, self).__init__(sigma=sigma, mu=mu, mu_sigma=mu_sigma,
|
||||||
@@ -507,7 +507,7 @@ class Crim(Relaxation):
|
|||||||
def __init__(self, f_min, f_max, a, volumetric_fractions,
|
def __init__(self, f_min, f_max, a, volumetric_fractions,
|
||||||
materials, sigma, mu, mu_sigma, material_name,
|
materials, sigma, mu, mu_sigma, material_name,
|
||||||
number_of_debye_poles=-1, f_n=50,
|
number_of_debye_poles=-1, f_n=50,
|
||||||
plot=False, save=True,
|
plot=False, save=False,
|
||||||
optimizer=PSO_DLS,
|
optimizer=PSO_DLS,
|
||||||
optimizer_options={}):
|
optimizer_options={}):
|
||||||
|
|
||||||
@@ -526,8 +526,8 @@ class Crim(Relaxation):
|
|||||||
# Choosing n frequencies logarithmicaly equally spaced between the bounds given
|
# Choosing n frequencies logarithmicaly equally spaced between the bounds given
|
||||||
self.set_freq(self.f_min, self.f_max, self.f_n)
|
self.set_freq(self.f_min, self.f_max, self.f_n)
|
||||||
self.a = a
|
self.a = a
|
||||||
self.volumetric_fractions = volumetric_fractions
|
self.volumetric_fractions = np.array(volumetric_fractions)
|
||||||
self.materials = materials
|
self.materials = np.array(materials)
|
||||||
self.params = {'f_min':self.f_min, 'f_max':self.f_max,
|
self.params = {'f_min':self.f_min, 'f_max':self.f_max,
|
||||||
'a':self.a, 'volumetric_fractions':self.volumetric_fractions,
|
'a':self.a, 'volumetric_fractions':self.volumetric_fractions,
|
||||||
'materials':self.materials}
|
'materials':self.materials}
|
||||||
@@ -598,7 +598,7 @@ class Rawdata(Relaxation):
|
|||||||
sigma, mu, mu_sigma,
|
sigma, mu, mu_sigma,
|
||||||
material_name, number_of_debye_poles=-1,
|
material_name, number_of_debye_poles=-1,
|
||||||
f_n=50, delimiter =',',
|
f_n=50, delimiter =',',
|
||||||
plot=False, save=True,
|
plot=False, save=False,
|
||||||
optimizer=PSO_DLS,
|
optimizer=PSO_DLS,
|
||||||
optimizer_options={}):
|
optimizer_options={}):
|
||||||
|
|
||||||
|
文件差异因一行或多行过长而隐藏
文件差异因一行或多行过长而隐藏
在新工单中引用
屏蔽一个用户