SimiLie
Loading...
Searching...
No Matches
sil::tensor::ExternalDomainExtrapolationRule< Dimension, NeighborTensor, TargetRule > Struct Template Reference

Continue tensor values into a specified boundary of another tensor domain. More...

#include <external_domain_extrapolation_rule.hpp>

Collaboration diagram for sil::tensor::ExternalDomainExtrapolationRule< Dimension, NeighborTensor, TargetRule >:
Collaboration graph

Public Member Functions

template<class Domain , class Element >
KOKKOS_FUNCTION auto value (Domain const &domain, Element element) const
 
template<class Field , class Element >
KOKKOS_FUNCTION auto operator() (Field const &field, Element element) const
 

Public Attributes

NeighborTensor neighbor
 
ExternalDomainBoundaryMap< Dimension > boundary_map
 
double jump = 0.0
 
double orientation = 1.0
 
TargetRule target_rule = {}
 

Static Public Attributes

static constexpr bool IS_INTERFACE = true
 

Detailed Description

template<class Dimension, class NeighborTensor, class TargetRule = ClampExtrapolationRule>
struct sil::tensor::ExternalDomainExtrapolationRule< Dimension, NeighborTensor, TargetRule >

Continue tensor values into a specified boundary of another tensor domain.

Important
This operator and documentation is fully AI-generated.

Install this rule on the corresponding side of ExtrapolationRules. Stored samples retain their values. Exterior samples are mapped with boundary_map and evaluated by target_rule in the donor. The default clamps samples that also cross a tangential donor boundary; another rule can supply that closure. ExtrapolationRules handles corners using its normalized-distance blend.

orientation * donor_value + jump applies an affine transformation to sampled values. The reverse connection must use reciprocal orientation and jump -jump/orientation. The tensor view and target rule must be accessible in the execution space; the caller owns the donor allocation and synchronizes donor updates before sampling. Sampling does not merge the tensor allocations.

Definition at line 121 of file external_domain_extrapolation_rule.hpp.

Member Function Documentation

◆ value()

template<class Dimension , class NeighborTensor , class TargetRule = ClampExtrapolationRule>
template<class Domain , class Element >
KOKKOS_FUNCTION auto sil::tensor::ExternalDomainExtrapolationRule< Dimension, NeighborTensor, TargetRule >::value ( Domain const & domain,
Element element ) const
inline

Definition at line 131 of file external_domain_extrapolation_rule.hpp.

◆ operator()()

template<class Dimension , class NeighborTensor , class TargetRule = ClampExtrapolationRule>
template<class Field , class Element >
KOKKOS_FUNCTION auto sil::tensor::ExternalDomainExtrapolationRule< Dimension, NeighborTensor, TargetRule >::operator() ( Field const & field,
Element element ) const
inline

Definition at line 143 of file external_domain_extrapolation_rule.hpp.

Member Data Documentation

◆ IS_INTERFACE

template<class Dimension , class NeighborTensor , class TargetRule = ClampExtrapolationRule>
bool sil::tensor::ExternalDomainExtrapolationRule< Dimension, NeighborTensor, TargetRule >::IS_INTERFACE = true
staticconstexpr

Definition at line 123 of file external_domain_extrapolation_rule.hpp.

◆ neighbor

template<class Dimension , class NeighborTensor , class TargetRule = ClampExtrapolationRule>
NeighborTensor sil::tensor::ExternalDomainExtrapolationRule< Dimension, NeighborTensor, TargetRule >::neighbor

Definition at line 124 of file external_domain_extrapolation_rule.hpp.

◆ boundary_map

template<class Dimension , class NeighborTensor , class TargetRule = ClampExtrapolationRule>
ExternalDomainBoundaryMap<Dimension> sil::tensor::ExternalDomainExtrapolationRule< Dimension, NeighborTensor, TargetRule >::boundary_map

Definition at line 125 of file external_domain_extrapolation_rule.hpp.

◆ jump

template<class Dimension , class NeighborTensor , class TargetRule = ClampExtrapolationRule>
double sil::tensor::ExternalDomainExtrapolationRule< Dimension, NeighborTensor, TargetRule >::jump = 0.0

Definition at line 126 of file external_domain_extrapolation_rule.hpp.

◆ orientation

template<class Dimension , class NeighborTensor , class TargetRule = ClampExtrapolationRule>
double sil::tensor::ExternalDomainExtrapolationRule< Dimension, NeighborTensor, TargetRule >::orientation = 1.0

Definition at line 127 of file external_domain_extrapolation_rule.hpp.

◆ target_rule

template<class Dimension , class NeighborTensor , class TargetRule = ClampExtrapolationRule>
TargetRule sil::tensor::ExternalDomainExtrapolationRule< Dimension, NeighborTensor, TargetRule >::target_rule = {}

Definition at line 128 of file external_domain_extrapolation_rule.hpp.


The documentation for this struct was generated from the following file: