Skip to main content

ContactSimulationModel

Kind: Class
Domain: Simulation handoff
Canonical import: from cadflow import ContactSimulationModel

Signature

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

Description

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>)

Other public imports

  • from cadflow.simulation import ContactSimulationModel

Parameters

NameTypeRequiredDefaultSource description
assembly_id'str'yes-Not explicitly described in the source docstring.
surfaces'tuple[SurfaceRegion, ...]'no()Not explicitly described in the source docstring.
contact_laws'tuple[SurfaceContactLaw, ...]'no()Not explicitly described in the source docstring.
contact_pairs'tuple[SurfaceContactPair, ...]'no()Not explicitly described in the source docstring.
surface_properties'tuple[SurfaceProperty, ...]'no()Not explicitly described in the source docstring.
materials'tuple[MechanicalMaterial, ...]'no()Not explicitly described in the source docstring.
component_materials'dict[str, str]'no&lt;factory&gt;Not explicitly described in the source docstring.
length_unit'str'no'mm'Not explicitly described in the source docstring.
force_unit'str'no'N'Not explicitly described in the source docstring.
time_unit'str'no's'Not explicitly described in the source docstring.
temperature_unit'str'no'K'Not explicitly described in the source docstring.
metadata'dict[str, Any]'no&lt;factory&gt;Not explicitly described in the source docstring.

Returns

Type: None

The source docstring does not declare additional return semantics.

Errors

The source docstring does not declare a narrower exception contract. Invalid types, values, ownership, paths, or backend state may still raise the corresponding public error.

Data fields

NameTypeDefault
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

Public members

MemberKindSignatureDescription
assign_materialmethod(self, component_id: 'str', material_id: 'str') -&gt; "'ContactSimulationModel'"See the member signature.
from_dictclass method(cls, value: 'Mapping[str, Any]') -&gt; "'ContactSimulationModel'"See the member signature.
from_jsonclass method(cls, value: 'str') -&gt; "'ContactSimulationModel'"See the member signature.
SCHEMA_VERSIONconstant-str(object='') -> str str(bytes_or_buffer[, encoding[, errors]]) -> str
to_dictmethod(self) -&gt; 'dict[str, Any]'See the member signature.
to_jsonmethod(self, *, indent: 'int | None' = 2) -&gt; 'str'See the member signature.
with_contact_lawmethod(self, value: 'SurfaceContactLaw') -&gt; "'ContactSimulationModel'"See the member signature.
with_contact_pairmethod(self, value: 'SurfaceContactPair') -&gt; "'ContactSimulationModel'"See the member signature.
with_materialmethod(self, value: 'MechanicalMaterial') -&gt; "'ContactSimulationModel'"See the member signature.
with_surfacemethod(self, value: 'SurfaceRegion') -&gt; "'ContactSimulationModel'"See the member signature.
with_surface_propertymethod(self, value: 'SurfaceProperty') -&gt; "'ContactSimulationModel'"See the member signature.

Behavior and constraints

  • Instances are immutable dataclass values; update workflows return a replacement value.

Import check

from cadflow import ContactSimulationModel

See also