当前位置: 首页>>代码示例>>Python>>正文


Python PetscComponent.__init__方法代码示例

本文整理汇总了Python中pylith.utils.PetscComponent.PetscComponent.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python PetscComponent.__init__方法的具体用法?Python PetscComponent.__init__怎么用?Python PetscComponent.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在pylith.utils.PetscComponent.PetscComponent的用法示例。


在下文中一共展示了PetscComponent.__init__方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: __init__

# 需要导入模块: from pylith.utils.PetscComponent import PetscComponent [as 别名]
# 或者: from pylith.utils.PetscComponent.PetscComponent import __init__ [as 别名]
 def __init__(self, name="boundarycondition"):
   """
   Constructor.
   """
   PetscComponent.__init__(self, name, facility="boundary_condition")
   self._createModuleObj()
   return
开发者ID:jjle,项目名称:pylith,代码行数:9,代码来源:BoundaryCondition.py

示例2: __init__

# 需要导入模块: from pylith.utils.PetscComponent import PetscComponent [as 别名]
# 或者: from pylith.utils.PetscComponent.PetscComponent import __init__ [as 别名]
 def __init__(self, name="problem"):
   """
   Constructor.
   """
   PetscComponent.__init__(self, name, facility="problem")
   self.mesh = None
   return
开发者ID:youngsolar,项目名称:pylith,代码行数:9,代码来源:Problem.py

示例3: __init__

# 需要导入模块: from pylith.utils.PetscComponent import PetscComponent [as 别名]
# 或者: from pylith.utils.PetscComponent.PetscComponent import __init__ [as 别名]
 def __init__(self, name="progressmonitor"):
   """
   Constructor.
   """
   PetscComponent.__init__(self, name, facility="progress_monitor")
   self.isMaster = True
   return
开发者ID:rishabhdutta,项目名称:pylith,代码行数:9,代码来源:ProgressMonitor.py

示例4: __init__

# 需要导入模块: from pylith.utils.PetscComponent import PetscComponent [as 别名]
# 或者: from pylith.utils.PetscComponent.PetscComponent import __init__ [as 别名]
 def __init__(self, name="mesh_distributor"):
   """
   Constructor.
   """
   PetscComponent.__init__(self, name, facility="mesh_distributor")
   ModuleDistributor.__init__(self)
   return
开发者ID:rishabhdutta,项目名称:pylith,代码行数:9,代码来源:Distributor.py

示例5: __init__

# 需要导入模块: from pylith.utils.PetscComponent import PetscComponent [as 别名]
# 或者: from pylith.utils.PetscComponent.PetscComponent import __init__ [as 别名]
 def __init__(self, name="meshio"):
   """
   Constructor.
   """
   PetscComponent.__init__(self, name, facility="mesh_io")
   self.coordsys = None
   self._createModuleObj()
   return
开发者ID:geodynamics,项目名称:pylith,代码行数:10,代码来源:MeshIOObj.py

示例6: __init__

# 需要导入模块: from pylith.utils.PetscComponent import PetscComponent [as 别名]
# 或者: from pylith.utils.PetscComponent.PetscComponent import __init__ [as 别名]
 def __init__(self, name="meshgenerator"):
   """
   Constructor.
   """
   PetscComponent.__init__(self, name, facility="meshgenerator")
   self.debug = False
   self.interpolate = False
   return
开发者ID:youngsolar,项目名称:pylith,代码行数:10,代码来源:MeshGenerator.py

示例7: __init__

# 需要导入模块: from pylith.utils.PetscComponent import PetscComponent [as 别名]
# 或者: from pylith.utils.PetscComponent.PetscComponent import __init__ [as 别名]
 def __init__(self, name="material"):
   """
   Constructor.
   """
   PetscComponent.__init__(self, name, facility="material")
   self._createModuleObj()
   self.output = None
   return
开发者ID:rishabhdutta,项目名称:pylith,代码行数:10,代码来源:Material.py

示例8: __init__

# 需要导入模块: from pylith.utils.PetscComponent import PetscComponent [as 别名]
# 或者: from pylith.utils.PetscComponent.PetscComponent import __init__ [as 别名]
 def __init__(self, name="eqkinsrc"):
   """
   Constructor.
   """
   PetscComponent.__init__(self, name, facility="eqkinsrc")
   self._createModuleObj()
   self._loggingPrefix = "EqKi "
   return
开发者ID:rishabhdutta,项目名称:pylith,代码行数:10,代码来源:EqKinSrc.py

示例9: __init__

# 需要导入模块: from pylith.utils.PetscComponent import PetscComponent [as 别名]
# 或者: from pylith.utils.PetscComponent.PetscComponent import __init__ [as 别名]
  def __init__(self, name="xdmf"):
    """
    Constructor.
    """
    PetscComponent.__init__(self, name, facility="xdmf")
    self._loggingPrefix = "Xdmf "

    ModuleXdmf.__init__(self)
    return
开发者ID:youngsolar,项目名称:pylith,代码行数:11,代码来源:Xdmf.py

示例10: __init__

# 需要导入模块: from pylith.utils.PetscComponent import PetscComponent [as 别名]
# 或者: from pylith.utils.PetscComponent.PetscComponent import __init__ [as 别名]
  def __init__(self, name="checkpointtimer"):
    """
    Constructor.
    """
    PetscComponent.__init__(self, name, facility="checkpointer")

    from pyre.units.time import second
    self.t = -8.9e+99*second

    self.toplevel = None
    return
开发者ID:jjle,项目名称:pylith,代码行数:13,代码来源:CheckpointTimer.py

示例11: __init__

# 需要导入模块: from pylith.utils.PetscComponent import PetscComponent [as 别名]
# 或者: from pylith.utils.PetscComponent.PetscComponent import __init__ [as 别名]
 def __init__(self, name="formulation"):
   """
   Constructor.
   """
   PetscComponent.__init__(self, name, facility="formulation")
   # ModuleFormulation constructor called in base clase
   self.integrators = None
   self.constraints = None
   self.jacobian = None
   self.fields = None
   return
开发者ID:youngsolar,项目名称:pylith,代码行数:13,代码来源:Formulation.py

示例12: __init__

# 需要导入模块: from pylith.utils.PetscComponent import PetscComponent [as 别名]
# 或者: from pylith.utils.PetscComponent.PetscComponent import __init__ [as 别名]
 def __init__(self, name="timestep"):
   """
   Constructor.
   """
   PetscComponent.__init__(self, name, facility="time_step")
   from pyre.units.time import second
   self.timeScale = 1.0*second
   self.totalTime = 0.0*second
   self.startTime = 0.0*second
   self.dt = 0.0*second
   self.totalTimeN = 0.0 # Nondimensionalized total time
   self.startTimeN = 0.0 # Nondimensionalized start time
   self.dtN = 0.0 # Nondimenionalized time step
   return
开发者ID:rishabhdutta,项目名称:pylith,代码行数:16,代码来源:TimeStep.py

示例13: __init__

# 需要导入模块: from pylith.utils.PetscComponent import PetscComponent [as 别名]
# 或者: from pylith.utils.PetscComponent.PetscComponent import __init__ [as 别名]
  def __init__(self, name="outputmanager"):
    """
    Constructor.
    """
    PetscComponent.__init__(self, name, facility="outputmanager")
    self._loggingPrefix = "OutM "
    self._stepCur = 0
    self._stepWrite = None
    self._tWrite = None
    self.dataProvider = None
    self.vertexInfoFields = []
    self.vertexDataFields = []
    self.cellInfoFields = []
    self.cellDataFields = []

    self._createModuleObj()
    return
开发者ID:panzhengyang,项目名称:pylith,代码行数:19,代码来源:OutputManager.py

示例14: __init__

# 需要导入模块: from pylith.utils.PetscComponent import PetscComponent [as 别名]
# 或者: from pylith.utils.PetscComponent.PetscComponent import __init__ [as 别名]
  def __init__(self, name="referencecell"):
    """
    Constructor.
    """
    PetscComponent.__init__(self, name, facility="reference_cell")

    self.geometry = None # Geometry of reference cell

    self.basisVert = None # numpy array w/basis fns at vertices
    self.basisDerivVert = None # numpy array w/basis fn derivs at vertices
    self.basisQuad = None # numpy array w/basis fns at quad pts
    self.basisDerivQuad = None # numpy array w/basis fn derivs at quad pts

    self.quadPts = None # numpy array w/coordinates of quad pts
    self.quadWts = None # numpy array w/wts of quad pts

    self.cellDim = None # dimension of reference cell
    self.numCorners = None # number of vertices in reference cell
    self.numQuadPts = None # number of quadrature points
    return
开发者ID:jjle,项目名称:pylith,代码行数:22,代码来源:ReferenceCell.py

示例15: __init__

# 需要导入模块: from pylith.utils.PetscComponent import PetscComponent [as 别名]
# 或者: from pylith.utils.PetscComponent.PetscComponent import __init__ [as 别名]
 def __init__(self, name="foobar", facility="foo"):
   PetscComponent.__init__(self, name, facility)
   return
开发者ID:jjle,项目名称:pylith,代码行数:5,代码来源:TestPetscApp.py


注:本文中的pylith.utils.PetscComponent.PetscComponent.__init__方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。