本文整理汇总了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
示例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
示例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
示例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
示例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
示例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
示例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
示例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
示例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
示例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
示例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
示例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
示例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
示例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
示例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