Merge pull request #426 from ThomasRigoni7/master

Fix to material names in Peplinski soils
这个提交包含在:
Craig Warren
2024-02-06 10:23:20 +00:00
提交者 GitHub
当前提交 8ae8aa6415

查看文件

@@ -312,8 +312,9 @@ class PeplinskiSoil(object):
# Effective conductivity
sig = muiter[0]**(b2 / a) * ((sigf * (self.rs - self.rb)) / (self.rs * muiter[0]))
# Check to see if the material already exists before creating a new one
materialID = '|{:.4f}_{}|'.format(float(muiter[0]), fractalboxname)
# Add enough zeroes to the material name so that they have the same length
digitscount = len(str(int(nbins)))
materialID = '|{}_{}|'.format(fractalboxname, str(muiter.index + 1).zfill(digitscount))
m = Material(len(G.materials), materialID)
m.type = 'debye'
m.averagable = False