跳到主要内容

ContactSimulationModel

类型:
领域: 仿真交接
推荐导入: from cadflow import ContactSimulationModel

签名

class ContactSimulationModel(assembly_id: 'str', surfaces: 'tuple[SurfaceRegion, ...]' = (), contact_laws: 'tuple[SurfaceContactLaw, ...]' = (), contact_pairs: 'tuple[SurfaceContactPair, ...]' = (), surface_properties: 'tuple[SurfaceProperty, ...]' = (), materials: 'tuple[MechanicalMaterial, ...]' = (), component_materials: 'dict[str, str]' = <factory>, length_unit: 'str' = 'mm', force_unit: 'str' = 'N', time_unit: 'str' = 's', temperature_unit: 'str' = 'K', metadata: 'dict[str, Any]' = <factory>) -> None

功能说明

保存求解器无关的表面接触、材料与分配声明。

原始 API 说明

ContactSimulationModel(assembly_id: 'str', surfaces: 'tuple[SurfaceRegion, ...]' = (), contact_laws: 'tuple[SurfaceContactLaw, ...]' = (), contact_pairs: 'tuple[SurfaceContactPair, ...]' = (), surface_properties: 'tuple[SurfaceProperty, ...]' = (), materials: 'tuple[MechanicalMaterial, ...]' = (), component_materials: 'dict[str, str]' = <factory>, length_unit: 'str' = 'mm', force_unit: 'str' = 'N', time_unit: 'str' = 's', temperature_unit: 'str' = 'K', metadata: 'dict[str, Any]' = <factory>)

其他公共导入路径

  • from cadflow.simulation import ContactSimulationModel

参数

名称类型必需默认值源码说明
assembly_id'str'-源码 Docstring 未单独说明。
surfaces'tuple[SurfaceRegion, ...]'()源码 Docstring 未单独说明。
contact_laws'tuple[SurfaceContactLaw, ...]'()源码 Docstring 未单独说明。
contact_pairs'tuple[SurfaceContactPair, ...]'()源码 Docstring 未单独说明。
surface_properties'tuple[SurfaceProperty, ...]'()源码 Docstring 未单独说明。
materials'tuple[MechanicalMaterial, ...]'()源码 Docstring 未单独说明。
component_materials'dict[str, str]'&lt;factory&gt;源码 Docstring 未单独说明。
length_unit'str''mm'源码 Docstring 未单独说明。
force_unit'str''N'源码 Docstring 未单独说明。
time_unit'str''s'源码 Docstring 未单独说明。
temperature_unit'str''K'源码 Docstring 未单独说明。
metadata'dict[str, Any]'&lt;factory&gt;源码 Docstring 未单独说明。

返回值

类型: None

源码 Docstring 未声明更多返回语义。

异常

源码 Docstring 未声明更窄的异常契约。类型、数值、所有权、路径或后端状态无效时,仍可能抛出相应公共异常。

数据字段

名称类型默认值
assembly_id'str'required
surfaces'tuple[SurfaceRegion, ...]'()
contact_laws'tuple[SurfaceContactLaw, ...]'()
contact_pairs'tuple[SurfaceContactPair, ...]'()
surface_properties'tuple[SurfaceProperty, ...]'()
materials'tuple[MechanicalMaterial, ...]'()
component_materials'dict[str, str]'factory
length_unit'str''mm'
force_unit'str''N'
time_unit'str''s'
temperature_unit'str''K'
metadata'dict[str, Any]'factory

公共成员

成员类型签名说明
assign_materialmethod(self, component_id: 'str', material_id: 'str') -&gt; "'ContactSimulationModel'"见成员签名。
from_dictclass method(cls, value: 'Mapping[str, Any]') -&gt; "'ContactSimulationModel'"见成员签名。
from_jsonclass method(cls, value: 'str') -&gt; "'ContactSimulationModel'"见成员签名。
SCHEMA_VERSIONconstant-str(object='') -> str str(bytes_or_buffer[, encoding[, errors]]) -> str
to_dictmethod(self) -&gt; 'dict[str, Any]'见成员签名。
to_jsonmethod(self, *, indent: 'int | None' = 2) -&gt; 'str'见成员签名。
with_contact_lawmethod(self, value: 'SurfaceContactLaw') -&gt; "'ContactSimulationModel'"见成员签名。
with_contact_pairmethod(self, value: 'SurfaceContactPair') -&gt; "'ContactSimulationModel'"见成员签名。
with_materialmethod(self, value: 'MechanicalMaterial') -&gt; "'ContactSimulationModel'"见成员签名。
with_surfacemethod(self, value: 'SurfaceRegion') -&gt; "'ContactSimulationModel'"见成员签名。
with_surface_propertymethod(self, value: 'SurfaceProperty') -&gt; "'ContactSimulationModel'"见成员签名。

行为与约束

  • 实例是不可变 dataclass 值;更新式工作流会返回替代值。

导入检查

from cadflow import ContactSimulationModel

相关内容