OneSimulation docs Website Free books Plans on Gumroad

Docs › Numerical API reference › onesim.numerics.field_transfer

B.6 onesim.numerics.field_transfer

CellToQuadratureProjection class

CellToQuadratureProjection(*, source_mesh: object | None = None, target_mesh: object | None = None, factory: object | None = None) -> None

Map native cell data to the receiving quadrature support through the bound evaluator.

Methods and properties.

bind(*, source, target, target_mesh, factory=None)

Bind this declaration to the supplied execution context and collaborators.

to_mapping()

Return the mapping representation used for configuration and diagnostics.

ConservativeVolumeTransfer class

ConservativeVolumeTransfer(*, source_mesh: object | None = None, target_mesh: object | None = None, factory: object | None = None, absolute_tolerance: float = 1e-10, relative_tolerance: float = 1e-07, quadrature_relative_tolerance: float = 1e-09, quadrature_absolute_tolerance: float = 0.0, quadrature_order: int = 4, maximum_subdivisions: int = 256, maximum_depth: int = 10, positive: bool = True, intersection_roots: object | None = None, intersection_event_tolerance: float = 1e-08) -> None

Integrate an FE scalar density over physical FV overlaps. Configure coverage and quadrature tolerances for the receiving cells.

Methods and properties.

bind(*, source, target, target_mesh, factory=None)

Bind this declaration to the supplied execution context and collaborators.

bind_runtime(*, evaluator, target, target_mesh, target_space, identifier, factory=None)

Bind the transfer for a concrete runtime source and receiver.

receiver_evaluator(*, evaluator, target_mesh, factory=None)

Provide the bound evaluator used by the target field.

to_mapping()

Return the mapping representation used for configuration and diagnostics.

ElectricFieldToFaces class

ElectricFieldToFaces(*, source_mesh: object | None = None, target_mesh: object | None = None, factory: object | None = None, periodic_trace: object | None = None) -> None

Provide the electric field on target faces, with an explicit periodic potential trace when needed.

Methods and properties.

to_mapping()

Return the mapping representation used for configuration and diagnostics.

bind(*, source, target, target_mesh, factory=None)

Bind this declaration to the supplied execution context and collaborators.

bind_runtime(*, evaluator, target, target_mesh, target_space, identifier, factory=None)

Bind the transfer for a concrete runtime source and receiver.

receiver_evaluator(*, evaluator, target_mesh, factory=None)

Provide the bound evaluator used by the target field.

FieldInterpolation class

FieldInterpolation(*, source_mesh: object | None = None, target_mesh: object | None = None, factory: object | None = None) -> None

Interpolate a field to a compatible receiving support using the selected transfer factory.

Methods and properties.

bind(*, source, target, target_mesh, factory=None)

Bind this declaration to the supplied execution context and collaborators.

to_mapping()

Return the mapping representation used for configuration and diagnostics.

FiniteElementEvaluation class

FiniteElementEvaluation(*, source_mesh: object | None = None, target_mesh: object | None = None, factory: object | None = None) -> None

Evaluate an FE field on the receiver's requested physical points, such as mechanical quadrature.

Methods and properties.

bind(*, source, target, target_mesh, factory=None)

Bind this declaration to the supplied execution context and collaborators.

to_mapping()

Return the mapping representation used for configuration and diagnostics.

bind_runtime(*, evaluator, target, target_mesh, target_space, identifier, factory=None)

Bind the transfer for a concrete runtime source and receiver.

GlobalBroadcastTransfer class

GlobalBroadcastTransfer(*, source_mesh: object | None = None, target_mesh: object | None = None, factory: object | None = None) -> None

Send an owned global scalar or vector to a compatible spatial input as a uniform value.

Methods and properties.

bind(*, source, target, target_mesh, factory=None)

Bind this declaration to the supplied execution context and collaborators.

to_mapping()

Return the mapping representation used for configuration and diagnostics.

GlobalValueTransfer class

GlobalValueTransfer(*, source_mesh: object | None = None, target_mesh: object | None = None, factory: object | None = None) -> None

Send a global value to another compatible global input without a spatial sampling step.

Methods and properties.

receiver_evaluator(*, evaluator, target_mesh, factory=None)

Provide the bound evaluator used by the target field.

bind(*, source, target, target_mesh, factory=None)

Bind this declaration to the supplied execution context and collaborators.

bind_runtime(*, evaluator, target, target_mesh, target_space, identifier, factory=None)

Bind the transfer for a concrete runtime source and receiver.

to_mapping()

Return the mapping representation used for configuration and diagnostics.

operators namespace

Transfer / operators.

PeriodicPotentialTrace class

PeriodicPotentialTrace(*, potential_jump: object = 0.0) -> None

Set the signed potential increase from the first periodic face to the second.

Methods and properties.

bind(*, evaluator, mesh)

Bind this declaration to the supplied execution context and collaborators.

SpatialAverageTransfer class

SpatialAverageTransfer(*, source_mesh: object | None = None, target_mesh: object | None = None, factory: object | None = None, quadrature_order: int = 4, quadrature: object | None = None) -> None

Integrate a native spatial field and divide by its physical measure using the selected quadrature.

Methods and properties.

to_mapping()

Return the mapping representation used for configuration and diagnostics.

bind(*, source, target, target_mesh, factory=None)

Bind this declaration to the supplied execution context and collaborators.