當前位置: 首頁>>代碼示例>>Python>>正文


Python ElasticMaterial.ElasticMaterial類代碼示例

本文整理匯總了Python中ElasticMaterial.ElasticMaterial的典型用法代碼示例。如果您正苦於以下問題:Python ElasticMaterial類的具體用法?Python ElasticMaterial怎麽用?Python ElasticMaterial使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


在下文中一共展示了ElasticMaterial類的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。

示例1: __init__

 def __init__(self, name="maxwellisotropic3d"):
   """
   Constructor.
   """
   ElasticMaterial.__init__(self, name)
   self.availableFields = \
       {'vertex': \
          {'info': [],
           'data': []},
        'cell': \
          {'info': ["mu", "lambda", "density", "stable_dt_implicit", "stable_dt_explicit", "maxwell_time"],
           'data': ["total_strain", "viscous_strain", "stress", "cauchy_stress"]}}
   self._loggingPrefix = "MaMx3D "
   return
開發者ID:geodynamics,項目名稱:pylith,代碼行數:14,代碼來源:MaxwellIsotropic3D.py

示例2: __init__

 def __init__(self, name="elasticplanestrain"):
   """
   Constructor.
   """
   ElasticMaterial.__init__(self, name)
   self.availableFields = \
       {'vertex': \
          {'info': [],
           'data': []},
        'cell': \
          {'info': ["mu", "lambda", "density", "stable_dt_implicit", "stable_dt_explicit",],
           'data': ["total_strain", "stress", "cauchy_stress"]}}
   self._loggingPrefix = "MaPlSn "
   return
開發者ID:rishabhdutta,項目名稱:pylith,代碼行數:14,代碼來源:ElasticPlaneStrain.py

示例3: __init__

 def __init__(self, name="druckerprager3d"):
   """
   Constructor.
   """
   ElasticMaterial.__init__(self, name)
   self.availableFields = \
       {'vertex': \
          {'info': [],
           'data': []},
        'cell': \
          {'info': ["mu", "lambda", "density", "stable_dt_implicit", "stable_dt_explicit",
                    "alpha_yield", "beta", "alpha_flow"],
           'data': ["total_strain", "stress", "plastic_strain"]}}
   self._loggingPrefix = "MaDP3D "
   return
開發者ID:jjle,項目名稱:pylith,代碼行數:15,代碼來源:DruckerPrager3D.py

示例4: _configure

 def _configure(self):
   """
   Setup members using inventory.
   """
   ElasticMaterial._configure(self)
   if self.inventory.fitMohrCoulomb == "inscribed":
     fitEnum = ModuleDruckerPrager3D.MOHR_COULOMB_INSCRIBED
   elif self.inventory.fitMohrCoulomb == "middle":
     fitEnum = ModuleDruckerPrager3D.MOHR_COULOMB_MIDDLE
   elif self.inventory.fitMohrCoulomb == "circumscribed":
     fitEnum = ModuleDruckerPrager3D.MOHR_COULOMB_CIRCUMSCRIBED
   else:
     raise ValueError("Unknown fit to Mohr-Coulomb yield surface.")
   ModuleDruckerPrager3D.fitMohrCoulomb(self, fitEnum)
   ModuleDruckerPrager3D.allowTensileYield(self, self.inventory.allowTensileYield)
   return
開發者ID:jjle,項目名稱:pylith,代碼行數:16,代碼來源:DruckerPrager3D.py

示例5: __init__

 def __init__(self, name="powerlaw3d"):
   """
   Constructor.
   """
   ElasticMaterial.__init__(self, name)
   self.availableFields = \
       {'vertex': \
          {'info': [],
           'data': []},
        'cell': \
          {'info': ["mu", "lambda", "density", "stable_dt_implicit", "stable_dt_explicit",
                    "reference_strain_rate", "reference_stress",
                    "power_law_exponent"],
           'data': ["total_strain", "stress", "viscous_strain"]}}
   self._loggingPrefix = "MaPL3D "
   return
開發者ID:youngsolar,項目名稱:pylith,代碼行數:16,代碼來源:PowerLaw3D.py

示例6: __init__

 def __init__(self, name="genmaxwellplanestrain"):
   """
   Constructor.
   """
   ElasticMaterial.__init__(self, name)
   self.availableFields = \
       {'vertex': \
          {'info': [],
           'data': []},
        'cell': \
          {'info': ["mu", "lambda", "density", "stable_dt_implicit", "stable_dt_explicit",
                    "shear_ratio", "maxwell_time"],
           'data': ["stress_zz_initial",
                    "total_strain", "stress",
                    "viscous_strain_1", 
                    "viscous_strain_2", 
                    "viscous_strain_3",
                    ]}}
   self._loggingPrefix = "MaGM2D "
   return
開發者ID:jjle,項目名稱:pylith,代碼行數:20,代碼來源:GenMaxwellPlaneStrain.py

示例7: __init__

 def __init__(self, name="genmaxwellqpqsisotropic3d"):
   """
   Constructor.
   """
   ElasticMaterial.__init__(self, name)
   self.availableFields = \
       {'vertex': \
          {'info': [],
           'data': []},
        'cell': \
          {'info': ["mu", "k", "density", "stable_dt_implicit", "stable_dt_explicit",
                    "shear_ratio", 
                    "bulk_ratio",
                    "maxwell_time_shear",
                    "maxwell_time_bulk"],
           'data': ["total_strain", "stress", "cauchy_stress",
                    "viscous_deviatoric_strain", 
                    "viscous_mean_strain", 
                    ]}}
   self._loggingPrefix = "MaGQ3D "
   return
開發者ID:geodynamics,項目名稱:pylith,代碼行數:21,代碼來源:GenMaxwellQpQsIsotropic3D.py


注:本文中的ElasticMaterial.ElasticMaterial類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。